/* Traffic Campany CPA — Design System */

:root {
    --color-bg: #f4f7fb;
    --color-bg-alt: #eef2f7;
    --color-surface: #ffffff;
    --color-surface-2: #f8fafc;
    --color-surface-hover: #f1f5f9;
    --color-border: rgba(15, 23, 42, 0.08);
    --color-border-strong: rgba(15, 23, 42, 0.12);
    --color-accent: #059669;
    --color-accent-light: #10b981;
    --color-accent-dark: #047857;
    --color-accent-glow: rgba(16, 185, 129, 0.25);
    --color-text: #0f172a;
    --color-text-secondary: #334155;
    --color-muted: #64748b;
    --color-muted-light: #94a3b8;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
    --shadow-glow: 0 8px 32px rgba(16, 185, 129, 0.18);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background mesh */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 70% 50% at 0% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 100%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        var(--color-bg);
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 80%);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 var(--color-accent-glow); }
    50% { box-shadow: 0 0 24px 4px var(--color-accent-glow); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* Glass card */
.glass-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.glass-card:hover {
    border-color: rgba(16, 185, 129, 0.2);
}

.glass-card-interactive:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* Stat card */
.stat-card {
    position: relative;
    overflow: hidden;
    padding: 1.25rem 1.5rem;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    opacity: 0;
    transition: opacity var(--transition);
}

.stat-card:hover::before { opacity: 1; }

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-accent-light);
    margin-bottom: 0.75rem;
    transition: transform var(--transition), background var(--transition);
}

.stat-card:hover .stat-icon {
    transform: scale(1.08);
    background: rgba(16, 185, 129, 0.2);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-accent-dark);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--color-muted);
    margin-top: 0.25rem;
}

.stat-extra {
    margin-top: 0.375rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 14px -3px rgba(16, 185, 129, 0.45);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -3px rgba(16, 185, 129, 0.6);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent-dark);
    background: rgba(16, 185, 129, 0.04);
}

.btn-ghost {
    background: transparent;
    color: var(--color-muted);
    padding: 0.5rem;
}

.btn-ghost:hover { color: var(--color-text); }

.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; border-radius: 12px; }

.btn:disabled, .btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* Form inputs */
.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--color-text);
    font-size: 0.9375rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.form-input::placeholder { color: #64748b; }

.form-error {
    color: #f87171;
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .form-input { padding-left: 2.75rem; }

.input-icon-wrap .input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted);
    pointer-events: none;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-success { background: rgba(16, 185, 129, 0.12); color: #047857; }
.badge-warning { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.badge-info { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.badge-neutral { background: var(--color-surface-2); color: var(--color-muted); }

/* Data table */
.data-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead {
    background: var(--color-surface-2);
}

.data-table th {
    text-align: left;
    padding: 0.875rem 1.25rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    border-bottom: 1px solid var(--color-border);
}

.data-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition);
}

.data-table tbody tr {
    transition: background var(--transition);
}

.data-table tbody tr:hover td {
    background: rgba(16, 185, 129, 0.04);
}

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

/* Sidebar layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

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

@media (min-width: 1024px) {
    .sidebar {
        transform: translateX(0);
        position: sticky;
        top: 0;
        height: 100vh;
    }
    .dashboard-main { margin-left: 0; }
}

.sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.sidebar-brand a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.125rem;
    min-width: 0;
    flex: 1;
}

.sidebar-close {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.sidebar-close:hover {
    color: var(--color-text);
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}

.sidebar-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #030712;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    margin-bottom: 0.25rem;
}

.sidebar-link:hover {
    color: var(--color-text);
    background: rgba(148, 163, 184, 0.08);
}

.sidebar-link.active {
    color: var(--color-accent-dark);
    background: rgba(16, 185, 129, 0.1);
}

.sidebar-link.active svg { color: var(--color-accent-light); }

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--color-border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--color-surface-2);
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-accent-dark);
}

.dashboard-main {
    flex: 1;
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 30;
}

.topbar-title {
    font-size: 1.125rem;
    font-weight: 600;
    min-width: 0;
}

.topbar-balance {
    flex-shrink: 0;
}

.page-content { padding: 1.5rem; }

@media (min-width: 768px) {
    .page-content { padding: 2rem; }
}

/* Public nav */
.public-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.public-nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-link-public {
    color: var(--color-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.nav-link-public:hover { color: var(--color-accent-dark); }

/* Toast */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    animation: slideInLeft 0.35s ease;
    max-width: 360px;
    font-size: 0.875rem;
    color: var(--color-text);
}

.toast-success { border-color: rgba(16, 185, 129, 0.35); }
.toast-success .toast-icon { color: var(--color-accent-dark); }
.toast-error { border-color: rgba(239, 68, 68, 0.35); }
.toast-error .toast-icon { color: #dc2626; }

.toast.hiding {
    animation: fadeIn 0.3s ease reverse forwards;
}

/* Offer card */
.offer-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
}

.offer-card-payout {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--color-muted);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
}

/* Page header */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.page-header p {
    color: var(--color-muted);
    font-size: 0.9375rem;
}

.page-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .page-header-flex {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
    }
    .page-header-actions { margin-top: 0; }
}

/* Hero */
.hero-section {
    padding: 5rem 1rem 4rem;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--color-accent-light);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #34d399, #10b981, #6ee7b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-muted);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Feature cards */
.feature-card {
    padding: 2rem;
    height: 100%;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-accent-light);
}

