/* ==========================================
   NOX-ROOT — AGGRESSIVE CYBERPUNK HACKER UI
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800&family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg-primary: #05070d;
    --bg-secondary: #0b0f17;
    --bg-card: #0f141f;
    --bg-glass: #0f141f;
    --bg-log: #000000;
    --accent: #00ff88;
    --accent-2: #00e0ff;
    --accent-3: #00ff88;
    --accent-light: #33ffaa;
    --accent-dark: #00cc6a;
    --orange: #00ff88;
    --orange-light: #33ffaa;
    --orange-dark: #00cc6a;
    --text-primary: #d0d0d0;
    --text-secondary: #a0a0a0;
    --text-muted: #6c757d;
    --border: rgba(0, 255, 136, 0.2);
    --shadow: 0 0 20px rgba(0, 255, 136, 0.1);
    --success: #00ff88;
    --danger: #ff004c;
    --warning: #ffa502;
    --radius: 10px;
    --radius-sm: 8px;
    --font-heading: 'Orbitron', 'Rajdhani', sans-serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

:root[data-theme="light"] {
    --bg-primary: #f0fdf4;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-glass: #ecfdf5;
    --orange: #16a34a;
    --orange-light: #22c55e;
    --orange-dark: #15803d;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: rgba(15, 23, 42, 0.08);
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    background-image: linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 255, 136, 0.02) 1px, transparent 1px);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 255, 136, 0.06), transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.app-shell, .content-area, .auth-shell { position: relative; z-index: 1; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    letter-spacing: 0.02em;
}
h1, h2, h3, h4, h5, h6, p, label, span, td, th, li, a {
    color: var(--text-primary);
}
.app-header .app-brand-name,
.content-area h4, .content-area h5, .content-area .fw-bold {
    font-family: var(--font-heading);
}
/* Subtle glitch on main content titles */
.content-area .glass-card h5 {
    animation: glitch-subtle 6s ease-in-out infinite;
}
@keyframes glitch-subtle {
    0%, 96%, 100% { text-shadow: 0 0 0 transparent; }
    97% { text-shadow: -1px 0 0 rgba(255,0,76,0.3), 1px 0 0 rgba(0,224,255,0.3); }
    98% { text-shadow: 0 0 0 transparent; }
    99% { text-shadow: 1px 0 0 rgba(0,255,136,0.2); }
}

label,
.form-label,
.form-check-label {
    color: var(--text-secondary);
}

code {
    color: var(--orange-light);
}

small {
    color: var(--text-muted);
}

/* ==========================================
   Scrollbar Styling
   ========================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: rgba(0, 255, 136, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 255, 136, 0.5); }

/* ==========================================
   Sidebar Layout
   ========================================== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.2s ease;
}

.sidebar-brand {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.sidebar-brand h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-nav {
    list-style: none;
    padding: 0 1rem;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.2s ease, color 0.2s ease;
    font-weight: 500;
}

.sidebar-nav a:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.sidebar-nav a.active {
    background: rgba(59, 130, 246, 0.18);
    color: var(--orange-light);
    border-left: 4px solid var(--orange);
    padding-left: calc(1rem - 4px);
}

.sidebar-nav i {
    width: 20px;
    text-align: center;
}

.main-content {
    margin-left: 240px;
    flex: 1;
    padding: 2.5rem 3rem;
    width: calc(100% - 240px);
}

.content-area {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================
   Top Bar
   ========================================== */
.topbar {
    background: transparent;
    padding: 0 0 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.topbar-left h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.balance-badge {
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 1px solid var(--border);
    font-weight: 600;
}

.balance-badge .amount {
    color: var(--orange);
}

/* ==========================================
   Cards & Glassmorphism
   ========================================== */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 6px 18px var(--shadow);
    transition: box-shadow 0.2s ease;
}

.glass-card:hover {
    box-shadow: 0 10px 22px var(--shadow);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--orange);
}

.stat-card .icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-card.orange .icon {
    background: rgba(34, 197, 94, 0.18);
    color: var(--orange);
}

.stat-card.success .icon {
    background: rgba(34, 197, 94, 0.16);
    color: var(--success);
}

.stat-card.warning .icon {
    background: rgba(34, 197, 94, 0.16);
    color: var(--warning);
}

.stat-card .label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ==========================================
   Forms
   ========================================== */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-control,
.form-select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.9375rem;
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-card);
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    color: var(--text-primary);
    outline: none;
}

.form-control::placeholder {
    color: rgba(178, 189, 214, 0.9);
}

