/* DeQrypto Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0B0E11;
    --bg-secondary: #161A1E;
    --bg-tertiary: #1E2329;
    --border-color: #2B3139;
    --text-primary: #EAECEF;
    --text-secondary: #848E9C;
    --text-tertiary: #5E6673;
    --green: #0ECB81;
    --red: #F6465D;
    --blue: #2962FF;
    --accent: #F0B90B;
    --accent-gold: #ffc107;
    --text-muted: #666;
    --glow: rgba(255, 193, 7, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 193, 7, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 193, 7, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    will-change: transform;
    pointer-events: none;
    z-index: 0;
}

/* Pause all decorative animations when tab is not visible — saves CPU/GPU */
:root:has(body) {
    animation-play-state: running;
}

@media (prefers-reduced-motion: reduce) {
    .background-grid {
        animation: none;
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 5px 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    width: 190px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), #FCD535);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
}

.logo-img {
    width: auto;
    height: 80px;
    object-fit: contain;
    background: transparent;
    margin-left: -22px;
}

.new-logo-img {
    width: 190px;
    height: auto;
    object-fit: contain;
    background: transparent;
    margin-top: 4px;
}

.logo span {
    font-size: 16px;
    color: var(--accent);
    font-weight: 600;
}

.header-nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-item {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
}

.nav-item:hover,
.nav-item.active {
    color: var(--accent);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    height: 38px;
}

/* Buttons */
.btn,
.btn-launch-terminal {
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.btn:hover,
.btn-launch-terminal:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-primary,
.btn-get-started {
    padding: 10px 20px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    display: inline-flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover,
.btn-get-started:hover {
    background: #FCD535;
    transform: translateY(-1px);
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 16px;
}

.icon-btn:hover {
    background: transparent;
    color: var(--accent);
}

/* Auth Button in Header */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.auth-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Tier Badge */
.tier-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    border: 1px solid var(--bg-tertiary);
}

.tier-badge.free {
    color: var(--text-tertiary);
    border-color: var(--text-tertiary);
}

.tier-badge.starter {
    color: #3B9EFF;
    border-color: #3B9EFF;
}

.tier-badge.pro {
    color: var(--accent);
    border-color: var(--accent);
}

.tier-badge.enterprise {
    color: var(--green);
    border-color: var(--green);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 90%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Auth Modal */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--bg-tertiary);
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
    font-family: inherit;
}

.auth-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.auth-form {
    padding: 0 24px 24px;
}

.auth-form-group {
    margin-bottom: 16px;
}

.auth-form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-form-group input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
    outline: none;
}

.auth-form-group input:focus {
    border-color: var(--accent);
}

.auth-error {
    color: var(--red);
    font-size: 13px;
    margin: 0 24px 16px;
    padding: 10px 12px;
    background: rgba(246, 70, 93, 0.1);
    border-radius: 6px;
    display: none;
}

.auth-success {
    color: var(--green);
    font-size: 13px;
    margin: 0 24px 16px;
    padding: 10px 12px;
    background: rgba(14, 203, 129, 0.1);
    border-radius: 6px;
    display: none;
}

.auth-submit-btn {
    width: 100%;
    padding: 11px;
    background: var(--accent);
    border: none;
    border-radius: 6px;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}

.auth-submit-btn:hover {
    opacity: 0.85;
}

.auth-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-user-info {
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 16px;
}

.auth-user-info .user-email {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-user-info .user-tier-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-logout-btn {
    width: 100%;
    padding: 10px;
    background: none;
    border: 1px solid var(--bg-tertiary);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.auth-logout-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
}

/* Load more button — shared across track-record and history */
.load-more-wrap {
    text-align: center;
    padding: 14px;
    border-top: 1px solid var(--border-color);
}

.btn-load-more {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 12px;
    padding: 7px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-load-more:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 90%;
    width: 100%;
    margin: 0 auto;
    padding: 60px 0px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 50px;
}

.footer-section {
    display: flex;
    flex-flow: column;
    gap: 10px;
    outline: none;
}

.footer-section ul,
.footer-section div {
    outline: none;
}

.footer-links a {
    outline: none;
}

.footer-links a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Accordion toggle button — mobile only, hidden on desktop */
.footer-section-trigger {
    display: none;
}

.footer-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.footer-logo-img {
    width: 210px;
    height: auto;
    object-fit: contain;
    background: transparent;
    margin: 20px 0px;
}

.footer-logo span {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.footer-tagline {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    min-width: 235px;
    max-width: 255px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-flow: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 5%;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--border-color);
}

.footer-connect-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-connect-email {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-connect-email a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.footer-connect-email a:hover {
    opacity: 0.8;
}

.footer-connect-divider {
    width: 1px;
    height: 20px;
    background: var(--border-color);
    flex-shrink: 0;
}

.footer-x-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s;
}

.footer-x-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 5%;
    text-align: center;
}