/* Copy input */
.copy-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.copy-group .form-input {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    font-family: ui-monospace, monospace;
}

.copy-group .copy-btn,
.copy-group .btn {
    flex-shrink: 0;
}

.copy-btn.copied {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    color: var(--color-accent-light) !important;
}

/* Mobile overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 35;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.show { display: block; }

/* Pagination override */
nav[role="navigation"] span, nav[role="navigation"] a {
    border-radius: 8px !important;
}

/* PIN landing */
.pin-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.pin-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    animation: fadeInUp 0.6s ease;
}

.pin-step { transition: opacity 0.3s, transform 0.3s; }
.pin-step.hidden-step { display: none; }

/* Status page */
.status-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.status-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.status-icon-wrap.warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.status-icon-wrap.danger { background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* Sync log item */
.sync-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition);
}

.sync-item:hover { border-color: rgba(16, 185, 129, 0.2); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.35); }

/* Utility */
.text-gradient {
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider {
    height: 1px;
    background: var(--color-border);
    margin: 1.5rem 0;
}

.skeleton {
    background: linear-gradient(90deg, rgba(30,41,59,0.5) 25%, rgba(51,65,85,0.5) 50%, rgba(30,41,59,0.5) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* ── Admin Offers Page ── */
.offers-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .offers-stats-grid { grid-template-columns: repeat(5, 1fr); }
}

.offers-stat-pill {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--color-border);
    transition: border-color var(--transition);
}

.offers-stat-pill:hover { border-color: rgba(16, 185, 129, 0.3); }

.offers-stat-pill .val {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.offers-stat-pill .lbl {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-top: 0.25rem;
}

.offers-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.offers-toolbar .form-group { margin-bottom: 0; flex: 1; min-width: 140px; }

.offers-toolbar-search { flex: 2; min-width: 200px; }

.offers-view-toggle {
    display: inline-flex;
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.offers-view-toggle button {
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--color-muted);
    border-radius: 7px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
}

.offers-view-toggle button.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-accent-light);
}

.offers-table-row {
    transition: background var(--transition);
}

.offers-table-row.expanded { background: rgba(16, 185, 129, 0.03); }

.offer-name-cell {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.offer-expand-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}

.offer-expand-btn:hover {
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--color-accent-light);
}

.offer-expand-btn.open { transform: rotate(90deg); color: var(--color-accent-light); }

.offer-detail-row td {
    padding: 0 !important;
    border-bottom: 1px solid var(--color-border);
}

.offer-detail-panel {
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    background: rgba(3, 7, 18, 0.4);
    animation: fadeIn 0.25s ease;
}

.offer-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.offer-detail-item .dk { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-muted); margin-bottom: 0.25rem; }
.offer-detail-item .dv { font-size: 0.875rem; }

.offer-payout-stack {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.offer-payout-stack .source { color: var(--color-muted); font-size: 0.8125rem; }
.offer-payout-stack .publisher { color: var(--color-accent-light); font-weight: 600; }
.offer-payout-stack .profit { color: #fbbf24; font-size: 0.75rem; }

.margin-editor {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 160px;
}

.margin-editor-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.margin-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(148, 163, 184, 0.2);
    outline: none;
}

.margin-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-accent);
    cursor: pointer;
    box-shadow: 0 0 8px var(--color-accent-glow);
}

.margin-input {
    width: 52px;
    text-align: center;
    padding: 0.375rem !important;
    font-size: 0.8125rem !important;
}

.margin-preview {
    font-size: 0.6875rem;
    color: var(--color-muted);
}

.margin-preview strong { color: var(--color-accent-light); }

.toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-switch .slider {
    position: absolute;
    inset: 0;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 22px;
    cursor: pointer;
    transition: background var(--transition);
}

.toggle-switch .slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition);
}

.toggle-switch input:checked + .slider { background: var(--color-accent); }
.toggle-switch input:checked + .slider::before { transform: translateX(18px); }

.offer-save-btn.saved {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    color: var(--color-accent-light) !important;
}

.country-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.country-chip {
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.1);
    color: var(--color-muted);
}

/* Card view */
.offers-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.offers-grid-view.hidden { display: none; }

.offer-admin-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.offer-admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.offer-admin-card-payouts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(3, 7, 18, 0.5);
    border-radius: var(--radius-sm);
}

.offer-admin-card-payouts .pp-label { font-size: 0.625rem; color: var(--color-muted); text-transform: uppercase; }
.offer-admin-card-payouts .pp-val { font-size: 0.9375rem; font-weight: 600; margin-top: 0.125rem; }

.offers-table-view.hidden { display: none; }

.sort-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

.sort-link:hover { color: var(--color-accent-light); }
.sort-link.active { color: var(--color-accent-light); }

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--color-accent-light);
}

.filter-chip button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    display: flex;
}

/* ── Homepage ── */
.home-hero {
    position: relative;
    padding: 5rem 1rem 6rem;
    text-align: center;
    overflow: hidden;
}

.home-hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2.5rem;
    font-size: 0.8125rem;
    color: var(--color-muted);
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.hero-trust i { color: var(--color-accent); }