.form-check-input {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.form-check-input:checked {
    background-color: var(--orange);
    border-color: var(--orange);
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.9375rem;
}

.btn-orange {
    background: var(--orange);
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-orange:hover {
    background: var(--orange-dark);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
    color: white;
}

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

.btn-outline-orange:hover {
    background: var(--orange);
    color: white;
}

.btn-glass {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-glass:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

/* ==========================================
   Tables
   ========================================== */
.table-responsive {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
}

.modern-table {
    width: 100%;
    margin: 0;
}

.modern-table thead {
    background: var(--bg-glass);
}

.modern-table th {
    padding: 1rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.modern-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.modern-table tbody tr {
    transition: background 0.2s ease;
}

.modern-table tbody tr:hover {
    background: var(--bg-secondary);
}

/* ==========================================
   Badges
   ========================================== */
.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-orange {
    background: var(--orange);
    color: white;
}

.bg-orange {
    background-color: var(--orange) !important;
    color: #fff;
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-danger {
    background: var(--danger);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: white;
}

.badge-glass {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

/* ==========================================
   Alerts
   ========================================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

/* ==========================================
   Login Page
   ========================================== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(59, 130, 246, 0.1) 50%, var(--bg-secondary) 100%);
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80"><circle cx="40" cy="40" r="3" fill="rgba(59,130,246,0.1)"/></svg>') repeat;
    pointer-events: none;
}

.login-container {
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 20px 40px var(--shadow);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-logo p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.login-divider span {
    position: relative;
    background: var(--bg-card);
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.4s ease;
}

/* ==========================================
   Mobile Menu Toggle
   ========================================== */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: var(--orange);
    color: white;
    border: none;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--shadow);
    transition: all 0.3s ease;
    min-width: 50px;
}

.mobile-menu-toggle:hover {
    background: var(--orange-dark);
    transform: scale(1.05);
}

.mobile-menu-toggle i {
    font-size: 1.4rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        max-height: 100vh;
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem 1rem;
        padding-top: 4.5rem;
    }

    .topbar {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
        padding: 1rem;
        flex-wrap: wrap;
    }

    .topbar h1 {
        font-size: 1.5rem;
        flex: 1;
    }

    .topbar-right {
        gap: 0.75rem;
    }

    /* Stats grid - 2 columns on tablet */
    .grid-2, .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-card .value {
        font-size: 1.75rem;
    }

    /* Glass card - more breathing room */
    .glass-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Table as cards on mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: -0.5rem;
        padding: 0.5rem;
    }

    .modern-table {
        font-size: 0.85rem;
    }

    .modern-table th,
    .modern-table td {
        padding: 0.875rem 0.75rem;
        white-space: nowrap;
    }

    /* Form responsive */
    .row.g-3 {
        gap: 1rem !important;
    }

    .col-md-6, .col-md-12 {
        width: 100% !important;
    }

    /* Button sizing - more tap area */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px;
    }

    .btn-sm {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
        min-height: 38px;
    }

    /* Login/Register card */
    .login-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .login-card h1 {
        font-size: 1.75rem;
    }

    /* Alert more breathing room */
    .alert {
        font-size: 0.9rem;
        padding: 1rem;
        margin-bottom: 1.25rem;
    }

    /* Badge larger for readability */
    .badge {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Domain list - card style */
    .site-list-item {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    .site-list-item h5 {
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
    }

    .site-list-item small {
        display: block;
        margin-bottom: 0.5rem;
    }

    /* Sidebar navigation more spacing */
    .sidebar-nav li {
        margin-bottom: 0.5rem;
    }

    .sidebar-nav a {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 0.875rem;
        padding-top: 4rem;
    }

    .topbar {
        padding: 1rem 0.875rem;
        gap: 0.75rem;
    }

    .topbar h1 {
        font-size: 1.35rem;
    }

    /* Stats - single column, more breathing room */
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .glass-card {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .stat-card {
        padding: 1.5rem;
        text-align: center;
    }

    .stat-card .value {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .stat-card .label {
        font-size: 0.9rem;
    }

    /* Button group full width */
    .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .btn-group .btn {
        width: 100%;
    }

    /* Table mobile card view */
    .table-responsive {
        overflow: visible;
    }

    .modern-table {
        display: block;
        border: none;
    }

    .modern-table thead {
        display: none;
    }

    .modern-table tbody {
        display: block;
    }

    .modern-table tr {
        display: block;
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .modern-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        border: none;
        border-bottom: 1px solid var(--border);
    }

    .modern-table td:last-child {
        border-bottom: none;
    }

    .modern-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
        margin-right: 1rem;
    }

    /* Login card */
    .login-card {
        padding: 1.75rem;
        margin: 1rem;
    }

    .login-card h1 {
        font-size: 1.65rem;
    }

    /* Form inputs - larger for mobile */
    .form-control, .form-select {
        padding: 0.875rem;
        font-size: 1rem;
        border-radius: 10px;
    }

    /* Labels more readable */
    .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    /* Site list - card view */
    .site-list-item {
        padding: 1.25rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }

    .site-list-item h5 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .site-list-item small {
        font-size: 0.85rem;
        line-height: 1.6;
        display: block;
        margin-bottom: 0.5rem;
    }

    /* Buttons more spacing */
    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 10px;
    }

    .btn-sm {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* Sidebar more compact but readable */
    .sidebar-brand h2 {
        font-size: 1.5rem;
    }

    .sidebar-nav a {
        padding: 1.125rem 1.5rem;
        font-size: 1rem;
    }

    /* Alert more spacing */
    .alert {
        padding: 1.125rem;
        margin-bottom: 1.5rem;
        border-radius: 10px;
    }

    /* Badge more visible */
    .badge {
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
    }
}

/* ==========================================
   Utilities
   ========================================== */
.text-orange {
    color: var(--orange);
}

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

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

.table,
.table td,
.table th,
.modern-table td,
.modern-table th {
    color: var(--text-primary);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.fw-medium { font-weight: 500; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-100 { width: 100%; }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.75rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.75rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

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

.icon-button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.icon-button:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.profile-dropdown .dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px var(--shadow);
}

.profile-dropdown .dropdown-item {
    color: var(--text-secondary);
}

.profile-dropdown .dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.nav-tabs {
    border-bottom: 1px solid var(--border);
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.nav-tabs .nav-link:hover {
    color: var(--text-primary);
    border-color: var(--border);
}

.nav-tabs .nav-link.active {
    color: var(--text-primary);
    background: var(--bg-card);
    border-color: var(--border) var(--border) transparent;
}

.dropdown-divider {
    border-top: 1px solid var(--border);
}

.table {
    color: var(--text-primary);
}

.profile-button {
    border-radius: 999px;
    padding: 0.35rem 0.75rem 0.35rem 0.4rem;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.profile-button .user-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
}


/* =========================================================
   Panel Dark Theme (Aurora Glass)
   - New layout classes: app-*
   - Old panel styles become irrelevant
   ========================================================= */

:root {
    --font-sans: 'Inter', 'Poppins', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
    --bg-primary: #0f1117;
    --bg-secondary: #161922;
    --bg-card: #1a1d25;
    --bg-glass: #1a1d25;
    --accent: #00ff88;
    --accent-2: #00c8ff;
    --accent-3: #00ff88;
    --text-primary: #e6e6e6;
    --text-secondary: #b8b8b8;
    --text-muted: #888;
    --border: rgba(0, 255, 136, 0.15);
    --shadow: 0 0 15px rgba(0, 255, 136, 0.08);
    --success: #00ff88;
    --danger: #ff4757;
    --warning: #ffa502;
    --orange: var(--accent);
    --orange-light: #33ffaa;
    --orange-dark: #00cc6a;
}

:root[data-theme="light"] {
    --bg-primary: #f0fdf4;
    --bg-secondary: rgba(2, 6, 23, 0.04);
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-glass: rgba(255, 255, 255, 0.55);
    --accent: #16a34a;
    --accent-2: #22c55e;
    --accent-3: #15803d;
    --text-primary: #0b1220;
    --text-secondary: rgba(15, 23, 42, 0.78);
    --text-muted: rgba(30, 41, 59, 0.62);
    --border: rgba(2, 6, 23, 0.10);
    --shadow: rgba(2, 6, 23, 0.12);

    --orange: var(--accent);
    --orange-light: #22c55e;
    --orange-dark: #15803d;
}

/* New app shell */
.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin: 1.25rem 1.25rem 0;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px var(--shadow);
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

/* Logo: sadece yazı, kutu/ikon yok */
.app-brand-mark {
    width: 4px;
    height: 28px;
    border-radius: 2px;
    background: var(--accent);
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
}

/* Giriş sayfası logo: sade kutu + N (Nox-Root) */
.ppcx-sigil {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    position: relative;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.35);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.12);
}
.ppcx-sigil::before {
    content: none;
}
.ppcx-sigil::after {
    content: 'N';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.04em;
    color: var(--accent);
}

.app-brand-name {
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.app-header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

.app-navlink {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}

.app-navlink:hover {
    background: rgba(34, 197, 94, 0.12);
    color: var(--text-primary);
}

.app-navlink.active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(74, 222, 128, 0.14));
    color: var(--text-primary);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

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

.app-iconbtn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.2s ease;
}

.app-iconbtn:hover {
    background: rgba(34, 197, 94, 0.12);
    transform: translateY(-1px);
}

.app-profile {
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
}

.app-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
}

.app-main {
    flex: 1;
    padding: 1.25rem;
}

.app-pagehead {
    margin: 1.25rem 1.25rem 0;
    padding: 0.25rem 0.25rem 0.75rem;
}

.app-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.content-area {
    max-width: 1200px;
    margin: 0 auto;
}

/* Dashboard: üst nav gizle (içerikteki butonlar yeterli) */
.app-shell--dashboard .app-header-nav {
    display: none !important;
}
.app-shell--dashboard .app-pagehead {
    display: none;
}

/* Drawer (mobile) */
.app-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 320px;
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    border-right: 1px solid var(--border);
    z-index: 1100;
    transform: translateX(-110%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.app-drawer.active {
    transform: translateX(0);
}

.app-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.app-drawer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.app-drawer-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.app-drawer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-secondary);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    font-weight: 700;
}

.app-drawer-link:hover {
    color: var(--text-primary);
    background: rgba(34, 197, 94, 0.12);
}

.app-drawer-link.active {
    color: var(--text-primary);
    border-color: rgba(34, 197, 94, 0.22);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.20), rgba(74, 222, 128, 0.12));
}