.footer-disclaimer {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 10px;
    line-height: 1.6;
    max-width: 90%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.footer-disclaimer strong {
    color: var(--text-secondary);
}

.footer-copyright {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* Terms of Service */
.legal-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.legal-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.legal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.legal-meta {
    font-size: 13px;
    color: var(--text-tertiary);
}

.legal-toc {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 36px;
}

.legal-toc-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.legal-toc ol {
    margin: 0;
    padding-left: 18px;
}

.legal-toc li {
    margin-bottom: 6px;
}

.legal-toc a {
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
}

.legal-toc a:hover {
    text-decoration: underline;
}

.legal-section {
    margin-bottom: 36px;
}

.legal-section h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-top: 8px;
}

.legal-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-section ul {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.legal-section ul li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 6px;
}

.legal-highlight {
    background: rgba(240, 185, 11, 0.06);
    border: 1px solid rgba(240, 185, 11, 0.15);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-contact {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px 24px;
    margin-top: 40px;
}

.legal-contact p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

.legal-contact a {
    color: var(--accent);
    text-decoration: none;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 16px;
    font-size: 13px;
}

.data-table th {
    position: sticky;
    top: 0;
    z-index: 5;
    text-align: left;
    padding: 10px 12px;
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(43, 49, 57, 0.4);
    color: var(--text-secondary);
    vertical-align: top;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.risk-warning {
    background: rgba(246, 70, 93, 0.06);
    border: 1px solid rgba(246, 70, 93, 0.25);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 32px;
}

.risk-warning-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.risk-warning p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 13px;
}

.cookie-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--border-color);
}

.cookie-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(43, 49, 57, 0.4);
    color: var(--text-secondary);
    vertical-align: top;
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-type-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.badge-essential {
    background: rgba(14, 203, 129, 0.12);
    color: var(--green);
}

.badge-functional {
    background: rgba(91, 143, 255, 0.12);
    color: #5B8FFF;
}

.badge-analytics {
    background: rgba(240, 185, 11, 0.12);
    color: #F0B90B;
}

/* ── Info icon + tooltip — used on track-record and history pages ── */
.info-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: default;
}

.info-icon svg {
    color: var(--text-tertiary);
    transition: color 0.15s;
}

.info-icon:hover svg {
    color: var(--text-secondary);
}

.info-icon .tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 200;
    max-width: 320px;
    width: max-content;
    text-align: left;
    font-weight: 400;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    white-space: normal;
}

.info-icon .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--border-color);
}

.info-icon:hover .tooltip {
    opacity: 1;
    pointer-events: auto;
}

.tooltip-learn {
    display: block;
    margin-top: 7px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.02em;
    border-top: 1px solid var(--border-color);
    padding-top: 7px;
}
.tooltip-learn:hover {
    color: #fff;
}

/* ── Avatar button (logged-in state of auth-btn) ── */
.avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s;
    font-family: inherit;
    white-space: nowrap;
    position: relative;
}

.avatar-btn:hover {
    border-color: var(--accent);
}

