/* ==========================================================================
   MODUL 04: THE INTEGRATION ARENA — SHARAF, NAHWU, BALAGHAH (PRESERVED)
   ========================================================================== */
:root {
    --bg-midnight: #0D0D11;
    --bg-slate: #16161D;
    --bg-panel: rgba(22, 22, 29, 0.86);

    --sharaf-cyan: #66FCF1;
    --sharaf-cyan-dim: rgba(102, 252, 241, 0.14);
    --sharaf-cyan-border: rgba(102, 252, 241, 0.42);
    --sharaf-cyan-glow: 0 0 22px rgba(102, 252, 241, 0.35);

    --nahwu-emerald: #2ECC71;
    --nahwu-emerald-dim: rgba(46, 204, 113, 0.14);
    --nahwu-emerald-border: rgba(46, 204, 113, 0.45);
    --nahwu-emerald-glow: 0 0 22px rgba(46, 204, 113, 0.35);

    --balaghah-gold: #D4AF37;
    --balaghah-gold-dim: rgba(212, 175, 55, 0.15);
    --balaghah-gold-border: rgba(212, 175, 55, 0.48);
    --balaghah-gold-glow: 0 0 28px rgba(212, 175, 55, 0.38);

    --border-hover: rgba(255, 255, 255, 0.18);
    --fs-arabic-node: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
    --radius-xl: 26px;
}

.arabic-glyph { font-family: var(--font-arabic); direction: rtl; line-height: 1.55; }

/* Arena Sub-Header */
.arena-header {
    width: 100%;
    background: rgba(13, 13, 17, 0.84);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem clamp(1rem, 2.5vw, 2rem);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    width: 100%;
}

.brand-cluster { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }

.back-portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    background: rgba(102, 252, 241, 0.08);
    border: 1px solid var(--sharaf-cyan-border);
    color: var(--sharaf-cyan);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.back-portal-btn:hover { background: rgba(102, 252, 241, 0.18); box-shadow: var(--sharaf-cyan-glow); transform: translateX(-2px); }

.module-identity { display: flex; flex-direction: column; }

.module-kicker {
    font-size: var(--fs-xs);
    font-family: var(--font-mono);
    color: var(--balaghah-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.module-title { font-size: var(--fs-md); font-weight: 700; color: var(--text-primary); }

.header-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }

.layer-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-slate);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.layer-pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.layer-pill[data-mode="all"].active { border-color: rgba(255, 255, 255, 0.45); color: var(--text-primary); background: rgba(255, 255, 255, 0.1); }
.layer-pill[data-mode="sharaf"] .dot { background: var(--sharaf-cyan); box-shadow: 0 0 8px var(--sharaf-cyan); }
.layer-pill[data-mode="nahwu"] .dot { background: var(--nahwu-emerald); box-shadow: 0 0 8px var(--nahwu-emerald); }
.layer-pill[data-mode="balaghah"] .dot { background: var(--balaghah-gold); box-shadow: 0 0 8px var(--balaghah-gold); }
.layer-pill[data-mode="sharaf"].active { background: var(--sharaf-cyan-dim); border-color: var(--sharaf-cyan); color: var(--sharaf-cyan); box-shadow: var(--sharaf-cyan-glow); }
.layer-pill[data-mode="nahwu"].active { background: var(--nahwu-emerald-dim); border-color: var(--nahwu-emerald); color: var(--nahwu-emerald); box-shadow: var(--nahwu-emerald-glow); }
.layer-pill[data-mode="balaghah"].active { background: var(--balaghah-gold-dim); border-color: var(--balaghah-gold); color: var(--balaghah-gold); box-shadow: var(--balaghah-gold-glow); }