/* Mobile toggle button (keep id/class from template) */
.mobile-menu-toggle {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 1200;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    color: var(--text-primary);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 26px var(--shadow);
}

@media (min-width: 992px) {
    .mobile-menu-toggle { display: none; }
}

/* Modernize cards while keeping old class names */
.glass-card,
.stat-card,
.table-responsive {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 18px 40px var(--shadow);
}

.stat-card::before {
    height: 6px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.stat-card .value {
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* Forms / buttons */
.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(34, 197, 94, 0.60);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.20);
    outline: none;
}

.btn-orange {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    border: none;
    box-shadow: 0 14px 30px rgba(34, 197, 94, 0.22);
}

.btn-outline-orange {
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: var(--text-primary);
    background: transparent;
}

.btn-outline-orange:hover {
    background: rgba(34, 197, 94, 0.12);
    color: var(--text-primary);
}

/* Auth pages still supported (we'll also add auth-shell in markup next) */
.login-page {
    background:
        radial-gradient(1100px 760px at 15% 10%, rgba(34, 197, 94, 0.26), transparent 55%),
        radial-gradient(1000px 700px at 85% 15%, rgba(74, 222, 128, 0.18), transparent 55%),
        var(--bg-primary);
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 28px 70px var(--shadow);
}

/* Auth shell (new markup in login/register) */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

