/* ====================================================
   TIGER AUTO ROBOT - PREMIUM CYBERPUNK ADMIN TERMINAL
   Clean, Responsive, Mobile & Desktop Adaptive Stylesheet
   ==================================================== */

:root {
    --bg-dark: #0A0407;
    --bg-surface: #12070D;
    --bg-card: #180B12;
    --bg-input: #1D0D17;
    --bg-hover: #27121F;

    /* High-Tech Cyberpunk Reddish Lighting Theme */
    --neon-red: #FF2247;
    --neon-red-bright: #FF4767;
    --neon-red-crimson: #D90B32;
    --neon-red-glow: rgba(255, 34, 71, 0.45);
    --neon-red-glow-subtle: rgba(255, 34, 71, 0.16);
    --neon-red-border: rgba(255, 34, 71, 0.32);

    /* Mapped legacy aliases to Red Lighting */
    --neon-yellow: #FF2247;
    --neon-yellow-bright: #FF4767;
    --neon-yellow-gold: #D90B32;
    --neon-yellow-glow: rgba(255, 34, 71, 0.45);
    --neon-yellow-glow-subtle: rgba(255, 34, 71, 0.16);
    --neon-yellow-border: rgba(255, 34, 71, 0.32);

    --neon-green: #00FF88;
    --neon-green-glow: rgba(0, 255, 136, 0.35);

    --text-primary: #FFFFFF;
    --text-secondary: #B5A2AB;
    --text-muted: #7A6771;
    --text-dark: #FFFFFF;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-card: rgba(255, 34, 71, 0.22);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;

    --font-heading: 'Orbitron', 'Rajdhani', sans-serif;
    --font-tech: 'Rajdhani', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea {
    background-color: transparent;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

button {
    cursor: pointer;
    background: transparent;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 12% 12%, rgba(255, 34, 71, 0.09) 0%, transparent 45%),
        radial-gradient(circle at 88% 88%, rgba(217, 11, 50, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 50% 0%, rgba(255, 34, 71, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ================= LOGIN SCREEN ================= */
.screen-container {
    width: 100%;
    min-height: 100vh;
}

#loginScreen {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: linear-gradient(180deg, #1C0B14 0%, #11060C 100%);
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85), 0 0 35px var(--neon-red-glow-subtle);
    width: 100%;
    max-width: 420px;
    padding: 36px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--neon-red), transparent);
    box-shadow: 0 0 12px var(--neon-red-glow);
}

.logo-wrapper {
    margin-bottom: 16px;
    display: inline-block;
}

.brand-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--neon-red);
    box-shadow: 0 0 24px var(--neon-red-glow);
    object-fit: cover;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--neon-red);
    text-shadow: 0 0 16px var(--neon-red-glow);
    margin-bottom: 4px;
}

.brand-subtitle {
    font-family: var(--font-tech);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 5px 14px;
    font-size: 12px;
    font-family: var(--font-tech);
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green-glow);
}

.status-dot.pulsing {
    background: var(--neon-yellow);
    box-shadow: 0 0 8px var(--neon-yellow-glow);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-family: var(--font-tech);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--neon-yellow);
    margin-bottom: 8px;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-lead-svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    stroke: var(--neon-yellow);
    opacity: 0.8;
    pointer-events: none;
}

.input-icon-wrapper input {
    padding-left: 44px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    background: var(--bg-input);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 12px 14px;
    transition: all 0.25s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--neon-yellow);
    box-shadow: 0 0 12px var(--neon-yellow-glow-subtle);
}

.input-readonly {
    background: rgba(0, 0, 0, 0.4) !important;
    color: var(--text-secondary) !important;
    border-color: var(--border-subtle) !important;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, var(--neon-red-bright) 0%, var(--neon-red-crimson) 100%);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1.5px;
    padding: 13px 20px;
    cursor: pointer;
    box-shadow: 0 4px 18px var(--neon-red-glow);
    transition: all 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 26px var(--neon-red-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.security-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 11px;
    font-family: var(--font-tech);
    letter-spacing: 1px;
    color: var(--text-muted);
}

.security-footer svg {
    stroke: var(--text-muted);
}

/* ================= DASHBOARD HEADER ================= */
.top-nav {
    background: linear-gradient(180deg, #1A0A13 0%, #0F050B 100%);
    border-bottom: 1.5px solid var(--border-card);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 34, 71, 0.08);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--neon-red);
    box-shadow: 0 0 14px var(--neon-red-glow);
    object-fit: cover;
}

.brand-text-group {
    display: flex;
    flex-direction: column;
}

.nav-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--neon-yellow);
}

.nav-badge {
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-sync-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 34, 71, 0.08);
    border: 1px solid var(--neon-red-border);
    border-radius: var(--radius-full);
    padding: 5px 12px;
    font-family: var(--font-tech);
    font-size: 12px;
    font-weight: 700;
    color: var(--neon-red);
}