/* Workspace */
.arena-workspace {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: clamp(1rem, 2.2vw, 1.8rem) clamp(1rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.sentence-stage-card {
    position: relative;
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: clamp(1.1rem, 2.5vw, 2rem);
    overflow: hidden;
    transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.sentence-stage-card.aura-active {
    border-color: var(--balaghah-gold-border);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55), 0 0 42px rgba(212, 175, 55, 0.14);
}

.balaghah-aura-backdrop {
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.16) 0%, rgba(102, 252, 241, 0.04) 40%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 500ms ease;
    animation: pulseAura 6s ease-in-out infinite alternate;
}

.sentence-stage-card.aura-active .balaghah-aura-backdrop { opacity: 1; }

@keyframes pulseAura {
    0% { transform: scale(0.96); opacity: 0.65; }
    100% { transform: scale(1.06); opacity: 1; }
}

.stage-meta-bar {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sentence-badge-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }

.source-tag {
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid var(--balaghah-gold-border);
    color: var(--balaghah-gold);
}

.sentence-theme-title { font-size: var(--fs-sm); color: var(--text-secondary); font-weight: 500; }
.stage-helper-hint { font-size: var(--fs-xs); color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; }

.sentence-interactive-zone {
    position: relative;
    z-index: 2;
    padding: 2.6rem 0.5rem 1.8rem;
    min-height: 185px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nahwu-circuit-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.circuit-arc {
    fill: none;
    stroke: var(--nahwu-emerald);
    stroke-width: 2.25;
    stroke-dasharray: 6 4;
    filter: drop-shadow(0 0 6px rgba(46, 204, 113, 0.7));
    animation: circuitFlow 1.4s linear infinite;
}

.circuit-arc-secondary { fill: none; stroke: rgba(46, 204, 113, 0.35); stroke-width: 1.4; }
@keyframes circuitFlow { to { stroke-dashoffset: -20; } }
.circuit-label-pill { font-family: var(--font-mono); font-size: 11px; font-weight: 700; fill: #0D0D11; }

.word-nodes-row {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    direction: rtl;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    width: 100%;
}

.word-node-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-width: clamp(115px, 18vw, 185px);
    padding: 0.9rem 1.15rem;
    border-radius: var(--radius-lg);
    background: rgba(27, 27, 36, 0.88);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    text-align: center;
}

.word-node-btn:hover { transform: translateY(-4px); border-color: var(--border-hover); }

.word-node-btn.is-selected {
    background: rgba(102, 252, 241, 0.09);
    border-color: var(--sharaf-cyan);
    box-shadow: var(--sharaf-cyan-glow);
    transform: translateY(-5px);
}

.word-node-btn.is-selected.mode-nahwu {
    background: rgba(46, 204, 113, 0.1);
    border-color: var(--nahwu-emerald);
    box-shadow: var(--nahwu-emerald-glow);
}

.word-node-btn.is-selected.mode-balaghah {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--balaghah-gold);
    box-shadow: var(--balaghah-gold-glow);
}

.word-node-btn.is-partner {
    border-color: var(--nahwu-emerald-border);
    background: rgba(46, 204, 113, 0.06);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.2);
}

.node-index-chip { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); align-self: flex-end; direction: ltr; }
.node-arabic-word { font-family: var(--font-arabic); font-size: var(--fs-arabic-node); color: var(--text-primary); margin: 0.15rem 0 0.3rem; }
.word-node-btn.is-selected .node-arabic-word { color: var(--sharaf-cyan); text-shadow: 0 0 16px rgba(102, 252, 241, 0.45); }
.word-node-btn.is-selected.mode-nahwu .node-arabic-word { color: var(--nahwu-emerald); text-shadow: 0 0 16px rgba(46, 204, 113, 0.45); }
.word-node-btn.is-selected.mode-balaghah .node-arabic-word { color: var(--balaghah-gold); text-shadow: 0 0 18px rgba(212, 175, 55, 0.55); }
.node-translit { font-size: var(--fs-xs); font-weight: 600; color: var(--text-secondary); direction: ltr; }
.node-gloss { font-size: 0.72rem; color: var(--text-muted); direction: ltr; margin-top: 0.15rem; }

.node-mini-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem; margin-top: 0.55rem; direction: ltr; }
.mini-tag { font-size: 0.65rem; font-family: var(--font-mono); padding: 0.12rem 0.42rem; border-radius: 4px; font-weight: 600; }
.mini-tag.sharaf { background: var(--sharaf-cyan-dim); color: var(--sharaf-cyan); }
.mini-tag.nahwu { background: var(--nahwu-emerald-dim); color: var(--nahwu-emerald); }
.mini-tag.balaghah { background: var(--balaghah-gold-dim); color: var(--balaghah-gold); }