.auth-aside {
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-aside::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 700px at 30% 20%, rgba(34, 197, 94, 0.34), transparent 55%),
        radial-gradient(800px 600px at 70% 70%, rgba(74, 222, 128, 0.22), transparent 60%),
        radial-gradient(700px 520px at 60% 10%, rgba(34, 197, 94, 0.18), transparent 60%);
    filter: blur(0px);
    opacity: 0.9;
}

.auth-aside-inner {
    position: relative;
    width: min(520px, 100%);
    padding: 2rem 2rem 2.25rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 90px var(--shadow);
}

:root[data-theme="light"] .auth-aside-inner {
    background: rgba(255, 255, 255, 0.55);
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-heading {
    margin: 1.25rem 0 0.5rem;
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.auth-subtitle {
    margin: 0 0 1.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.6;
}

.auth-points {
    display: grid;
    gap: 0.75rem;
}

.auth-point {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-weight: 700;
}

.auth-point .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
    flex: 0 0 auto;
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.auth-main .login-page {
    width: 100%;
    background: transparent;
}
.auth-main .login-page::before {
    display: none;
}

.auth-main .login-container {
    max-width: 520px;
}

/* Giriş sayfası sadece form (sol panel yok) */
.auth-shell--login-only {
    grid-template-columns: 1fr;
    background: var(--bg-primary);
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    place-items: center;
}
.auth-shell--login-only .auth-main {
    overflow: auto;
}
.auth-shell--login-only .auth-main {
    width: 100%;
    max-width: 100%;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.auth-shell--login-only .auth-main .login-page {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}
.auth-shell--login-only .auth-main .login-container {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

/* ===== Giriş sayfası - Nox-Root kalite (tipografi, kart, form) ===== */
.auth-shell {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.auth-heading {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: var(--text-primary);
}
.auth-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}
.auth-point {
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 12px;
}
.auth-badge {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

/* Login kart - daha sade, okunaklı */
.auth-main .login-card {
    padding: 2.5rem 2.25rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.auth-main .login-logo {
    margin-bottom: 1.75rem;
}
.auth-main .login-logo h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}
.auth-main .login-logo p {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}
.auth-main .ppcx-sigil {
    width: 64px;
    height: 64px;
    margin-bottom: 0.5rem;
}

/* Form - daha büyük dokunma alanı, net kenarlar */
.auth-main .login-form .form-group {
    margin-bottom: 1.25rem;
}
.auth-main .login-form .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}
.auth-main .login-form .form-control {
    padding: 0.875rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}
.auth-main .login-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
.auth-main .login-form .btn {
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
}
.auth-main .login-form .btn-orange {
    padding: 0.9375rem;
}
.auth-main .login-divider {
    margin: 1.25rem 0;
}
.auth-main .login-divider span {
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Sol panel gradient - hafif, profesyonel */
.auth-aside::before {
    opacity: 0.7;
    background:
        radial-gradient(880px 600px at 25% 25%, rgba(34, 197, 94, 0.12), transparent 55%),
        radial-gradient(600px 500px at 75% 70%, rgba(74, 222, 128, 0.08), transparent 55%);
}
.auth-aside-inner {
    border-radius: 20px;
    padding: 2rem 2rem 2rem;
}

@media (max-width: 992px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .auth-aside {
        padding: 2rem 1.25rem 0;
    }
    .auth-main {
        padding: 1.25rem;
    }
}

/* ===== Dashboard - Nox-Root kalite (Ana Sayfa) ===== */
.content-area {
    padding: 0 1.5rem 2rem;
}
.app-pagehead {
    display: none;
}
.app-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

/* Kartlar - sade, okunaklı */
.content-area .glass-card {
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px var(--shadow);
}
.content-area .glass-card h5 {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}
.content-area .glass-card h5 i {
    margin-right: 0.5rem;
    opacity: 0.9;
}
.content-area .section-heading {
    color: var(--text-primary);
}
.content-area .section-heading i {
    margin-right: 0.5rem;
    color: var(--text-muted);
}
/* Toplam Kasa: yeşil ağırlığı azaltıldı */
.card-kasa {
    background: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.card-kasa-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--text-muted);
}
.card-kasa-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}
/* İkincil buton: yeşil değil, nötr */
.btn-soft {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
}
.btn-soft:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--text-primary) !important;
}
.btn-soft.btn-cta {
    border-color: rgba(0, 255, 136, 0.25);
    color: var(--accent);
}
.btn-soft.btn-cta:hover {
    background: rgba(0, 255, 136, 0.08) !important;
    border-color: rgba(0, 255, 136, 0.4) !important;
    color: var(--accent) !important;
}

/* İstatistik kartları */
.content-area .grid-3 {
    gap: 1.25rem;
}
.content-area .stat-card {
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 255, 136, 0.2);
    background: var(--bg-card);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.content-area .stat-card:hover {
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.35);
}
.content-area .stat-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}
.content-area .stat-card .label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}
.content-area .stat-card .value {
    font-family: var(--font-mono);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

/* Tablo */
.content-area .table-responsive {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.content-area .modern-table th {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 1rem 1.25rem;
    color: var(--text-muted);
}
.content-area .modern-table td {
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
}
.content-area .modern-table tbody tr:hover {
    background: var(--bg-secondary);
}

/* Toplam Kasa kutusu - tutarlı stil */
.content-area .glass-card .btn {
    font-weight: 600;
    font-size: 0.9375rem;
}

/* ==========================================
   NOX-ROOT UI — Live Log Terminal (visual only)
   ========================================== */
.live-log-panel {
    background: #000;
    border: 1px solid rgba(0, 255, 136, 0.35);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.15), inset 0 0 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin: 1.5rem 0;
    animation: terminal-flicker 4s ease-in-out infinite;
}
@keyframes terminal-flicker {
    0%, 90%, 100% { opacity: 1; }
    92% { opacity: 0.98; }
    94% { opacity: 1; }
    96% { opacity: 0.99; }
}
.live-log-panel .live-log-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.live-log-panel .live-log-header .terminal-dots {
    display: flex;
    gap: 6px;
}
.live-log-panel .live-log-header .terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.live-log-panel .live-log-header .terminal-dots .dot-red { background: #ff5f56; }
.live-log-panel .live-log-header .terminal-dots .dot-yellow { background: #ffbd2e; }
.live-log-panel .live-log-header .terminal-dots .dot-green { background: #27c93f; }
.live-log-panel .live-log-header .terminal-title {
    margin-left: 8px;
    flex: 1;
    text-align: center;
}
.live-log-panel .live-log-body {
    padding: 1rem 1.25rem;
    max-height: 280px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.8;
    color: #00ff88;
    background: #000;
}
.live-log-panel .live-log-body .log-line {
    margin-bottom: 0.2rem;
}
.live-log-panel .live-log-body .log-cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: #00ff88;
    animation: blink 0.8s step-end infinite;
    vertical-align: text-bottom;
    box-shadow: 0 0 8px #00ff88;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* ==========================================
   NOX-ROOT UI — Progress Bar (weaponized)
   ========================================== */
.progress-bar-modern {
    margin: 1.25rem 0;
}
.progress-bar-modern .progress-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.progress-bar-modern .progress-track {
    height: 28px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.25);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
}
.progress-bar-modern .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88 0%, #00e0ff 100%);
    border-radius: 3px;
    transition: width 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #05070d;
    font-family: var(--font-mono);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.progress-bar-modern .progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: repeating-linear-gradient(90deg, transparent, transparent 8px, rgba(255,255,255,0.08) 8px, rgba(255,255,255,0.08) 12px);
    animation: progress-stripes 0.6s linear infinite;
}
@keyframes progress-stripes {
    0% { transform: translateX(0); }
    100% { transform: translateX(12px); }
}

/* ==========================================
   NOX-ROOT UI — Cyber Stat Cards
   ========================================== */
.stat-card-modern {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.stat-card-modern:hover {
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.2), 0 0 50px rgba(0, 255, 136, 0.08);
    border-color: rgba(0, 255, 136, 0.45);
}
.stat-card-modern .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(0, 255, 136, 0.2);
}
.stat-card-modern .stat-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    animation: stat-flicker 3s ease-in-out infinite;
}
@keyframes stat-flicker {
    0%, 95%, 100% { opacity: 1; }
    97% { opacity: 0.92; }
    98% { opacity: 1; }
}
.stat-card-modern .stat-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.35rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ==========================================
   NOX-ROOT UI — File Browse Button
   ========================================== */
