/* ============================================================
   chdev hosting — Design System
   ============================================================ */

/* === Variables === */
:root {
    --bg:                #0a0a0f;
    --bg-2:              #0e0e18;
    --bg-3:              #13131f;
    --card-bg:           rgba(255, 255, 255, 0.025);
    --card-border:       rgba(255, 255, 255, 0.07);
    --card-border-hover: rgba(99, 102, 241, 0.4);
    --accent:            #6366f1;
    --accent-2:          #818cf8;
    --accent-dark:       #4f46e5;
    --accent-glow:       rgba(99, 102, 241, 0.25);
    --text:              #f1f1f8;
    --text-muted:        rgba(241, 241, 248, 0.45);
    --text-dim:          rgba(241, 241, 248, 0.22);
    --success:           #34d399;
    --warning:           #fbbf24;
    --danger:            #f87171;
    --radius-sm:         8px;
    --radius:            12px;
    --radius-lg:         18px;
    --radius-xl:         24px;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }

::selection {
    background: rgba(99, 102, 241, 0.35);
    color: #fff;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Noise texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
}

main { flex: 1; position: relative; z-index: 1; }
img { max-width: 100%; }

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
    line-height: 1.2;
}

.text-muted { color: var(--text-muted) !important; }

/* Bootstrap colour overrides */
.text-success  { color: var(--success) !important; }
.text-danger   { color: var(--danger) !important; }
.border-success { border-color: var(--success) !important; }
.border-secondary { border-color: var(--card-border) !important; }

/* === Navbar === */
.navbar {
    background: rgba(10, 10, 15, 0.8) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--card-border) !important;
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0.9rem 0;
}

.navbar-brand {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(130deg, #c7d2fe 0%, #a5b4fc 40%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 !important;
    line-height: 1;
}

.brand-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: dot-pulse 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 6px var(--accent); }
    50%       { box-shadow: 0 0 18px var(--accent), 0 0 30px rgba(99,102,241,0.3); }
}

.navbar .nav-link {
    color: var(--text-muted) !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 0.7rem !important;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    letter-spacing: -0.01em;
}
.navbar .nav-link:hover {
    color: var(--text) !important;
    background: rgba(255, 255, 255, 0.05);
}

.navbar-toggler {
    border: 1px solid var(--card-border);
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
}
.navbar-toggler:focus { box-shadow: 0 0 0 2px var(--accent-glow); outline: none; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28241,241,248,0.6%29' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .dropdown-menu {
    background: #111118;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
    padding: 0.4rem;
    min-width: 200px;
    z-index: 9999;
    margin-top: 0.5rem;
}

.navbar .dropdown-item {
    color: var(--text-muted);
    font-size: 0.875rem;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: color 0.15s, background 0.15s;
    display: flex;
    align-items: center;
}
.navbar .dropdown-item:hover {
    color: var(--text);
    background: rgba(99, 102, 241, 0.1);
}
.navbar .dropdown-item i { width: 20px; }

.navbar .dropdown-divider {
    border-color: rgba(255,255,255,0.06);
    margin: 0.25rem 0;
}

.user-avatar {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    font-size: 0.72rem; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0;
}

/* === Buttons === */
.btn-mc {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}
.btn-mc::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    border-radius: inherit;
}
.btn-mc:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(99,102,241,0.45);
    color: #fff !important;
}
.btn-mc:active { transform: translateY(0); }
.btn-mc:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-outline-accent {
    background: transparent;
    color: var(--text-muted) !important;
    border: 1px solid rgba(255,255,255,0.12);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    letter-spacing: -0.01em;
}
.btn-outline-accent:hover {
    color: var(--text) !important;
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.05);
}