.sync-countdown {
    background: var(--neon-red);
    color: #FFFFFF;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 900;
}

.domain-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-family: var(--font-tech);
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-outline {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 13px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline svg {
    stroke: var(--text-secondary);
    transition: stroke 0.2s ease;
}

.btn-outline:hover {
    border-color: var(--neon-red);
    color: var(--neon-red);
    background: rgba(255, 59, 59, 0.08);
}

.btn-outline:hover svg {
    stroke: var(--neon-red);
}

/* ================= NAVIGATION TABS ================= */
.nav-tabs-bar {
    background: rgba(18, 9, 14, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-card);
    display: flex;
    padding: 8px 24px;
    gap: 12px;
    position: sticky;
    top: 65px;
    z-index: 40;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    padding: 10px 18px;
    color: var(--text-secondary);
    font-family: var(--font-tech);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn svg {
    stroke: var(--text-secondary);
    transition: stroke 0.2s ease;
}

.tab-count-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
}

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

.tab-btn:hover svg {
    stroke: var(--text-primary);
}

.tab-btn.active {
    background: rgba(255, 34, 71, 0.12);
    border-color: var(--neon-red);
    color: var(--neon-red);
    box-shadow: 0 0 16px var(--neon-red-glow-subtle);
}

.tab-btn.active svg {
    stroke: var(--neon-red);
}

.tab-btn.active .tab-count-badge {
    background: var(--neon-red);
    color: #FFFFFF;
}

/* ================= MAIN CONTAINER ================= */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* ================= STATS GRID ================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(135deg, #1C0A14 0%, #10050C 100%);
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 34, 71, 0.05);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.stat-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-wrapper.yellow {
    background: rgba(255, 34, 71, 0.12);
    border: 1px solid var(--neon-red-border);
}
.stat-icon-wrapper.yellow svg { stroke: var(--neon-red); }

.stat-icon-wrapper.green {
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.35);
}
.stat-icon-wrapper.green svg { stroke: var(--neon-green); }

.stat-icon-wrapper.red {
    background: rgba(255, 59, 59, 0.12);
    border: 1px solid rgba(255, 59, 59, 0.35);
}
.stat-icon-wrapper.red svg { stroke: var(--neon-red); }

.stat-icon-wrapper.orange {
    background: rgba(255, 179, 0, 0.12);
    border: 1px solid rgba(255, 179, 0, 0.35);
}
.stat-icon-wrapper.orange svg { stroke: #FFB300; }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-family: var(--font-tech);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
}

.text-green { color: var(--neon-green) !important; text-shadow: 0 0 10px var(--neon-green-glow); }
.text-red { color: var(--neon-red) !important; text-shadow: 0 0 10px var(--neon-red-glow); }

/* ================= MANUAL BAN CARD ================= */
.manual-ban-card {
    background: linear-gradient(135deg, #1C171F 0%, #131018 100%);
    border: 1.5px solid rgba(255, 59, 59, 0.3);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    margin-bottom: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.manual-ban-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.manual-ban-header h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #FFAAAA;
}

.manual-ban-header p {
    font-size: 12px;
    color: var(--text-muted);
}

.ban-inputs-row {
    display: flex;
    gap: 10px;
}

.ban-inputs-row input {
    flex: 1;
}

.btn-ban-action {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FF4545 0%, #D80000 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 0 20px;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--neon-red-glow);
    white-space: nowrap;
    transition: all 0.25s ease;
}

.btn-ban-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--neon-red-glow);
}

/* ================= TABLE CARD ================= */
.table-card {
    background: #14080F;
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 34, 71, 0.06);
    overflow: hidden;
}

.card-toolbar {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.toolbar-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--neon-red);
}

.user-count-badge {
    background: rgba(255, 34, 71, 0.12);
    border: 1px solid var(--neon-red-border);
    color: var(--neon-red);
    border-radius: var(--radius-full);
    padding: 2px 10px;
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 700;
}

/* Filter Chips */
.filter-chips-group {
    display: flex;
    gap: 6px;
}

.filter-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: var(--font-tech);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    color: var(--text-primary);
}

.filter-chip.active {
    background: rgba(255, 34, 71, 0.16);
    border-color: var(--neon-red);
    color: var(--neon-red);
    box-shadow: 0 0 12px rgba(255, 34, 71, 0.3);
}

.toolbar-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 220px;
}

.search-lead-svg {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    stroke: var(--text-muted);
    pointer-events: none;
}

.search-box input {
    padding-left: 38px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 13px;
}

