@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* Deep Space Palette */
    --bg-dark: #020205;
    /* Deeper black */
    --bg-card: rgba(10, 10, 16, 0.6);
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);

    /* Neon Accents */
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;

    /* Gradients */
    --grad-main: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --grad-glow: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);

    /* Text */
    --text-main: #ffffff;
    --text-muted: #9ca3af;

    /* Glass & Borders */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    /* More subtle border */
    --glass-highlight: rgba(255, 255, 255, 0.15);

    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: white;
    font-weight: 700;
    letter-spacing: -0.03em;
    /* Tighter headings */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- BACKGROUNDS --- */
.bg-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 10% 10%, rgba(255, 255, 255, 0.8) 0%, transparent 100%),
        radial-gradient(1px 1px at 20% 80%, rgba(255, 255, 255, 0.6) 0%, transparent 100%),
        radial-gradient(2px 2px at 40% 40%, rgba(255, 255, 255, 1) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 70% 20%, rgba(255, 255, 255, 0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 90%, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
    background-size: 100vw 100vh;
    z-index: -2;
    opacity: 0.4;
}

.aurora-glow {
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.glow-top-left {
    top: -20%;
    left: -10%;
    animation: float 10s ease-in-out infinite;
}

.glow-bottom-right {
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    animation: float 14s ease-in-out infinite reverse;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    /* Sharper corners */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: white;
}

/* --- NAVBAR --- */
.navbar {
    padding: 24px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(2, 2, 5, 0.6);
    /* Darker blur */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 180px 20px 100px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    color: #60a5fa;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- CARDS (Features & Steps) --- */
.features-grid,
.steps-container {
    display: grid;
    gap: 30px;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.steps-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-tech {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Removed complex mask border to ensure stability */
.card-tech:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    background: rgba(20, 20, 30, 0.8);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #60a5fa;
    margin-bottom: 24px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.card-tech:hover .icon-box {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

/* --- STATS --- */
.stats-section {
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
}

.stat-item {
    text-align: center;
    border-right: 1px solid var(--glass-border);
}

.stat-item:last-child {
    border-right: none;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 5px;
}

/* --- FOOTER --- */
.landing-footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
    background: #010102;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-brand h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    transition: 0.2s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-badge {
        margin-bottom: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .stat-item {
        border-right: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .navbar {
        padding: 15px 0;
    }
}

/* --- AUTH PAGE OVERRIDES (Keep functional) --- */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: #0a0b10;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    z-index: 10;
}

.form-input {
    width: 100%;
    background: #030407;
    border: 1px solid var(--glass-border);
    padding: 14px;
    border-radius: 8px;
    color: white;
    margin-top: 5px;
}

.form-input:focus {
    border-color: var(--primary);
    outline: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

/* --- ADMIN PANEL OVERRIDES --- */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: radial-gradient(circle at top left, #1a1c2e, #020205);
    /* Richer background */
    color: var(--text-main);
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background: rgba(10, 11, 16, 0.7);
    /* Translucent */
    backdrop-filter: blur(20px);
    /* Glass effect */
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle border */
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 40px;
    padding-left: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.user-profile-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 20px 0 10px 10px;
}

.nav-item {
    padding: 14px 16px;
    border-radius: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 5px;
    cursor: pointer;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-item i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: translateX(4px);
}

.nav-item:hover i {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), transparent);
    color: white;
    border-left: 3px solid var(--primary);
    border-radius: 4px 12px 12px 4px;
    /* Unique shape */
}

.nav-item.active i {
    color: var(--primary);
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background-image:
        radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.08), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(139, 92, 246, 0.08), transparent 40%);
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
}

/* Premium Cards */
.card,
.dash-card {
    background: rgba(13, 14, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.dash-card:hover {
    box-shadow: 0 15px 50px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Data Tables - Floating Row Style */
.data-table,
.license-table {
    width: 100%;
    border-collapse: separate;
    /* Important for spacing */
    border-spacing: 0 8px;
    /* Vertical spacing between rows */
}

.data-table thead th,
.license-table thead th {
    text-align: left;
    padding: 0 20px 15px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    background: transparent !important;
}

.data-table tbody tr,
.license-table tbody tr {
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.data-table tbody tr:hover,
.license-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.005);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.data-table td,
.license-table td {
    padding: 18px 20px;
    border: none;
    /* No borders inside rows */
    color: #e2e8f0;
    font-size: 0.95rem;
    vertical-align: middle;
}

/* First and Last child border radius for floating effect */
.data-table tbody tr td:first-child,
.license-table tbody tr td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.data-table tbody tr td:last-child,
.license-table tbody tr td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* --- ACTION BUTTONS --- */
.action-buttons-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Button Variants */
.btn-add-key {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    color: #a5b4fc;
}

.btn-add-key:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.4));
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-clean-expired {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
    color: #fca5a5;
}

.btn-clean-expired:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(220, 38, 38, 0.4));
    color: white;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.btn-clean-all {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(234, 88, 12, 0.2));
    color: #fdba74;
}

.btn-clean-all:hover {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.4), rgba(234, 88, 12, 0.4));
    color: white;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

