/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
}

/* ==================== LOGIN PAGE ==================== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.login-box h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #00d9ff, #00ff88);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-box h2 {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 30px;
}

.login-box form input {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.login-box form input:focus {
    outline: none;
    border-color: #00d9ff;
    background: rgba(255, 255, 255, 0.15);
}

.login-box form input::placeholder {
    color: #888;
}

.login-box form button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, #00d9ff, #00ff88);
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.login-box form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.3);
}

.error {
    background: rgba(255, 77, 77, 0.2);
    border: 1px solid #ff4d4d;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: #ff4d4d;
}

/* ==================== ADMIN CONTAINER ==================== */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    width: 250px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    background: linear-gradient(45deg, #00d9ff, #00ff88);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar ul {
    list-style: none;
    padding: 20px 0;
}

.sidebar ul li a {
    display: block;
    padding: 15px 25px;
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar ul li a:hover,
.sidebar ul li.active a {
    background: rgba(255, 255, 255, 0.1);
    color: #00d9ff;
    border-left-color: #00d9ff;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.main-content h1 {
    font-size: 2rem;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #00d9ff, #00ff88);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-content h2 {
    font-size: 1.3rem;
    margin: 30px 0 15px;
    color: #aaa;
}

/* ==================== STATS GRID ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .stat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
    background: linear-gradient(45deg, #00d9ff, #00ff88);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.stat-card.green .stat-value {
    -webkit-text-fill-color: #00ff88;
}

.stat-card.blue .stat-value {
    -webkit-text-fill-color: #00d9ff;
}

.stat-card.orange .stat-value {
    -webkit-text-fill-color: #ff9f43;
}

.stat-card.purple .stat-value {
    -webkit-text-fill-color: #a55eea;
}

.stat-card.gold .stat-value {
    -webkit-text-fill-color: #ffd700;
}

.stat-card.red .stat-value {
    -webkit-text-fill-color: #ff4d4d;
}

/* ==================== TABLES ==================== */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
}

table thead {
    background: rgba(0, 217, 255, 0.2);
}

table th,
table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

table th {
    color: #00d9ff;
    font-weight: 600;
}