.home-stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem 2rem;
    gap: 1rem;
}

@media (min-width: 768px) {
    .home-stats-bar { grid-template-columns: repeat(4, 1fr); gap: 0; }
}

.home-stat-item { text-align: center; padding: 0.5rem; }

.home-stat-val {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-accent-light);
    line-height: 1.2;
}

.home-stat-lbl {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-stat-divider {
    display: none;
}

@media (min-width: 768px) {
    .home-stat-divider {
        display: block;
        width: 1px;
        background: var(--color-border);
        align-self: stretch;
    }
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-light);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.3rem 0.875rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--color-muted);
    font-size: 1.0625rem;
    max-width: 560px;
    margin: 0.75rem auto 0;
    line-height: 1.7;
}

.home-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .home-steps { grid-template-columns: repeat(3, 1fr); }
}

.home-step {
    padding: 2rem;
    position: relative;
    text-align: center;
}

.home-step-num {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(148, 163, 184, 0.08);
    line-height: 1;
}

.home-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.home-payout-section { padding: 2.5rem; }

.home-payout-card {
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    background: rgba(3, 7, 18, 0.5);
    border: 1px solid var(--color-border);
    transition: border-color var(--transition);
}

.home-payout-card:hover { border-color: rgba(16, 185, 129, 0.3); }

.home-payout-code {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-accent-light);
    margin-bottom: 0.25rem;
}

.home-payout-label { font-size: 0.8125rem; color: var(--color-muted); }

.home-offer-teaser { padding: 1.25rem; }

.home-cta-banner {
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    border-color: rgba(16, 185, 129, 0.2) !important;
}

.home-cta-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.home-footer {
    border-top: 1px solid var(--color-border);
    background: rgba(15, 23, 42, 0.5);
    margin-top: 0;
}

/* FAQ */
.faq-item { overflow: hidden; }

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color var(--transition);
}

.faq-question:hover { color: var(--color-accent-light); }

.faq-chevron {
    flex-shrink: 0;
    color: var(--color-muted);
    transition: transform var(--transition);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--color-accent-light); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 1.25rem 1.125rem;
}

.faq-answer p {
    color: var(--color-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

.offers-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--color-muted);
}

/* ── Light theme: Tailwind slate compat ── */
.text-white { color: var(--color-text) !important; }
.text-slate-300 { color: var(--color-text-secondary) !important; }
.text-slate-400 { color: var(--color-muted) !important; }
.text-slate-500 { color: var(--color-muted-light) !important; }
.text-emerald-400 { color: var(--color-accent) !important; }
.text-emerald-300 { color: var(--color-accent-light) !important; }
.border-slate-800, .border-slate-800\/60 { border-color: var(--color-border) !important; }
.bg-slate-900, .bg-slate-900\/95 { background: var(--color-surface) !important; }
.hover\:text-emerald-400:hover { color: var(--color-accent-dark) !important; }

/* ── Homepage v2 ── */
.home-hero {
    position: relative;
    padding: 4rem 1rem 5rem;
    overflow: hidden;
}

.home-hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
    max-width: 80rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .home-hero-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        padding: 0 1rem;
    }
    .home-hero-grid .hero-subtitle { margin-left: 0; }
    .home-hero-grid .hero-cta { justify-content: flex-start; }
    .home-hero-grid .hero-trust { justify-content: flex-start; }
}

.home-hero-glow {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.hero-preview {
    position: relative;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-preview-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero-preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: var(--color-surface-2);
    border-bottom: 1px solid var(--color-border);
}

.hero-preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.hero-preview-body { padding: 1.25rem; }

.hero-preview-stat-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hero-preview-mini-stat {
    padding: 0.875rem;
    background: var(--color-surface-2);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.hero-preview-mini-stat .val {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-accent-dark);
}

.hero-preview-mini-stat .lbl {
    font-size: 0.6875rem;
    color: var(--color-muted);
    margin-top: 0.125rem;
}

.hero-preview-offer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    transition: background var(--transition);
}

.hero-preview-offer:hover { background: var(--color-surface-2); }

.hero-preview-offer .payout {
    font-weight: 700;
    color: var(--color-accent-dark);
}

.section-alt {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.verticals-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.vertical-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.vertical-pill:hover {
    border-color: var(--color-accent);
    color: var(--color-accent-dark);
    transform: translateY(-1px);
}

.vertical-pill i { color: var(--color-accent); }

.home-stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem 2rem;
    gap: 1rem;
    box-shadow: var(--shadow-md);
}

.home-stat-val {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-accent-dark);
    line-height: 1.2;
}

.home-step-num {
    color: rgba(16, 185, 129, 0.12);
}

.home-payout-card {
    background: var(--color-surface);
}

.home-footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
    margin-top: 0;
}

.home-cta-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.06));
    border: 1px solid rgba(16, 185, 129, 0.15) !important;
}

.offer-card-payout {
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #059669, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-badge {
    color: var(--color-accent-dark);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.section-tag {
    color: var(--color-accent-dark);
}

.offers-stat-pill {
    background: var(--color-surface);
}

.offers-view-toggle {
    background: var(--color-surface-2);
}

.offer-detail-panel {
    background: var(--color-surface-2);
}

.offer-admin-card-payouts {
    background: var(--color-surface-2);
}

.offers-stat-pill {
    background: var(--color-surface);
}

.alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin: 1rem auto;
    max-width: 80rem;
}

