/* =============================================================================
   WZH CLOUD - App CSS
   Design System based on vorlage.html & componenten.html
   Font: Oxanium | Icons: FontAwesome 6
   ============================================================================= */

/* --- CSS VARIABLES --- */
:root {
    /* Colors */
    --bg-dark: #090a0c;
    --bg-panel: #131519;
    --bg-surface: #1c1f26;
    --bg-input: #1c1f26;

    --text-main: #ffffff;
    --text-muted: #8b9bb4;

    /* The "Venom" Green accent */
    --accent: #ccff00;
    --accent-glow: rgba(204, 255, 0, 0.4);

    --danger: #ff3333;
    --danger-glow: rgba(255, 51, 51, 0.4);

    --warning: #ffcc00;
    --success: #00ff99;

    /* UI Metrics */
    --radius: 4px;
    --border: 1px solid rgba(255, 255, 255, 0.1);
    --border-focus: 1px solid var(--accent);

    /* Layout */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --sidebar-width: 250px;
}

/* --- RESET --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Oxanium', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(204, 255, 0, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(204, 255, 0, 0.02) 0%, transparent 25%);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

h1 { font-size: clamp(2rem, 5vw, 4.5rem); margin-bottom: var(--spacing-sm); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: var(--spacing-sm); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p {
    color: var(--text-muted);
    font-weight: 400;
    max-width: 65ch;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover { opacity: 0.8; }

.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }

/* --- LAYOUT UTILITIES --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.grid { display: grid; gap: var(--spacing-md); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section { padding: var(--spacing-lg) 0; }

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    line-height: 1;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    clip-path: none;
    border-radius: var(--radius);
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-primary {
    background-color: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--accent-glow);
    color: #000;
    opacity: 1;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    opacity: 1;
}

.btn-danger {
    background-color: rgba(255, 51, 51, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-danger:hover {
    background-color: var(--danger);
    color: #fff;
    box-shadow: 0 0 15px var(--danger-glow);
    opacity: 1;
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- FORMS & INPUTS --- */
.input-group {
    margin-bottom: 1.25rem;
    width: 100%;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-surface);
    border: var(--border);
    color: var(--text-main);
    font-family: 'Oxanium', sans-serif;
    font-size: 0.95rem;
    border-radius: var(--radius);
    outline: none;
    transition: all 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.08);
}

input[readonly] {
    opacity: 0.6;
    cursor: default;
}

select option {
    background: var(--bg-surface);
}

/* Custom Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0.5rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: var(--accent);
    cursor: pointer;
    border-radius: 2px;
}

.checkbox-wrapper span,
.checkbox-wrapper label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    cursor: pointer;
    margin-bottom: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-surface);
    transition: .4s;
    border: var(--border);
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: rgba(204, 255, 0, 0.2);
    border-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: var(--accent);
}

/* Range Slider */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    margin-top: -9px;
    box-shadow: 0 0 10px var(--accent-glow);
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #333;
    border-radius: 2px;
}

input[type="range"]:focus { outline: none; }

/* --- CARDS --- */
.card {
    background: var(--bg-surface);
    border: var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(204, 255, 0, 0.2);
}

.card-panel {
    background: var(--bg-panel);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Stat Card */
.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-card .stat-icon {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.stat-val {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin: 0.4rem 0;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.stat-action {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.8rem;
}

/* Game card (landing) */
.game-card {
    background: var(--bg-panel);
    border: var(--border);
    padding: 2rem;
    border-radius: var(--radius);
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(204, 255, 0, 0.3);
}

.game-card:hover::before {
    transform: scaleX(1);
}

.game-card-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.4;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: none;
}

.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    max-width: 40ch;
    margin-left: auto;
    margin-right: auto;
}

/* --- NAVIGATION (Public) --- */
.main-nav {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 10, 12, 0.85);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-main);
    letter-spacing: -1px;
    text-decoration: none;
}

.logo:hover { opacity: 1; }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); opacity: 1; }

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

/* --- HERO SECTION --- */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bg-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content h1 {
    margin-bottom: 1.25rem;
}

.hero-content p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 50ch;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-trust {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    opacity: 0.7;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-trust-item i {
    color: var(--accent);
}

/* Terminal block */
.terminal-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.terminal-line-command { color: #fff; margin-bottom: 0.5rem; }
.terminal-line-success { color: var(--accent); }
.terminal-line-info { color: var(--text-muted); }
.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent);
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 4px;
}

