:root {
    --bg-dark: #070a12;
    --bg-card: #0f172a;
    --bg-card-hover: #17223b;
    --bg-card-alt: #131d33;
    --border-color: #1e293b;
    --border-color-hover: #334155;
    --border-accent: #3b82f6;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --cyan: #06b6d4;
    --blue: #3b82f6;
    --emerald: #10b981;
    --amber: #f59e0b;
    --purple: #a855f7;
    --red: #ef4444;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 10, 18, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 0;
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-badge {
    background: #1e293b;
    border: 1px solid #334155;
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-weight: 600;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-rate-btn {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.2));
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24 !important;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    transition: all 0.2s !important;
}

.nav-rate-btn:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(239, 68, 68, 0.35));
    border-color: #fbbf24;
    transform: translateY(-1px);
}

/* Hero */
.hero {
    text-align: center;
    padding: 3.5rem 0 2.5rem 0;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0f172a;
    border: 1px solid #334155;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    color: #cbd5e1;
    font-family: var(--font-mono);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--emerald);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    background: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 820px;
    margin: 0 auto 2.2rem auto;
    font-weight: 400;
}

.hero-subtitle strong {
    color: var(--text-main);
}

/* Metrics Strip */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, border-color 0.2s;
}

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

.metric-val {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--blue);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.text-cyan { color: var(--cyan) !important; }
.text-emerald { color: var(--emerald) !important; }
.text-purple { color: var(--purple) !important; }

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Specs Ribbon */
.specs-ribbon {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.spec-tag {
    background: #0d1527;
    border: 1px solid #1e293b;
    color: #94a3b8;
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
}

/* Section Common */
.section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

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

.filtered-badge {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--cyan);
    font-weight: 600;
    font-family: var(--font-mono);
}

/* Featured Cards Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.25rem;
}

.featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.featured-card:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: 0 12px 30px -10px rgba(59, 130, 246, 0.25);
}

.highlight-border {
    border-color: rgba(59, 130, 246, 0.6);
    background: linear-gradient(180deg, #111a33 0%, #0f172a 100%);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.family-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
    display: block;
    margin-bottom: 0.2rem;
}

.os-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
}

.status-badge.green {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge.purple {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.status-badge.yellow {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.os-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.card-specs {
    background: #090e1c;
    border: 1px solid #1a2540;
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.83rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.2rem 0;
}

.spec-label {
    color: var(--text-dim);
}

.spec-val {
    color: #e2e8f0;
    font-family: var(--font-mono);
}

.highlight-val {
    color: #34d399;
    font-weight: 600;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
}

.os-year {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.details-btn {
    background: none;
    border: none;
    color: var(--blue);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.details-btn:hover {
    color: #60a5fa;
    transform: translateX(3px);
}

/* Controls Toolbar */
.controls-toolbar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0.6;
}

#search-input {
    width: 100%;
    background: #090e1c;
    border: 1px solid var(--border-color);
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: var(--font-main);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#search-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cat-tab {
    background: #090e1c;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cat-tab .count {
    background: #1e293b;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

.cat-tab:hover {
    border-color: #334155;
    color: var(--text-main);
}

.cat-tab.active {
    background: #1e293b;
    border-color: var(--blue);
    color: #ffffff;
}

.cat-tab.active .count {
    background: var(--blue);
    color: white;
}

.select-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.custom-select {
    background: #090e1c;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.48rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: var(--font-main);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.custom-select:focus {
    border-color: var(--blue);
}

.view-switcher {
    display: flex;
    background: #090e1c;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.view-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    padding: 0.45rem 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn.active {
    background: #1e293b;
    color: var(--text-main);
}

/* Catalog Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.catalog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.catalog-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    background: var(--bg-card-hover);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
}

.family-badge {
    background: #1e293b;
    color: var(--cyan);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.status-pill {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
}

.status-pill.green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.status-pill.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.status-pill.purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.status-pill.yellow { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.4rem;
    line-height: 1.35;
}

.card-desc {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 0.85rem;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    border-top: 1px solid #1e293b;
    padding-top: 0.65rem;
}

/* Table View */
.catalog-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.catalog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.catalog-table th {
    background: #090e1c;
    padding: 0.85rem 1rem;
    color: var(--text-dim);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.catalog-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #1a233a;
    color: var(--text-muted);
}

.catalog-table tr:hover td {
    background: var(--bg-card-hover);
    color: var(--text-main);
    cursor: pointer;
}

.td-name strong {
    color: var(--text-main);
}