/* ── Publisher Panel ── */
.pub-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid;
}

.pub-alert-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
    color: #b45309;
}

.pub-alert-info {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.2);
    color: #2563eb;
}

.pub-alert .pub-alert-text { flex: 1; }

.pub-welcome {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(59, 130, 246, 0.04));
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.pub-welcome h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.pub-welcome p {
    font-size: 0.8125rem;
    color: var(--color-muted);
    margin: 0;
}

.pub-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pub-chart-card {
    padding: 1.5rem;
}

.pub-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pub-chart-period {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.pub-export-note {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin: 0;
}

.pub-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .pub-table-mobile .data-table thead {
        display: none;
    }

    .pub-table-mobile .data-table tbody tr {
        display: block;
        margin-bottom: 0.75rem;
        padding: 0.875rem 1rem;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
        background: rgba(15, 23, 42, 0.25);
    }

    .pub-table-mobile .data-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.375rem 0;
        border: none;
        text-align: right;
    }

    .pub-table-mobile .data-table tbody td::before {
        content: attr(data-label);
        font-size: 0.6875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--color-muted);
        text-align: left;
        flex-shrink: 0;
    }

    .pub-table-mobile .data-table tbody td[data-label=""]::before {
        display: none;
    }

    .pub-table-mobile .data-table tbody td[data-label=""] {
        justify-content: flex-end;
        padding-top: 0.625rem;
        margin-top: 0.375rem;
        border-top: 1px solid var(--color-border);
    }

    .pub-table-mobile .data-table tbody tr:has(.empty-state) td,
    .pub-table-mobile .data-table tbody tr td[colspan] {
        display: block;
        text-align: center;
    }

    .pub-table-mobile .data-table tbody tr:has(.empty-state) td::before,
    .pub-table-mobile .data-table tbody tr td[colspan]::before {
        display: none;
    }
}

.pub-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 140px;
    padding-top: 0.5rem;
}

.pub-chart-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    height: 100%;
    justify-content: flex-end;
}

.pub-chart-bar {
    width: 100%;
    max-width: 48px;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, var(--color-accent-light), var(--color-accent));
    min-height: 4px;
    transition: height 0.6s ease;
    position: relative;
}

.pub-chart-bar.clicks {
    background: linear-gradient(180deg, #60a5fa, #3b82f6);
    opacity: 0.7;
}

.pub-chart-label {
    font-size: 0.6875rem;
    color: var(--color-muted);
    text-align: center;
}

.pub-chart-val {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--color-accent-dark);
}

.pub-chart-legend {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--color-muted);
}

.pub-chart-legend span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.pub-chart-legend .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.pub-chart-legend .dot.earnings { background: var(--color-accent); }
.pub-chart-legend .dot.clicks { background: #3b82f6; }

.pub-two-col {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .pub-two-col { grid-template-columns: 1.5fr 1fr; }
}

.pub-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--color-border);
}

.pub-list-item:last-child { border-bottom: none; }

.pub-list-item:hover {
    background: rgba(16, 185, 129, 0.03);
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: var(--radius-sm);
}

.pub-mini-stat {
    text-align: center;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--color-surface-2);
}

.pub-mini-stat .val {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
}

.pub-mini-stat .lbl {
    font-size: 0.6875rem;
    color: var(--color-muted);
    margin-top: 0.125rem;
}

.pub-stat-trend {
    font-size: 0.6875rem;
    color: var(--color-muted);
    margin-top: 0.25rem;
}

.pub-stat-trend.positive { color: var(--color-accent-dark); }

.pub-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    padding: 1rem 1.25rem;
}

.pub-filter-bar .form-group { margin-bottom: 0; flex: 1; min-width: 130px; }
.pub-filter-bar .form-group.wide { flex: 2; min-width: 180px; }

.pub-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    font-size: 0.8125rem;
    color: var(--color-muted);
    border-bottom: 1px solid var(--color-border);
}

.pub-offer-card-actions {
    display: flex;
    gap: 0.375rem;
    margin-top: 0.75rem;
}

.pub-offer-card-actions .btn { flex: 1; }

.pub-detail-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .pub-detail-grid { grid-template-columns: 1fr 320px; }
}

.pub-detail-sidebar .glass-card {
    position: sticky;
    top: 1rem;
}

.pub-link-builder {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pub-link-preview {
    font-size: 0.75rem;
    word-break: break-all;
    padding: 0.75rem;
    background: var(--color-surface-2);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--color-border-strong);
    font-family: ui-monospace, monospace;
    color: var(--color-muted);
}

.pub-link-preview.active { color: var(--color-accent-dark); border-color: rgba(16, 185, 129, 0.3); }

.pub-profile-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .pub-profile-grid { grid-template-columns: 1fr 1fr; }
}

.pub-profile-section {
    padding: 1.5rem;
}

.pub-profile-section h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pub-account-card {
    padding: 1.25rem;
    background: var(--color-surface-2);
    border-radius: var(--radius-sm);
}

.pub-account-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--color-border);
}

.pub-account-row:last-child { border-bottom: none; }

.pub-account-row .label { color: var(--color-muted); }

