:root {
    --bg: #0a0a0f;
    --bg-elevated: #111118;
    --bg-card: #13131a;
    --bg-input: #0d0d12;
    --border: #1e1e2e;
    --border-hover: #2a2a3e;
    --text: #e2e2ea;
    --text-muted: #6b6b7b;
    --text-dim: #3a3a4a;
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --accent-glow: rgba(124, 58, 237, 0.15);
    --accent-glow-strong: rgba(124, 58, 237, 0.3);
    --success: #22c55e;
    --success-glow: rgba(34, 197, 94, 0.15);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.15);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.15);
    --info: #3b82f6;
    --info-glow: rgba(59, 130, 246, 0.15);
    --info-glow-strong: rgba(59, 130, 246, 0.3);
    --discord: #5865f2;
    --discord-glow: rgba(88, 101, 242, 0.15);
    --discord-glow-strong: rgba(88, 101, 242, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow: 0 0 40px rgba(0, 0, 0, 0.4);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

.bg-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, var(--accent-glow-strong) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-light);
    border-radius: 50%;
    opacity: 0;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    max-width: 500px;
    padding: 0 24px;
}

.intro-logo {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    background: var(--accent-glow);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-lg);
    animation: introLogoIn 0.6s ease-out;
}

.intro-logo svg {
    width: 32px;
    height: 32px;
    color: var(--accent-light);
    filter: drop-shadow(0 0 12px var(--accent-glow-strong));
}

@keyframes introLogoIn {
    from { opacity: 0; transform: scale(0.5) rotate(-10deg); }
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.intro-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text);
    margin-bottom: 12px;
    min-height: 44px;
}

.intro-title .cursor {
    display: inline-block;
    width: 3px;
    height: 36px;
    background: var(--accent-light);
    margin-left: 4px;
    animation: cursorBlink 0.8s step-end infinite;
    vertical-align: middle;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.intro-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
    min-height: 24px;
}

.intro-subtitle .cursor {
    display: inline-block;
    width: 2px;
    height: 16px;
    background: var(--accent-light);
    margin-left: 3px;
    animation: cursorBlink 0.8s step-end infinite;
    vertical-align: middle;
}

.intro-progress {
    width: 200px;
    height: 3px;
    background: var(--border);
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.4s ease-out 0.3s forwards;
}

.intro-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 3px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-glow-strong);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.key-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.key-overlay.active {
    opacity: 1;
    visibility: visible;
}

.key-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 40px 36px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    overflow: hidden;
    animation: keyCardIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes keyCardIn {
    from { opacity: 0; transform: scale(0.9) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.key-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-glow-strong), transparent 70%);
    pointer-events: none;
}

.key-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--accent-glow);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 50%;
    animation: keyIconPulse 2s ease-in-out infinite;
}

.key-icon.discord-icon {
    background: var(--discord-glow);
    border: 1px solid rgba(88, 101, 242, 0.2);
    animation: discordIconPulse 2s ease-in-out infinite;
}

@keyframes keyIconPulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { box-shadow: 0 0 20px 5px var(--accent-glow); }
}

@keyframes discordIconPulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--discord-glow); }
    50% { box-shadow: 0 0 20px 5px var(--discord-glow); }
}

.key-icon svg {
    width: 26px;
    height: 26px;
    color: var(--accent-light);
}

.key-icon.discord-icon svg {
    width: 28px;
    height: 28px;
    color: var(--discord);
}

.key-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.key-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.key-input-wrap {
    position: relative;
    margin-bottom: 16px;
}

.key-input {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 2px;
    outline: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.key-input::placeholder {
    color: var(--text-dim);
    text-transform: none;
    letter-spacing: 1px;
    font-size: 14px;
}

.key-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 0 20px var(--accent-glow);
}

.key-input-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.key-input:focus ~ .key-input-border {
    width: 100%;
}

.key-info {
    font-size: 12px;
    font-weight: 600;
    min-height: 20px;
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.key-info.valid {
    color: var(--success);
}

.key-info.invalid {
    color: var(--danger);
}

.key-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--accent-glow-strong);
    position: relative;
}

.key-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.key-btn:hover::before {
    left: 100%;
}

.key-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow-strong);
}

.key-btn:active {
    transform: translateY(0);
}

.key-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.key-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.key-btn-content svg {
    width: 18px;
    height: 18px;
}

.discord-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--discord), #4752c4);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--discord-glow-strong);
    position: relative;
}

.discord-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.discord-btn:hover::before {
    left: 100%;
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--discord-glow-strong);
}

.discord-btn:active {
    transform: translateY(0);
}

.discord-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.discord-btn-content svg {
    width: 20px;
    height: 20px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 64px;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-light);
    filter: drop-shadow(0 0 8px var(--accent-glow-strong));
}

.brand-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
}

.brand-accent {
    color: var(--accent-light);
    font-weight: 400;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 100px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.status-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
}

.main-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 100px 24px 40px;
}

.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 20px;
    animation: badgeSlide 0.6s ease-out;
}

.hero-badge svg {
    width: 14px;
    height: 14px;
}

@keyframes badgeSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.title-line {
    display: block;
}

