/* ============================================================
   Waystar GM Screen — styles.css
   Sci-fi space opera theme: dark space, nebula colours
   ============================================================ */

:root {
    --bg:           #060810;
    --surface:      #0c1020;
    --accent:       #2040a0;
    --accent-light: #4060d0;
    --text:         #d0d8f0;
    --text-dim:     #8090b8;
    --muted:        #6070a0;
    --gold:         #f0a030;
    --nebula:       #8040c0;
    --danger:       #c02040;
    --border:       #1a2040;
    --teal:         #2090a0;
    --orange:       #d06020;
    --success:      #30a060;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

/* ── Skip link ── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 4px;
    z-index: 9999;
    background: var(--accent);
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.875rem;
}
.skip-link:focus { left: 4px; }

/* ── Header / Nav ── */
header {
    background: linear-gradient(180deg, #050710 0%, var(--surface) 100%);
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav ul {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}

header nav a {
    display: block;
    padding: 0.45rem 0.8rem;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
header nav a:hover { color: var(--text); background: rgba(64,96,208,0.12); }
header nav a[aria-current="page"] { color: var(--accent-light); }

.theme-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    padding: 0.5rem 0;
}
.theme-switcher select {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* ── Page title ── */
.page-header {
    text-align: center;
    padding: 2rem 1.5rem 1rem;
    background: linear-gradient(180deg, var(--surface) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
}

.page-header .logo-symbol {
    font-size: 2.5rem;
    color: var(--accent-light);
    display: block;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 20px var(--nebula);
}

.page-header h1 {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-family: 'Orbitron', 'Segoe UI', sans-serif;
    letter-spacing: 0.1em;
    color: var(--gold);
    text-shadow: 0 0 12px rgba(240,160,48,0.4);
}

.page-header .subtitle {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.25rem;
    letter-spacing: 0.05em;
}

/* ── Tabs ── */
.tab-bar {
    display: flex;
    gap: 0;
    overflow-x: auto;
    background: var(--surface);
    border-bottom: 2px solid var(--border);
    padding: 0 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.tab-btn {
    padding: 0.75rem 1.1rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -2px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
    color: var(--accent-light);
    border-bottom-color: var(--accent-light);
}

/* ── Main content ── */
main {
    flex: 1;
    overflow: hidden;
}

.tab-panel {
    display: none;
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeIn 0.2s ease;
}
.tab-panel.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Section headers ── */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 2px;
    background: var(--accent-light);
    box-shadow: 0 0 6px var(--accent-light);
}

/* ── Grid layouts ── */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* ── Cards ── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.1rem;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--nebula));
    opacity: 0.6;
}

.card-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
}

.card-title.teal   { color: var(--teal); }
.card-title.nebula { color: var(--nebula); }
.card-title.danger { color: var(--danger); }
.card-title.orange { color: var(--orange); }

/* ── Tables ── */
.ref-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}

.ref-table th {
    background: rgba(32,64,160,0.25);
    color: var(--accent-light);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.ref-table td {
    padding: 0.35rem 0.6rem;
    border-bottom: 1px solid rgba(26,32,64,0.6);
    color: var(--text);
    vertical-align: top;
}

.ref-table tr:hover td { background: rgba(64,96,208,0.07); }
.ref-table tr:last-child td { border-bottom: none; }

/* ── Stat blocks ── */
.stat-block {
    background: rgba(12,16,32,0.8);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.82rem;
}

.stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(32,64,160,0.2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    min-width: 52px;
}

.stat-pill .stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.stat-pill .stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1.2;
}

.stat-pill .stat-mod {
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* ── Tags / badges ── */
.tag {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tag-blue   { background: rgba(32,64,160,0.35); color: var(--accent-light); border: 1px solid rgba(64,96,208,0.4); }
.tag-gold   { background: rgba(240,160,48,0.2); color: var(--gold); border: 1px solid rgba(240,160,48,0.3); }
.tag-nebula { background: rgba(128,64,192,0.25); color: #c080ff; border: 1px solid rgba(128,64,192,0.4); }
.tag-danger { background: rgba(192,32,64,0.25); color: #ff6080; border: 1px solid rgba(192,32,64,0.4); }
.tag-teal   { background: rgba(32,144,160,0.25); color: #60d0e0; border: 1px solid rgba(32,144,160,0.4); }
.tag-orange { background: rgba(208,96,32,0.25); color: #f08040; border: 1px solid rgba(208,96,32,0.4); }

/* ── Rule text ── */
.rule-text {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin-bottom: 0.4rem;
}

.rule-text strong { color: var(--text); }

.rule-list {
    list-style: none;
    font-size: 0.82rem;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.rule-list li::before {
    content: '▸ ';
    color: var(--accent-light);
}

/* ── VIMA system box ── */
.vima-box {
    background: linear-gradient(135deg, rgba(32,64,160,0.15), rgba(128,64,192,0.1));
    border: 1px solid rgba(64,96,208,0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.vima-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--nebula);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.vima-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--nebula);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--nebula);
}

/* ── TTR table highlight ── */
.ttr-table .ttr-result td { color: var(--gold); }

/* ── Dice roller ── */
.dice-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.dice-btn {
    padding: 0.6rem 1rem;
    background: rgba(32,64,160,0.25);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--accent-light);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    min-width: 64px;
    text-align: center;
}
.dice-btn:hover {
    background: rgba(64,96,208,0.35);
    box-shadow: 0 0 12px rgba(64,96,208,0.3);
}
.dice-btn:active { transform: scale(0.95); }
.dice-btn.advantage { border-color: var(--success); color: #50d090; background: rgba(48,160,96,0.15); }
.dice-btn.disadvantage { border-color: var(--danger); color: #ff6080; background: rgba(192,32,64,0.15); }

.roll-display {
    background: rgba(6,8,16,0.8);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    position: relative;
    overflow: hidden;
}

.roll-display::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(64,96,208,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.roll-result {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(240,160,48,0.6);
    line-height: 1;
    transition: all 0.2s;
}

.roll-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
}

.roll-detail {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: monospace;
}

.roll-history {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem;
    min-height: 60px;
    max-height: 180px;
    overflow-y: auto;
    font-size: 0.78rem;
    color: var(--text-dim);
    font-family: monospace;
    line-height: 1.8;
}

.roll-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.roll-controls label {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.roll-controls input[type="number"] {
    width: 56px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 4px;
    padding: 0.3rem 0.4rem;
    font-size: 0.82rem;
    text-align: center;
}

.roll-controls select {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.clear-btn {
    padding: 0.3rem 0.7rem;
    background: rgba(192,32,64,0.15);
    border: 1px solid rgba(192,32,64,0.3);
    color: #ff6080;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background 0.2s;
}
.clear-btn:hover { background: rgba(192,32,64,0.25); }

/* ── Character cards ── */
.char-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.45rem 0.9rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent-light);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-light); }

.btn-secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--text-dim);
}
.btn-secondary:hover { border-color: var(--text-dim); color: var(--text); }

.btn-danger {
    background: transparent;
    border-color: rgba(192,32,64,0.4);
    color: #ff6080;
}
.btn-danger:hover { background: rgba(192,32,64,0.15); }

.char-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.char-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}
.char-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--nebula));
}