.pub-withdraw-form {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .pub-withdraw-form { grid-template-columns: 1fr auto auto; align-items: end; }
}

.pub-payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
}

.pub-table-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.pub-converted-yes { color: var(--color-accent-dark); }
.pub-converted-no { color: var(--color-muted-light); }

.pub-empty-withdraw {
    text-align: center;
    padding: 2rem;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.sidebar-balance {
    padding: 0.75rem 1rem;
    margin: 0 0.75rem 0.5rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

.sidebar-balance .amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-accent-dark);
}

.sidebar-balance .sub {
    font-size: 0.6875rem;
    color: var(--color-muted);
    margin-top: 0.125rem;
}

.sidebar-badge {
    margin-left: auto;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    font-size: 0.6875rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-link {
    display: flex;
    align-items: center;
}

.pub-offers-grid.hidden,
.pub-offers-table.hidden { display: none; }

.pub-offers-table .data-table td { vertical-align: middle; }

.pub-offers-table .offer-name-cell {
    max-width: 220px;
}

.pub-offers-table .offer-name-cell .name {
    font-weight: 600;
    display: block;
}

.pub-offers-table .offer-name-cell .meta {
    font-size: 0.75rem;
    color: var(--color-muted);
}

/* ── Offer Wall Pro ── */
.ow-page { max-width: 100%; }

.ow-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.85) 45%, rgba(30, 41, 59, 0.9) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.ow-hero-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ow-hero-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.ow-hero-title {
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.375rem;
}

.ow-hero-sub {
    font-size: 0.9375rem;
    color: var(--color-muted);
    margin: 0;
    max-width: 36rem;
    line-height: 1.5;
}

.ow-view-toggle { flex-shrink: 0; }

.ow-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .ow-stats { grid-template-columns: repeat(5, 1fr); }
}

.ow-stat-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), transform var(--transition);
}

.ow-stat-card:hover {
    border-color: rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
}

.ow-stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ow-stat-icon.emerald { background: rgba(16, 185, 129, 0.12); color: #34d399; }
.ow-stat-icon.blue { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }
.ow-stat-icon.violet { background: rgba(139, 92, 246, 0.12); color: #a78bfa; }
.ow-stat-icon.amber { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }

.ow-stat-val {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
}

.ow-stat-lbl {
    font-size: 0.6875rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.125rem;
}

.ow-country-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.ow-country-bar-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-muted);
    white-space: nowrap;
}

.ow-country-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.ow-country-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition);
}

.ow-country-chip:hover {
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--color-accent-dark);
    background: rgba(16, 185, 129, 0.06);
}

.ow-country-chip.active {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--color-accent-dark);
}

.ow-country-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.625rem;
    height: 1.25rem;
    padding: 0 0.25rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.ow-country-code.global {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

.ow-country-count {
    font-size: 0.6875rem;
    color: var(--color-muted);
    background: rgba(148, 163, 184, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 999px;
}

.ow-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .ow-layout {
        grid-template-columns: 280px 1fr;
    }
}

.ow-sidebar {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .ow-sidebar {
        position: sticky;
        top: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
}

@media (max-width: 1023px) {
    .ow-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(320px, 92vw);
        z-index: 200;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        border-radius: 0;
        max-height: 100vh;
        overflow-y: auto;
    }

    .ow-sidebar.open {
        transform: translateX(0);
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.4);
    }
}

.ow-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.125rem;
    border-bottom: 1px solid var(--color-border);
    background: rgba(15, 23, 42, 0.4);
}

.ow-sidebar-head h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
}

.ow-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    border-radius: 6px;
}

.ow-sidebar-close:hover { background: rgba(148, 163, 184, 0.1); color: var(--color-text); }

@media (min-width: 1024px) {
    .ow-sidebar-close { display: none; }
}

.ow-filter-form {
    padding: 1rem 1.125rem 1.25rem;
}

.ow-filter-section {
    margin-bottom: 1rem;
}

.ow-filter-section-country {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.ow-filter-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.ow-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.ow-country-picker { position: relative; }

.ow-country-search {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.ow-country-list {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.35);
}

.ow-country-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition);
}

.ow-country-item:hover { background: rgba(16, 185, 129, 0.06); }

.ow-country-item.selected {
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-accent-dark);
}

.ow-country-item[hidden] { display: none; }

.ow-country-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ow-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.ow-advanced-toggle {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    width: 100%;
    padding: 0.625rem 0;
    margin-bottom: 0.5rem;
    border: none;
    background: transparent;
    color: var(--color-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition);
}

.ow-advanced-toggle:hover { color: var(--color-text); }

.ow-advanced-toggle i { transition: transform 0.2s; }

.ow-advanced-toggle.open i { transform: rotate(180deg); }

.ow-advanced.hidden { display: none; }

.ow-filter-checks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ow-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    cursor: pointer;
}

.ow-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-border);
}

.btn-block { width: 100%; justify-content: center; }

.ow-main-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.ow-filter-mobile-btn { display: flex; }

@media (min-width: 1024px) {
    .ow-filter-mobile-btn { display: none; }
}

.ow-results-info {
    font-size: 0.875rem;
    color: var(--color-muted);
}

.ow-results-info strong { color: var(--color-text); }

.ow-active-filters { margin-bottom: 1rem; }