.btn-reset-hwid {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(8, 145, 178, 0.2));
    color: #a5f3fc;
}

.btn-reset-hwid:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(8, 145, 178, 0.4));
    color: white;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.btn-add-time {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    color: #6ee7b7;
}

.btn-add-time:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(5, 150, 105, 0.4));
    color: white;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.btn-freeze-all {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(202, 138, 4, 0.2));
    color: #fde047;
}

.btn-freeze-all:hover {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.4), rgba(202, 138, 4, 0.4));
    color: white;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.3);
}

.btn-refresh {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.btn-refresh:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- TABLE MINI BUTTONS --- */
.mini-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 6px;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mini-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.mini-btn-reset {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    color: #60a5fa;
}

.mini-btn-reset:hover {
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.mini-btn-ban {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    color: #fbbf24;
}

.mini-btn-ban:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.mini-btn-delete {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    color: #f87171;
}

.mini-btn-delete:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* --- MODAL OPTIMIZATION --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    /* Flex when active */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    background: #0f1116;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    will-change: transform;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

/* --- CUSTOM SELECT STYLE --- */
.input-group select {
    width: 100%;
    background: #030407;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 14px 14px 45px;
    /* Left padding for icon */
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    /* Remove default arrow */
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    transition: all 0.2s ease;
}

.input-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-group select option {
    background: #1a1c2e;
    color: white;
    padding: 10px;
}

.btn-freeze-all {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.2));
    color: #93c5fd;
}

.btn-freeze-all:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(37, 99, 235, 0.4));
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.btn-refresh {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-refresh:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- BADGES --- */
.status-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.status-unused {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.status-banned {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- MODALS --- */
/* --- MODALS --- */
.create-license-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.create-license-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #0f111a;
    /* Fallback */
    background: linear-gradient(135deg, #0f111a 0%, #171923 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 0;
    /* Remove default padding for structure */
    width: 90%;
    max-width: 500px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.create-license-modal.active .modal-content {
    transform: scale(1);
}

/* Modal Structure */
.modal-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.modal-body {
    padding: 24px;
}

/* Form Styles */
.form-row {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 8px;
}

/* Professional Input Styles */
.modal-input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 2;
}

.modal-content input:focus+.input-icon,
.modal-input-wrapper:focus-within .input-icon {
    color: var(--primary);
}

.form-input,
.modal-content select,
.modal-content textarea,
.modal-content input {
    background: rgba(2, 2, 5, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    padding: 14px 18px 14px 44px;
    /* Left padding for icon */
    width: 100%;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: #050710;
}

/* Button Group */
.form-buttons {
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cancel-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #cbd5e1;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.submit-btn {
    padding: 10px 24px;
    border-radius: 8px;
    background: var(--primary);
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    transition: all 0.2s;
}

.submit-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 10px -2px rgba(59, 130, 246, 0.4);
}

/* Time Inputs Layout */
.time-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.helper-text {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 6px;
    display: block;
}

/* License Counter */
.license-counter {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.license-counter span {
    color: #60a5fa;
    font-weight: 800;
}