.table-view-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #93c5fd;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.table-view-btn:hover {
    background: var(--blue);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.reset-btn {
    background: var(--blue);
    color: white;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.reset-btn:hover {
    background: #2563eb;
}

/* Rate Section (Easter Egg) */
.rate-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.rate-card {
    background: linear-gradient(180deg, #131d31 0%, #0c1322 100%);
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-shadow: 0 0 35px -10px rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.rate-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s;
    animation: gentleFloat 3.5s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.rate-emoji.celebrate {
    animation: celebrateBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes celebrateBounce {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.35) rotate(15deg); }
    100% { transform: scale(1.15) rotate(0deg); }
}

.rate-title {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.rate-desc {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 1.75rem auto;
}

.rate-desc strong {
    color: #fbbf24;
}

/* Mini-PC Live Specs Box */
.server-specs-box {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem auto 1.75rem auto;
    max-width: 660px;
    text-align: left;
}

.server-specs-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .server-grid {
        grid-template-columns: 1fr;
    }
}

.server-item {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.85rem;
}

.server-item-title {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 0.25rem;
}

.server-item-val {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: #38bdf8;
    line-height: 1.35;
    display: block;
}

.rate-btn-wrap {
    margin-bottom: 1.25rem;
}

.rate-btn {
    background: linear-gradient(135deg, #f59e0b, #ea580c 45%, #e11d48 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    padding: 1.05rem 2.75rem;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(234, 88, 12, 0.45);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.rate-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 35px rgba(234, 88, 12, 0.65);
}

.rate-btn:active {
    transform: translateY(1px) scale(0.98);
}

.rate-status {
    color: var(--text-muted);
    font-size: 0.95rem;
    min-height: 1.5rem;
    margin-top: 0.5rem;
}

.rate-count {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
    font-family: var(--font-mono);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.88rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-sub {
    font-size: 0.78rem;
    color: #475569;
    font-family: var(--font-mono);
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 7, 13, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 1.5rem;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog {
    background: var(--bg-card);
    border: 1px solid var(--border-color-hover);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: #1e293b;
    border: 1px solid #334155;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.modal-content {
    padding: 2rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.modal-header-left h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 0.25rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h4 {
    font-size: 0.95rem;
    color: #e2e8f0;
    font-weight: 700;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.modal-spec-card {
    background: #090e1c;
    border: 1px solid #1a2540;
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
}

.m-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

.m-val {
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
    font-family: var(--font-mono);
    margin-top: 0.25rem;
}

.compat-checklist {
    list-style: none;
    background: #090e1c;
    border: 1px solid #1a2540;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
}

.compat-checklist li {
    padding: 0.4rem 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #151f38;
}

.compat-checklist li:last-child {
    border-bottom: none;
}

.compat-checklist strong {
    color: #e2e8f0;
}

.drivers-box {
    background: #060913;
    border: 1px solid #1e293b;
    border-radius: var(--radius-sm);
    padding: 0.85rem;
}

.drivers-box code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #38bdf8;
    line-height: 1.5;
    word-break: break-all;
}

/* Floating Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0f172a;
    border: 1px solid #10b981;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.25);
    color: #ffffff;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 0.85rem;
    }
    .hero {
        padding: 2.2rem 0 1.5rem 0;
    }
    .hero-badge {
        font-size: 0.68rem;
        padding: 0.3rem 0.65rem;
        white-space: normal;
        text-align: center;
        line-height: 1.4;
    }
    .hero-title {
        font-size: 1.65rem;
        line-height: 1.25;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    .nav-links {
        display: none;
    }
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .metric-card {
        padding: 0.75rem;
    }
    .metric-val {
        font-size: 1.55rem;
    }
    .metric-label {
        font-size: 0.72rem;
    }
    .specs-ribbon {
        gap: 0.35rem;
    }
    .spec-tag {
        font-size: 0.72rem;
        padding: 0.2rem 0.55rem;
    }
    .featured-grid {
        grid-template-columns: 1fr;
    }
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    .select-group {
        flex-direction: column;
        align-items: stretch;
    }
    .category-tabs {
        gap: 0.35rem;
    }
    .cat-tab {
        font-size: 0.78rem;
        padding: 0.35rem 0.65rem;
    }
    .server-specs-box {
        padding: 1rem 0.85rem;
    }
    .server-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .server-item-val {
        font-size: 0.75rem;
        word-break: break-word;
    }
    .rate-card {
        padding: 1.75rem 1rem;
    }
    .rate-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    .rate-desc {
        font-size: 0.92rem;
        line-height: 1.5;
    }
    .rate-btn {
        width: 100%;
        padding: 0.85rem 1rem;
        font-size: 0.92rem;
        white-space: normal;
        line-height: 1.35;
    }
    .modal-dialog {
        margin: 0.75rem;
        padding: 1.25rem 1rem;
        max-height: 85vh;
    }
    .modal-specs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
}