/* --- CALCULATOR SECTION --- */
.calculator-panel {
    background: linear-gradient(145deg, var(--bg-panel), #16191e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 8px;
}

.calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.slider-container { margin: 1.5rem 0; }

.price-display {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.price-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.server-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item strong {
    display: block;
    color: var(--text-main);
    font-size: 1.1rem;
}

.stat-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Feature list */
.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '>';
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

/* --- BADGES --- */
.badge {
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    display: inline-block;
}

.badge-accent {
    color: var(--accent);
    border-color: rgba(204, 255, 0, 0.3);
    background: rgba(204, 255, 0, 0.05);
}

.badge-outline {
    color: var(--text-muted);
    border-color: rgba(255, 255, 255, 0.2);
}

.badge-danger {
    color: var(--danger);
    border-color: rgba(255, 51, 51, 0.3);
    background: rgba(255, 51, 51, 0.05);
}

.badge-success {
    color: var(--success);
    border-color: rgba(0, 255, 153, 0.3);
    background: rgba(0, 255, 153, 0.05);
}

.badge-warning {
    color: var(--warning);
    border-color: rgba(255, 204, 0, 0.3);
    background: rgba(255, 204, 0, 0.05);
}

/* --- ALERTS --- */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--text-muted);
    border-radius: 0 var(--radius) var(--radius) 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.alert i {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.alert-info {
    border-color: var(--accent);
    background: linear-gradient(90deg, rgba(204, 255, 0, 0.06) 0%, transparent 100%);
    color: var(--text-main);
}

.alert-info i { color: var(--accent); }

.alert-danger {
    border-color: var(--danger);
    background: linear-gradient(90deg, rgba(255, 51, 51, 0.06) 0%, transparent 100%);
    color: var(--text-main);
}

.alert-danger i { color: var(--danger); }

.alert-warning {
    border-color: var(--warning);
    background: linear-gradient(90deg, rgba(255, 204, 0, 0.06) 0%, transparent 100%);
    color: var(--text-main);
}

.alert-warning i { color: var(--warning); }

/* --- TABLE --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: var(--border);
    font-weight: 600;
}

td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
    color: var(--text-main);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* --- PROGRESS BAR --- */
.progress-wrapper { margin-bottom: 1rem; }

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    color: var(--text-muted);
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: var(--bg-surface);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px var(--accent-glow);
}

.progress-fill.danger {
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger-glow);
}

/* --- FOOTER (Public) --- */
.main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    background: #050607;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

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

.footer-links ul a:hover { color: var(--accent); opacity: 1; }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* =============================================================================
   AUTH LAYOUT
   ============================================================================= */

body.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    background-image:
        radial-gradient(circle at 20% 40%, rgba(204, 255, 0, 0.04) 0%, transparent 30%),
        radial-gradient(circle at 80% 60%, rgba(204, 255, 0, 0.02) 0%, transparent 30%);
}

body.auth-body .bg-grid {
    position: fixed;
    z-index: 0;
}

.auth-wrapper {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-logo {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--text-main);
    letter-spacing: -1px;
    margin-bottom: 2rem;
    text-decoration: none;
}

.auth-logo:hover { opacity: 1; }

.auth-card {
    width: 100%;
    background: var(--bg-panel);
    border: var(--border);
    border-radius: 8px;
    padding: 2.5rem;
}

.auth-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-card .auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    max-width: none;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-footer-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 0.8rem;
}

.auth-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-footer-links a:hover { color: var(--accent); opacity: 1; }

/* =============================================================================
   DASHBOARD LAYOUT
   ============================================================================= */

body.dashboard-body {
    background-image: none;
    display: block;
}

.sidebar {
    width: var(--sidebar-width);
    position: fixed;
    height: 100vh;
    border-right: var(--border);
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    z-index: 50;
    overflow-y: auto;
}

.sidebar-logo {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-main);
    letter-spacing: -1px;
    text-decoration: none;
    padding: 1.75rem 1.5rem 1.25rem;
    border-bottom: var(--border);
    display: block;
}

.sidebar-logo:hover { opacity: 1; }

.sidebar-nav {
    flex: 1;
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    border-radius: var(--radius);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sidebar-link i {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
}

.sidebar-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
    opacity: 1;
}

.sidebar-link.active {
    color: var(--accent);
    background: rgba(204, 255, 0, 0.06);
    border-left: 2px solid var(--accent);
}

