/* /assets/css/pages/ads.css — Dual-View: Browse Feed + Advertiser Dashboard */

.hidden {
    display: none !important;
}

/* ─── Reset body padding for sidebar layout ─────────────────────────────── */
body:has(.ads-layout) {
    padding: 0;
    margin: 0;
}

.ads-layout {
    min-height: 100vh;
    background: var(--bg-base);
}

.ads-layout>main {
    margin-left: 64px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
.ads-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 64px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 16px;
    background: rgba(8, 10, 14, 0.95);
    border-right: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    transition: width 0.3s cubic-bezier(0.2, 0, 0, 1);
    overflow: hidden;
}

.ads-sidebar:hover {
    width: 200px;
}

.ads-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-high);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 8px 0 8px 20px;
    margin-bottom: 24px;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

.ads-sidebar-brand-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
}

.ads-sidebar-brand span {
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
}

.ads-sidebar:hover .ads-sidebar-brand span {
    opacity: 1;
}

.ads-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    flex: 1;
}

.ads-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 10px 22px;
    justify-content: flex-start;
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
    width: 100%;
}

.ads-sidebar-link span {
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
}

.ads-sidebar:hover .ads-sidebar-link span {
    opacity: 1;
}

.ads-sidebar-link svg {
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.ads-sidebar-link:hover {
    color: var(--text-high);
}

.ads-sidebar-link:hover svg {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.15));
}

.ads-sidebar-link.active {
    color: var(--text-high);
}

.ads-sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--text-high);
    border-radius: 0 2px 2px 0;
}

.ads-sidebar-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 8px 16px;
}

.ads-sidebar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.ads-sidebar-back {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    padding-left: 20px;
    text-decoration: none;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.05em;
    padding-top: 6px;
    padding-bottom: 6px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.2s ease;
}

.ads-sidebar-back span {
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
}

.ads-sidebar:hover .ads-sidebar-back span {
    opacity: 1;
}

.ads-sidebar-back:hover {
    color: var(--text-med);
}

/* Mode toggle button in sidebar */
.ads-mode-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    padding: 8px 0 8px 20px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    border: none;
    background: rgba(255, 210, 80, 0.06);
    color: rgb(255, 210, 80);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s;
}

.ads-mode-toggle:hover {
    background: rgba(255, 210, 80, 0.12);
}

.ads-mode-toggle span {
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
}

.ads-sidebar:hover .ads-mode-toggle span {
    opacity: 1;
}

/* Mobile toggle */
.ads-sidebar-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: rgba(10, 12, 16, 0.9);
    backdrop-filter: blur(16px);
    color: var(--text-med);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.ads-sidebar-toggle:hover {
    color: var(--text-high);
    border-color: var(--border-strong);
}

.ads-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

body.sidebar-open .ads-sidebar-overlay {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BROWSE VIEW — Card Feed
   ═══════════════════════════════════════════════════════════════════════════ */

/* Sort Bar */
.ads-sort-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 48px;
    background: rgba(5, 6, 8, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.ads-sort-chip {
    padding: 6px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s;
}

.ads-sort-chip:hover {
    color: var(--text-med);
    border-color: var(--border-subtle);
}

.ads-sort-chip.active {
    color: var(--text-high);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.ads-sort-divider {
    width: 1px;
    height: 16px;
    background: var(--border-subtle);
    margin: 0 4px;
}

.ads-sort-search-wrap {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    transition: border-color 0.2s, background 0.2s;
}

.ads-sort-search-wrap:focus-within {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.06);
}

.ads-sort-search-wrap svg {
    color: var(--text-dim);
    flex-shrink: 0;
}

.ads-sort-search-input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-high);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    width: 140px;
}

.ads-sort-search-input::placeholder {
    color: var(--text-dim);
}

/* Card Grid */
.ads-card-runway {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 32px 48px 120px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Advertiser Card */
.ad-card {
    background: rgba(10, 12, 16, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md, 12px);
    padding: 20px;
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1),
        opacity 0.4s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    animation: adCardIn 0.5s ease forwards;
}

.ad-card:nth-child(1) {
    animation-delay: 0ms;
}

.ad-card:nth-child(2) {
    animation-delay: 60ms;
}

.ad-card:nth-child(3) {
    animation-delay: 120ms;
}

.ad-card:nth-child(4) {
    animation-delay: 180ms;
}

.ad-card:nth-child(5) {
    animation-delay: 240ms;
}

.ad-card:nth-child(6) {
    animation-delay: 300ms;
}

.ad-card:nth-child(7) {
    animation-delay: 360ms;
}

.ad-card:nth-child(8) {
    animation-delay: 420ms;
}

.ad-card:nth-child(9) {
    animation-delay: 480ms;
}

.ad-card:nth-child(10) {
    animation-delay: 540ms;
}

.ad-card:nth-child(11) {
    animation-delay: 600ms;
}

.ad-card:nth-child(12) {
    animation-delay: 660ms;
}

@keyframes adCardIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ad-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-tech, rgba(100, 200, 255, 0.5)), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ad-card:hover::before {
    opacity: 0.4;
}

.ad-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 30px rgba(100, 200, 255, 0.04),
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-3px) scale(1.01);
}

/* Featured cards get gold treatment */
.ad-card.featured {
    border-color: rgba(255, 210, 80, 0.2);
}

