:root {
    --bg-dark: #060d1a;
    --bg-card: #0f172a;
    --nav-bg: #0a1628;
    --text-primary: #e2e8f0;
    --text-secondary: #64748b;
    --text-accent: #818cf8;
    --border-color: rgba(99, 102, 241, 0.2);
    --green: #4ade80;
    --red: #f87171;
    --yellow: #fbbf24;
}

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

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    background-image: 
        radial-gradient(ellipse at 15% 10%, rgba(99,102,241,0.08), transparent 55%),
        radial-gradient(ellipse at 85% 85%, rgba(16,185,129,0.05), transparent 55%);
}

/* Navigation */
nav {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .logo {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-accent);
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 8px;
    transition: 0.2s;
}

nav a:hover, nav a.active {
    background: rgba(99,102,241,0.15);
    color: var(--text-accent);
}

/* Layout */
.page {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 20px 60px;
    animation: fadeIn 0.4s ease-out;
}

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

/* Components */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 16px;
    transition: transform 0.2s;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.two-col > a {
    text-decoration: none;
    color: inherit;
}

.two-col > a:hover .card {
    transform: translateY(-4px);
    border-color: var(--text-accent);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.feature-card {
    background: linear-gradient(145deg, rgba(15,23,42,0.9), rgba(15,23,42,0.4));
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--card-color, #6366f1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--card-color, #6366f1);
    box-shadow: 0 10px 30px -10px var(--card-color, rgba(99,102,241,0.2));
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

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

.feature-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

.feature-link {
    margin-top: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--card-color, #6366f1);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Typography */
.section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--text-accent);
    margin-bottom: 14px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.badge-green { background: rgba(74,222,128,0.12); color: var(--green); border: 1px solid rgba(74,222,128,0.3); }
.badge-blue { background: rgba(96,165,250,0.12); color: #60a5fa; border: 1px solid rgba(96,165,250,0.3); }
.badge-purple { background: rgba(192,132,252,0.12); color: #c084fc; border: 1px solid rgba(192,132,252,0.3); }

/* Forms & Buttons */
input[type=text] {
    width: 100%;
    padding: 13px 16px;
    border-radius: 10px;
    background: #131c2e;
    border: 1px solid rgba(99,102,241,0.3);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    font-family: inherit;
}

input[type=text]:focus {
    border-color: var(--text-accent);
}

button.btn {
    padding: 13px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #6366f1, #10b981);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s;
    font-family: inherit;
}

button.btn:hover { opacity: 0.9; }
button.btn:disabled { background: #1e293b; cursor: not-allowed; color: #475569; }

/* Ratings */
.rating-btn {
    padding: 5px 14px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: 0.2s;
    opacity: 0.6;
}

.rating-btn:hover, .rating-btn.active { opacity: 1; transform: scale(1.05); }

.r-good { background: rgba(74,222,128,0.15); color: var(--green); border: 1px solid rgba(74,222,128,0.4); }
.r-avg { background: rgba(251,191,36,0.15); color: var(--yellow); border: 1px solid rgba(251,191,36,0.4); }
.r-bad { background: rgba(248,113,113,0.15); color: var(--red); border: 1px solid rgba(248,113,113,0.4); }

.r-good.active { background: rgba(74,222,128,0.3); }
.r-avg.active { background: rgba(251,191,36,0.3); }
.r-bad.active { background: rgba(248,113,113,0.3); }

/* Stats grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.stat-card {
    background: #131c2e;
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.stat-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}

.stat-val { font-size: 24px; font-weight: 800; }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th {
    padding: 8px 12px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    border-bottom: 1px solid rgba(99,102,241,0.12);
    text-align: left;
}
td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(99,102,241,0.07);
    font-size: 13px;
    color: #cbd5e1;
}
tr:hover td { background: rgba(99,102,241,0.05); }

/* Utilities */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #334155;
    border-top-color: var(--text-accent);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.big-spinner {
    width: 40px; height: 40px;
    border: 4px solid #1e293b;
    border-top-color: var(--text-accent);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto 16px;
}

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

.error {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 10px;
    padding: 14px;
    color: var(--red);
    margin: 12px 0;
}

.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-yellow { color: var(--yellow); }

/* Lists Checkrows */
.check-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; border-radius: 10px; margin-bottom: 7px;
}
.check-label { font-size: 13px; font-weight: 600; color: #cbd5e1; }
.check-note { font-size: 11px; color: #475569; margin-top: 2px; }

footer {
    text-align: center; font-size: 11px; color: #1e293b;
    margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(99,102,241,0.1);
}

@media(max-width: 600px) {
    .two-col { grid-template-columns: 1fr; }
    nav { flex-wrap: wrap; justify-content: center; }
}