.btn-refresh {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-refresh svg {
    width: 18px;
    height: 18px;
    stroke: var(--neon-yellow);
    transition: transform 0.5s ease;
}

.btn-refresh:hover {
    border-color: var(--neon-yellow);
}

.btn-refresh:hover svg {
    transform: rotate(180deg);
}

/* ================= TABLE STYLING ================= */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.user-table th {
    background: rgba(14, 19, 28, 0.7);
    color: var(--text-secondary);
    font-family: var(--font-tech);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.user-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 13px;
    vertical-align: middle;
    white-space: nowrap;
}

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

.user-table tbody tr:hover {
    background-color: rgba(255, 230, 0, 0.02);
}

.text-right {
    text-align: right;
}

.empty-state {
    text-align: center !important;
    padding: 40px !important;
    color: var(--text-muted);
    font-family: var(--font-tech);
    font-size: 14px;
}

/* Status Badges */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-full);
    padding: 3px 10px;
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-pill.active {
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: var(--neon-green);
}

.status-pill.banned {
    background: rgba(255, 59, 59, 0.12);
    border: 1px solid rgba(255, 59, 59, 0.4);
    color: var(--neon-red);
}

/* Action Button Group */
.action-btn-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.table-action-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-tech);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.table-action-btn svg {
    width: 14px;
    height: 14px;
    stroke: var(--neon-yellow);
}

.table-action-btn:hover {
    border-color: var(--neon-yellow);
    background: var(--bg-hover);
}

.table-action-btn.ban:hover {
    border-color: var(--neon-red);
    color: var(--neon-red);
}
.table-action-btn.ban:hover svg { stroke: var(--neon-red); }

.table-action-btn.unban:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
}
.table-action-btn.unban:hover svg { stroke: var(--neon-green); }

.table-action-btn.change-pass {
    background: rgba(245, 208, 97, 0.08);
    border-color: rgba(245, 208, 97, 0.35);
    color: var(--neon-yellow);
    padding: 5px 12px;
}
.table-action-btn.change-pass:hover {
    background: rgba(245, 208, 97, 0.22);
    border-color: var(--neon-yellow);
    color: #FFF;
    box-shadow: 0 0 10px rgba(245, 208, 97, 0.25);
}

.table-action-btn.delete:hover {
    border-color: var(--neon-red);
    background: rgba(255, 59, 59, 0.15);
}
.table-action-btn.delete:hover svg { stroke: var(--neon-red); }

/* One-Click Copy Pill */
.copyable-pill {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.copyable-pill:hover {
    color: var(--neon-yellow);
}

/* ================= MODAL ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    background: linear-gradient(180deg, #1E0C16 0%, #12060D 100%);
    border: 1.5px solid var(--neon-red-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px var(--neon-red-glow-subtle);
    width: 100%;
    max-width: 460px;
    padding: 26px;
    position: relative;
    box-sizing: border-box;
    animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 14px;
}

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title-group h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--neon-red);
    margin: 0;
}

.btn-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.btn-close svg {
    stroke: currentColor;
}

.btn-close:hover {
    background: rgba(255, 59, 59, 0.2);
    border-color: var(--neon-red);
    color: var(--neon-red);
}

.modal-card .form-group {
    margin-bottom: 16px;
}

.modal-card input[type="text"],
.modal-card input[type="password"] {
    width: 100% !important;
    background: #1C0E17 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: var(--radius-md) !important;
    color: #FFFFFF !important;
    font-family: var(--font-body);
    font-size: 14px;
    padding: 12px 14px 12px 44px !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease;
}

.modal-card input[type="text"]:focus,
.modal-card input[type="password"]:focus {
    outline: none !important;
    border-color: var(--neon-red) !important;
    box-shadow: 0 0 14px var(--neon-red-glow-subtle) !important;
    background: #24121E !important;
}

.modal-card .input-readonly {
    background: rgba(0, 0, 0, 0.5) !important;
    color: var(--text-secondary) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-secondary {
    flex: 1;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-secondary) !important;
    font-family: var(--font-tech);
    font-size: 14px;
    font-weight: 700;
    padding: 12px !important;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
}

.modal-actions .btn-primary {
    flex: 2;
    padding: 12px 16px !important;
    border-radius: var(--radius-md) !important;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

/* ================= TOAST ================= */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #1E0C16 0%, #12060D 100%);
    border: 1.5px solid var(--neon-red);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--neon-red-glow-subtle);
    color: var(--text-primary);
    font-family: var(--font-tech);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 12px 20px;
    z-index: 110;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideUp 0.3s ease;
}

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

/* Password eye toggle wrapper */
.pass-wrapper {
    position: relative;
}
.pass-wrapper input {
    padding-right: 44px !important;
}
.btn-toggle-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s ease;
    z-index: 5;
}
.btn-toggle-eye:hover, .btn-toggle-eye:active {
    color: var(--neon-yellow);
}

/* In-Card Alert Box */
.login-alert-box {
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font-tech);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
}
.login-alert-box.error {
    background: rgba(255, 59, 59, 0.15);
    border: 1px solid var(--neon-red);
    color: #FFAAAA;
}
.login-alert-box.success {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid var(--neon-green);
    color: #AAFFAA;
}