.ad-card.featured::before {
    background: linear-gradient(90deg, transparent, rgba(255, 210, 80, 0.6), transparent);
}

.ad-card.featured:hover {
    border-color: rgba(255, 210, 80, 0.4);
    box-shadow: 0 0 30px rgba(255, 210, 80, 0.06),
        0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Card inner elements */
.ad-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ad-card-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ad-card-brand {
    flex: 1;
    min-width: 0;
}

.ad-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-high);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-card.featured .ad-card-name {
    color: rgb(255, 215, 80);
}

.ad-card-category {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-top: 2px;
}

.ad-card-featured-badge {
    font-family: var(--font-mono);
    font-size: 0.45rem;
    letter-spacing: 0.12em;
    color: rgb(255, 210, 80);
    background: rgba(255, 210, 80, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 210, 80, 0.15);
    flex-shrink: 0;
    align-self: flex-start;
}

.ad-card-tagline {
    font-size: 0.82rem;
    color: var(--text-med);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-card-offer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 210, 80, 0.04);
    border: 1px solid rgba(255, 210, 80, 0.1);
    border-radius: 8px;
}

.ad-card-offer-icon {
    font-size: 1.1rem;
}

.ad-card-offer-text {
    font-size: 0.75rem;
    color: rgb(255, 215, 100);
    font-weight: 600;
    flex: 1;
}

.ad-card-offer-amount {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
}

.ad-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ad-card-rating {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgb(255, 210, 80);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ad-card-stat {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ad-card-cta {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-med);
    cursor: pointer;
    transition: all 0.2s;
}

.ad-card-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-high);
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD VIEW — Advertiser Management
   ═══════════════════════════════════════════════════════════════════════════ */

.ads-main {
    padding: 24px 32px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.ads-panel {
    display: none;
    animation: adsPanelIn 0.3s ease;
}

.ads-panel.active {
    display: block;
}

@keyframes adsPanelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ads-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ads-page-title {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ads-page-subtitle {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 2px;
}

/* KPI Strip */
.ads-kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.ads-kpi {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px 18px;
    transition: border-color 0.2s, background 0.2s;
}

.ads-kpi:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.ads-kpi-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.ads-kpi-value {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-high);
}

.ads-kpi-value.gold {
    color: rgb(255, 210, 80);
}

.ads-kpi-value.green {
    color: rgba(80, 200, 120, 0.9);
}

.ads-kpi-trend {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: rgba(80, 200, 120, 0.8);
    margin-top: 4px;
}

.ads-kpi-trend.down {
    color: rgba(255, 100, 100, 0.8);
}

.ads-section-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* Campaign Table */
.ads-campaign-table {
    width: 100%;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.015);
    margin-bottom: 28px;
}

.ads-table-header {
    display: grid;
    grid-template-columns: 2fr 100px 100px 100px 100px 80px 60px;
    gap: 0;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.ads-table-row {
    display: grid;
    grid-template-columns: 2fr 100px 100px 100px 100px 80px 60px;
    gap: 0;
    padding: 14px 20px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s;
    cursor: pointer;
}

.ads-table-row:last-child {
    border-bottom: none;
}

.ads-table-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.ads-campaign-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-high);
}

.ads-campaign-type {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.ads-table-cell {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-med);
}

.ads-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.06em;
}

.ads-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.ads-status-dot.active {
    background: rgba(80, 200, 120, 0.8);
    box-shadow: 0 0 6px rgba(80, 200, 120, 0.4);
}

.ads-status-dot.paused {
    background: rgba(255, 200, 60, 0.8);
    box-shadow: 0 0 6px rgba(255, 200, 60, 0.3);
}

.ads-status-dot.ended {
    background: var(--text-dim);
}

.ads-status-dot.review {
    background: rgba(100, 180, 255, 0.8);
    box-shadow: 0 0 6px rgba(100, 180, 255, 0.3);
}

.ads-table-action {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    background: none;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
}

.ads-table-action:hover {
    border-color: var(--border-strong);
    color: var(--text-high);
    background: rgba(255, 255, 255, 0.05);
}

.ads-create-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-high);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s;
}

.ads-create-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.06);
}

/* Rewards / Earnings (used in both browse and dashboard) */
.ads-earnings-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(255, 210, 80, 0.04);
    border: 1px solid rgba(255, 210, 80, 0.12);
    border-radius: 12px;
    margin-bottom: 24px;
}

.ads-earnings-amount {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(255, 210, 80);
}

.ads-earnings-label {
    font-size: 0.75rem;
    color: var(--text-med);
}

.ads-earnings-progress {
    flex: 1;
    max-width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-left: auto;
}

.ads-earnings-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgb(255, 210, 80), rgb(255, 180, 40));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.ads-earnings-next {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.ads-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.ads-reward-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ads-reward-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.035);
    transform: translateY(-2px);
}

.ads-reward-card.featured {
    border-color: rgba(255, 210, 80, 0.2);
    background: rgba(255, 210, 80, 0.03);
}

.ads-reward-card.featured:hover {
    border-color: rgba(255, 210, 80, 0.35);
}

.ads-reward-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ads-reward-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ads-reward-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-high);
}

.ads-reward-tag {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    color: rgb(255, 210, 80);
    margin-top: 1px;
}

