@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Fallback font stack if Google Fonts fails */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

:root {
    --bg: #050505;
    --bg-elevated: #0a0a0a;
    --surface: rgba(12, 12, 12, 0.85);
    --surface-solid: #0e0e0e;
    --surface-hover: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #fafafa;
    --text-secondary: #a3a3a3;
    --text-dim: #737373;
    --accent: #ffffff;
    --accent-muted: #d4d4d4;
    --accent-inverse: #0a0a0a;
    --success: #fafafa;
    --success-bg: rgba(255, 255, 255, 0.08);
    --danger: #fca5a5;
    --danger-bg: rgba(255, 255, 255, 0.04);
    --dot-color: rgba(255, 255, 255, 0.07);
    --dot-size: 22px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.5);
    --nav-width: 260px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* Dot grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, var(--dot-color) 1px, transparent 1px);
    background-size: var(--dot-size) var(--dot-size);
    pointer-events: none;
    z-index: 0;
}

/* Vignette + subtle radial fade */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% -10%, rgba(255, 255, 255, 0.04), transparent 55%),
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0, 0, 0, 0.85), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a { color: inherit; text-decoration: none; }

.page { position: relative; z-index: 1; }

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* ── Icons ── */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon svg {
    width: 100%;
    height: 100%;
}

.feature-icon .icon,
.empty-state-icon .icon,
.stat-icon .icon,
.cta-icon .icon {
    width: 22px;
    height: 22px;
}

.feature-icon,
.stat-icon,
.empty-state-icon,
.cta-icon {
    display: grid;
    place-items: center;
}

.product-svg svg {
    width: 22px;
    height: 22px;
}

/* ── Nav ── */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.03em;
    text-transform: lowercase;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-inverse);
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 800;
    border: 1px solid var(--border-strong);
}

.logo-text span {
    color: var(--text-secondary);
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text);
    background: var(--surface-hover);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--radius-sm);
    padding: 11px 20px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--accent);
    color: var(--accent-inverse);
    border: 1px solid var(--border-strong);
}

.btn-primary:hover {
    background: var(--accent-muted);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
}

.btn-sm { padding: 8px 14px; font-size: 0.82rem; }
.btn-block { width: 100%; }

.btn .icon { width: 16px; height: 16px; }

/* ── Glass card ── */
.glass {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* ── Landing hero ── */
.hero {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: center;
    padding: 48px 0 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

.hero-badge .icon {
    width: 14px;
    height: 14px;
    color: var(--text);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin: 0 0 20px;
}

.hero h1 .muted {
    color: var(--text-secondary);
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 0 36px;
}

.hero-stats {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hero-stat .icon {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: var(--text-dim);
}

.hero-stat strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hero-stat span {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ── Auth card ── */
.auth-card { padding: 32px; }

.auth-card-header { margin-bottom: 28px; }

.auth-card-header h2 {
    margin: 0 0 6px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-card-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.tab {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-dim);
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.tab.active {
    background: var(--accent);
    color: var(--accent-inverse);
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.field label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.field input {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.5);
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    transition: var(--transition);
}

.field input::placeholder { color: var(--text-dim); }

.field input:focus {
    outline: none;
    border-color: var(--border-strong);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.toast {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.toast:empty { display: none; }

.toast.error {
    background: var(--danger-bg);
    border: 1px solid var(--border);
    color: var(--danger);
}

.toast.success {
    background: var(--success-bg);
    border: 1px solid var(--border-strong);
    color: var(--text);
}

.toast.info {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

/* ── Features ── */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-bottom: 80px;
}

.feature-card {
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.feature-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.6;
}

.footer {
    padding: 32px 0 48px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Dashboard layout ── */
.dash-layout {
    display: grid;
    grid-template-columns: var(--nav-width) 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 16px;
    border-right: 1px solid var(--border);
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    flex: 1;
    margin-top: 32px;
    display: grid;
    gap: 4px;
    align-content: start;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.sidebar-link:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.sidebar-link.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border);
    color: var(--text);
}

.sidebar-link svg {
    width: 18px;
    height: 18px;
    opacity: 0.55;
    flex-shrink: 0;
}

.sidebar-link.active svg { opacity: 1; }

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

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-inverse);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.user-info strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
}

.user-info span {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.dash-main {
    padding: 32px 40px 64px;
    overflow-x: hidden;
}

.dash-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
}

.dash-top h1 {
    margin: 0 0 6px;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.dash-top p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.dash-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ── Stats ── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 20px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    flex-shrink: 0;
}

.stat-body { min-width: 0; }

.stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-value.sm {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ── Sections ── */
.section { margin-bottom: 40px; }

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.section-head h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.section-head span {
    font-size: 0.82rem;
    color: var(--text-dim);
}

/* ── Product grid ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.product-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.product-card.owned { border-color: rgba(255, 255, 255, 0.24); }

.product-cover {
    position: relative;
    height: 140px;
    background: #111 center/cover no-repeat;
    border-bottom: 1px solid var(--border);
}

.product-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.88) 100%);
}

.product-cover-top {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

.product-avatar {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.5);
    overflow: hidden;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.product-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-avatar-letter {
    font-weight: 800;
    font-size: 1.1rem;
}

.product-cover-meta {
    min-width: 0;
}

.product-slug {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.55);
    margin-bottom: 2px;
}

.product-cover-meta strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-cover-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 1;
}

.product-body { padding: 18px 20px 20px; }

.product-body p {
    margin: 0 0 14px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.product-price {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-target {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-family: Consolas, monospace;
}

.unlock-time {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.unlock-time .icon { width: 14px; height: 14px; }

.license-hint.muted { opacity: 0.85; }

.badges { display: flex; gap: 6px; flex-wrap: wrap; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid var(--border);
}

.badge-ready {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.badge-owned {
    background: var(--accent);
    color: var(--accent-inverse);
    border-color: transparent;
}

.badge-locked {
    background: transparent;
    color: var(--text-dim);
}

.license-hint {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-dim);
    font-family: 'Consolas', 'Courier New', monospace;
    display: flex;
    align-items: center;
    gap: 8px;
}

.license-hint .icon {
    width: 14px;
    height: 14px;
}

/* ── Empty / CTA ── */
.empty-state {
    padding: 56px 32px;
    text-align: center;
    border-radius: var(--radius);
    border: 1px dashed var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.empty-state-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.empty-state h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
}

.empty-state p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    max-width: 360px;
    margin-inline: auto;
    line-height: 1.6;
}

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 48px;
}

.cta-icon {
    width: 48px;
    height: 48px;
    border-radius: 11px;
    background: var(--accent);
    color: var(--accent-inverse);
    flex-shrink: 0;
}

.cta-banner h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
}

.cta-banner p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    max-width: 520px;
    line-height: 1.55;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* ── Skeleton ── */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

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

.skeleton-card { height: 200px; border-radius: var(--radius); }
.skeleton-card.tall { height: 320px; }

.hidden { display: none !important; }

/* ── Landing sections ── */
.section-block {
    padding: 24px 0 56px;
}

.section-intro {
    margin-bottom: 28px;
    max-width: 620px;
}

.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.section-intro h2 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section-intro p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.step-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.step-num {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 14px;
}

.step-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}

.step-card h3 {
    margin: 0 0 8px;
    font-size: 0.95rem;
}

.step-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.55;
}

.setup-block { padding-bottom: 64px; }

.setup-panel { padding: 32px; }

.setup-header h2 {
    margin: 8px 0 8px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.setup-header p {
    margin: 0 0 24px;
    color: var(--text-secondary);
}

.setup-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.setup-steps li {
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.35);
}

.setup-steps strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.92rem;
}

