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

:root {
    --bg-base: #0c0d10;
    --bg-surface: #121317;
    --bg-elevated: #16181d;
    --bg-card: #15171c;
    --border: #23262d;
    --border-light: #2c3038;
    --text-primary: #e9eaec;
    --text-secondary: #9ba1ac;
    --text-muted: #6b7280;
    --text-dim: #4b5159;
    --accent: #4b82d4;
    --accent-text: #7aa6e0;
    --warning: #d99b3d;
    --success: #4c9f7a;
    --radius: 8px;
}

html, body {
    width: 100%;
    min-height: 100vh;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "ss01", "cv01";
}

.app {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Bar */
.topbar {
    width: 100%;
    border-bottom: 1px solid var(--border);
    background: var(--bg-base);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-text);
}

.logo-icon svg {
    width: 19px;
    height: 19px;
}

.logo-text h1 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.logo-text .accent {
    color: var(--text-secondary);
    font-weight: 500;
}

.tagline {
    font-size: 0.68rem;
    color: var(--text-dim);
    font-weight: 500;
    letter-spacing: 0.4px;
    margin-top: 1px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.lang-toggle:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--accent);
}

.lang-toggle svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--warning);
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid var(--warning);
    opacity: 0.4;
    animation: ring 2.5s ease-out infinite;
}

@keyframes ring {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Main */
.main {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 72px 32px 80px;
    display: flex;
    flex-direction: column;
}

/* Hero */
.hero {
    max-width: 680px;
    margin-bottom: 64px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.hero-eyebrow svg {
    width: 15px;
    height: 15px;
    color: var(--warning);
}

.hero-title {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
    letter-spacing: -0.8px;
    line-height: 1.15;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* Layout split */
.content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

@media (max-width: 900px) {
    .content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Section heading */
.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.section-heading h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.1px;
}

.section-heading .meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Status list */
.status-list {
    display: flex;
    flex-direction: column;
}

.status-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    transition: padding 0.2s ease;
}

.status-row:last-child {
    border-bottom: none;
}

.status-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.status-icon {
    width: 34px;
    height: 34px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.status-icon svg {
    width: 16px;
    height: 16px;
}

.status-text {
    min-width: 0;
}

.status-text h4 {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.status-text .desc {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.status-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mini-bar {
    width: 120px;
    height: 5px;
    background: var(--bg-elevated);
    border-radius: 100px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.mini-fill {
    height: 100%;
    width: 0;
    background: var(--accent);
    border-radius: 100px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-fill.done {
    background: var(--success);
}

.status-pct {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    min-width: 38px;
    text-align: right;
}

.status-pct.zero {
    color: var(--text-dim);
}

@media (max-width: 540px) {
    .mini-bar {
        width: 70px;
    }
    .status-text .desc {
        display: none;
    }
    .status-right {
        gap: 12px;
    }
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.panel-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 18px;
}

/* Overall ring/number */
.overall-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}

.overall-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1.5px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.overall-suffix {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.overall-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 100px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.overall-fill {
    height: 100%;
    width: 0;
    background: var(--accent);
    border-radius: 100px;
    transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.overall-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Info rows */
.info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.info-row:first-of-type {
    padding-top: 0;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-icon {
    width: 32px;
    height: 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.info-icon svg {
    width: 15px;
    height: 15px;
}

.info-body {
    min-width: 0;
    flex: 1;
}

.info-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2px;
}

.info-value {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-value a {
    color: var(--accent-text);
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    width: 100%;
    border-top: 1px solid var(--border);
    background: var(--bg-base);
    margin-top: auto;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 22px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-inner p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer-links {
    display: flex;
    gap: 22px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 7, 9, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 100;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.show .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.modal-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.modal-close svg {
    width: 16px;
    height: 16px;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.modal-body h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 18px 0 6px;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 10px;
}

.modal-body a {
    color: var(--accent-text);
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

.modal-body .notice {
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 16px;
}

.soon-content {
    text-align: center;
    padding: 28px 0 12px;
}

.soon-text {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.soon-content p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
}

@media (max-width: 768px) {
    .topbar-inner, .main, .footer-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
    .main {
        padding-top: 48px;
    }
    .hero {
        margin-bottom: 48px;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