.ads-reward-desc {
    font-size: 0.78rem;
    color: var(--text-low);
    line-height: 1.5;
}

.ads-reward-denoms {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ads-reward-denom {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    color: var(--text-med);
    cursor: pointer;
    transition: all 0.15s;
    background: none;
}

.ads-reward-denom:hover {
    border-color: rgb(255, 210, 80);
    color: rgb(255, 210, 80);
    background: rgba(255, 210, 80, 0.06);
}

.ads-reward-denom.locked {
    opacity: 0.35;
    cursor: not-allowed;
}

.ads-reward-denom.locked:hover {
    border-color: var(--border-subtle);
    color: var(--text-med);
    background: none;
}

/* Chart placeholder */
.ads-chart-area {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 28px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ads-chart-placeholder {
    text-align: center;
    color: var(--text-dim);
}

.ads-chart-placeholder svg {
    opacity: 0.2;
    margin-bottom: 12px;
}

.ads-chart-placeholder p {
    font-size: 0.8rem;
    margin: 0;
}

.ads-date-range {
    display: flex;
    gap: 4px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
}

.ads-date-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s;
}

.ads-date-btn:hover {
    color: var(--text-med);
    background: rgba(255, 255, 255, 0.04);
}

.ads-date-btn.active {
    color: var(--text-high);
    background: rgba(255, 255, 255, 0.08);
}

/* Billing */
.ads-billing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 16px;
}

.ads-billing-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ads-billing-icon {
    font-size: 1.3rem;
}

.ads-billing-title {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: var(--text-dim);
}

.ads-billing-value {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: rgb(255, 210, 80);
}

.ads-billing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ads-billing-row-label {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.04em;
}

.ads-billing-row-value {
    color: var(--text-med);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ads-sidebar-toggle {
        display: flex;
    }

    .ads-sidebar {
        transform: translateX(-100%);
        width: 200px;
    }

    body.sidebar-open .ads-sidebar {
        transform: translateX(0);
    }

    .ads-layout>main {
        margin-left: 0;
    }

    .ads-main {
        padding: 16px;
    }

    .ads-sort-bar {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .ads-card-runway {
        padding: 20px 16px 80px;
        grid-template-columns: 1fr;
    }

    .ads-table-header,
    .ads-table-row {
        grid-template-columns: 1fr 80px 80px;
    }

    .ads-table-header>:nth-child(n+4),
    .ads-table-row>:nth-child(n+4) {
        display: none;
    }

    .ads-kpi-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .ads-rewards-grid {
        grid-template-columns: 1fr;
    }

    .ads-earnings-bar {
        flex-wrap: wrap;
    }

    .ads-earnings-widget {
        right: 12px;
        bottom: 12px;
        left: 76px;
        width: auto;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   TIER 1: Reputation-Based Card Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Gold Tier (★ 8.0+) ─────────────────────────────────────────────────── */
.ad-card.tier-gold {
    border: 2px solid rgba(255, 200, 50, 0.45);
    box-shadow:
        0 0 12px rgba(255, 200, 50, 0.08),
        0 0 30px rgba(255, 200, 50, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: visible;
}

.ad-card.tier-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 180, 30, 0.2), rgba(255, 220, 80, 0.8), rgba(255, 180, 30, 0.2));
    border-radius: 12px 12px 0 0;
    pointer-events: none;
}

.ad-card.tier-gold:hover {
    border-color: rgba(255, 200, 50, 0.7);
    box-shadow:
        0 0 20px rgba(255, 200, 50, 0.12),
        0 0 50px rgba(255, 200, 50, 0.05);
}

.ad-card.tier-gold .ad-card-name {
    color: rgb(255, 215, 80);
    text-shadow: 0 0 8px rgba(255, 200, 50, 0.25);
}

.ad-card.tier-gold .ad-card-logo {
    border-color: rgba(255, 200, 50, 0.35);
    box-shadow: 0 0 10px rgba(255, 200, 50, 0.15);
}

/* ── Holographic Tier (★ 9.5+) ──────────────────────────────────────────── */
@keyframes ad-holo-shift {
    0% {
        border-color: #ff5050;
        box-shadow: 0 0 12px rgba(255, 80, 80, 0.25);
    }

    14% {
        border-color: #ffaa30;
        box-shadow: 0 0 12px rgba(255, 170, 48, 0.25);
    }

    28% {
        border-color: #50ff82;
        box-shadow: 0 0 12px rgba(80, 255, 130, 0.25);
    }

    42% {
        border-color: #32dcff;
        box-shadow: 0 0 12px rgba(50, 220, 255, 0.25);
    }

    57% {
        border-color: #6478ff;
        box-shadow: 0 0 12px rgba(100, 120, 255, 0.25);
    }

    71% {
        border-color: #c850ff;
        box-shadow: 0 0 12px rgba(200, 80, 255, 0.25);
    }

    85% {
        border-color: #ff50aa;
        box-shadow: 0 0 12px rgba(255, 80, 170, 0.25);
    }

    100% {
        border-color: #ff5050;
        box-shadow: 0 0 12px rgba(255, 80, 80, 0.25);
    }
}

.ad-card.tier-holo {
    border: 2px solid #ff5050;
    animation: ad-holo-shift 3s linear infinite;
    overflow: visible;
}

.ad-card.tier-holo::before,
.ad-card.tier-holo::after {
    display: none !important;
}

@keyframes ad-holo-name {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.ad-card.tier-holo .ad-card-name {
    background: linear-gradient(90deg, rgb(255, 120, 120), rgb(120, 255, 180), rgb(120, 160, 255));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ad-holo-name 4s ease-in-out infinite;
}

@keyframes ad-holo-logo {
    0% {
        border-color: rgba(255, 80, 80, 0.7);
    }

    33% {
        border-color: rgba(80, 255, 130, 0.7);
    }

    66% {
        border-color: rgba(80, 130, 255, 0.7);
    }

    100% {
        border-color: rgba(255, 80, 80, 0.7);
    }
}

.ad-card.tier-holo .ad-card-logo {
    animation: ad-holo-logo 4s ease-in-out infinite;
    border: 2px solid;
}


/* ═══════════════════════════════════════════════════════════════════════════
   TIER 1: Inline Like Button
   ═══════════════════════════════════════════════════════════════════════════ */

.ad-card-like {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    transition: all 0.2s;
}

.ad-card-like:hover {
    color: rgba(255, 100, 120, 0.8);
}

.ad-card-like:hover .ad-like-icon {
    transform: scale(1.15);
}

.ad-like-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), color 0.2s;
}

