/*
Theme Name: Trading Academy
Theme URI: https://teisenberg.com
Author: Teisenberg
Author URI: https://teisenberg.com
Description: Custom WordPress theme for Trading Academy - membership, courses, resources, simulator.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: trading-academy
*/

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-primary:    #0a0c10;
    --bg-secondary:  #111318;
    --bg-card:       #161a22;
    --bg-elevated:   #1c2130;
    --border:        #252b3a;
    --border-light:  #2e3650;

    --accent:        #00d4ff;
    --accent-dim:    rgba(0, 212, 255, 0.12);
    --accent-hover:  #33ddff;
    --gold:          #f0b429;
    --gold-dim:      rgba(240, 180, 41, 0.12);
    --success:       #00c896;
    --danger:        #ff4d6a;
    --warning:       #f0b429;

    --text-primary:  #e8eaf0;
    --text-secondary:#8b95b0;
    --text-muted:    #4a5270;

    --font-display:  'Barlow Condensed', sans-serif;
    --font-body:     'Inter', sans-serif;
    --font-mono:     'JetBrains Mono', monospace;

    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  12px;
    --radius-xl:  20px;

    --shadow-card:   0 4px 24px rgba(0,0,0,0.4);
    --shadow-glow:   0 0 24px rgba(0,212,255,0.15);

    --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: var(--text-primary);
}

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.container--narrow { max-width: 760px; }
.container--wide   { max-width: 1440px; }

.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 120px 0; }

/* =====================================================
   GRID
   ===================================================== */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-card);
}
.card--glow:hover {
    border-color: rgba(0,212,255,0.3);
    box-shadow: var(--shadow-glow);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
    white-space: nowrap;
    text-decoration: none;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn--primary {
    background: var(--accent);
    color: #0a0c10;
    border-color: var(--accent);
}
.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #0a0c10;
    box-shadow: 0 0 16px rgba(0,212,255,0.3);
}

.btn--secondary {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}
.btn--secondary:hover {
    background: var(--accent-dim);
    color: var(--accent-hover);
}

.btn--gold {
    background: var(--gold);
    color: #0a0c10;
    border-color: var(--gold);
}
.btn--gold:hover {
    background: #f7c340;
    box-shadow: 0 0 16px rgba(240,180,41,0.3);
    color: #0a0c10;
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
}
.btn--ghost:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.btn--danger {
    background: transparent;
    color: var(--danger);
    border-color: var(--danger);
}
.btn--danger:hover { background: rgba(255,77,106,0.1); color: var(--danger); }

.btn--sm { padding: 6px 14px; font-size: 13px; }
.btn--lg { padding: 14px 32px; font-size: 16px; }
.btn--full { width: 100%; justify-content: center; }

/* =====================================================
   BADGES
   ===================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.badge--free     { background: rgba(0,200,150,0.15); color: var(--success); border: 1px solid rgba(0,200,150,0.25); }
.badge--premium  { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(240,180,41,0.25); }
.badge--active   { background: rgba(0,200,150,0.15); color: var(--success); }
.badge--expired  { background: rgba(255,77,106,0.12); color: var(--danger); }

/* =====================================================
   FORMS
   ===================================================== */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.form-control {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

.form-help { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    border: 1px solid;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert--success { background: rgba(0,200,150,0.08); border-color: rgba(0,200,150,0.25); color: var(--success); }
.alert--error   { background: rgba(255,77,106,0.08); border-color: rgba(255,77,106,0.25); color: var(--danger); }
.alert--warning { background: rgba(240,180,41,0.08); border-color: rgba(240,180,41,0.25); color: var(--warning); }
.alert--info    { background: var(--accent-dim); border-color: rgba(0,212,255,0.25); color: var(--accent); }

/* =====================================================
   TABLES
   ===================================================== */
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
thead th {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-elevated); }

/* =====================================================
   PROGRESS
   ===================================================== */
.progress-bar {
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 99px;
    overflow: hidden;
}
.progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #00aaff);
    border-radius: 99px;
    transition: width 0.6s ease;
}

/* =====================================================
   HEADER / NAV
   ===================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,12,16,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.site-logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-logo span { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    text-decoration: none;
}
.site-nav a:hover, .site-nav a.active { color: var(--text-primary); background: var(--bg-elevated); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 7px 10px;
    color: var(--text-primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-secondary); border-bottom: 1px solid var(--border); flex-direction: column; padding: 16px; gap: 4px; }
    .site-nav.open { display: flex; }
    .site-nav a { width: 100%; }
    .nav-toggle { display: block; }
    .header-actions .btn:not(.btn--primary) { display: none; }
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand p { color: var(--text-secondary); font-size: 14px; margin-top: 12px; line-height: 1.7; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-secondary); font-size: 14px; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--text-primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; color: var(--text-muted); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; gap: 8px; text-align: center; } }

/* =====================================================
   HERO
   ===================================================== */