.sentence-translation-strip {
    position: relative;
    z-index: 2;
    margin-top: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(13, 13, 17, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.translation-text { font-size: var(--fs-sm); color: var(--text-secondary); }
.translation-text strong { color: var(--text-primary); }

/* Active Word Spotlight */
.spotlight-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
}

.spotlight-word-summary { display: flex; align-items: center; gap: 1rem; }

.spotlight-arabic-orb {
    min-width: 68px;
    height: 68px;
    padding: 0 0.85rem;
    border-radius: var(--radius-md);
    background: rgba(102, 252, 241, 0.08);
    border: 1px solid var(--sharaf-cyan-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-arabic);
    font-size: var(--fs-arabic-node);
    color: var(--sharaf-cyan);
    box-shadow: var(--sharaf-cyan-glow);
}

.spotlight-details h2 { font-size: var(--fs-md); font-weight: 700; color: var(--text-primary); }
.spotlight-details p { font-size: var(--fs-sm); color: var(--text-secondary); }

.inspector-mode-tabs { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.mode-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.95rem;
    border-radius: var(--radius-sm);
    background: var(--bg-slate);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.mode-tab-btn[data-tab="sharaf"].active { background: var(--sharaf-cyan-dim); border-color: var(--sharaf-cyan); color: var(--sharaf-cyan); box-shadow: var(--sharaf-cyan-glow); }
.mode-tab-btn[data-tab="nahwu"].active { background: var(--nahwu-emerald-dim); border-color: var(--nahwu-emerald); color: var(--nahwu-emerald); box-shadow: var(--nahwu-emerald-glow); }
.mode-tab-btn[data-tab="balaghah"].active { background: var(--balaghah-gold-dim); border-color: var(--balaghah-gold); color: var(--balaghah-gold); box-shadow: var(--balaghah-gold-glow); }
.mode-tab-btn[data-tab="all"].active { background: rgba(255, 255, 255, 0.12); border-color: var(--text-primary); color: var(--text-primary); }

/* 3-Layered Console Grid */
.semantic-inspector-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
}

@media (min-width: 1120px) {
    .semantic-inspector-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.layer-console-card {
    position: relative;
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: clamp(1.1rem, 2vw, 1.55rem);
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), opacity var(--transition-smooth);
    overflow: hidden;
}

.layer-console-card.is-hidden-mobile { display: none; }

@media (min-width: 1120px) {
    .layer-console-card.is-hidden-mobile { display: flex; opacity: 0.42; transform: scale(0.985); }
    .layer-console-card.is-hidden-mobile:hover { opacity: 0.85; }
}

.layer-sharaf { border-top: 3px solid var(--sharaf-cyan); }
.layer-sharaf.is-focused { border-color: var(--sharaf-cyan-border); box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45), 0 0 25px rgba(102, 252, 241, 0.12); }
.layer-nahwu { border-top: 3px solid var(--nahwu-emerald); }
.layer-nahwu.is-focused { border-color: var(--nahwu-emerald-border); box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45), 0 0 25px rgba(46, 204, 113, 0.12); }
.layer-balaghah { border-top: 3px solid var(--balaghah-gold); }
.layer-balaghah.is-focused {
    border-color: var(--balaghah-gold-border);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45), 0 0 32px rgba(212, 175, 55, 0.16);
    background: radial-gradient(circle at 90% 10%, rgba(212, 175, 55, 0.14) 0%, transparent 55%), var(--bg-panel);
}

.console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.console-title-wrap { display: flex; align-items: center; gap: 0.65rem; }
.console-icon-box { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.layer-sharaf .console-icon-box { background: var(--sharaf-cyan-dim); color: var(--sharaf-cyan); border: 1px solid var(--sharaf-cyan-border); }
.layer-nahwu .console-icon-box { background: var(--nahwu-emerald-dim); color: var(--nahwu-emerald); border: 1px solid var(--nahwu-emerald-border); }
.layer-balaghah .console-icon-box { background: var(--balaghah-gold-dim); color: var(--balaghah-gold); border: 1px solid var(--balaghah-gold-border); }

.console-layer-tag { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.console-title { font-size: var(--fs-md); font-weight: 700; }
.layer-sharaf .console-title { color: var(--sharaf-cyan); }
.layer-nahwu .console-title { color: var(--nahwu-emerald); }
.layer-balaghah .console-title { color: var(--balaghah-gold); }

.console-arabic-badge {
    font-family: var(--font-arabic);
    font-size: var(--fs-md);
    padding: 0.15rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.molecular-root-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.9rem;
    background: rgba(13, 13, 17, 0.7);
    border: 1px solid var(--sharaf-cyan-border);
    border-radius: var(--radius-md);
    direction: rtl;
}

.root-atom {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--sharaf-cyan-dim);
    border: 1.5px solid var(--sharaf-cyan);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(102, 252, 241, 0.25);
}

.root-atom .glyph { font-family: var(--font-arabic); font-size: 1.35rem; color: var(--sharaf-cyan); line-height: 1; }
.root-atom .pos { font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-secondary); margin-top: 2px; }
.root-bond-line { width: 18px; height: 2px; background: var(--sharaf-cyan); opacity: 0.5; }