#dashboardScreen {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-dark);
}

.hidden {
    display: none !important;
}

/* ================= RESPONSIVE STYLES (MOBILE) ================= */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .top-nav {
        padding: 10px 14px;
    }

    .nav-title {
        font-size: 15px;
    }

    .nav-tabs-bar {
        padding: 6px 14px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .main-container {
        padding: 14px;
        padding-bottom: 80px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 14px 16px;
    }

    .stat-value {
        font-size: 24px;
    }

    .card-toolbar {
        padding: 12px 14px;
    }

    .toolbar-controls {
        width: 100%;
        justify-content: space-between;
    }

    .search-box {
        width: 100%;
        min-width: 100%;
    }

    .ban-inputs-row {
        flex-direction: column;
    }

    .btn-ban-action {
        padding: 12px;
        justify-content: center;
    }
}

/* ====================================================
   SYSTEM MAINTENANCE MODE TOGGLE & BANNER
   ==================================================== */
.maintenance-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(29, 13, 23, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    transition: all 0.25s ease;
    user-select: none;
}

.maintenance-pill.active {
    background: rgba(255, 34, 71, 0.2);
    border-color: #FF2247;
    box-shadow: 0 0 16px rgba(255, 34, 71, 0.45);
}

.maint-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.25s ease;
}

.maintenance-pill.active .maint-icon-wrapper {
    color: #FF2247;
}

.maint-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.maint-title {
    font-family: var(--font-tech);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
}

.maint-badge {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
}

.maint-badge.off {
    color: #00FF88;
}

.maint-badge.on {
    color: #FF2247;
}

/* Cyberpunk Toggle Switch */
.maint-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
    margin-left: 2px;
}

.maint-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.maint-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #27121F;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.25s ease;
}

.maint-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: #A38E9B;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.maint-switch input:checked + .maint-slider {
    background-color: rgba(255, 34, 71, 0.25);
    border-color: #FF2247;
}

.maint-switch input:checked + .maint-slider:before {
    transform: translateX(18px);
    background-color: #FF2247;
    box-shadow: 0 0 8px #FF2247;
}

/* Maintenance Alert Banner */
.maintenance-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(90deg, rgba(255, 34, 71, 0.25) 0%, rgba(217, 11, 50, 0.2) 100%);
    border-bottom: 2px solid #FF2247;
    padding: 10px 24px;
    color: #FFCCD5;
    font-family: var(--font-body);
    font-size: 13px;
    box-shadow: 0 4px 16px rgba(255, 34, 71, 0.3);
    animation: pulseBannerGlow 3s infinite alternate;
}

@keyframes pulseBannerGlow {
    from { border-bottom-color: #FF2247; box-shadow: 0 4px 16px rgba(255, 34, 71, 0.2); }
    to { border-bottom-color: #FF4767; box-shadow: 0 4px 22px rgba(255, 71, 103, 0.45); }
}

.maint-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.maint-banner-pulsar {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FF2247;
    box-shadow: 0 0 10px #FF2247;
    animation: pulsarAnim 1.2s infinite;
}

@keyframes pulsarAnim {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.maint-banner-text strong {
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.btn-banner-maint-off {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FF2247;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-banner-maint-off:hover {
    background: #FF4767;
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(255, 71, 103, 0.7);
}

/* ====================================================
   TRICK CONTROL CARDS & SWITCHES
   ==================================================== */
.tricks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.trick-card {
    background: #140810;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.trick-card:hover {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.trick-card.inactive {
    opacity: 0.65;
    border-color: rgba(255, 34, 71, 0.2);
    background: #10060C;
}

.trick-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.trick-badge {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.trick-badge.blue {
    background: rgba(0, 229, 255, 0.15);
    color: #00E5FF;
    border-color: rgba(0, 229, 255, 0.3);
}

.trick-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 4px 0 6px 0;
}

.trick-desc {
    font-family: var(--font-body);
    font-size: 12px;
    color: #94A3B8;
    line-height: 1.4;
    margin-bottom: 14px;
    flex-grow: 1;
}

.trick-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.trick-status-badge {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.trick-status-badge.active {
    color: #00FF88;
}

.trick-status-badge.inactive {
    color: #FF3B3B;
}

.trick-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.trick-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.trick-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #27121F;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    transition: all 0.25s ease;
}

.trick-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2.5px;
    background-color: #94A3B8;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.trick-switch input:checked + .trick-slider {
    background-color: rgba(0, 255, 136, 0.25);
    border-color: #00FF88;
}

.trick-switch input:checked + .trick-slider:before {
    transform: translateX(20px);
    background-color: #00FF88;
    box-shadow: 0 0 10px #00FF88;
}