/* Bootstrap overrides */
.btn-success {
    background: linear-gradient(135deg, var(--success), #10b981) !important;
    border: none !important; color: #fff !important; font-weight: 600 !important;
}
.btn-success:hover { box-shadow: 0 4px 16px rgba(52, 211, 153, 0.35) !important; }

.btn-outline-success {
    color: var(--success) !important;
    border-color: rgba(52, 211, 153, 0.35) !important;
    background: transparent !important; font-weight: 500 !important;
}
.btn-outline-success:hover {
    background: rgba(52, 211, 153, 0.1) !important;
    border-color: var(--success) !important;
}

.btn-outline-secondary {
    color: var(--text-muted) !important;
    border-color: var(--card-border) !important;
    background: transparent !important;
}
.btn-outline-secondary:hover {
    color: var(--text) !important;
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.14) !important;
}

.btn-outline-danger {
    color: var(--danger) !important;
    border-color: rgba(248,113,113,0.3) !important;
    background: transparent !important;
}
.btn-outline-danger:hover { background: rgba(248,113,113,0.08) !important; }

.btn-outline-warning {
    color: var(--warning) !important;
    border-color: rgba(251,191,36,0.3) !important;
    background: transparent !important;
}
.btn-outline-warning:hover { background: rgba(251,191,36,0.08) !important; }

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border: none !important; color: #000 !important; font-weight: 600 !important;
}
.btn-warning:hover { box-shadow: 0 4px 16px rgba(245,158,11,0.3) !important; }

/* === Cards === */
.dashboard-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color 0.25s;
    backdrop-filter: blur(8px);
}
.dashboard-card:hover { border-color: rgba(99,102,241,0.18); }

.server-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}
.server-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.04) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.server-card:hover {
    border-color: rgba(99,102,241,0.28);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}
.server-card:hover::before { opacity: 1; }

/* === Hero === */
.hero-section {
    position: relative;
    padding: 7rem 0 5.5rem;
    overflow: hidden;
    background: var(--bg);
    text-align: center;
}

.hero-grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 50%, black 20%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 55% at 50% 50%, black 20%, transparent 100%);
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
}
.hero-orb-1 {
    width: 550px; height: 550px; top: -200px; left: -80px;
    background: radial-gradient(circle, rgba(99,102,241,0.14) 0%, transparent 70%);
    animation: orb1 14s ease-in-out infinite;
}
.hero-orb-2 {
    width: 420px; height: 420px; top: -80px; right: -60px;
    background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
    animation: orb2 17s ease-in-out infinite;
}
.hero-orb-3 {
    width: 320px; height: 320px; bottom: -60px; left: 35%;
    background: radial-gradient(circle, rgba(79,70,229,0.09) 0%, transparent 70%);
    animation: orb3 11s ease-in-out infinite;
}

@keyframes orb1 {
    0%,100%{ transform:translate(0,0) scale(1); }
    33%    { transform:translate(30px,-25px) scale(1.06); }
    66%    { transform:translate(-25px,30px) scale(0.94); }
}
@keyframes orb2 {
    0%,100%{ transform:translate(0,0) scale(1); }
    33%    { transform:translate(-35px,20px) scale(1.08); }
    66%    { transform:translate(20px,-35px) scale(0.92); }
}
@keyframes orb3 {
    0%,100%{ transform:translate(0,0); }
    50%    { transform:translate(-20px,-20px); }
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.45rem;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.22);
    color: var(--accent-2);
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
    padding: 0.3rem 0.85rem; border-radius: 100px;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s ease both;
}

.hero-section h1 {
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 900; letter-spacing: -0.045em; line-height: 1.05;
    margin-bottom: 1.2rem;
    background: linear-gradient(175deg, #ffffff 0%, rgba(241,241,248,0.65) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeUp 0.6s 0.08s ease both;
}

.hero-section .lead {
    font-size: 1.05rem; color: var(--text-muted);
    max-width: 500px; margin: 0 auto 2.25rem;
    line-height: 1.75;
    animation: fadeUp 0.6s 0.16s ease both;
}

.hero-cta { animation: fadeUp 0.6s 0.24s ease both; }

.hero-stats {
    display: flex; justify-content: center; align-items: center;
    gap: 0;
    margin: 3.75rem auto 0;
    animation: fadeUp 0.6s 0.32s ease both;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1.1rem 1.5rem;
    max-width: 420px;
}
.hero-stats > div {
    flex: 1;
    text-align: center;
    padding: 0.25rem 0.5rem;
}
.hero-stats > div + div {
    border-left: 1px solid var(--card-border);
}
.hero-stat-value {
    font-size: 1.5rem; font-weight: 900; letter-spacing: -0.05em;
    background: linear-gradient(135deg, #c7d2fe, var(--accent-2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-stat-label {
    font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.07em; font-weight: 600; margin-top: 0.15rem;
    white-space: nowrap;
}

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

/* === Feature Cards === */
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.3s ease;
    position: relative; overflow: hidden;
    height: 100%;
}
.feature-card::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.5), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover {
    border-color: rgba(99,102,241,0.22);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.28);
}
.feature-card:hover::after { opacity: 1; }