.ow-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .ow-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1280px) {
    .ow-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1536px) {
    .ow-grid { grid-template-columns: repeat(3, 1fr); }
}

.ow-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.ow-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.25rem 1.25rem;
}

.ow-card-visual-wrap {
    position: relative;
}

.ow-card-payout-float {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.375rem 0.625rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(16, 185, 129, 0.35);
    font-size: 1rem;
    font-weight: 700;
    color: #6ee7b7;
    line-height: 1;
    z-index: 2;
}

.ow-offer-visual {
    position: relative;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.5);
}

.ow-offer-visual--card {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.ow-offer-visual--thumb {
    width: 3rem;
    height: 3rem;
    border-radius: 10px;
    flex-shrink: 0;
}

.ow-offer-visual--hero,
.ow-detail-hero-visual {
    width: 100%;
    min-height: 200px;
    aspect-ratio: 21 / 9;
}

.ow-offer-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ow-offer-visual-fallback {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
}

.ow-offer-visual--thumb .ow-offer-visual-fallback {
    border-radius: 10px;
}

.ow-offer-visual--emerald .ow-offer-visual-fallback {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.2));
    color: #6ee7b7;
}

.ow-offer-visual--blue .ow-offer-visual-fallback {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(37, 99, 235, 0.2));
    color: #93c5fd;
}

.ow-offer-visual--violet .ow-offer-visual-fallback {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(109, 40, 217, 0.2));
    color: #c4b5fd;
}

.ow-offer-visual--rose .ow-offer-visual-fallback {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.35), rgba(225, 29, 72, 0.2));
    color: #fda4af;
}

.ow-offer-visual--amber .ow-offer-visual-fallback {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.2));
    color: #fcd34d;
}

.ow-offer-visual--cyan .ow-offer-visual-fallback {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(8, 145, 178, 0.2));
    color: #67e8f9;
}

.ow-table-thumb-col {
    width: 3.5rem;
    padding-right: 0.25rem !important;
}

.ow-detail-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
}

.ow-detail-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem 2rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.45) 55%, transparent 100%);
}

.ow-detail-hero-overlay .offer-card-payout {
    color: #6ee7b7;
}

.ow-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.ow-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.ow-card:hover .ow-offer-visual-img {
    transform: scale(1.03);
}

.ow-offer-visual-img {
    transition: transform 0.35s ease;
}

.ow-card-payout {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent-dark);
    line-height: 1;
}

.ow-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: flex-end;
}

.ow-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ow-card-meta {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin: 0 0 0.5rem;
}

.ow-card-desc {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0 0 0.75rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ow-card-countries {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.ow-geo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.ow-geo-badge.global {
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.2);
}

.ow-geo-badge.muted {
    background: rgba(148, 163, 184, 0.08);
    color: var(--color-muted);
    border-color: var(--color-border);
}

.ow-geo-badge.cap {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.2);
}

.ow-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

.ow-card-actions .btn { flex: 1; justify-content: center; }

.ow-empty { grid-column: 1 / -1; }

.ow-table-wrap { margin-top: 0; }

.ow-table-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ow-table-countries {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.ow-pagination { margin-top: 1.5rem; }

.ow-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
}

.ow-sidebar-backdrop.open { display: block; }

@media (min-width: 1024px) {
    .ow-sidebar-backdrop { display: none !important; }
}

/* Offer Wall — advanced filters */
.pub-quick-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pub-quick-filters-label {
    font-size: 0.8125rem;
    color: var(--color-muted);
    font-weight: 500;
}

.pub-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition);
}

.pub-filter-chip:hover {
    border-color: rgba(16, 185, 129, 0.35);
    color: var(--color-accent-dark);
    background: rgba(16, 185, 129, 0.05);
}

.pub-filter-chip.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.35);
    color: var(--color-accent-dark);
}

.pub-advanced-filters {
    padding: 0 1.25rem 1.25rem;
}

.pub-advanced-filters.hidden { display: none; }

.pub-filter-checks {
    min-width: 200px;
}

.pub-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

/* ── Corporate Site Header & Footer ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-top {
    background: var(--color-surface-2);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.75rem;
    color: var(--color-muted);
}

.site-header-top-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.375rem 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-header-top-inner span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.site-header .public-nav {
    position: relative;
    top: auto;
}

.site-header.scrolled .public-nav {
    box-shadow: var(--shadow-md);
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--color-text);
}

.site-brand-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
}

.site-brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.site-brand-name { font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.02em; }

.site-brand-tag {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
}

.site-logo {
    display: block;
    height: auto;
    max-width: 100%;
}

.site-logo--full.site-logo-header {
    width: 168px;
    height: auto;
}

.site-logo--full.site-logo-footer {
    width: 180px;
    height: auto;
}

.site-logo--mark.site-logo-sidebar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.site-logo--mark.site-logo-compact {
    width: 32px;
    height: 32px;
}

.site-logo--mark.site-logo-auth {
    width: 56px;
    height: 56px;
}

.site-nav-desktop { align-items: center; gap: 0.25rem; }

.site-nav-link {
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-muted);
    text-decoration: none;
    transition: all var(--transition);
}

.site-nav-link:hover,
.site-nav-link.active {
    color: var(--color-accent-dark);
    background: rgba(16, 185, 129, 0.08);
}

.site-mobile-menu {
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
    padding: 1rem;
}

.site-mobile-link {
    display: block;
    padding: 0.75rem 0.5rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
}

.site-mobile-link:last-of-type { border-bottom: none; }

.site-mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    margin-top: 0;
}

.site-footer-main { padding: 4rem 0 2.5rem; }

.site-footer-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .site-footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

.site-footer .site-brand-name { color: #f8fafc; }

.site-footer .site-brand-tag { color: #64748b; }

.site-footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 320px;
    margin-bottom: 1.25rem;
}

.site-footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.75rem;
}

.site-footer-trust span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #64748b;
}

.site-footer-trust i { color: #10b981; }

.site-footer-title {
    color: #f1f5f9;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.site-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer-links li { margin-bottom: 0.5rem; }

.site-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition);
}

.site-footer-links a:hover { color: #34d399; }

.site-footer-payments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.site-footer-payments span {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #cbd5e1;
}

.site-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0;
}

.site-footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
}

.site-footer-powered {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #64748b;
}

.site-footer-powered i { color: #10b981; }

/* Homepage reveal animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Trust strip */
.home-trust-strip { padding: 2rem 0; }