.avatar-initials {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(94, 102, 115, 0.2);
    border: 1.5px solid rgba(94, 102, 115, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

/* Tier-specific colours on the initials circle */
.avatar-initials.tier-free {
    background: rgba(94, 102, 115, 0.2);
    border-color: rgba(94, 102, 115, 0.4);
    color: var(--text-secondary);
}

.avatar-initials.tier-starter {
    background: rgba(59, 158, 255, 0.15);
    border-color: rgba(59, 158, 255, 0.4);
    color: #3B9EFF;
}

.avatar-initials.tier-pro {
    background: rgba(240, 185, 11, 0.15);
    border-color: rgba(240, 185, 11, 0.4);
    color: var(--accent);
}

.avatar-initials.tier-enterprise {
    background: rgba(240, 185, 11, 0.15);
    border-color: rgba(240, 185, 11, 0.4);
    color: var(--accent);
}

.avatar-chevron {
    color: var(--text-tertiary);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.avatar-btn.open .avatar-chevron {
    transform: rotate(180deg);
}

/* ── Avatar dropdown ── */
.avatar-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: -85%;
    width: 320px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    z-index: 1000;
}

.avatar-dropdown.open {
    display: block;
}

.avatar-dd-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.avatar-dd-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(240, 185, 11, 0.15);
    border: 1.5px solid rgba(240, 185, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.avatar-dd-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.avatar-dd-email {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 148px;
}

.avatar-dd-tier {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.avatar-dd-tier.free {
    background: rgba(94, 102, 115, 0.2);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.avatar-dd-tier.starter {
    background: rgba(59, 158, 255, 0.12);
    color: #3B9EFF;
    border: 1px solid rgba(59, 158, 255, 0.3);
}

.avatar-dd-tier.pro {
    background: rgba(240, 185, 11, 0.12);
    color: var(--accent);
    border: 1px solid rgba(240, 185, 11, 0.3);
}

.avatar-dd-tier.enterprise {
    background: rgba(240, 185, 11, 0.12);
    color: var(--accent);
    border: 1px solid rgba(240, 185, 11, 0.3);
}

.avatar-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 1px solid var(--bg-tertiary);
    transition: background 0.15s, color 0.15s;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.avatar-dd-item:last-child {
    border-bottom: none;
}

.avatar-dd-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.avatar-dd-item.upgrade {
    color: var(--accent);
    font-weight: 600;
}

.avatar-dd-item.upgrade:hover {
    background: rgba(240, 185, 11, 0.06);
}

.avatar-dd-item.danger {
    color: var(--red);
}

.avatar-dd-item.danger:hover {
    background: rgba(246, 70, 93, 0.06);
}

/* ── Skeleton loading ────────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg,
            var(--bg-tertiary) 25%,
            rgba(255, 255, 255, 0.05) 50%,
            var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite;
    border-radius: 4px;
    display: inline-block;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Product Visual */
.product-visual {
    position: relative;
    z-index: 1;
    padding: 80px 5%;
}

.product-visual-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.pv-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 14px;
    text-align: center;
}

.pv-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.pv-sub {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.pv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.pv-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.pv-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pv-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pv-card-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(240, 185, 11, 0.12);
    color: var(--accent);
}

.pv-card-body {
    padding: 20px;
}

.pv-signal-row {
    display: grid;
    grid-template-columns: 32px 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.pv-signal-row:last-child {
    border-bottom: none;
}

.pv-asset-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

.pv-asset-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.pv-asset-sub {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 1px;
}

.pv-price {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'IBM Plex Mono', monospace;
    text-align: right;
}

.pv-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.sig-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    padding: 3px 8px;
    letter-spacing: 0.3px;
}

.sig-buy {
    background: rgba(14, 203, 129, 0.15);
    color: #0ECB81;
}

.sig-sell {
    background: rgba(246, 70, 93, 0.15);
    color: #F6465D;
}

.sig-hold {
    background: rgba(240, 185, 11, 0.12);
    color: #F0B90B;
}

.pv-conf {
    font-size: 10px;
    color: var(--text-tertiary);
}

.pv-cycle-asset {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.pv-cycle-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.pv-cycle-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.pv-cycle-price {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'IBM Plex Mono', monospace;
}

.pv-cycle-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.pv-cycle-stat {
    background: var(--bg-tertiary);
    border-radius: 6px;
    padding: 8px;
    text-align: center;
}

.pv-cycle-stat-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.pv-cycle-stat-val {
    font-size: 13px;
    font-weight: 600;
    font-family: 'IBM Plex Mono', monospace;
}

.pv-cycle-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-tertiary);
    margin-bottom: 6px;
}

.pv-cycle-bar-track {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.pv-cycle-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #0ECB81 0%, #F0B90B 50%, #F6465D 100%);
}

.pv-cycle-marker-wrap {
    position: relative;
    height: 16px;
}

.pv-cycle-marker {
    position: absolute;
    top: 0;
    width: 2px;
    height: 12px;
    background: var(--text-primary);
    border-radius: 1px;
    transform: translateX(-50%);
}

.pv-cycle-chart {
    width: 100%;
    height: 90px;
    margin-top: 8px;
}