.feature-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(79,70,229,0.08));
    border: 1px solid rgba(99,102,241,0.2);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.1rem;
    font-size: 1.2rem; color: var(--accent-2);
}

/* === Server type pills === */
.server-type-pill {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1rem 0.75rem;
    text-align: center;
    transition: all 0.22s;
}
.server-type-pill:hover {
    border-color: rgba(99,102,241,0.32);
    background: rgba(99,102,241,0.05);
    transform: translateY(-2px);
}
.type-icon { font-size: 1.4rem; color: var(--accent-2); margin-bottom: 0.35rem; }

/* === Game cards (home) === */
.game-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.game-card:hover {
    border-color: rgba(99,102,241,0.3);
    background: rgba(99,102,241,0.04);
    transform: translateY(-2px);
    color: inherit;
}
.game-card-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
}
.game-card-name { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.game-card-desc { font-size: 0.72rem; color: var(--text-dim); margin-top: 0.1rem; line-height: 1.4; }

/* === Pricing game selector pills === */
.game-selector-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    max-width: 860px;
    margin: 0 auto;
}
.game-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem 0.45rem 0.45rem;
    border-radius: 100px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, transform 0.18s;
    user-select: none;
}
.game-pill:hover {
    border-color: rgba(99,102,241,0.35);
    background: rgba(99,102,241,0.05);
    transform: translateY(-1px);
}
.game-pill.selected {
    border-color: var(--game-color, var(--accent));
    background: color-mix(in srgb, var(--game-color, var(--accent)) 12%, transparent);
}
.game-pill-icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.game-pill-name { font-size: 0.82rem; font-weight: 600; color: var(--text); white-space: nowrap; }

/* === Pricing game info strip === */
.game-info-strip {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.85rem;
    max-width: 860px;
    margin: 0.75rem auto 0;
    padding: 0.9rem 1.1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
}
.game-info-icon { flex-shrink: 0; line-height: 1; }
.game-info-name { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.game-info-detail { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; line-height: 1.5; }
.game-info-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; }
.game-info-tag {
    font-size: 0.65rem; font-weight: 600; letter-spacing: 0.03em;
    padding: 0.18rem 0.45rem; border-radius: 5px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    .game-info-strip {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }
    .game-info-tags {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

/* === Section labels === */
.section-label {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--accent-2); margin-bottom: 0.6rem;
}

/* === Pricing === */
.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; height: 100%;
}
.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99,102,241,0.28);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.pricing-card.featured {
    background: linear-gradient(145deg, rgba(99,102,241,0.09) 0%, rgba(79,70,229,0.04) 100%);
    border-color: rgba(99,102,241,0.32);
    box-shadow: 0 0 40px rgba(99,102,241,0.1), inset 0 1px 0 rgba(255,255,255,0.04);
}
.pricing-card.featured:hover {
    box-shadow: 0 20px 56px rgba(99,102,241,0.22), 0 0 0 1px rgba(99,102,241,0.38), inset 0 1px 0 rgba(255,255,255,0.04);
}
.pricing-card.featured::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
}

.popular-badge {
    position: absolute; top: 1.25rem; right: 1.25rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em;
    text-transform: uppercase; padding: 0.22rem 0.6rem; border-radius: 100px;
    box-shadow: 0 0 14px rgba(99,102,241,0.45);
}