.file-input-wrapper {
    position: relative;
    margin: 1rem 0;
}
.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.file-input-styled {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: box-shadow 0.2s ease, background 0.2s ease;
}
.file-input-styled:hover {
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.35);
    background: rgba(0, 255, 136, 0.06);
    animation: file-shake 0.4s ease;
}
@keyframes file-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}
.file-input-styled i {
    font-size: 1rem;
}
.file-input-filename {
    font-size: 0.8125rem;
    color: #00ff88;
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

/* ==========================================
   NOX-ROOT UI — Checkbox
   ========================================== */
.checkbox-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    background: var(--bg-secondary);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.checkbox-modern:hover {
    border-color: rgba(0, 255, 136, 0.4);
}
.checkbox-modern input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
    border-radius: 4px;
}
.checkbox-modern input:checked {
    animation: checkbox-glow 0.35s ease;
}
@keyframes checkbox-glow {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}
.checkbox-modern input:checked + label {
    color: var(--accent);
}
.checkbox-modern label {
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin: 0;
}
.checkbox-group {
    padding: 1.25rem;
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    background: var(--bg-card);
}

/* ==========================================
   NOX-ROOT UI — Combobox / Select
   ========================================== */
.select-modern,
.content-area select.form-select,
.content-area select.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #0f141f !important;
    border: 1px solid rgba(0, 255, 136, 0.25) !important;
    border-radius: 6px;
    color: var(--text-primary) !important;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300ff88' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    padding-right: 2.5rem !important;
}
.select-modern:hover,
.select-modern:focus,
.content-area select.form-select:hover,
.content-area select.form-select:focus {
    border-color: rgba(0, 255, 136, 0.5) !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
    outline: none;
}