.hero {
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border: 1px solid rgba(0,212,255,0.25);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__sub {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 40px;
    line-height: 1.7;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.section-header { margin-bottom: 48px; }
.section-header--center { text-align: center; }
.section-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
}
.section-desc { color: var(--text-secondary); font-size: 16px; max-width: 560px; }
.section-header--center .section-desc { margin: 0 auto; }

/* =====================================================
   STATS BAR
   ===================================================== */
.stats-bar {
    display: flex;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.stats-bar__item {
    flex: 1;
    padding: 28px 24px;
    text-align: center;
    border-right: 1px solid var(--border);
}
.stats-bar__item:last-child { border-right: none; }
.stats-bar__number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    display: block;
}
.stats-bar__label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

@media (max-width: 600px) { .stats-bar { flex-direction: column; } .stats-bar__item { border-right: none; border-bottom: 1px solid var(--border); } }

/* =====================================================
   COURSE CARD
   ===================================================== */
.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.course-card:hover { border-color: rgba(0,212,255,0.3); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.course-card__thumb { aspect-ratio: 16/9; background: var(--bg-elevated); position: relative; overflow: hidden; }
.course-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.course-card__meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.course-card__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.course-card__desc { font-size: 13px; color: var(--text-secondary); flex: 1; margin-bottom: 16px; line-height: 1.6; }
.course-card__footer { margin-top: auto; display: flex; gap: 8px; }

/* =====================================================
   RESOURCE CARD
   ===================================================== */
.resource-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.resource-card:hover { border-color: var(--border-light); background: var(--bg-elevated); }
.resource-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 18px;
    flex-shrink: 0;
}
.resource-card__info { flex: 1; min-width: 0; }
.resource-card__name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resource-card__meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.resource-card__action { flex-shrink: 0; }

/* =====================================================
   DASHBOARD LAYOUT
   ===================================================== */
.dashboard-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 64px);
}
.dashboard-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 28px 16px;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    text-decoration: none;
    margin-bottom: 2px;
}
.sidebar-nav a:hover, .sidebar-nav a.active { color: var(--text-primary); background: var(--bg-elevated); }
.sidebar-nav a.active { color: var(--accent); }
.sidebar-section { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); padding: 8px 14px; margin-top: 16px; }
.dashboard-main { padding: 36px 40px; }
.dashboard-title { font-family: var(--font-display); font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.dashboard-subtitle { color: var(--text-secondary); font-size: 14px; margin-bottom: 32px; }

@media (max-width: 900px) {
    .dashboard-wrap { grid-template-columns: 1fr; }
    .dashboard-sidebar { display: none; position: static; height: auto; }
    .dashboard-main { padding: 24px 16px; }
}

/* =====================================================
   MEMBER CARD
   ===================================================== */
.member-card {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(0,212,255,0.05) 100%);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: var(--radius-xl);
    padding: 28px;
    position: relative;
    overflow: hidden;
}
.member-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
}
.member-card--premium {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(240,180,41,0.06) 100%);
    border-color: rgba(240,180,41,0.25);
}
.member-card--premium::after { background: radial-gradient(circle, rgba(240,180,41,0.08) 0%, transparent 70%); }
.member-card__name { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.member-card__type { font-size: 12px; color: var(--text-secondary); margin-bottom: 20px; }
.member-card__stats { display: flex; gap: 24px; }
.member-card__stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.member-card__stat-val { font-size: 15px; font-weight: 600; }

/* =====================================================
   AUTH PAGES
   ===================================================== */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--bg-primary);
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-card);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo a { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--text-primary); text-decoration: none; }
.auth-logo a span { color: var(--accent); }
.auth-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider hr { flex: 1; border: none; border-top: 1px solid var(--border); }
.auth-divider span { font-size: 12px; color: var(--text-muted); }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-secondary); }
.auth-footer a { color: var(--accent); font-weight: 600; }