.sidebar-bottom {
    padding: 1rem 0.75rem;
    border-top: var(--border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    background: rgba(204, 255, 0, 0.15);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    border: 1px solid rgba(204, 255, 0, 0.3);
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-balance {
    font-size: 0.75rem;
    color: var(--accent);
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Oxanium', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all 0.2s;
}

.sidebar-logout:hover {
    color: var(--danger);
    background: rgba(255, 51, 51, 0.06);
}

/* Mobile sidebar toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 60;
    background: var(--bg-panel);
    border: var(--border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.dashboard-main {
    margin-left: var(--sidebar-width);
    padding: 2.5rem 3rem;
    min-height: 100vh;
}

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

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

.dashboard-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    max-width: none;
}

.dashboard-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Server Card */
.server-card {
    background: var(--bg-surface);
    border: var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color 0.2s;
    margin-bottom: 1rem;
}

.server-card:hover {
    border-color: rgba(204, 255, 0, 0.15);
}

.server-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.server-card-icon {
    font-size: 1.75rem;
    color: var(--accent);
    width: 44px;
    text-align: center;
}

.server-card-info {
    flex: 1;
}

.server-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    margin-bottom: 0;
}

.server-card-domain {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Consolas', monospace;
}

.server-card-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.server-card-meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.meta-value {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 600;
}

.server-card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Legal / content pages */
.content-page {
    max-width: 800px;
    margin: 0 auto;
}

.content-page h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.content-page .content-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 3rem;
    max-width: none;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.content-section h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.content-section p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    max-width: none;
}

.content-section ul,
.content-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.content-section ul li,
.content-section ol li {
    margin-bottom: 0.4rem;
}

/* Quick actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

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

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

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 1024px) {
    .dashboard-main {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-links { display: none; }

    /* Hero */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Calculator */
    .calculator-panel { padding: 1.5rem; }
    .server-stats { flex-direction: column; gap: 1rem; }

    /* Sidebar */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: flex;
    }

    .dashboard-main {
        margin-left: 0;
        padding: 1.5rem 1.25rem;
        padding-top: 4rem;
    }

    /* Grid */
    .grid-2, .grid-3 { grid-template-columns: 1fr; }

    /* Auth */
    .auth-card { padding: 1.75rem; }

    /* Footer */
    .footer-links { flex-direction: column; gap: 2rem; }

    /* Dashboard header */
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Server card meta */
    .server-card-meta { gap: 1rem; }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; }
    .hero-trust { flex-direction: column; gap: 0.75rem; }
    .quick-actions { flex-direction: column; }
    .nav-actions .btn:first-child { display: none; }
}

/* =============================================================================
   CONSOLE / TERMINAL (from componenten.html)
   ============================================================================= */

.console-window {
    background: #000;
    border: 1px solid #333;
    border-radius: var(--radius);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875rem;
    height: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.console-header {
    background: #111;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
}

.console-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    color: #ccc;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.console-body::-webkit-scrollbar       { width: 4px; }
.console-body::-webkit-scrollbar-track { background: transparent; }
.console-body::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

.log-line { margin-bottom: 0.2rem; line-height: 1.5; }
.log-time { color: #555; margin-right: 0.5rem; }
.log-info { color: #4a9eff; }
.log-warn { color: var(--warning); }
.log-err  { color: var(--danger); }

.console-input-area {
    padding: 0.5rem 1rem;
    border-top: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.console-prompt { color: var(--accent); font-weight: bold; }

.console-input {
    background: transparent;
    border: none;
    color: #fff;
    flex: 1;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    padding: 0;
    width: auto;
}

/* =============================================================================
   MODAL (from componenten.html)
   ============================================================================= */

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-panel);
    border: 1px solid var(--accent);
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(204, 255, 0, 0.05);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.open .modal { transform: scale(1); }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: var(--border);
}

.modal-title { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; }

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover { color: var(--text-main); }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: var(--border);
}

/* =============================================================================
   TABS (from componenten.html)
   ============================================================================= */

.tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    gap: 0;
    overflow-x: auto;
}

.tab-item {
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
    background: none;
    font-family: 'Oxanium', sans-serif;
}

.tab-item:hover { color: var(--text-main); }
.tab-item.active { color: var(--accent); border-bottom-color: var(--accent); }

/* =============================================================================
   TOGGLE SWITCH - .slider alias (from componenten.html)
   ============================================================================= */

/* The componenten.html uses .slider class on the span inside .toggle-switch */
.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-surface);
    transition: .4s;
    border: var(--border);
    border-radius: 34px;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: rgba(204, 255, 0, 0.2);
    border-color: var(--accent);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(24px);
    background-color: var(--accent);
}

/* =============================================================================
   CUSTOM CHECKMARK (from componenten.html)
   ============================================================================= */