.ad-card-like.liked {
    color: rgba(255, 80, 100, 0.9);
}

.ad-card-like.liked .ad-like-icon {
    fill: rgba(255, 80, 100, 0.9);
    stroke: rgba(255, 80, 100, 0.9);
}

@keyframes ad-like-pop {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.35);
    }

    60% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.ad-card-like.just-liked .ad-like-icon {
    animation: ad-like-pop 0.4s cubic-bezier(0.2, 0, 0, 1);
}


/* ═══════════════════════════════════════════════════════════════════════════
   TIER 1: Earnings Ticker Widget
   ═══════════════════════════════════════════════════════════════════════════ */

.ads-earnings-widget {
    position: fixed;
    bottom: 20px;
    right: 24px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px 10px 14px;
    background: rgba(8, 10, 14, 0.92);
    border: 1px solid rgba(255, 210, 80, 0.15);
    border-radius: 14px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 210, 80, 0.04);
    transition: all 0.3s ease;
    cursor: default;
}

/* DISABLED FOR LAUNCH: earnings widget hidden via HTML hidden attr */
.ads-earnings-widget[hidden] {
    display: none !important;
}

.ads-earnings-widget:hover {
    border-color: rgba(255, 210, 80, 0.3);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 210, 80, 0.08);
}

.ads-widget-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 210, 80, 0.08);
    border: 1px solid rgba(255, 210, 80, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    position: relative;
}

@keyframes widget-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 210, 80, 0);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(255, 210, 80, 0.12);
    }
}

.ads-widget-icon.pulsing {
    animation: widget-pulse 2s ease-in-out infinite;
}

.ads-widget-balance {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ads-widget-amount {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: rgb(255, 210, 80);
    line-height: 1;
}

.ads-widget-label {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

/* Micro-toast for credit earn events */
.ads-widget-toast {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(80, 200, 120, 0.9);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
}

@keyframes toast-float {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }

    15% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-24px);
    }
}

.ads-widget-toast.show {
    animation: toast-float 1.2s ease-out forwards;
}


/* ═══════════════════════════════════════════════════════════════════════════
   CRITICAL PATH: Advertiser Detail Panel
   ═══════════════════════════════════════════════════════════════════════════ */

.ad-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ad-detail-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.ad-detail-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    max-width: 92vw;
    height: 100vh;
    z-index: 310;
    background: rgba(8, 10, 14, 0.96);
    border-left: 1px solid var(--border-subtle);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.ad-detail-panel.open {
    transform: translateX(0);
}

.ad-detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 5;
    transition: all 0.2s;
}

.ad-detail-close:hover {
    color: var(--text-high);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.08);
}

.ad-detail-header {
    padding: 28px 28px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ad-detail-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ad-detail-brand {
    flex: 1;
    min-width: 0;
}

.ad-detail-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-high);
}

.ad-detail-category {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-top: 4px;
}

.ad-detail-rating {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgb(255, 210, 80);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ad-detail-body {
    padding: 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ad-detail-desc {
    font-size: 0.85rem;
    color: var(--text-med);
    line-height: 1.65;
}

.ad-detail-section-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    margin-bottom: 10px;
}

/* Offer grid */
.ad-detail-offers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ad-detail-offer-btn {
    padding: 10px 18px;
    border: 1px solid rgba(255, 210, 80, 0.15);
    border-radius: 10px;
    background: rgba(255, 210, 80, 0.04);
    color: rgb(255, 215, 100);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.ad-detail-offer-btn:hover {
    border-color: rgba(255, 210, 80, 0.4);
    background: rgba(255, 210, 80, 0.1);
    box-shadow: 0 0 12px rgba(255, 210, 80, 0.08);
}

.ad-detail-offer-btn.locked {
    opacity: 0.35;
    cursor: not-allowed;
}

.ad-detail-offer-btn.locked:hover {
    border-color: rgba(255, 210, 80, 0.15);
    background: rgba(255, 210, 80, 0.04);
    box-shadow: none;
}

/* Stats row */
.ad-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ad-detail-stat-box {
    text-align: center;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
}

.ad-detail-stat-value {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-high);
}

.ad-detail-stat-label {
    font-family: var(--font-mono);
    font-size: 0.45rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Reviews */
.ad-detail-review {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
}

.ad-detail-review-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ad-detail-review-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.ad-detail-review-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-high);
    flex: 1;
}