/* ==========================================
   NOX-ROOT UI — Buttons
   ========================================== */
.btn-primary-modern {
    background: var(--accent) !important;
    color: #05070d !important;
    border: none !important;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.35);
}
.btn-primary-modern:hover {
    box-shadow: 0 0 35px rgba(0, 255, 136, 0.5) !important;
    transform: scale(1.05);
}
.btn-secondary-modern {
    background: transparent !important;
    color: var(--accent) !important;
    border: 1px solid var(--accent) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.btn-secondary-modern:hover {
    background: rgba(0, 255, 136, 0.12) !important;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.25);
}
.btn-orange,
.btn-primary-modern {
    background: var(--accent) !important;
    color: #05070d !important;
    border: none !important;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.35);
}
.btn-orange:hover,
.btn-primary-modern:hover {
    box-shadow: 0 0 35px rgba(0, 255, 136, 0.5) !important;
    transform: scale(1.05);
}
.btn-outline-orange,
.btn-glass {
    background: transparent !important;
    border: 1px solid var(--accent) !important;
    color: var(--accent) !important;
}
.btn-outline-orange:hover,
.btn-glass:hover {
    background: rgba(0, 255, 136, 0.12) !important;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}
.btn-danger {
    background: #ff004c !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 0 15px rgba(255, 0, 76, 0.4);
    transition: box-shadow 0.2s ease;
}
.btn-danger:hover {
    box-shadow: 0 0 25px rgba(255, 0, 76, 0.6) !important;
}