/* Alternative checkmark style used in componenten.html with hidden native checkbox */
.checkmark {
    width: 20px;
    height: 20px;
    background: var(--bg-surface);
    border: var(--border);
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.checkmark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: 2px solid #000;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
    display: none;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after { display: block; }

/* =============================================================================
   SPINNER (from componenten.html)
   ============================================================================= */

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

/* =============================================================================
   STAT TREND (from componenten.html)
   ============================================================================= */

.stat-trend {
    font-size: 0.8rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
}

.trend-up   { color: var(--success); }
.trend-down { color: var(--danger); }

/* =============================================================================
   ADMIN BADGE / SIDEBAR ADMIN LABEL
   ============================================================================= */

.admin-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid rgba(255, 51, 51, 0.3);
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--danger);
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* =============================================================================
   MOBILE NAV HAMBURGER
   ============================================================================= */

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 1rem 0;
    border-top: var(--border);
    gap: 0.25rem;
}

.nav-mobile a {
    display: block;
    padding: 0.75rem var(--spacing-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius);
    transition: color 0.2s, background 0.2s;
}

.nav-mobile a:hover { color: var(--accent); background: rgba(204, 255, 0, 0.04); }
.nav-mobile.open    { display: flex; }

/* Override for mobile */
@media (max-width: 768px) {
    .nav-hamburger { display: flex; }
}

/* =============================================================================
   DROPDOWN MENU
   ============================================================================= */

.dropdown { position: relative; display: inline-block; }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: var(--bg-panel);
    border: var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 500;
    display: none;
}

.dropdown-menu.open { display: block; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s, background 0.2s;
}

.dropdown-item:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.04); }

.dropdown-divider { height: 1px; background: rgba(255, 255, 255, 0.05); margin: 0.5rem 0; }

/* =============================================================================
   WALLET & BILLING
   ============================================================================= */

.wallet-balance  { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.wallet-currency { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

.topup-option {
    background: var(--bg-surface);
    border: var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
}

.topup-option:hover,
.topup-option.selected { border-color: var(--accent); background: rgba(204, 255, 0, 0.04); }

.topup-amount { font-size: 1.5rem; font-weight: 700; color: var(--text-main); }

/* =============================================================================
   PACKAGE SELECTION CARDS
   ============================================================================= */

.package-card {
    background: var(--bg-panel);
    border: var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    position: relative;
}

.package-card:hover    { border-color: rgba(204, 255, 0, 0.3); transform: translateY(-2px); }
.package-card.selected { border-color: var(--accent); background: rgba(204, 255, 0, 0.03); }

.package-card.popular::after {
    content: 'BELIEBT';
    position: absolute;
    top: -1px; right: 1rem;
    background: var(--accent);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    letter-spacing: 0.08em;
}

.package-name       { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.package-price      { font-size: 1.75rem; font-weight: 800; color: var(--accent); line-height: 1; }
.package-price-unit { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }
.package-specs      { margin-top: 1rem; padding-top: 1rem; border-top: var(--border); display: flex; flex-direction: column; gap: 0.4rem; }
.package-spec       { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); }
.package-spec strong { color: var(--text-main); font-weight: 600; }

/* =============================================================================
   CURSOR BLINK ANIMATION
   ============================================================================= */

.cursor-blink {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: var(--accent);
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 3px;
}

/* =============================================================================
   TABLE WRAPPER
   ============================================================================= */

.table-wrapper { overflow-x: auto; width: 100%; }

/* =============================================================================
   SIDEBAR NAV LABEL (section dividers)
   ============================================================================= */

.sidebar-nav-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    opacity: 0.5;
    padding: 1rem 0.75rem 0.25rem;
    display: block;
    font-weight: 600;
}

/* =============================================================================
   PAGINATION
   ============================================================================= */

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.6rem;
    font-family: 'Oxanium', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-surface);
    border: var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.pagination-btn:hover {
    color: var(--accent);
    border-color: rgba(204, 255, 0, 0.3);
    background: rgba(204, 255, 0, 0.04);
    opacity: 1;
}

.pagination-btn.active {
    background: rgba(204, 255, 0, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    cursor: default;
}

.pagination-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =============================================================================
   USER LINK HOVER (admin tables)
   ============================================================================= */

.user-link:hover {
    color: var(--accent) !important;
    opacity: 1;
}

/* =============================================================================
   ADMIN ALERT-SUCCESS (missing from main styles)
   ============================================================================= */

.alert-success {
    border-color: var(--success);
    background: linear-gradient(90deg, rgba(0, 255, 153, 0.06) 0%, transparent 100%);
    color: var(--text-main);
}

.alert-success i { color: var(--success); }

/* =============================================================================
   INPUT TYPE DATE STYLING
   ============================================================================= */

input[type="date"] {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-surface);
    border: var(--border);
    color: var(--text-main);
    font-family: 'Oxanium', sans-serif;
    font-size: 0.95rem;
    border-radius: var(--radius);
    outline: none;
    transition: all 0.2s;
    color-scheme: dark;
}

input[type="date"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.08);
}