.ad-detail-review-stars {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgb(255, 210, 80);
}

.ad-detail-review-text {
    font-size: 0.78rem;
    color: var(--text-low);
    line-height: 1.5;
}

/* Actions bar at bottom */
.ad-detail-actions {
    padding: 16px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    gap: 10px;
}

.ad-detail-action-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ad-detail-action-primary {
    border: none;
    background: rgb(255, 210, 80);
    color: rgb(10, 10, 14);
}

.ad-detail-action-primary:hover {
    background: rgb(255, 220, 100);
    box-shadow: 0 0 16px rgba(255, 210, 80, 0.2);
}

.ad-detail-action-secondary {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-med);
}

.ad-detail-action-secondary:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-high);
}


/* ═══════════════════════════════════════════════════════════════════════════
   CRITICAL PATH: Share Button + Toast
   ═══════════════════════════════════════════════════════════════════════════ */

.ad-card-share {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-dim);
    transition: all 0.2s;
}

.ad-card-share:hover {
    color: rgba(100, 180, 255, 0.8);
}

.ad-card-share:hover svg {
    transform: scale(1.1);
}

.ad-card-share svg {
    width: 15px;
    height: 15px;
    transition: transform 0.2s;
}

.ad-share-global-toast {
    position: fixed;
    bottom: 80px;
    right: 24px;
    z-index: 400;
    padding: 12px 20px;
    background: rgba(8, 10, 14, 0.95);
    border: 1px solid rgba(100, 180, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-high);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.ad-share-global-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ad-share-global-toast-icon {
    font-size: 1.1rem;
}

.ad-share-global-toast-bonus {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(80, 200, 120, 0.8);
    letter-spacing: 0.06em;
}


/* ═══════════════════════════════════════════════════════════════════════════
   CRITICAL PATH: Savings Goal
   ═══════════════════════════════════════════════════════════════════════════ */

.ads-widget-goal {
    display: none;
    flex-direction: column;
    gap: 3px;
    margin-left: 4px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 210, 80, 0.12);
}

.ads-widget-goal.active {
    display: flex;
}

.ads-widget-goal-text {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    white-space: nowrap;
}

.ads-widget-goal-bar {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.ads-widget-goal-fill {
    height: 100%;
    background: linear-gradient(90deg, rgb(255, 210, 80), rgba(80, 200, 120, 0.9));
    border-radius: 2px;
    transition: width 0.5s ease;
}

.ads-widget-goal-label {
    font-family: var(--font-mono);
    font-size: 0.45rem;
    color: rgb(255, 210, 80);
    white-space: nowrap;
}

/* Denomination button in goal state */
.ads-reward-denom.goal-active {
    border-color: rgba(80, 200, 120, 0.5);
    color: rgba(80, 200, 120, 0.9);
    background: rgba(80, 200, 120, 0.06);
    position: relative;
}

.ads-reward-denom.goal-active::after {
    content: '🎯';
    margin-left: 4px;
    font-size: 0.55rem;
}

@media (max-width: 768px) {
    .ad-detail-panel {
        width: 100vw;
        max-width: 100vw;
    }

    .ad-detail-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .ad-share-global-toast {
        right: 12px;
        left: 12px;
        bottom: 70px;
    }

    .ads-category-strip {
        padding: 0 16px 10px;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   REDEMPTION MODAL
   ═══════════════════════════════════════════════════════════════════════════ */

.ads-redeem-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ads-redeem-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.ads-redeem-modal {
    width: 380px;
    max-width: 90vw;
    background: rgba(12, 14, 18, 0.97);
    border: 1px solid rgba(255, 210, 80, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(24px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 210, 80, 0.04);
    transform: scale(0.92) translateY(16px);
    transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1);
    overflow: hidden;
}

.ads-redeem-overlay.open .ads-redeem-modal {
    transform: scale(1) translateY(0);
}

.ads-redeem-header {
    padding: 24px 24px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ads-redeem-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.ads-redeem-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-high);
}

.ads-redeem-subtitle {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-top: 4px;
}

.ads-redeem-body {
    padding: 20px 24px;
}

.ads-redeem-amount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255, 210, 80, 0.04);
    border: 1px solid rgba(255, 210, 80, 0.1);
    border-radius: 10px;
    margin-bottom: 16px;
}

.ads-redeem-amount-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.ads-redeem-amount-value {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: rgb(255, 210, 80);
}

.ads-redeem-balance-note {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 4px;
}

.ads-redeem-actions {
    padding: 16px 24px 24px;
    display: flex;
    gap: 10px;
}

.ads-redeem-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.2s;
}

.ads-redeem-btn-confirm {
    border: none;
    background: rgb(255, 210, 80);
    color: rgb(10, 10, 14);
}

.ads-redeem-btn-confirm:hover {
    background: rgb(255, 220, 100);
    box-shadow: 0 0 16px rgba(255, 210, 80, 0.2);
}

.ads-redeem-btn-cancel {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-med);
}

.ads-redeem-btn-cancel:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-high);
}