.price-tag {
    font-size: 2.8rem; font-weight: 900; letter-spacing: -0.06em;
    color: var(--text); line-height: 1;
}
.price-tag .currency { font-size: 1.3rem; font-weight: 700; vertical-align: super; color: var(--accent-2); }
.price-tag small { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; letter-spacing: 0; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
    padding: 0.4rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex; align-items: center; gap: 0.6rem;
}
.feature-list li::before {
    content: '';
    width: 15px; height: 15px; min-width: 15px;
    border-radius: 50%;
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.28);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath stroke='%236366f1' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round' d='M2 6l3 3 5-5'/%3E%3C/svg%3E");
    background-size: 9px; background-position: center; background-repeat: no-repeat;
}

/* === Status Badges === */
.status-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.2rem 0.65rem; border-radius: 100px;
    font-size: 0.73rem; font-weight: 600; letter-spacing: 0.01em;
}
.status-badge::before {
    content: ''; width: 6px; height: 6px;
    border-radius: 50%; flex-shrink: 0;
}
.status-active {
    background: rgba(52,211,153,0.1); color: #34d399;
    border: 1px solid rgba(52,211,153,0.2);
}
.status-active::before {
    background: #34d399;
    box-shadow: 0 0 6px rgba(52,211,153,0.9);
    animation: active-pulse 2s ease-in-out infinite;
}
.status-pending  { background: rgba(251,191,36,0.1);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.status-pending::before  { background: #fbbf24; }
.status-cancelled { background: rgba(248,113,113,0.08); color: #f87171; border: 1px solid rgba(248,113,113,0.18); }
.status-cancelled::before { background: #f87171; }
.status-paused  { background: rgba(251,191,36,0.08); color: #f59e0b; border: 1px solid rgba(251,191,36,0.18); }
.status-paused::before  { background: #f59e0b; }

@keyframes active-pulse {
    0%,100% { box-shadow: 0 0 4px rgba(52,211,153,0.8); }
    50%      { box-shadow: 0 0 10px rgba(52,211,153,1), 0 0 18px rgba(52,211,153,0.4); }
}

/* === Auth === */
.auth-container {
    max-width: 440px;
    margin: 5rem auto;
    padding: 2.5rem;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px);
    position: relative;
}
.auth-container::before {
    content: '';
    position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.5), transparent);
}
.auth-logo-mark {
    width: 48px; height: 48px; border-radius: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #fff;
    margin: 0 auto 1.2rem;
    box-shadow: 0 0 28px rgba(99,102,241,0.4);
}

/* === Forms === */
.form-control, .form-select {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text) !important;
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
}
.form-control::placeholder { color: var(--text-dim) !important; }
.form-control:focus, .form-select:focus {
    border-color: rgba(99,102,241,0.5) !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.14) !important;
    background: rgba(99,102,241,0.04) !important;
    outline: none; color: var(--text) !important;
}
select option {
    background: #111118;
    color: #e8e8f0;
}

.form-label {
    font-size: 0.78rem; font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.38rem;
}
.form-text { font-size: 0.77rem; color: var(--text-dim); }

.input-group .form-control  { border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important; }
.input-group .btn            { border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; }

/* === Alerts === */
.alert {
    border-radius: var(--radius) !important;
    border: 1px solid; font-size: 0.875rem;
    backdrop-filter: blur(8px);
}
.alert-danger  { background: rgba(248,113,113,0.07) !important; border-color: rgba(248,113,113,0.22) !important; color: #fca5a5 !important; }
.alert-success { background: rgba(99,102,241,0.07) !important; border-color: rgba(99,102,241,0.22) !important; color: var(--accent-2) !important; }
.alert-warning { background: rgba(251,191,36,0.07) !important; border-color: rgba(251,191,36,0.22) !important; color: #fde68a !important; }
.alert-primary { background: rgba(99,102,241,0.07) !important; border-color: rgba(99,102,241,0.22) !important; color: var(--accent-2) !important; }
.btn-close { filter: invert(1) opacity(0.45); }
.btn-close:hover { filter: invert(1) opacity(0.9); }

/* === Setup / Edition cards === */
.setup-step {
    background: var(--card-bg); border: 2px solid var(--card-border);
    border-radius: var(--radius-lg); padding: 1.5rem;
    cursor: pointer; transition: all 0.2s;
}
.setup-step:hover, .setup-step.selected {
    border-color: rgba(99,102,241,0.5);
    background: rgba(99,102,241,0.05);
}
.setup-step.selected { box-shadow: 0 0 20px rgba(99,102,241,0.14); }

.edition-card, .type-card {
    background: var(--card-bg); border: 2px solid var(--card-border);
    border-radius: var(--radius-lg); padding: 2rem;
    text-align: center; cursor: pointer; transition: all 0.3s;
}
.edition-card:hover, .type-card:hover { border-color: rgba(99,102,241,0.5); transform: translateY(-3px); }
.edition-card.selected, .type-card.selected {
    border-color: var(--accent);
    background: rgba(99,102,241,0.07);
    box-shadow: 0 0 24px rgba(99,102,241,0.12);
}

/* === Step indicator === */
.step-indicator { display: flex; justify-content: center; gap: 0.4rem; margin-bottom: 2rem; }
.step-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(99,102,241,0.2); transition: all 0.3s;
}
.step-dot.active { width: 20px; height: 6px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.step-dot.done { background: rgba(99,102,241,0.45); }

/* === Console (panel) === */
.panel-tabs .nav-link { color: var(--text-muted); border: none; padding: 0.65rem 1.1rem; font-size: 0.875rem; }
.panel-tabs .nav-link.active { color: var(--accent-2); border-bottom: 2px solid var(--accent); background: none; }
.panel-tabs .nav-link:hover { color: var(--text); }

.console-output {
    background: #050508; color: #22c55e;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.82rem; line-height: 1.6; padding: 1.1rem;
    border-radius: var(--radius) var(--radius) 0 0;
    height: 420px; overflow-y: auto;
    white-space: pre-wrap; word-break: break-all;
    border: 1px solid rgba(34,197,94,0.1); border-bottom: none;
}
.console-output .log-info  { color: #60a5fa; }
.console-output .log-warn  { color: #fbbf24; }
.console-output .log-error { color: #f87171; }
.console-output .log-chat  { color: #34d399; }

.console-input {
    background: #050508; color: #e5e7eb;
    border: 1px solid rgba(34,197,94,0.12); border-top: 1px solid rgba(255,255,255,0.04);
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem; padding: 0.65rem 1rem;
    border-radius: 0 0 var(--radius) var(--radius);
}
.console-input:focus { outline: none; box-shadow: none; border-color: rgba(34,197,94,0.28); }

.stat-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--radius); padding: 1rem 1.25rem; text-align: center;
}
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--accent-2); letter-spacing: -0.04em; }
.stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.09em; font-weight: 600; margin-top: 0.15rem; }

.power-btn {
    width: 44px; height: 44px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--card-border);
    transition: all 0.2s; background: var(--card-bg); color: var(--text-muted); cursor: pointer;
}
.power-btn:hover { transform: scale(1.05); }
.power-btn.btn-start  { border-color: rgba(52,211,153,0.28); color: #34d399; }
.power-btn.btn-start:hover  { background: rgba(52,211,153,0.1); box-shadow: 0 0 14px rgba(52,211,153,0.22); }
.power-btn.btn-stop   { border-color: rgba(248,113,113,0.28); color: #f87171; }
.power-btn.btn-stop:hover   { background: rgba(248,113,113,0.1); box-shadow: 0 0 14px rgba(248,113,113,0.22); }
.power-btn.btn-restart{ border-color: rgba(251,191,36,0.28);  color: #fbbf24; }
.power-btn.btn-restart:hover{ background: rgba(251,191,36,0.1); box-shadow: 0 0 14px rgba(251,191,36,0.22); }
.power-btn.btn-kill   { border-color: rgba(248,113,113,0.28); color: #f87171; }
.power-btn.btn-kill:hover   { background: rgba(248,113,113,0.14); }

.player-item, .file-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.5rem 0; border-bottom: 1px solid var(--card-border);
}

/* === Footer === */
footer {
    position: relative; z-index: 1;
    background: rgba(0,0,0,0.25);
    border-top: 1px solid var(--card-border);
    padding: 2rem 0;
    font-size: 0.8rem; color: var(--text-dim);
}
.footer-brand {
    font-weight: 800; letter-spacing: -0.04em;
    background: linear-gradient(135deg, #a5b4fc, #818cf8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    font-size: 0.95rem;
}

/* === Misc === */

hr { border-color: var(--card-border); opacity: 1; }
hr.border-secondary { border-color: var(--card-border) !important; }

.dropdown-menu {
    background: #111118;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
}
.dropdown-item { color: var(--text-muted); border-radius: 6px; margin: 0.1rem 0; }
.dropdown-item:hover { background: rgba(99,102,241,0.09); color: var(--text); }
.dropdown-divider { border-color: rgba(255,255,255,0.06); }

/* === Responsive === */
@media (max-width: 767.98px) {
    .hero-section { padding: 4rem 0 3rem; }
    .hero-section h1 { font-size: 2rem; }
    .hero-stats { max-width: 100%; padding: 0.9rem 1rem; margin-top: 2.5rem; }
    .hero-stat-value { font-size: 1.2rem; }
    .hero-stat-label { font-size: 0.6rem; }
    .hero-orb-1, .hero-orb-2, .hero-orb-3 { display: none; }
    .auth-container { margin: 2rem auto; padding: 1.75rem; }
    .dashboard-card, .server-card { padding: 1.1rem; }
    .server-card .d-flex.gap-2 { flex-direction: column; }
    .server-card .btn { width: 100%; }
    .pricing-card { padding: 1.5rem; }
    footer { padding: 1.5rem 0; }
    .navbar-brand { font-size: 0.95rem; }
}

@media (max-width: 575.98px) {
    .container { padding-left: 1rem; padding-right: 1rem; }
    .hero-section h1 { font-size: 1.7rem; }
    .hero-stats { padding: 0.75rem 0.5rem; }
    .hero-stats > div { padding: 0.2rem 0.3rem; }
    .hero-stat-value { font-size: 1.1rem; }
    .hero-stat-label { font-size: 0.58rem; letter-spacing: 0.04em; }
}

@media (pointer: coarse) {
    .btn { min-height: 44px; }
    .nav-link { padding: 0.75rem 1rem !important; }
    .form-control { min-height: 44px; }
}

/* === Modern Status Badges === */
.badge {
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
}
.badge.bg-success, .badge-success {
    background: rgba(52, 211, 153, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(52, 211, 153, 0.3) !important;
}
.badge.bg-danger, .badge-danger {
    background: rgba(248, 113, 113, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(248, 113, 113, 0.3) !important;
}
.badge.bg-warning, .badge-warning {
    background: rgba(251, 191, 36, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.3) !important;
}
.badge.bg-info, .badge-info {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
}
.badge.bg-primary, .badge-primary {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #818cf8 !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
}
.badge.bg-secondary, .badge-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* === Modals === */
.modal-content {
    background: #0e0e18 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    padding: 1.15rem 1.4rem;
}
.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    padding: 1rem 1.4rem;
}
.modal-backdrop.show {
    opacity: 0.75;
    backdrop-filter: blur(4px);
}

/* === Tables === */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    margin-bottom: 0;
}
.table > :not(caption) > * > * {
    background-color: transparent !important;
    border-bottom-color: var(--card-border) !important;
    padding: 0.85rem 0.95rem;
    vertical-align: middle;
}
.table-hover > tbody > tr:hover > * {
    background-color: rgba(255, 255, 255, 0.025) !important;
}

/* === Form Inputs === */
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--card-border) !important;
    color: var(--text) !important;
    border-radius: var(--radius-sm) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
    color: #fff !important;
}

/* === Toast Alerts === */
.toast-custom {
    background: rgba(14, 14, 24, 0.95);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    border-radius: var(--radius);
    padding: 0.85rem 1.15rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: var(--text);
}