.char-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.char-field label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.2rem;
}

.char-field input,
.char-field select,
.char-field textarea {
    background: rgba(6,8,16,0.6);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    font-size: 0.82rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

.char-field input:focus,
.char-field select:focus,
.char-field textarea:focus {
    outline: none;
    border-color: var(--accent-light);
}

.char-field textarea {
    resize: vertical;
    min-height: 50px;
    line-height: 1.4;
}

.char-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.char-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(32,64,160,0.12);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 0.3rem;
}

.char-stat label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin-bottom: 0.15rem;
}

.char-stat input {
    width: 100%;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--accent-light);
    font-size: 1rem;
    font-weight: 700;
    padding: 0;
}
.char-stat input:focus { outline: none; }

.hp-bar-wrap {
    margin-bottom: 0.5rem;
}

.hp-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--text-dim);
    margin-bottom: 0.2rem;
}

.hp-bar {
    height: 8px;
    background: rgba(26,32,64,0.8);
    border-radius: 4px;
    overflow: hidden;
}

.hp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), #60ff90);
    border-radius: 4px;
    transition: width 0.3s, background 0.3s;
}

.hp-fill.medium { background: linear-gradient(90deg, var(--gold), #ffd060); }
.hp-fill.low    { background: linear-gradient(90deg, var(--danger), #ff4060); }

.char-delete {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    transition: color 0.2s, background 0.2s;
}
.char-delete:hover { color: var(--danger); background: rgba(192,32,64,0.1); }

/* ── Notes ── */
.notes-area {
    width: 100%;
    min-height: 400px;
    background: rgba(6,8,16,0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 1rem;
    resize: vertical;
    transition: border-color 0.2s;
}
.notes-area:focus {
    outline: none;
    border-color: var(--accent-light);
}

.notes-status {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.4rem;
    text-align: right;
    min-height: 1.2em;
}
.notes-status.saved { color: var(--success); }

/* ── Species cards ── */
.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.species-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.species-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--accent));
}

.species-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.2rem;
}

.species-homeworld {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-bottom: 0.6rem;
    font-style: italic;
}

.trait-list {
    list-style: none;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.trait-list li {
    color: var(--text-dim);
}

.trait-list li strong {
    color: var(--teal);
}

/* ── Class cards ── */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.class-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}
.class-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--nebula), var(--gold));
}

.class-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.15rem;
}

.class-flavour {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 0.6rem;
    font-style: italic;
}

.feature-row {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.2rem;
}
.feature-row strong { color: var(--accent-light); }

/* ── Damage tables ── */
.damage-table-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    margin-top: 0.75rem;
    color: var(--danger);
}

/* ── Condition tracker ── */
.condition-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.condition-pill {
    padding: 0.25rem 0.55rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    color: var(--text-dim);
    background: rgba(26,32,64,0.5);
    transition: all 0.2s;
    user-select: none;
}
.condition-pill.active {
    background: rgba(192,32,64,0.25);
    border-color: var(--danger);
    color: #ff6080;
}

/* ── Quick access panel ── */
.quick-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(12,16,32,0.7);
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.quick-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.quick-item strong {
    color: var(--accent-light);
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.78rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
    background: var(--surface);
}

/* ── Utility ── */
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.text-gold { color: var(--gold); }
.text-dim  { color: var(--text-dim); }
.text-nebula { color: #c080ff; }
.text-teal { color: var(--teal); }
.text-danger { color: #ff6080; }

.divider {
    height: 1px;
    background: var(--border);
    margin: 0.75rem 0;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Responsive ── */
@media (max-width: 600px) {
    .tab-btn { font-size: 0.7rem; padding: 0.6rem 0.7rem; }
    .tab-panel { padding: 1rem; }
    .roll-result { font-size: 2.5rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Gear item ── */
.gear-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.gear-item-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.15rem;
}

.gear-item-meta {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 0.3rem;
}

.gear-item-desc {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* ── Star background ambiance ── */
.page-header {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(128,64,192,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(32,144,160,0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--surface) 0%, transparent 100%);
}

/* ── Nebula glow on active tabs ── */
.tab-btn.active {
    text-shadow: 0 0 8px rgba(64,96,208,0.6);
}