/* Success state */
.ads-redeem-success {
    display: none;
    text-align: center;
    padding: 32px 24px;
}

.ads-redeem-success.active {
    display: block;
}

.ads-redeem-confirm-state.hidden {
    display: none;
}

.ads-redeem-success-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    animation: redeem-bounce 0.6s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes redeem-bounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.ads-redeem-success-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(80, 200, 120, 0.9);
    margin-bottom: 6px;
}

.ads-redeem-code-box {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-high);
    letter-spacing: 0.15em;
    margin: 12px 0 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.ads-redeem-code-box:hover {
    border-color: rgba(255, 210, 80, 0.3);
    background: rgba(255, 210, 80, 0.04);
}

.ads-redeem-code-hint {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
}

.ads-redeem-done-btn {
    margin-top: 20px;
    padding: 10px 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-med);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ads-redeem-done-btn:hover {
    color: var(--text-high);
    border-color: rgba(255, 255, 255, 0.25);
}


/* ═══════════════════════════════════════════════════════════════════════════
   CATEGORY FILTERS
   ═══════════════════════════════════════════════════════════════════════════ */

.ads-category-strip {
    display: flex;
    gap: 6px;
    padding: 0 48px 14px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ads-category-strip::-webkit-scrollbar {
    display: none;
}

.ads-category-pill {
    padding: 5px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.ads-category-pill:hover {
    color: var(--text-med);
    border-color: rgba(255, 255, 255, 0.12);
}

.ads-category-pill.active {
    color: var(--text-high);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Card filter animation */
.ad-card.filter-out {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.ad-card.filter-in {
    animation: adCardIn 0.4s ease forwards;
}


/* ═══════════════════════════════════════════════════════════════════════════
   DAILY QUESTS
   ═══════════════════════════════════════════════════════════════════════════ */

.ads-quests-wrap {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 20px 48px 12px;
}

.ads-quests-wrap.active {
    display: flex;
}

.ads-quest-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(10, 12, 16, 0.72);
    border: 1px solid rgba(255, 210, 80, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(16px);
    transition: all 0.2s;
    cursor: pointer;
}

.ads-quest-card:hover {
    border-color: rgba(255, 210, 80, 0.25);
    background: rgba(255, 210, 80, 0.03);
}

.ads-quest-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 210, 80, 0.06);
    border: 1px solid rgba(255, 210, 80, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ads-quest-body {
    flex: 1;
    min-width: 0;
}

.ads-quest-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-high);
    margin-bottom: 3px;
}

.ads-quest-desc {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.ads-quest-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.ads-quest-bonus {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(80, 200, 120, 0.9);
    white-space: nowrap;
}

.ads-quest-timer {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: rgba(255, 180, 80, 0.8);
    white-space: nowrap;
}

.ads-quest-progress {
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.ads-quest-progress-fill {
    height: 100%;
    background: rgba(80, 200, 120, 0.7);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.ads-quests-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.ads-quests-title {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--text-dim);
}

.ads-quests-refresh {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: var(--text-dim);
    letter-spacing: 0.06em;
}


/* ═══════════════════════════════════════════════════════════════════════════
   EARN STREAKS
   ═══════════════════════════════════════════════════════════════════════════ */

.ads-widget-streak {
    display: none;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 140, 50, 0.15);
}

.ads-widget-streak.active {
    display: flex;
}

.ads-widget-streak-fire {
    font-size: 0.85rem;
}

.ads-widget-streak-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ads-widget-streak-count {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 700;
    color: rgba(255, 160, 60, 0.9);
    white-space: nowrap;
}

.ads-widget-streak-mult {
    font-family: var(--font-mono);
    font-size: 0.45rem;
    font-weight: 700;
    color: rgba(80, 200, 120, 0.8);
    white-space: nowrap;
}


/* ═══════════════════════════════════════════════════════════════════════════
   PRIVACY CONTROL PANEL
   ═══════════════════════════════════════════════════════════════════════════ */

.ads-privacy-card {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    margin-bottom: 16px;
}

.ads-privacy-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.ads-privacy-card-icon {
    font-size: 1.2rem;
}

.ads-privacy-card-title {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-dim);
}

.ads-privacy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.ads-privacy-row:last-child {
    border-bottom: none;
}

.ads-privacy-label {
    font-size: 0.82rem;
    color: var(--text-med);
}

.ads-privacy-sublabel {
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-top: 2px;
}

/* Toggle switch */
.ads-toggle {
    width: 36px;
    height: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    transition: all 0.25s;
    flex-shrink: 0;
}

.ads-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.25s;
}

.ads-toggle.on {
    background: rgba(80, 200, 120, 0.25);
    border-color: rgba(80, 200, 120, 0.4);
}

.ads-toggle.on::after {
    left: 18px;
    background: rgba(80, 200, 120, 0.9);
}

/* Frequency slider */
.ads-freq-slider-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.ads-freq-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    outline: none;
}

.ads-freq-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgb(255, 210, 80);
    cursor: pointer;
    border: none;
}

.ads-freq-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgb(255, 210, 80);
    cursor: pointer;
    border: none;
}

.ads-freq-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-dim);
    white-space: nowrap;
    min-width: 50px;
    text-align: right;
}