.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.spec-item { padding: 0.7rem 0.85rem; background: rgba(13, 13, 17, 0.55); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-sm); }
.spec-item.full-span { grid-column: 1 / -1; }
.spec-label { font-size: 0.68rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.2rem; }
.spec-value { font-size: var(--fs-sm); font-weight: 600; color: var(--text-primary); }
.spec-value.arabic-inline { font-family: var(--font-arabic); font-size: var(--fs-lg); color: var(--sharaf-cyan); }

.nahwu-link-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(46, 204, 113, 0.07);
    border: 1px dashed var(--nahwu-emerald-border);
}

.circuit-endpoint { text-align: center; flex: 1; }
.circuit-endpoint .ar { font-family: var(--font-arabic); font-size: var(--fs-lg); color: var(--nahwu-emerald); }
.circuit-endpoint .role { font-size: 0.7rem; color: var(--text-secondary); font-family: var(--font-mono); }

.circuit-connector-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--nahwu-emerald);
    color: #0D0D11;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.balaghah-aura-panel {
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.14) 0%, rgba(13, 13, 17, 0.8) 100%);
    border: 1px solid var(--balaghah-gold-border);
    box-shadow: inset 0 0 18px rgba(212, 175, 55, 0.1);
}

.balaghah-aura-title { font-size: var(--fs-xs); font-family: var(--font-mono); color: var(--balaghah-gold); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.35rem; }
.balaghah-secret-text { font-size: var(--fs-sm); color: var(--text-primary); line-height: 1.65; }

.counterfactual-box {
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
    background: rgba(13, 13, 17, 0.65);
    border-left: 3px solid var(--balaghah-gold);
    font-size: var(--fs-xs);
    color: var(--text-secondary);
}

.counterfactual-box strong { color: var(--balaghah-gold); }

/* Synthesis Banner */
.synthesis-banner { background: var(--bg-panel); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-lg); padding: clamp(1rem, 2vw, 1.5rem); }
.synthesis-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.85rem; }
.synthesis-header h3 { font-size: var(--fs-base); font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 0.5rem; }

.synthesis-Equation { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }

@media (min-width: 768px) {
    .synthesis-Equation { grid-template-columns: 1fr auto 1fr auto 1fr auto 1.3fr; align-items: center; }
}

.eq-block { padding: 0.75rem 0.9rem; border-radius: var(--radius-sm); background: rgba(13, 13, 17, 0.6); border: 1px solid rgba(255, 255, 255, 0.08); }
.eq-block.sharaf { border-color: var(--sharaf-cyan-border); }
.eq-block.nahwu { border-color: var(--nahwu-emerald-border); }
.eq-block.balaghah { border-color: var(--balaghah-gold-border); }
.eq-block.outcome { background: linear-gradient(90deg, rgba(102, 252, 241, 0.08), rgba(46, 204, 113, 0.08), rgba(212, 175, 55, 0.12)); border-color: rgba(255, 255, 255, 0.22); }
.eq-op { text-align: center; font-family: var(--font-mono); font-size: var(--fs-lg); font-weight: 700; color: var(--text-muted); }

/* Sticky Bottom Contextual Switchboard inside Main Stage */
.contextual-switchboard {
    position: sticky;
    bottom: 0;
    z-index: 40;
    background: rgba(13, 13, 17, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.65rem clamp(0.85rem, 2.5vw, 2rem);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
}

.switchboard-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; overflow-x: auto; scrollbar-width: none; }
.switchboard-inner::-webkit-scrollbar { display: none; }
.switchboard-label { display: flex; align-items: center; gap: 0.45rem; font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--balaghah-gold); white-space: nowrap; flex-shrink: 0; }
.specimen-pill-list { display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0; }

.specimen-switch-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--bg-slate);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    white-space: nowrap;
    transition: var(--transition-fast);
}

.specimen-switch-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.specimen-switch-btn.active { background: rgba(102, 252, 241, 0.12); border-color: var(--sharaf-cyan); color: var(--text-primary); box-shadow: 0 0 15px rgba(102, 252, 241, 0.25); }
.specimen-switch-btn .ar-preview { font-family: var(--font-arabic); font-size: 1.15rem; color: var(--sharaf-cyan); }
.specimen-switch-btn .label-text { font-size: var(--fs-xs); font-weight: 600; }

.quick-module-links { display: none; align-items: center; gap: 0.4rem; flex-shrink: 0; }
@media (min-width: 1200px) { .quick-module-links { display: flex; } }
.mini-mod-link { font-size: 0.7rem; font-family: var(--font-mono); padding: 0.35rem 0.6rem; border-radius: 6px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--text-muted); }
.mini-mod-link:hover { color: var(--sharaf-cyan); border-color: var(--sharaf-cyan-border); }