.home-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .home-trust-grid { grid-template-columns: repeat(4, 1fr); }
}

.home-trust-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.home-trust-item:hover {
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: var(--shadow-sm);
}

.home-trust-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Verticals marquee */
.verticals-marquee-wrap {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.verticals-marquee {
    display: flex;
    gap: 0.75rem;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.verticals-marquee:hover { animation-play-state: paused; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Live stats indicator */
.home-stats-bar { position: relative; }

.home-stats-live {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    color: var(--color-muted);
}

.hero-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    margin-left: auto;
    animation: pulse-live 2s ease infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

#stats-refresh-icon.spinning {
    animation: spin 1s linear infinite;
}

/* Check list */
.home-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-check-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.home-check-list i { color: var(--color-accent); flex-shrink: 0; }

/* FAQ enhanced */
.faq-item.open .faq-answer {
    max-height: 300px;
    opacity: 1;
    padding: 0 1.25rem 1.25rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
    padding: 0 1.25rem 0;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-chevron { transition: transform 0.3s ease; }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.faq-answer p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--color-muted);
    margin: 0;
}

.feature-card {
    padding: 1.75rem;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.08));
    color: var(--color-accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform var(--transition);
}

.feature-card:hover .feature-icon { transform: scale(1.08); }

.section-alt {
    background: var(--color-surface-2);
}

.home-payout-card {
    background: var(--color-surface) !important;
}

.home-stat-val {
    color: var(--color-accent-dark);
}

@media (max-width: 640px) {
    .site-header-top { display: none; }
    .home-stats-live { position: static; justify-content: center; margin-top: 0.5rem; }
}

/* ── Admin Panel ── */
.adm-page { max-width: 100%; }

.adm-welcome {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.adm-welcome h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.375rem;
}

.adm-welcome p {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin: 0;
}

.adm-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.adm-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.125rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.adm-alert-warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fbbf24;
}

.adm-alert-info {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.adm-alert-text { flex: 1; }

.adm-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .adm-stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
    .adm-stats-grid { grid-template-columns: repeat(6, 1fr); }
}

.adm-stat-trend {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-top: 0.25rem;
}

.adm-stat-trend.positive { color: var(--color-accent-dark); }
.adm-stat-trend.warn { color: #fbbf24; }

.adm-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .adm-two-col { grid-template-columns: 1.5fr 1fr; }
}

.adm-chart-card { padding: 1.5rem; }

.adm-chart-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.adm-chart-period {
    display: flex;
    gap: 0.375rem;
}

.adm-filter-chip {
    display: inline-flex;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition);
}

.adm-filter-chip:hover {
    border-color: rgba(16, 185, 129, 0.35);
    color: var(--color-accent-dark);
}

.adm-filter-chip.active {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: var(--color-accent-dark);
}

.adm-chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.375rem;
    height: 180px;
    padding: 0.5rem 0;
}

.adm-chart-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 2px;
    min-width: 0;
}

.adm-chart-bar {
    width: 100%;
    max-width: 28px;
    border-radius: 4px 4px 0 0;
    transition: height 0.4s ease;
}

.adm-chart-bar.profit {
    background: linear-gradient(to top, #059669, #34d399);
}

.adm-chart-bar.conversions {
    background: rgba(59, 130, 246, 0.5);
    max-width: 12px;
}

.adm-chart-val {
    font-size: 0.625rem;
    color: var(--color-muted);
    min-height: 1rem;
}

.adm-chart-label {
    font-size: 0.6875rem;
    color: var(--color-muted);
    margin-top: 0.375rem;
}

.adm-chart-legend {
    display: flex;
    gap: 1.25rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--color-muted);
}

.adm-chart-legend span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.adm-chart-legend .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.adm-chart-legend .dot.profit { background: #34d399; }
.adm-chart-legend .dot.conversions { background: #60a5fa; }

.adm-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.adm-list-item:last-child { border-bottom: none; }

.adm-sync-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid var(--color-border);
}

.adm-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.adm-filter-bar .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 130px;
}

.adm-filter-bar .form-group.wide {
    flex: 2;
    min-width: 180px;
}