/* Data transparency */
.ads-data-pill {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid rgba(80, 200, 120, 0.15);
    border-radius: 999px;
    background: rgba(80, 200, 120, 0.04);
    color: rgba(80, 200, 120, 0.8);
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin: 3px 4px 3px 0;
}

.ads-data-none {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid rgba(255, 100, 100, 0.15);
    border-radius: 999px;
    background: rgba(255, 100, 100, 0.04);
    color: rgba(255, 100, 100, 0.7);
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}


/* ═══════════════════════════════════════════════════════════════════════════
   COMMUNITY VERIFIED + TRENDING BADGES
   ═══════════════════════════════════════════════════════════════════════════ */

.ad-card-badge {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-left: 3px;
    flex-shrink: 0;
}

.ad-card-badge-verified {
    /* gold shield — styling is in SVG fill */
}

.ad-card-badge-trending {
    /* blue circle — styling is in SVG stroke */
}


/* ═══════════════════════════════════════════════════════════════════════════
   EARNINGS BREAKDOWN POPOVER
   ═══════════════════════════════════════════════════════════════════════════ */

.ads-earnings-popover {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 280px;
    background: rgba(12, 14, 18, 0.97);
    border: 1px solid rgba(255, 210, 80, 0.12);
    border-radius: 14px;
    backdrop-filter: blur(24px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 210, 80, 0.03);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
    z-index: 200;
    overflow: hidden;
}

.ads-earnings-popover.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.ads-pop-header {
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ads-pop-title {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-dim);
}

.ads-pop-body {
    padding: 12px 16px;
}

.ads-pop-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

.ads-pop-row-label {
    font-size: 0.75rem;
    color: var(--text-med);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ads-pop-row-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ads-pop-row-value {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-high);
}

.ads-pop-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
    margin: 8px 0;
}

.ads-pop-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
}

.ads-pop-stat-label {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.ads-pop-stat-value {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(80, 200, 120, 0.9);
}

.ads-pop-sparkline {
    width: 100%;
    height: 32px;
    margin: 6px 0 2px;
}

.ads-pop-footer {
    padding: 8px 16px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ads-pop-lifetime {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ads-pop-lifetime-label {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.ads-pop-lifetime-value {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: rgb(255, 210, 80);
}


/* ═══════════════════════════════════════════════════════════════════════════
   NOTIFICATION DOTS
   ═══════════════════════════════════════════════════════════════════════════ */

.ads-sidebar-link {
    position: relative;
}

.ads-sidebar-link.has-notif::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgb(255, 80, 80);
    box-shadow: 0 0 6px rgba(255, 80, 80, 0.4);
}

/* Activity Feed */
.ads-activity-wrap {
    padding: 12px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 8px;
}

.ads-activity-title {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    padding: 0 16px 8px;
}

.ads-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 16px;
    font-size: 0.7rem;
    color: var(--text-dim);
    transition: color 0.2s;
}

.ads-activity-item:hover {
    color: var(--text-med);
}

.ads-activity-icon {
    font-size: 0.75rem;
    flex-shrink: 0;
}

.ads-activity-text {
    line-height: 1.35;
}

.ads-activity-time {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.15);
    margin-top: 1px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   REDEMPTION HISTORY
   ═══════════════════════════════════════════════════════════════════════════ */

.ads-history-section {
    margin-top: 28px;
}

.ads-history-table {
    width: 100%;
    border-collapse: collapse;
}

.ads-history-table th {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ads-history-table td {
    font-size: 0.78rem;
    color: var(--text-med);
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.ads-history-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

.ads-history-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ads-history-brand-icon {
    font-size: 0.9rem;
}

.ads-history-amount {
    font-family: var(--font-mono);
    font-weight: 700;
}

.ads-history-status {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 4px;
}

.ads-history-status.fulfilled {
    color: rgba(80, 200, 120, 0.9);
    background: rgba(80, 200, 120, 0.08);
    border: 1px solid rgba(80, 200, 120, 0.15);
}

.ads-history-status.processing {
    color: rgba(100, 180, 255, 0.9);
    background: rgba(100, 180, 255, 0.06);
    border: 1px solid rgba(100, 180, 255, 0.15);
}

.ads-history-status.pending {
    color: rgba(255, 210, 80, 0.9);
    background: rgba(255, 210, 80, 0.06);
    border: 1px solid rgba(255, 210, 80, 0.15);
}

.ads-history-code {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}


/* ═══════════════════════════════════════════════════════════════════════════
   NEW THIS WEEK BANNER
   ═══════════════════════════════════════════════════════════════════════════ */

.ads-banner-wrap {
    overflow: hidden;
    margin-bottom: 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255, 210, 80, 0.06), rgba(100, 180, 255, 0.06), rgba(80, 200, 120, 0.06));
    border: 1px solid rgba(255, 210, 80, 0.08);
    padding: 8px 0;
    position: relative;
}

.ads-banner-track {
    display: flex;
    white-space: nowrap;
    animation: bannerScroll 30s linear infinite;
}

.ads-banner-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 24px;
    font-size: 0.72rem;
    color: var(--text-med);
    flex-shrink: 0;
}

.ads-banner-star {
    color: rgba(255, 210, 80, 0.6);
    font-size: 0.6rem;
}

.ads-banner-new {
    font-family: var(--font-mono);
    font-size: 0.48rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 210, 80, 0.9);
    background: rgba(255, 210, 80, 0.08);
    border: 1px solid rgba(255, 210, 80, 0.15);
    padding: 2px 6px;
    border-radius: 3px;
}