.setup-steps span {
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.55;
}

.setup-steps code, .setup-note code {
    font-family: Consolas, monospace;
    font-size: 0.82rem;
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

.setup-steps a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.setup-note {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-size: 0.84rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Dashboard extras ── */
.dash-eyebrow {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.sync-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(255,255,255,0.05);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.sync-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text);
    animation: pulse 2s infinite;
}

.stats-row-4 {
    grid-template-columns: repeat(4, 1fr);
}

.stat-sub {
    margin-top: 6px;
    font-size: 0.72rem;
    color: var(--text-dim);
}

.dash-split {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.account-panel, .activity-panel {
    padding: 22px;
}

.section-head.compact {
    margin-bottom: 16px;
    padding-bottom: 10px;
}

.account-rows { display: grid; gap: 0; }

.account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.86rem;
}

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

.account-row span { color: var(--text-dim); }

.account-row strong { font-weight: 600; text-align: right; }

.account-row.dim {
    padding-top: 0;
    border: none;
    justify-content: flex-end;
    font-size: 0.75rem;
}

.mono { font-family: Consolas, monospace; font-size: 0.82rem; }

.activity-list { display: grid; gap: 8px; }

.activity-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.25);
    transition: var(--transition);
}

.activity-item:hover { border-color: var(--border-strong); }

.activity-thumb-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #111;
    display: grid;
    place-items: center;
}

.activity-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-thumb-letter {
    font-weight: 800;
}

.activity-body strong {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 2px;
}

.activity-body span {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.activity-time {
    text-align: right;
}

.activity-time strong {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 2px;
}

.activity-time span {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.empty-state.wide { grid-column: 1 / -1; }

.empty-state.inline {
    padding: 24px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.empty-state.inline p { margin: 0; }

/* — Admin Panel — */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table thead {
    background: var(--surface-solid);
    border-bottom: 1px solid var(--border-strong);
}

.admin-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.admin-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.admin-table tbody tr:hover {
    background: var(--surface-hover);
}

.admin-table td {
    padding: 14px 16px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: var(--surface-solid);
    color: var(--text-secondary);
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.modal {
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

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

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

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

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

.modal-body {
    padding: 24px;
}

/* — Redeem Section — */
.redeem-section {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(12, 12, 12, 0.7) 100%);
    border: 1px solid var(--border-strong);
}

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

.redeem-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: start;
}

.redeem-section select,
.redeem-section input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    transition: all var(--transition);
}

.redeem-section select:focus,
.redeem-section input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface-solid);
}

.redeem-section input[type="text"] {
    font-family: 'Courier New', 'Courier', monospace;
    letter-spacing: 0.5px;
}

@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; padding-bottom: 48px; }
    .auth-card { max-width: 440px; }
    .features { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .dash-layout { grid-template-columns: 1fr; }
    .sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 16px;
    }
    .sidebar-nav { display: none; }
    .dash-main { padding: 24px 20px 48px; }
    .stats-row, .stats-row-4 { grid-template-columns: 1fr 1fr; }
    .dash-split { grid-template-columns: 1fr; }
    .dash-top { flex-direction: column; }
    .cta-banner { flex-direction: column; text-align: center; }
    .cta-content { flex-direction: column; }
    .footer-inner { justify-content: center; }
    .redeem-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .product-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .stats-row-4 { grid-template-columns: 1fr; }
    .nav-links .nav-link:not(.btn) { display: none; }
}