/* ==========================================
   NOX-ROOT UI — Header (sticky, minimal)
   ========================================== */
.app-header {
    background: var(--bg-card) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}
.app-header .app-brand,
.app-header .app-navlink.active {
    color: var(--accent) !important;
}
.app-header .app-navlink:hover {
    color: var(--accent) !important;
    background: rgba(0, 255, 136, 0.08) !important;
}

/* ==========================================
   NOX-ROOT UI — Cards global glow
   ========================================== */
.glass-card {
    border-radius: 8px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 255, 136, 0.2) !important;
    border: 1px solid rgba(0, 255, 136, 0.2) !important;
    background: var(--bg-card) !important;
    padding: 1.5rem 1.75rem !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.glass-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 25px rgba(0, 255, 136, 0.12) !important;
}

/* ==========================================
   NOX-ROOT UI — Micro animations
   ========================================== */
.fade-in {
    animation: fadeIn 0.35s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.slide-in {
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==========================================
   Kullanıcı Yönetimi — Cyber table
   ========================================== */
.user-mgmt-card {
    padding: 1.75rem 2rem !important;
}
.user-mgmt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}
.user-mgmt-header .section-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}
.badge-cyber {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 136, 0.25);
    background: transparent;
    color: rgba(0, 255, 136, 0.9);
}
.badge-cyber.badge-success {
    border-color: rgba(0, 255, 136, 0.35);
    color: #00ff88;
}
.badge-cyber.badge-danger {
    border-color: rgba(255, 0, 76, 0.35);
    background: transparent;
    color: #ff004c;
}
.badge-cyber.badge-warning {
    border-color: rgba(255, 165, 2, 0.4);
    background: transparent;
    color: #ffa502;
}
.badge-cyber.badge-admin {
    border-color: rgba(0, 224, 255, 0.35);
    background: transparent;
    color: #00e0ff;
}
.badge-cyber.badge-unlimited {
    border-color: rgba(0, 255, 136, 0.3);
    color: #00ff88;
}
.user-mgmt-table-wrap {
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.15);
    overflow: hidden;
}
.user-mgmt-table thead {
    background: #0b0f17;
    border-bottom: 1px solid rgba(0, 255, 136, 0.25);
}
.user-mgmt-table th {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 1rem 1.25rem;
    border: none;
}
.user-mgmt-table tbody tr {
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    transition: background 0.2s ease;
}
.user-mgmt-table tbody tr:hover {
    background: rgba(0, 255, 136, 0.03);
}
.user-mgmt-table tbody tr:last-child {
    border-bottom: none;
}
.user-mgmt-table td {
    padding: 1.25rem 1.25rem;
    vertical-align: middle;
    font-size: 0.9rem;
}
.user-mgmt-card .user-name {
    font-weight: 600;
    color: var(--text-primary);
}
.user-mgmt-card .user-email {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Root-style: role badges */
.badge-role {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.badge-role.badge-admin {
    background: linear-gradient(135deg, #c9a227 0%, #a88420 100%);
    color: #1a1a1a;
    box-shadow: 0 0 12px rgba(201, 162, 39, 0.35);
}
.badge-role.badge-admin i {
    font-size: 0.6rem;
}
.badge-role.badge-member {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
/* Status badges */
.badge-status {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.22rem 0.5rem;
    border-radius: 4px;
    border: none;
}
.badge-status.badge-active {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}
.badge-status.badge-passive {
    background: rgba(255, 0, 76, 0.2);
    color: #ff004c;
}
.badge-status.badge-approved {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}
.badge-status.badge-pending {
    background: rgba(255, 165, 2, 0.2);
    color: #ffa502;
}
/* Root-style table columns */
.user-mgmt-table-root .col-name .user-name { font-weight: 600; }
.user-mgmt-table-root .col-email .user-email { cursor: default; }
.user-mgmt-table-root .col-limit {
    white-space: nowrap;
}
.user-mgmt-table-root .limit-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
    margin-right: 0.35rem;
}
.user-mgmt-table-root .input-tiny {
    width: 48px;
    padding: 0.25rem 0.35rem;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    background: rgba(11, 15, 23, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-primary);
    text-align: center;
}
.user-mgmt-table-root .input-tiny:focus {
    outline: none;
    border-color: rgba(0, 255, 136, 0.4);
}
.badge-unlimited-tag {
    font-size: 0.75rem;
    color: #00ff88;
    margin-right: 0.25rem;
    font-weight: 700;
}
/* Icon buttons (Root SEO style) */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
    margin: 0 0.15rem;
}
.btn-icon i { font-size: 0.8rem; }
.btn-icon:hover:not(:disabled) {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}
.btn-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-icon-save { color: rgba(0, 255, 136, 0.8); }
.btn-icon-save:hover:not(:disabled) { background: rgba(0, 255, 136, 0.15); color: #00ff88; }
.btn-icon-unlimited {
    color: rgba(0, 255, 136, 0.9);
}
.btn-icon-unlimited:hover:not(:disabled) {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
}
.btn-icon-secondary:hover:not(:disabled) { color: var(--text-secondary); background: rgba(255,255,255,0.06); }
.btn-icon-action { color: rgba(0, 224, 255, 0.85); }
.btn-icon-action:hover:not(:disabled) { color: #00e0ff; background: rgba(0, 224, 255, 0.1); }
.btn-icon-disabled {
    color: var(--text-muted);
    cursor: default;
    opacity: 0.6;
}
.user-mgmt-table-root .col-actions {
    white-space: nowrap;
}
.user-mgmt-table-root .col-actions form {
    margin: 0;
    display: inline;
}
.user-mgmt-card .col-site-count,
.user-mgmt-card .site-count-cell {
    font-family: var(--font-mono);
}
.user-mgmt-card .site-count-value {
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.35);
}
.user-mgmt-card .site-count-max {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 0.15rem;
}
.btn-cyber-outline {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: var(--text-secondary) !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease !important;
}
.btn-cyber-outline:hover:not(:disabled) {
    border-color: rgba(0, 255, 136, 0.35) !important;
    color: #00ff88 !important;
    background: rgba(0, 255, 136, 0.04) !important;
}
.btn-cyber-outline:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
@media (max-width: 992px) {
    .user-mgmt-table th,
    .user-mgmt-table td { padding: 0.875rem 0.75rem; font-size: 0.85rem; }
    .user-mgmt-card .limit-form .input-cyber { width: 64px; }
}
@media (max-width: 768px) {
    .user-mgmt-card { padding: 1.25rem 1rem !important; }
    .user-mgmt-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .user-mgmt-table .table-actions-vertical { align-items: stretch; }
    .user-mgmt-card .limit-buttons { flex-direction: column; align-items: flex-start; }
}

/* ==========================================
   NOX-ROOT UI — Mobile (stack, full-width, no h-scroll)
   ========================================== */
@media (max-width: 768px) {
    .live-log-panel .live-log-body { max-height: 180px; }
    .live-log-panel { margin: 1rem 0; }
    .stat-card-modern { margin-bottom: 1rem; }
    .file-input-styled { width: 100%; justify-content: center; min-height: 48px; }
    .btn, .btn-primary-modern, .btn-secondary-modern, .btn-orange, .btn-glass { width: 100%; min-height: 48px; justify-content: center; }
    .content-area { padding: 1rem 1rem 1.5rem; max-width: 100%; overflow-x: hidden; }
    .glass-card { padding: 1.25rem 1rem !important; }
    .progress-bar-modern .progress-track { height: 26px; }
}