.adm-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.adm-results-bar strong { color: var(--color-text); }

.adm-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.adm-mini-stat {
    padding: 1rem 1.25rem;
    text-align: center;
}

.adm-mini-stat .val {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
}

.adm-mini-stat .lbl {
    font-size: 0.6875rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.25rem;
}

.adm-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.15));
    color: var(--color-accent-dark);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.adm-avatar.sm {
    width: 2rem;
    height: 2rem;
    font-size: 0.8125rem;
    border-radius: 8px;
}

.adm-row-pending {
    background: rgba(245, 158, 11, 0.04);
}

.adm-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.adm-withdrawal-card {
    padding: 1.25rem 1.5rem;
    transition: border-color var(--transition);
}

.adm-withdrawal-card.is-pending {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.03);
}

.adm-withdrawal-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.adm-withdrawal-user {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.adm-withdrawal-amount {
    text-align: right;
}

.adm-withdrawal-amount .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #34d399;
    line-height: 1.2;
    margin-bottom: 0.375rem;
}

.adm-withdrawal-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .adm-withdrawal-meta { grid-template-columns: 1fr 2fr; }
}

.adm-meta-item .label {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
    margin-bottom: 0.25rem;
}

.adm-meta-item .value {
    color: var(--color-text-secondary);
    word-break: break-all;
}

.adm-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    font-size: 0.875rem;
    color: #fbbf24;
}

.adm-withdrawal-form {
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

.adm-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.adm-settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .adm-settings-grid { grid-template-columns: 1fr 1.2fr; align-items: start; }
}

.adm-settings-guide,
.adm-settings-form {
    padding: 1.5rem;
}

.adm-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.adm-steps {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
}

.adm-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.875rem;
}

.adm-step-num {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-accent-dark);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.adm-settings-block {
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.adm-settings-block h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.adm-hint {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-top: 0.375rem;
}

.adm-form-section {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.adm-form-section h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
    margin: 0 0 1rem;
}

@media (max-width: 768px) {
    .adm-table-mobile .data-table thead { display: none; }

    .adm-table-mobile .data-table tbody tr {
        display: block;
        padding: 1rem;
        margin-bottom: 0.75rem;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
        background: rgba(15, 23, 42, 0.25);
    }

    .adm-table-mobile .data-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.375rem 0;
        border: none;
        text-align: right;
    }

    .adm-table-mobile .data-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.75rem;
        color: var(--color-muted);
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-right: 1rem;
        text-align: left;
    }

    .adm-table-mobile .data-table tbody td[data-label=""]::before { display: none; }
    .adm-table-mobile .data-table tbody td[data-label=""] { justify-content: flex-end; }

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

.adm-audit-item {
    padding: 1rem 1.25rem;
}

.adm-audit-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.adm-audit-action {
    font-weight: 600;
    color: var(--color-text);
}

.adm-audit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}

.adm-audit-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.adm-audit-props {
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 0;
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    overflow-x: auto;
}

/* ── SEO & Accessibility ── */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1rem;
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.home-seo-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: start;
}

.home-seo-text {
    color: var(--color-muted);
    line-height: 1.75;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.home-seo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.625rem;
}

.home-seo-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.home-seo-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    margin-top: 0.5rem;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
}

.home-seo-cards {
    display: grid;
    gap: 1rem;
}

.home-seo-card {
    padding: 1.25rem 1.5rem;
}

.home-seo-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.home-seo-card p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--color-muted);
    margin: 0;
}

@media (max-width: 1024px) {
    .home-seo-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Mobile Responsive ── */
.btn-icon-touch {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .topbar {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .topbar-title {
        font-size: 1rem;
        max-width: 55vw;
    }

    .page-content {
        padding: 1rem;
    }

    .page-header h1 {
        font-size: 1.375rem;
    }

    .home-payout-section {
        padding: 1.25rem;
    }

    .home-cta-banner {
        padding: 2.5rem 1.25rem;
    }

    .home-stats-bar {
        padding: 1rem;
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-badge {
        font-size: 0.6875rem;
        padding: 0.375rem 0.625rem;
    }

    .pub-results-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .pub-withdraw-form {
        grid-template-columns: 1fr;
    }

    .pub-withdraw-form .btn {
        width: 100%;
        justify-content: center;
    }

    .ow-view-toggle {
        display: none;
    }

    .offer-detail-panel {
        padding: 1rem;
    }

    .adm-table-mobile .offer-detail-row td {
        display: block;
        padding: 0;
    }

    .adm-table-mobile .offer-detail-row td::before {
        display: none;
    }

    .glass-card.p-8 {
        padding: 1.5rem;
    }

    .site-mobile-menu {
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-mobile-link {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    nav[role="navigation"] {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
    }

    .copy-group {
        flex-direction: column;
    }

    .copy-group .copy-btn,
    .copy-group .btn {
        width: 100%;
        justify-content: center;
    }

    .faq-item.open .faq-answer {
        max-height: none;
    }
}

@media (max-width: 640px) {
    .public-nav-inner {
        padding: 0 0.75rem;
        height: 3.5rem;
    }

    .site-logo-header {
        max-width: 160px;
        height: auto;
    }

    .toast-container {
        left: 1rem;
        right: 1rem;
    }

    .toast {
        max-width: 100%;
    }
}