/* =====================================================
   PRICING
   ===================================================== */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    display: flex;
    flex-direction: column;
}
.pricing-card--featured {
    border-color: rgba(240,180,41,0.4);
    background: linear-gradient(135deg, var(--bg-card), rgba(240,180,41,0.04));
    position: relative;
}
.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #0a0c10;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 16px;
    border-radius: 99px;
}
.pricing-card__name { font-size: 14px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.pricing-card__price { font-family: var(--font-display); font-size: 52px; font-weight: 800; line-height: 1; margin-bottom: 8px; }
.pricing-card__price span { font-size: 20px; font-weight: 400; color: var(--text-secondary); }
.pricing-card__period { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.pricing-card__features { list-style: none; flex: 1; margin-bottom: 28px; }
.pricing-card__features li { padding: 8px 0; font-size: 14px; color: var(--text-secondary); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.pricing-card__features li:last-child { border-bottom: none; }
.pricing-card__features li .check { color: var(--success); font-size: 16px; }
.pricing-card__features li .cross { color: var(--text-muted); font-size: 16px; }

/* =====================================================
   ADMIN PANEL OVERRIDES
   ===================================================== */
.ta-admin-wrap { font-family: var(--font-body); }
.ta-admin-page { background: var(--bg-primary); color: var(--text-primary); }

/* =====================================================
   UTILITIES
   ===================================================== */
.text-accent   { color: var(--accent); }
.text-gold     { color: var(--gold); }
.text-success  { color: var(--success); }
.text-danger   { color: var(--danger); }
.text-muted    { color: var(--text-muted); }
.text-secondary{ color: var(--text-secondary); }
.text-sm       { font-size: 13px; }
.text-xs       { font-size: 11px; }
.text-lg       { font-size: 18px; }
.text-center   { text-align: center; }
.fw-600        { font-weight: 600; }
.fw-700        { font-weight: 700; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* =====================================================
   SPINNER
   ===================================================== */
.spinner {
    width: 20px; height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb__sep { color: var(--text-muted); }

/* =====================================================
   MODAL
   ===================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(16px);
    transition: transform 0.2s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal__title { font-size: 20px; font-weight: 700; }
.modal__close { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 20px; padding: 4px; transition: color var(--transition); }
.modal__close:hover { color: var(--text-primary); }
.modal__footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* =====================================================
   SIMULATOR PAGE
   ===================================================== */
.simulator-frame {
    width: 100%;
    height: calc(100vh - 64px);
    border: none;
    background: var(--bg-primary);
}
.simulator-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    gap: 20px;
}
.simulator-locked__icon { font-size: 64px; color: var(--text-muted); }
.simulator-locked__title { font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.simulator-locked__text { color: var(--text-secondary); max-width: 440px; }

/* =====================================================
   PAYMENT PAGE
   ===================================================== */
.payment-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.payment-info__qr { width: 180px; height: 180px; background: #fff; border-radius: var(--radius-md); margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; }
.payment-step { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.payment-step__num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-dim); color: var(--accent); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.payment-step__text h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.payment-step__text p { font-size: 13px; color: var(--text-secondary); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =====================================================
   PROSE CONTENT (Blog / Page)
   ===================================================== */
.ta-prose {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.9;
}
.ta-prose h1,.ta-prose h2,.ta-prose h3,.ta-prose h4 {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 700;
    margin: 32px 0 14px;
    line-height: 1.2;
}
.ta-prose h2 { font-size: 26px; }
.ta-prose h3 { font-size: 20px; }
.ta-prose h4 { font-size: 17px; }
.ta-prose p  { margin-bottom: 18px; }
.ta-prose a  { color: var(--accent); text-decoration: underline; }
.ta-prose ul,.ta-prose ol { margin: 0 0 18px 24px; }
.ta-prose li { margin-bottom: 8px; }
.ta-prose blockquote {
    border-left: 3px solid var(--accent);
    margin: 24px 0;
    padding: 16px 20px;
    background: var(--accent-dim);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-primary);
    font-style: italic;
}
.ta-prose code {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
}
.ta-prose pre {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 20px;
}
.ta-prose pre code { background: none; border: none; padding: 0; }
.ta-prose img {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin: 20px 0;
    max-width: 100%;
}
.ta-prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}
.ta-prose table th {
    background: var(--bg-elevated);
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}
.ta-prose table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}
.ta-prose hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}

/* =====================================================
   PERFORMANCE TRACKER PAGE
   ===================================================== */
.tracker-frame {
    width: 100%;
    height: calc(100vh - 64px);
    border: none;
    background: var(--bg-primary);
}
.tracker-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    gap: 20px;
}