table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ==================== BADGES ==================== */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.green {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.badge.red {
    background: rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
}

.badge.orange {
    background: rgba(255, 159, 67, 0.2);
    color: #ff9f43;
}

.badge.grey {
    background: rgba(150, 150, 150, 0.2);
    color: #999;
}

.badge.blue {
    background: rgba(0, 217, 255, 0.2);
    color: #00d9ff;
}

/* ==================== BUTTONS ==================== */
.btn-small {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-small.green {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.btn-small.red {
    background: rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
}

.btn-small.blue {
    background: rgba(0, 217, 255, 0.2);
    color: #00d9ff;
}

.btn-small:hover {
    transform: scale(1.05);
}

.btn-primary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 10px;
    background: linear-gradient(45deg, #00d9ff, #00ff88);
    color: #1a1a2e;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.3);
}

.btn-primary.red {
    background: linear-gradient(45deg, #ff4d4d, #ff6b6b);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

/* ==================== SEARCH BOX ==================== */
.search-box {
    margin-bottom: 20px;
}

.search-box form {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-box input:focus {
    outline: none;
    border-color: #00d9ff;
}

.search-box button {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, #00d9ff, #00ff88);
    color: #1a1a2e;
    font-weight: bold;
    cursor: pointer;
}

/* ==================== LICENSE GRID ==================== */
.license-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.license-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.license-photo {
    height: 200px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.license-photo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.license-info {
    padding: 20px;
}

.license-info h3 {
    margin-bottom: 10px;
    color: #00d9ff;
}

.license-info p {
    color: #aaa;
    margin: 5px 0;
}

.license-actions {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.btn-approve {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, #00ff88, #00d9ff);
    color: #1a1a2e;
    font-weight: bold;
    cursor: pointer;
}

.btn-reject {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, #ff4d4d, #ff6b6b);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 60px;
    color: #666;
}

.empty-state span {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
}

/* ==================== FORMS ==================== */
.broadcast-form,
.block-form {
    max-width: 600px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d9ff;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ==================== MODAL ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #1a1a2e;
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #00d9ff;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.permissions-list {
    margin: 15px 0;
}

.permissions-list label {
    display: block;
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
}

.permissions-list input {
    width: auto;
    margin-right: 10px;
}

/* ==================== PAYMENT GRID ==================== */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.payment-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.payment-info {
    padding: 20px;
}

.payment-info h3 {
    color: #00d9ff;
}

.payment-info .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff88;
    margin: 10px 0;
}

.receipt-photo {
    height: 200px;
    background: rgba(0, 0, 0, 0.3);
}

.receipt-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-actions {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
}

/* ==================== PAYMENT CARD INFO ==================== */
.payment-card-info {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 217, 0, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 217, 0, 0.3);
}

.payment-card-info h3 {
    color: #ffd700;
    margin-bottom: 15px;
}

.payment-card-info .card-number {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 3px;
    color: #fff;
    margin-bottom: 15px;
}

/* ==================== ACTIONS BAR ==================== */
.actions-bar {
    margin-bottom: 20px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
        padding: 10px 0;
    }

    .sidebar .logo {
        font-size: 1rem;
        padding: 10px;
    }

    .sidebar ul li a {
        padding: 15px;
        text-align: center;
        font-size: 1.2rem;
    }

    .sidebar ul li a span {
        display: none;
    }

    .main-content {
        padding: 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== THEME OVERRIDES ==================== */
html {
    color-scheme: dark;
}

:root,
html[data-theme="dark"] {
    --bg-body:
        radial-gradient(circle at top, rgba(37, 99, 235, 0.18), transparent 32%),
        radial-gradient(circle at 85% 18%, rgba(20, 184, 166, 0.15), transparent 24%),
        linear-gradient(180deg, #081120 0%, #0b1424 48%, #101a2d 100%);
    --surface: rgba(14, 24, 43, 0.88);
    --surface-strong: #111b31;
    --surface-soft: rgba(18, 30, 53, 0.72);
    --surface-alt: rgba(25, 40, 68, 0.9);
    --surface-row: rgba(13, 23, 42, 0.72);
    --surface-row-hover: rgba(29, 46, 76, 0.9);
    --border: rgba(148, 163, 184, 0.18);
    --border-strong: rgba(125, 211, 252, 0.2);
    --text-primary: #e5edf9;
    --text-secondary: #c3d0e8;
    --text-muted: #8fa3c7;
    --heading: #f8fbff;
    --sidebar-text: #9db0d2;
    --sidebar-active-text: #f8fbff;
    --sidebar-hover-bg: rgba(96, 165, 250, 0.14);
    --accent: #38bdf8;
    --accent-strong: #0ea5e9;
    --accent-soft: rgba(56, 189, 248, 0.16);
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #2dd4bf 100%);
    --accent-contrast: #04121f;
    --success-bg: rgba(34, 197, 94, 0.16);
    --success-text: #86efac;
    --danger-bg: rgba(248, 113, 113, 0.16);
    --danger-text: #fca5a5;
    --warning-bg: rgba(251, 191, 36, 0.16);
    --warning-text: #fcd34d;
    --info-bg: rgba(59, 130, 246, 0.16);
    --info-text: #93c5fd;
    --muted-bg: rgba(148, 163, 184, 0.14);
    --muted-text: #cbd5e1;
    --input-bg: rgba(11, 20, 36, 0.86);
    --input-border: rgba(148, 163, 184, 0.18);
    --input-placeholder: #6f86ad;
    --shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
    --shadow-soft: 0 12px 28px rgba(2, 6, 23, 0.18);
}

html[data-theme="light"] {
    color-scheme: light;
    --bg-body:
        radial-gradient(circle at top, rgba(14, 165, 233, 0.12), transparent 30%),
        linear-gradient(180deg, #eef6ff 0%, #e6eef9 52%, #dfe8f5 100%);
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.82);
    --surface-alt: #f7fbff;
    --surface-row: rgba(248, 250, 252, 0.98);
    --surface-row-hover: rgba(239, 246, 255, 0.98);
    --border: rgba(148, 163, 184, 0.25);
    --border-strong: rgba(14, 165, 233, 0.22);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --heading: #0f172a;
    --sidebar-text: #475569;
    --sidebar-active-text: #0369a1;
    --sidebar-hover-bg: rgba(14, 165, 233, 0.1);
    --accent: #0284c7;
    --accent-strong: #0369a1;
    --accent-soft: rgba(14, 165, 233, 0.12);
    --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
    --accent-contrast: #ffffff;
    --success-bg: #dcfce7;
    --success-text: #15803d;
    --danger-bg: #fee2e2;
    --danger-text: #b91c1c;
    --warning-bg: #fef3c7;
    --warning-text: #c2410c;
    --info-bg: #dbeafe;
    --info-text: #1d4ed8;
    --muted-bg: #e2e8f0;
    --muted-text: #475569;
    --input-bg: rgba(255, 255, 255, 0.98);
    --input-border: rgba(148, 163, 184, 0.32);
    --input-placeholder: #94a3b8;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
}

body {
    background: var(--bg-body);
    color: var(--text-primary);
    transition: background 0.25s ease, color 0.25s ease;
}

a {
    color: inherit;
}

.admin-container,
.main-content,
.sidebar,
.login-box,
.stat-card,
table,
.license-card,
.payment-card,
.broadcast-form,
.block-form,
.modal-content,
.payment-card-info,
.card,
.settings-card {
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.login-box,
.stat-card,
table,
.license-card,
.payment-card,
.broadcast-form,
.block-form,
.modal-content,
.payment-card-info,
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.login-box {
    backdrop-filter: blur(18px);
}

.login-box h1,
.sidebar .logo {
    background: linear-gradient(135deg, var(--accent) 0%, #2dd4bf 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-box h2,
.stat-card .stat-label,
.license-info p,
.form-group label,
.main-content h2,
.empty-state,
.payment-info p {
    color: var(--text-muted);
}

.login-box form input,
.search-box input,
.form-group input,
.form-group select,
.form-group textarea,
.modal-content input,
.modal-content select,
.modal-content textarea {
    background: var(--input-bg);
    color: var(--text-primary);
    border: 1px solid var(--input-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.login-box form input::placeholder,
.search-box input::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder,
.modal-content input::placeholder,
.modal-content textarea::placeholder {
    color: var(--input-placeholder);
}

.login-box form input:focus,
.search-box input:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.sidebar {
    background: rgba(7, 14, 28, 0.75);
    border-right: 1px solid var(--border);
}

html[data-theme="light"] .sidebar {
    background: rgba(255, 255, 255, 0.78);
}

.sidebar ul li a {
    color: var(--sidebar-text);
    border-left-color: transparent;
    border-radius: 0 14px 14px 0;
    margin-right: 12px;
}

.sidebar ul li a:hover,
.sidebar ul li.active a {
    background: var(--sidebar-hover-bg);
    color: var(--sidebar-active-text);
    border-left-color: var(--accent);
}

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

.main-content h1 {
    margin-bottom: 26px;
    color: var(--heading);
    background: none;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: currentColor;
}

.main-content h2,
.license-info h3,
.payment-info h3,
.payment-card-info h3,
.modal-content h2 {
    color: var(--heading);
}

.stats-grid {
    gap: 18px;
}

.stat-card {
    border-radius: 18px;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.stat-card .stat-value {
    background: linear-gradient(135deg, var(--accent) 0%, #2dd4bf 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card.green .stat-value {
    -webkit-text-fill-color: var(--success-text);
}

.stat-card.blue .stat-value {
    -webkit-text-fill-color: var(--accent);
}

.stat-card.orange .stat-value {
    -webkit-text-fill-color: var(--warning-text);
}

.stat-card.purple .stat-value {
    -webkit-text-fill-color: #c084fc;
}

.stat-card.gold .stat-value {
    -webkit-text-fill-color: #facc15;
}

.stat-card.red .stat-value {
    -webkit-text-fill-color: var(--danger-text);
}

table {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

table thead {
    background: var(--surface-alt);
}

table th,
table td {
    border-bottom: 1px solid var(--border);
}

table th {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

table td {
    color: var(--text-primary);
    background: transparent;
}

table tbody tr {
    background: var(--surface-row);
}

table tbody tr:hover {
    background: var(--surface-row-hover);
}

.badge {
    border: 1px solid transparent;
}

.badge.green {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: rgba(34, 197, 94, 0.18);
}

.badge.red {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-color: rgba(248, 113, 113, 0.18);
}

.badge.orange {
    background: var(--warning-bg);
    color: var(--warning-text);
    border-color: rgba(251, 191, 36, 0.18);
}

.badge.grey {
    background: var(--muted-bg);
    color: var(--muted-text);
    border-color: var(--border);
}

.badge.blue {
    background: var(--info-bg);
    color: var(--info-text);
    border-color: rgba(59, 130, 246, 0.18);
}

.btn-primary,
.search-box button,
.login-box form button,
.btn-approve,
.btn-reject {
    background: var(--accent-gradient);
    color: var(--accent-contrast);
    box-shadow: 0 14px 26px rgba(14, 165, 233, 0.22);
}

.btn-primary:hover,
.search-box button:hover,
.login-box form button:hover,
.btn-approve:hover,
.btn-reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(14, 165, 233, 0.28);
}

.btn-primary.red,
.btn-reject {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: #fff;
}

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

.btn-small {
    font-weight: 600;
    border: 1px solid transparent;
}

.btn-small.green {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: rgba(34, 197, 94, 0.18);
}

.btn-small.red {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-color: rgba(248, 113, 113, 0.18);
}

.btn-small.blue {
    background: var(--info-bg);
    color: var(--info-text);
    border-color: rgba(59, 130, 246, 0.18);
}

.btn-small.orange {
    background: var(--warning-bg);
    color: var(--warning-text);
    border-color: rgba(251, 191, 36, 0.18);
}

.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(2, 6, 23, 0.12);
}

.license-photo,
.receipt-photo {
    background: var(--surface-soft);
}

.license-actions,
.payment-actions {
    background: rgba(2, 6, 23, 0.16);
    border-top: 1px solid var(--border);
}

.payment-card-info {
    background: rgba(14, 165, 233, 0.12);
    border-color: var(--border-strong);
}

.payment-card-info .card-number {
    color: var(--heading);
}

.modal {
    background: rgba(2, 6, 23, 0.68);
}

.modal-content {
    background: var(--surface-strong);
}

.permissions-list label {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.search-box form,
.actions-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.flash-messages {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 500;
}

.alert-success {
    background: var(--success-bg);
    border-color: rgba(34, 197, 94, 0.2);
    color: var(--success-text);
}

.alert-danger {
    background: var(--danger-bg);
    border-color: rgba(248, 113, 113, 0.2);
    color: var(--danger-text);
}

.card {
    padding: 24px;
    border-radius: 18px;
}

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

.theme-toggle-wrap {
    padding: 0 20px 10px;
}

.theme-toggle {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
}

.theme-toggle:hover {
    background: var(--sidebar-hover-bg);
}

.theme-toggle .theme-toggle-text {
    font-size: 0.92rem;
}

@media (max-width: 768px) {
    .theme-toggle-wrap {
        padding: 0 10px 10px;
    }

    .theme-toggle .theme-toggle-text {
        display: none;
    }
}