@keyframes bannerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ─── Payment Modal ──────────────────────────────────────────────────────── */
.pay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pay-backdrop.visible {
    opacity: 1;
}

.pay-panel {
    width: 720px;
    max-width: 94vw;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(14, 16, 22, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    transform: translateY(12px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.pay-backdrop.visible .pay-panel {
    transform: translateY(0) scale(1);
}

/* Left: Order summary */
.pay-summary {
    padding: 32px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pay-summary-title {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    color: rgb(255, 210, 80);
    text-transform: uppercase;
}

.pay-summary-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-high);
    line-height: 1.3;
}

.pay-summary-desc {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* Tier cards */
.pay-tiers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pay-tier {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pay-tier:hover {
    background: rgba(255, 210, 80, 0.04);
    border-color: rgba(255, 210, 80, 0.15);
}

.pay-tier.selected {
    background: rgba(255, 210, 80, 0.06);
    border-color: rgba(255, 210, 80, 0.4);
    box-shadow: 0 0 0 1px rgba(255, 210, 80, 0.1) inset;
}

.pay-tier-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pay-tier-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
    position: relative;
}

.pay-tier.selected .pay-tier-radio {
    border-color: rgb(255, 210, 80);
}

.pay-tier.selected .pay-tier-radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border-radius: 50%;
    background: rgb(255, 210, 80);
}

.pay-tier-label {
    font-size: 0.82rem;
    color: var(--text-high);
    font-weight: 500;
}

.pay-tier-bonus {
    font-size: 0.62rem;
    color: rgba(80, 200, 120, 0.8);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

.pay-tier-price {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: rgb(255, 210, 80);
    font-weight: 600;
}

/* Divider line */
.pay-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
    margin: 4px 0;
}

/* Order total row */
.pay-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pay-total-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.pay-total-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-high);
}

/* Right: Payment form */
.pay-form {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pay-form-title {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    color: var(--text-dim);
    text-transform: uppercase;
}

.pay-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pay-field-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    text-transform: uppercase;
}

.pay-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 11px 14px;
    color: var(--text-high);
    font-family: var(--font-body);
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.pay-input:focus {
    border-color: rgba(255, 210, 80, 0.4);
}

.pay-input::placeholder {
    color: rgba(255, 255, 255, 0.15);
}

.pay-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pay-submit {
    padding: 13px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, rgb(255, 210, 80), rgb(240, 185, 50));
    color: rgb(10, 10, 14);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.pay-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.pay-submit:active {
    transform: translateY(0);
}

.pay-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pay-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.pay-close:hover {
    color: var(--text-high);
}

.pay-secure {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-top: auto;
}

.pay-secure-icon {
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 640px) {
    .pay-panel {
        grid-template-columns: 1fr;
        width: 96vw;
    }

    .pay-summary {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        padding: 24px 20px;
    }

    .pay-form {
        padding: 24px 20px;
    }
}

/* ═══════════════════════════════════════════════════════════════ */
/*  Bar Chart                                                     */
/* ═══════════════════════════════════════════════════════════════ */
.ads-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 16px 0 0;
    height: 180px;
}

.ads-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.ads-bar-value {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-med);
    letter-spacing: 0.04em;
}

.ads-bar-track {
    width: 100%;
    max-width: 48px;
    height: 140px;
    display: flex;
    align-items: flex-end;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

.ads-bar-fill {
    width: 100%;
    background: rgba(255, 210, 80, 0.25);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: barGrow 0.6s ease-out;
}

.ads-bar-fill:hover {
    background: rgba(255, 210, 80, 0.4);
    transform: scaleX(1.05);
}

.ads-bar-click {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(80, 200, 120, 0.35);
    border-radius: 4px 4px 0 0;
}

.ads-bar-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 64px;
}

.ads-chart-legend {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding: 4px 0;
}

.ads-chart-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

.ads-chart-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    display: inline-block;
}

@keyframes barGrow {
    from {
        height: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════ */
/*  Advertiser Detail Slide-in                                    */
/* ═══════════════════════════════════════════════════════════════ */
.ads-detail-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 900;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ads-detail-backdrop.visible {
    opacity: 1;
}

.ads-detail-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 90vw);
    height: 100vh;
    background: var(--bg-card, rgba(18, 18, 22, 0.97));
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 901;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ads-detail-backdrop.visible .ads-detail-panel {
    transform: translateX(0);
}

.ads-detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.15s;
}

.ads-detail-close:hover {
    color: var(--text-light);
}

.ads-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ads-detail-logo {
    font-size: 2.4rem;
    line-height: 1;
}

.ads-detail-name {
    font-family: var(--font-display, var(--font-sans));
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
}

.ads-detail-username {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

.ads-detail-tagline {
    font-size: 0.85rem;
    color: var(--text-med);
    line-height: 1.5;
}

.ads-detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.ads-detail-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.ads-detail-stat-value {
    font-family: var(--font-display, var(--font-sans));
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
}

.ads-detail-stat-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.ads-detail-cta {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, rgb(255, 210, 80), rgb(240, 185, 50));
    color: rgb(10, 10, 14);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.ads-detail-cta:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.ads-detail-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 4px 0;
}