@import url('https://fonts.googleapis.com/css2?family=VT323&family=Share+Tech+Mono&family=Righteous&display=swap');

:root {
    --s9-green: #78d64b;
    --s9-green-dim: #65b83d;
    --s9-orange: #ff5e3a;
    --s9-blue: #3b82f6;
    --s9-panel: #111827;
    --s9-panel-soft: #1f2937;
    --s9-line: #374151;
}

/* NAV-03: top deck - Nothing style 黑白灰极简 */
.s9-navdeck {
    background: var(--nothing-gray-900, #0a0a0a);
    border: 1px solid var(--nothing-gray-600, #262626);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: none;
}

.s9-navdeck .nav-brand {
    gap: 10px;
}

.s9-navdeck .brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--nothing-gray-500, #525252);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.06);
    filter: grayscale(1) contrast(1.05);
}

.s9-navdeck .brand-word {
    color: var(--nothing-white, #ffffff);
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    letter-spacing: 0.12em;
}

.s9-navdeck .btn-login,
.s9-navdeck .btn-logout {
    background: var(--nothing-gray-700, #1a1a1a);
    color: var(--nothing-gray-300, #a3a3a3);
    border: 1px solid var(--nothing-gray-500, #525252);
    box-shadow: none;
}

.s9-navdeck .btn-login:hover,
.s9-navdeck .btn-logout:hover {
    background: var(--nothing-gray-600, #262626);
    color: var(--nothing-white, #ffffff);
}

.s9-navdeck .credits-badge {
    background: var(--nothing-gray-800, #141414);
    color: var(--nothing-white, #ffffff);
    border: 1px solid var(--nothing-gray-500, #525252);
    font-family: 'Share Tech Mono', monospace;
}

.s9-navdeck .credits-badge .level-accent {
    color: var(--nothing-accent-red, #e53935);
}

/* MOD-08: holo user - Nothing style 黑白灰 + 红点缀 */
.s9-holo-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border-radius: 12px;
    border: 1px solid var(--nothing-gray-500, #525252);
    background: var(--nothing-gray-800, #141414);
    position: relative;
    overflow: hidden;
}

.s9-holo-user::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, transparent 35%, rgba(255, 255, 255, 0.04) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: s9HoloSweep 3.2s linear infinite;
    pointer-events: none;
}

@keyframes s9HoloSweep {
    to {
        transform: translateX(130%);
    }
}

.s9-holo-id {
    min-width: 0;
}

.s9-holo-name {
    display: block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--nothing-white, #ffffff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.s9-holo-meta {
    display: block;
    font-family: 'VT323', monospace;
    font-size: 14px;
    color: var(--nothing-gray-400, #737373);
    letter-spacing: 0.08em;
}

/* BRAND-01: startup icon */
.edison-splash-icon.s9-brand-icon {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 24px;
    border: 4px solid var(--s9-green-dim);
    background: var(--s9-green);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18), inset 0 2px 6px rgba(255, 255, 255, 0.36);
    filter: none;
    animation: edisonSplashIconPulse 1200ms ease-in-out infinite;
}

.s9-brand-logo-core {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: #0f1728;
    display: grid;
    place-items: center;
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.1);
}

.s9-brand-logo-e {
    font-family: 'Righteous', sans-serif;
    font-size: 34px;
    line-height: 1;
    color: #eaf1ff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* MOD-01: neural recording module */
.s9-neural-wrap {
    display: grid;
    gap: 10px;
    width: min(420px, 100%);
    margin: 0 auto 16px;
}

.s9-neural-module {
    border-radius: 18px;
    border: 4px solid #495467;
    background: #1f232c;
    box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.5), 0 16px 26px rgba(0, 0, 0, 0.3);
    padding: 14px 16px;
}

.s9-neural-eye-shell {
    width: 86px;
    height: 86px;
    margin: 0 auto;
    border-radius: 50%;
    border: 8px solid #3b4454;
    background: #04060d;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.s9-neural-eye-shell::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ff3434;
    box-shadow: 0 0 18px rgba(255, 51, 51, 0.8);
}

.s9-neural-voice {
    margin-top: 10px;
    height: 8px;
    border-radius: 999px;
    border: 1px solid #4b5568;
    background: #060912;
    overflow: hidden;
}

.s9-neural-voice span {
    display: block;
    width: 32%;
    height: 100%;
    background: #ef4444;
    opacity: 0.52;
    transition: width 180ms ease, opacity 180ms ease;
}

.tool-ielts.s9-recording .s9-neural-eye-shell::before {
    animation: s9PulseEye 0.6s infinite alternate;
}

.tool-ielts.s9-recording .s9-neural-voice span {
    width: 94%;
    opacity: 0.95;
}

@keyframes s9PulseEye {
    from {
        transform: scale(0.9);
    }

    to {
        transform: scale(1.12);
        box-shadow: 0 0 24px rgba(255, 51, 51, 0.98);
    }
}

/* MOD-15: radar panel */
.s9-radar-section {
    border: 1px solid #2c3a52;
    border-radius: 16px;
    background: linear-gradient(180deg, #131d30, #0f1728);
    box-shadow: 0 14px 26px rgba(5, 12, 24, 0.24);
    padding: 14px;
}

.s9-radar-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 14px;
    align-items: center;
}

.s9-radar {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 4px solid #354257;
    background: #00190a;
    position: relative;
    overflow: hidden;
}

.s9-radar::before,
.s9-radar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 114, 54, 0.5);
}

.s9-radar::after {
    transform: scale(0.62);
}

.s9-radar-sweep {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0, 255, 106, 0.35), transparent 80%);
    transform-origin: right bottom;
    animation: s9Radar 2s linear infinite;
}

.s9-radar-grid {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, transparent 49%, rgba(0, 120, 56, 0.5) 50%, transparent 51%),
        linear-gradient(90deg, transparent 49%, rgba(0, 120, 56, 0.5) 50%, transparent 51%);
}

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

.s9-radar-hud {
    border: 1px solid #37465d;
    border-radius: 12px;
    background: #111827;
    padding: 10px;
}

.s9-radar-label {
    display: block;
    color: #4ade80;
    font-size: 11px;
    margin-bottom: 6px;
    font-family: 'Share Tech Mono', monospace;
}

.s9-radar .blip {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00ff7f;
    animation: s9Blip 2s infinite;
}

.s9-radar .b1 {
    top: 38px;
    left: 82px;
}

.s9-radar .b2 {
    top: 116px;
    left: 54px;
    animation-delay: .6s;
}

@keyframes s9Blip {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(2.2);
    }
}

/* MOD-17 + CTRL-03: homework submit */
.s9-homework-card {
    border: 1px solid #d2d9ea;
    border-radius: 14px;
    padding: 14px;
    background: #fffdf4;
    position: relative;
}

.s9-homework-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 30px;
    width: 56px;
    height: 12px;
    background: rgba(170, 170, 170, 0.35);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.s9-qchip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: #1f2937;
    color: #fff;
    font-size: 11px;
    font-family: 'Share Tech Mono', monospace;
    margin-right: 6px;
}

.s9-upload-drop {
    border: 2px dashed #9ca8bf;
    border-radius: 12px;
    padding: 10px;
    min-width: 180px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.s9-upload-drop .drop-icon {
    font-size: 18px;
    color: #586b8b;
}

.s9-upload-drop input[type='file'] {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 12px;
    max-width: 150px;
}

.s9-upload-drop:hover {
    border-color: #61ba45;
}

/* DATA-01 + DATA-03: flashcard stats + loader */
.s9-data-stat {
    position: relative;
    overflow: hidden;
    border: 1px solid #364a6d;
    background: linear-gradient(160deg, #162238, #10192d);
}

.s9-data-stat .stat-label {
    color: #8ea3c8;
    letter-spacing: 0.06em;
}

.s9-data-stat .stat-val {
    color: #8fe05b;
    font-family: 'VT323', monospace;
    font-size: 34px;
}

.s9-data-stat::after {
    content: '';
    position: absolute;
    right: -12px;
    bottom: -20px;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
}

.s9-data-stat.s9-stat-total::after {
    content: '◉';
}

.s9-data-stat.s9-stat-mastered::after {
    content: '✓';
}

.s9-data-stat.s9-stat-review::after {
    content: '△';
}

.s9-loader-wrap {
    margin-top: 8px;
    border: 1px solid #3f587f;
    border-radius: 999px;
    background: #1a2843;
    padding: 2px;
}

.s9-loader-bar {
    width: 0%;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #5bcf45, #4f8dff);
    position: relative;
    overflow: hidden;
    transition: width .24s ease;
}

.s9-loader-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, .25) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .25) 50%, rgba(255, 255, 255, .25) 75%, transparent 75%, transparent);
    background-size: 14px 14px;
    animation: s9LoaderStripe 1s linear infinite;
}

.s9-loader-text {
    margin-top: 4px;
    font-size: 12px;
    color: #90a6cd;
    font-family: 'Share Tech Mono', monospace;
    text-align: right;
}

@keyframes s9LoaderStripe {
    to {
        background-position: 14px 0;
    }
}

@media (max-width: 860px) {
    .s9-radar-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .s9-radar-hud {
        width: 100%;
    }

    .s9-holo-user {
        width: 100%;
    }

    .s9-navdeck {
        border-bottom-width: 2px;
    }
}