.title-line.accent {
    background: linear-gradient(135deg, var(--accent-light), #c084fc, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px var(--accent-glow-strong));
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

.mode-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 6px;
}

.mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: calc(var(--radius-lg) - 4px);
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.mode-btn:hover {
    color: var(--text);
    background: rgba(124, 58, 237, 0.05);
}

.mode-btn.active {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-color: rgba(124, 58, 237, 0.3);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow-strong);
}

.mode-btn.active svg {
    color: #fff;
}

.mode-btn.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px var(--accent-glow-strong);
}

.panel-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel-wrapper.hidden {
    display: none;
}

.panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    animation: cardSlide 0.5s ease-out;
}

.panel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
    opacity: 0.5;
}

.vc-card::before {
    background: linear-gradient(90deg, transparent, var(--discord), transparent);
}

.web-card::before {
    background: linear-gradient(90deg, transparent, var(--info), transparent);
}

@keyframes cardSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 28px 0;
    flex-wrap: wrap;
}

.panel-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.panel-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent-light);
}

.vc-icon {
    background: var(--discord-glow);
    border: 1px solid rgba(88, 101, 242, 0.2);
}

.vc-icon svg {
    color: var(--discord);
}

.web-icon {
    background: var(--info-glow);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.web-icon svg {
    color: var(--info);
}

.panel-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.panel-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.panel-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.timer-badges {
    display: flex;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.timer-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    animation: badgePop 0.3s ease-out;
    transition: all 0.3s ease;
}

.timer-badge.hidden {
    display: none;
}

@keyframes badgePop {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.attack-badge {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.1);
}

.attack-badge svg {
    width: 14px;
    height: 14px;
    animation: spin 1s linear infinite;
}

.cooldown-badge {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--warning);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.1);
}

.cooldown-badge svg {
    width: 14px;
    height: 14px;
    animation: spin 2s linear infinite;
}

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

.panel-body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group.half {
    flex: 1;
}

.input-row {
    display: flex;
    gap: 16px;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-label svg {
    width: 14px;
    height: 14px;
    color: var(--accent-light);
}

.input-wrap {
    position: relative;
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

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

.input-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 0 20px var(--accent-glow);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.input-field:focus ~ .input-border {
    width: 100%;
}

.input-hint {
    font-size: 11px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    margin-top: 2px;
}

.launch-btn {
    position: relative;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--accent-glow-strong);
}

.launch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.launch-btn:hover::before {
    left: 100%;
}

.launch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow-strong);
}

.launch-btn:active {
    transform: translateY(0);
}

.launch-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.vc-launch-btn {
    background: linear-gradient(135deg, var(--discord), #4752c4);
    box-shadow: 0 4px 20px var(--discord-glow-strong);
}

.vc-launch-btn:hover {
    box-shadow: 0 8px 30px var(--discord-glow-strong);
}

.web-launch-btn {
    background: linear-gradient(135deg, var(--info), #2563eb);
    box-shadow: 0 4px 20px var(--info-glow-strong);
}

.web-launch-btn:hover {
    box-shadow: 0 8px 30px var(--info-glow-strong);
}

.btn-content, .btn-loading, .btn-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-loading, .btn-success {
    display: none;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.spinner {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

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

.stat-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
}

.stat-icon svg {
    width: 18px;
    height: 18px;
    color: var(--accent-light);
}

.web-stat-icon {
    background: var(--info-glow);
}

.web-stat-icon svg {
    color: var(--info);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    font-family: var(--font-mono);
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.terminal-wrapper {
    margin-top: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: cardSlide 0.6s ease-out 0.1s both;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ef4444; }
.terminal-dots span:nth-child(2) { background: #f59e0b; }
.terminal-dots span:nth-child(3) { background: #22c55e; }

.terminal-title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.terminal-title svg {
    width: 14px;
    height: 14px;
}

.terminal-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-clear:hover {
    color: var(--danger);
    background: var(--danger-glow);
}

.terminal-clear svg {
    width: 14px;
    height: 14px;
}

.terminal-body {
    padding: 16px;
    max-height: 280px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.8;
}

.terminal-body::-webkit-scrollbar {
    width: 4px;
}

.terminal-body::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}

.terminal-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 2px 0;
    animation: lineFade 0.3s ease-out;
}

@keyframes lineFade {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.term-time {
    color: var(--text-dim);
    flex-shrink: 0;
    min-width: 64px;
}

.term-tag {
    font-weight: 700;
    flex-shrink: 0;
    min-width: 48px;
}

.term-tag.info { color: var(--info); }
.term-tag.success { color: var(--success); }
.term-tag.error { color: var(--danger); }
.term-tag.warn { color: var(--warning); }

.term-msg {
    color: var(--text-muted);
    word-break: break-word;
}

.footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
}

.footer-dot {
    width: 4px;
    height: 4px;
    background: var(--text-dim);
    border-radius: 50%;
}

@media (max-width: 640px) {
    .navbar {
        padding: 0 16px;
    }
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 32px;
    }
    .input-row {
        flex-direction: column;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .main-content {
        padding: 90px 16px 24px;
    }
    .panel-body {
        padding: 20px 20px 24px;
    }
    .modal-card {
        padding: 32px 24px 24px;
    }
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .timer-badges {
        margin-left: 0;
        width: 100%;
    }
    .intro-title {
        font-size: 28px;
    }
    .key-card {
        padding: 36px 24px 28px;
    }
    .mode-selector {
        flex-direction: column;
    }
}