/* 
 * RMS v5 — 2026 Premium Enterprise Dashboard
 * Every page has unique visual identity
 * Full mobile responsive
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════ */
:root {
    --accent: #6c5ce7;
    --accent-hover: #5a4bd1;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.35);
    --accent-gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --accent-gradient-2: linear-gradient(135deg, #6c5ce7 0%, #00cec9 100%);

    --success: #00b894;
    --success-bg: rgba(0, 184, 148, 0.12);
    --danger: #ff6b6b;
    --danger-bg: rgba(255, 107, 107, 0.12);
    --warning: #fdcb6e;
    --warning-bg: rgba(253, 203, 110, 0.12);
    --info: #0984e3;
    --info-bg: rgba(9, 132, 227, 0.12);

    --bg-body: #0a0a1a;
    --bg-sidebar: linear-gradient(160deg, #0f0c29 0%, #1a1145 40%, #120e2e 100%);
    --bg-surface: rgba(255, 255, 255, 0.04);
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-input: rgba(255, 255, 255, 0.06);
    --bg-header: rgba(10, 10, 26, 0.7);
    
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --border-accent: rgba(108, 92, 231, 0.3);

    --text-1: #ffffff;
    --text-2: #b8b8d0;
    --text-3: #6e6e8a;
    --text-4: #4a4a60;

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-sidebar: 4px 0 32px rgba(0, 0, 0, 0.3);
    --shadow-btn: 0 2px 8px rgba(108, 92, 231, 0.3);
    --shadow-btn-hover: 0 6px 20px rgba(108, 92, 231, 0.4);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode */
body:not(.dark) {
    --bg-body: #f4f6fa;
    --bg-sidebar: linear-gradient(180deg, #6c5ce7 0%, #4834d4 100%);
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fc;
    --bg-input: #f0f2f7;
    --bg-header: rgba(244, 246, 250, 0.8);
    --border: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.12);
    --border-accent: rgba(108, 92, 231, 0.2);
    --text-1: #1a1a2e;
    --text-2: #4a4a6a;
    --text-3: #8888a8;
    --text-4: #b0b0c8;
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-sidebar: 4px 0 24px rgba(108, 92, 231, 0.15);
    --shadow-btn: 0 2px 8px rgba(108, 92, 231, 0.2);
    --shadow-btn-hover: 0 6px 20px rgba(108, 92, 231, 0.3);
}

/* Light mode sidebar */
body:not(.dark) .sidebar { color: #ffffff; }
body:not(.dark) .sidebar-header h2 { -webkit-text-fill-color: #ffffff; color: #ffffff; }
body:not(.dark) .sidebar-header i { -webkit-text-fill-color: rgba(255,255,255,0.95); color: rgba(255,255,255,0.95); }
body:not(.dark) .sidebar-menu a { color: rgba(255,255,255,0.75); }
body:not(.dark) .sidebar-menu a i { color: rgba(255,255,255,0.6); }
body:not(.dark) .sidebar-menu a:hover { color: #ffffff; background: rgba(255,255,255,0.15); transform: translateX(4px); }
body:not(.dark) .sidebar-menu a:hover i { color: #ffffff; }
body:not(.dark) .sidebar-menu a.active { color: #ffffff; background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.25); }
body:not(.dark) .sidebar-menu a.active::before { background: #ffffff; box-shadow: 0 0 12px rgba(255,255,255,0.5); }
body:not(.dark) .sidebar-menu a.active i { color: #ffffff; filter: drop-shadow(0 0 6px rgba(255,255,255,0.4)); }
body:not(.dark) .sidebar-divider { border-color: rgba(255,255,255,0.15); }

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

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-2);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 0.9375rem;
    overflow-x: hidden;
}

.dark body, body.dark {
    background: var(--bg-body);
}

/* Subtle ambient glow on dark mode */
body.dark::before {
    content: '';
    position: fixed;
    top: 0; left: 270px; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(108, 92, 231, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(0, 206, 201, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-light); }

h1, h2, h3, h4, h5, h6 {
    color: var(--text-1);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

/* ═══════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.login-container {
    max-width: 420px;
    margin: 0 auto;
    margin-top: 12vh;
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-card), 0 0 80px rgba(108, 92, 231, 0.08);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

.dark .login-container {
    background: rgba(26, 26, 62, 0.6);
    border: 1px solid rgba(108, 92, 231, 0.15);
}

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

.login-logo i {
    font-size: 2.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    display: block;
}

.login-logo h2 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.25rem;
}

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

/* ═══════════════════════════════════════════
   DASHBOARD LAYOUT
   ═══════════════════════════════════════════ */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* ═══════════════════════════════════════════
   SIDEBAR — Premium gradient panel
   ═══════════════════════════════════════════ */
.sidebar {
    width: 270px;
    background: var(--bg-sidebar);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    border-right: 1px solid rgba(99, 102, 241, 0.1);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 200px;
    background: radial-gradient(ellipse at 30% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.12);
    position: relative;
    z-index: 1;
}

.sidebar-header i {
    font-size: 1.6rem;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.75rem;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.sidebar-menu {
    list-style: none;
    padding: 0.75rem 0.65rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.sidebar-menu li { margin-bottom: 3px; }

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.72rem 1rem;
    color: rgba(165, 180, 252, 0.6);
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.sidebar-menu a:hover {
    color: #e0e7ff;
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(4px);
}

.sidebar-menu a:hover i {
    color: #818cf8;
    transform: scale(1.1);
}

.sidebar-menu a.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(129, 140, 248, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.sidebar-menu a.active::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 60%;
    background: linear-gradient(180deg, #818cf8, #6366f1);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

.sidebar-menu a.active i {
    color: #818cf8;
    filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.4));
}

.sidebar-menu a i {
    margin-right: 0.85rem;
    width: 1.25rem;
    text-align: center;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    color: rgba(165, 180, 252, 0.45);
}

/* ═══════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════ */
.main-content {
    flex: 1;
    margin-left: 270px;
    min-height: 100vh;
    padding: 1.5rem 2rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeUp 0.35s ease; }

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

/* ═══════════════════════════════════════════
   HEADER — Glass top bar with gradient line
   ═══════════════════════════════════════════ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    background: var(--accent-gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body:not(.dark) .header h1 {
    background: none;
    -webkit-text-fill-color: var(--text-1);
    color: var(--text-1);
}

/* ═══════════════════════════════════════════
   STAT CARDS — Dashboard hero with colored top bars
   ═══════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--radius) var(--radius) 0 0;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 100px; height: 100px;
    border-radius: 50%;
    opacity: 0.04;
    transition: all 0.4s ease;
}

.stat-card:nth-child(1)::before { background: var(--accent-gradient); }
.stat-card:nth-child(1)::after { background: var(--accent); }
.stat-card:nth-child(2)::before { background: linear-gradient(90deg, #00b894, #55efc4); }
.stat-card:nth-child(2)::after { background: #00b894; }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, #ff6b6b, #ee5a24); }
.stat-card:nth-child(3)::after { background: #ff6b6b; }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, #0984e3, #74b9ff); }
.stat-card:nth-child(4)::after { background: #0984e3; }
.stat-card:nth-child(5)::before { background: linear-gradient(90deg, #fdcb6e, #e17055); }
.stat-card:nth-child(5)::after { background: #fdcb6e; }

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

.stat-card:hover::after {
    opacity: 0.08;
    transform: scale(1.5);
}

.stat-icon {
    width: 3.25rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.stat-icon.primary { background: rgba(108, 92, 231, 0.12); color: var(--accent-light); }
.stat-icon.success { background: var(--success-bg); color: var(--success); }
.stat-icon.danger { background: var(--danger-bg); color: var(--danger); }
.stat-icon.warning { background: var(--warning-bg); color: var(--warning); }
.stat-icon.info { background: var(--info-bg); color: var(--info); }

.stat-info { flex: 1; }

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.375rem;
}

.stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════
   CARDS — Glass morphism with top accent line
   ═══════════════════════════════════════════ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    margin-bottom: 1.5rem;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: var(--transition);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.25), transparent);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(108, 92, 231, 0.02);
}

.card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.card-header h3 i {
    color: var(--accent-light);
    font-size: 0.95rem;
    opacity: 0.8;
}

.card-body { padding: 1.5rem; }

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════
   TABLES — Premium rows with hover glow
   ═══════════════════════════════════════════ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    padding: 0.875rem 1.25rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-3);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
    background: rgba(108, 92, 231, 0.03);
    position: sticky;
    top: 0;
}

td {
    padding: 0.875rem 1.25rem;
    font-size: 0.8125rem;
    color: var(--text-1);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

tr:hover td {
    background: rgba(108, 92, 231, 0.04);
}

/* ═══════════════════════════════════════════
   BADGES — Pill with soft glow
   ═══════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    gap: 0.35rem;
}

.badge-success, .badge.Active {
    background: var(--success-bg);
    color: var(--success);
    box-shadow: 0 0 12px rgba(0, 184, 148, 0.12);
}

.badge-danger, .badge.Expired {
    background: var(--danger-bg);
    color: var(--danger);
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.12);
}

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

.badge-info, .badge-primary {
    background: rgba(108, 92, 231, 0.12);
    color: var(--accent-light);
}

/* ═══════════════════════════════════════════
   FORMS — Premium floating inputs
   ═══════════════════════════════════════════ */
.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-2);
    font-size: 0.8125rem;
    letter-spacing: -0.01em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--bg-input);
    color: var(--text-1);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.2s ease;
    line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow), 0 4px 16px rgba(108, 92, 231, 0.12);
    background: rgba(108, 92, 231, 0.03);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-4);
}

/* ═══════════════════════════════════════════
   BUTTONS — Gradient with lift
   ═══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8125rem;
    font-family: inherit;
    gap: 0.5rem;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.btn i { font-size: 0.875rem; }

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
    filter: brightness(1.1);
}

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

.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: var(--text-1);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #00b894, #55efc4);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 184, 148, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
    filter: brightness(1.1);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    filter: brightness(1.1);
}

.btn-warning {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    color: white;
    box-shadow: 0 2px 8px rgba(253, 203, 110, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 203, 110, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #0984e3, #74b9ff);
    color: white;
    box-shadow: 0 2px 8px rgba(9, 132, 227, 0.3);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 132, 227, 0.4);
    filter: brightness(1.1);
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    border-radius: 8px;
}

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

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

/* ═══════════════════════════════════════════
   ALERTS — Left border accent
   ═══════════════════════════════════════════ */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
    border-left: 4px solid;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(8px);
}

.alert-danger {
    background: var(--danger-bg);
    border-left-color: var(--danger);
    color: var(--danger);
}

.alert-success {
    background: var(--success-bg);
    border-left-color: var(--success);
    color: var(--success);
}

.alert-warning {
    background: var(--warning-bg);
    border-left-color: var(--warning);
    color: var(--warning);
}

.alert-info {
    background: var(--info-bg);
    border-left-color: var(--info);
    color: var(--info);
}

/* ═══════════════════════════════════════════
   SEARCH BOX
   ═══════════════════════════════════════════ */
.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.search-box input {
    padding-left: 2.75rem;
    border-radius: 12px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-4);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.search-box:focus-within i {
    color: var(--accent-light);
}

/* ═══════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════ */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.5rem;
    gap: 0.25rem;
}

.tab {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    color: var(--text-3);
    font-size: 0.875rem;
    transition: var(--transition);
    margin-bottom: -2px;
}

.tab:hover { color: var(--text-1); }

.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 700;
}

/* ═══════════════════════════════════════════
   MODAL — Glass panel
   ═══════════════════════════════════════════ */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.show { opacity: 1; visibility: visible; }

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    transform: translateY(-20px) scale(0.95);
    transition: var(--transition);
}

.dark .modal-content {
    background: rgba(26, 26, 62, 0.9);
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
}

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

.modal-header h4 {
    margin: 0;
    color: var(--text-1);
    font-size: 1.0625rem;
}

.modal-body { padding: 1.5rem; }

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.625rem;
}

.close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-3);
    cursor: pointer;
    transition: var(--transition);
    padding: 0.25rem;
    border-radius: var(--radius-xs);
}

.close:hover {
    color: var(--text-1);
    background: var(--bg-card-hover);
}

/* ═══════════════════════════════════════════
   NOTIFICATIONS
   ═══════════════════════════════════════════ */
.notifications-dropdown { position: relative; }

.notifications-badge {
    position: absolute;
    top: -4px; right: -4px;
    width: 16px; height: 16px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    font-size: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.notifications-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.dark .notifications-menu {
    background: rgba(26, 26, 62, 0.95);
}

.notifications-menu.show { display: block; }

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

.notifications-header h5 { margin: 0; font-size: 0.9375rem; }
.notifications-list { max-height: 300px; overflow-y: auto; }

.notification-item {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
    transition: var(--transition);
    position: relative;
}

.notification-item:last-child { border-bottom: none; }
.notification-item:hover { background: var(--bg-card-hover); }
.notification-item.unread { background: rgba(108, 92, 231, 0.04); }

.notification-content { margin-bottom: 0.25rem; }
.notification-time { font-size: 0.6875rem; color: var(--text-4); }

.notifications-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* ═══════════════════════════════════════════
   THEME TOGGLE
   ═══════════════════════════════════════════ */
.theme-toggle {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-3);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--accent);
    border-color: var(--border-accent);
}

/* ═══════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════ */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    justify-content: center;
    gap: 0.375rem;
}

.pagination li { margin: 0; }

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: var(--bg-input);
    color: var(--text-2);
    border: 1px solid var(--border);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--bg-card-hover);
    color: var(--accent);
    border-color: var(--border-accent);
}

.pagination a.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-btn);
}

/* ═══════════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════════ */
.progress-bar {
    height: 4px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

.progress-bar-fill.success { background: linear-gradient(90deg, #00b894, #55efc4); }
.progress-bar-fill.warning { background: linear-gradient(90deg, #fdcb6e, #e17055); }
.progress-bar-fill.danger { background: linear-gradient(90deg, #ff6b6b, #ee5a24); }

/* ═══════════════════════════════════════════
   GRID SYSTEM
   ═══════════════════════════════════════════ */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.625rem;
}

.col {
    flex: 1 0 0%;
    padding: 0 0.625rem;
}

.col-md-4 {
    flex: 0 0 auto;
    width: 33.333333%;
    padding: 0 0.625rem;
}

.col-md-6 {
    flex: 0 0 auto;
    width: 50%;
    padding: 0 0.625rem;
}

/* ═══════════════════════════════════════════
   PAGE-SPECIFIC STYLES
   ═══════════════════════════════════════════ */

/* --- DASHBOARD: Warm welcome feel --- */
#dashboard-content .card {
    border-color: rgba(108, 92, 231, 0.08);
}

#dashboard-content .card-header {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.06) 0%, rgba(0, 206, 201, 0.04) 100%);
}

#dashboard-content .card-header h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1em;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* --- CUSTOMERS PAGE: Data-heavy table focus --- */
#customers-content .card {
    border-color: rgba(9, 132, 227, 0.1);
}

#customers-content .card-header {
    background: linear-gradient(135deg, rgba(9, 132, 227, 0.06) 0%, rgba(108, 92, 231, 0.04) 100%);
}

#customers-content .card-header h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1em;
    background: linear-gradient(135deg, #0984e3, #74b9ff);
    border-radius: 2px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Filter bar for customers */
.filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(9, 132, 227, 0.03);
    border: 1px solid rgba(9, 132, 227, 0.08);
    border-radius: 14px;
    flex-wrap: wrap;
}

.filter-bar .search-box {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.filter-item {
    display: flex;
    flex-direction: column;
    min-width: 140px;
}

.filter-item label {
    font-size: 0.75rem;
    margin-bottom: 0.375rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.filter-item select {
    padding: 0.65rem 0.875rem;
    font-size: 0.8125rem;
}

/* Sync button special styling */
#sync-freeworld-btn {
    color: white !important;
    font-weight: 600;
}

#sync-freeworld-btn i {
    transition: transform 0.5s ease;
}

#sync-freeworld-btn:hover i {
    transform: rotate(180deg);
}

/* --- CREATE AN ACCOUNT: Clean form with accent --- */
#generate-content .card {
    border-color: rgba(0, 184, 148, 0.1);
}

#generate-content > .card:first-child .card-header {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.06) 0%, rgba(108, 92, 231, 0.04) 100%);
}

#generate-content > .card:first-child .card-header h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1em;
    background: linear-gradient(135deg, #00b894, #55efc4);
    border-radius: 2px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

#generate-content form .btn-primary {
    background: linear-gradient(135deg, #00b894, #55efc4);
    box-shadow: 0 2px 12px rgba(0, 184, 148, 0.3);
    padding: 0.8rem 2rem;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

#generate-content form .btn-primary:hover {
    box-shadow: 0 8px 24px rgba(0, 184, 148, 0.4);
    filter: brightness(1.1);
}

#generate-content form .form-group input,
#generate-content form .form-group textarea {
    border-color: rgba(0, 184, 148, 0.12);
}

#generate-content form .form-group input:focus,
#generate-content form .form-group textarea:focus {
    border-color: #00b894;
    box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.15), 0 4px 16px rgba(0, 184, 148, 0.08);
}

/* --- CREATE FREE TRIAL: Distinct trial look --- */
#trial-content .card {
    border-color: rgba(253, 203, 110, 0.12);
}

#trial-content > .card:first-child .card-header {
    background: linear-gradient(135deg, rgba(253, 203, 110, 0.06) 0%, rgba(225, 112, 85, 0.04) 100%);
}

#trial-content > .card:first-child .card-header h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1em;
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    border-radius: 2px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

#trial-content form .btn-primary {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    box-shadow: 0 2px 12px rgba(253, 203, 110, 0.3);
    padding: 0.8rem 2rem;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

#trial-content form .btn-primary:hover {
    box-shadow: 0 8px 24px rgba(253, 203, 110, 0.4);
    filter: brightness(1.1);
}

#trial-content form .form-group input,
#trial-content form .form-group textarea {
    border-color: rgba(253, 203, 110, 0.12);
}

#trial-content form .form-group input:focus,
#trial-content form .form-group textarea:focus {
    border-color: #fdcb6e;
    box-shadow: 0 0 0 4px rgba(253, 203, 110, 0.15), 0 4px 16px rgba(253, 203, 110, 0.08);
}

/* --- CLEAR DEVICES: Bold red danger zone --- */
#cleardevices-content .card {
    border-color: rgba(255, 107, 107, 0.1);
}

#cleardevices-content .card-header {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.06) 0%, rgba(238, 90, 36, 0.04) 100%);
}

#cleardevices-content .card-header h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1em;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 2px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

#cleardevices-content .text-muted {
    background: rgba(255, 107, 107, 0.04);
    border: 1px solid rgba(255, 107, 107, 0.08);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    color: var(--text-2) !important;
}

#cleardevices-content form .btn-danger {
    padding: 0.8rem 2rem;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

#cleardevices-content form .form-group select {
    border-color: rgba(255, 107, 107, 0.12);
}

#cleardevices-content form .form-group select:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15);
}

#cleardevices-content form .form-group input {
    border-color: rgba(255, 107, 107, 0.12);
}

#cleardevices-content form .form-group input:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15);
}

/* --- BILLING: Financial dashboard feel --- */
#billing-content .card {
    border-color: rgba(108, 92, 231, 0.1);
}

#billing-content .card-header {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.08) 0%, rgba(162, 155, 254, 0.04) 100%);
}

#billing-content .card-header h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1em;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

#billing-content .card-header h3 i {
    color: #fdcb6e;
}

#billing-content h4 {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3) !important;
    font-weight: 700;
    margin-bottom: 1rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#billing-content h4::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

/* --- RESELLERS PAGE (admin): Management focus --- */
#resellers-content .card {
    border-color: rgba(253, 203, 110, 0.1);
}

#resellers-content .card-header {
    background: linear-gradient(135deg, rgba(253, 203, 110, 0.06) 0%, rgba(108, 92, 231, 0.04) 100%);
}

#resellers-content .card-header h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1em;
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    border-radius: 2px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* ═══════════════════════════════════════════
   DARK MODE DROPDOWNS
   ═══════════════════════════════════════════ */
.dark select,
.dark select option {
    background: #1a1a3e !important;
    color: #e5e7eb !important;
}

.dark select:focus {
    border-color: var(--accent) !important;
}

.dark select option:checked {
    background: #6c5ce7 !important;
    color: #fff !important;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE 
   ═══════════════════════════════════════════ */

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    backdrop-filter: blur(4px);
}

@media (max-width: 991.98px) {
    .d-lg-none { display: inline-flex !important; }

    .sidebar {
        transform: translateX(-100%);
        z-index: 200;
        width: 280px;
        box-shadow: none;
    }
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 8px 0 32px rgba(0,0,0,0.5);
    }

    .sidebar.show ~ .sidebar-overlay,
    .sidebar-overlay.show {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    body.dark::before {
        left: 0;
    }

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

    .col-md-4, .col-md-6 { width: 100%; }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -0.5rem;
        padding: 0 0.5rem;
    }

    table { min-width: 600px; }

    .header {
        padding: 0.875rem 1rem;
        border-radius: var(--radius-sm);
    }

    .header h1 { font-size: 1rem; }

    .modal-content {
        max-width: 95vw;
        margin: 1rem;
    }

    .notifications-menu {
        width: 300px;
        right: -60px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem;
    }

    .filter-bar .search-box {
        min-width: auto;
    }

    .filter-item {
        min-width: auto;
    }
}

@media (max-width: 767.98px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.125rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }
    .card-header .btn { width: 100%; }

    .card-body { padding: 1rem; }

    .tabs { flex-wrap: wrap; }
    .tab { flex: 1 0 auto; text-align: center; padding: 0.625rem 0.75rem; font-size: 0.8125rem; }

    .header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="search"],
    textarea,
    select {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .login-container {
        margin-top: 6vh;
        padding: 2rem 1.5rem;
        max-width: 95vw;
        border-radius: var(--radius-sm);
    }

    .row {
        flex-direction: column;
        margin: 0;
    }
    .col, .col-md-4, .col-md-6 {
        width: 100%;
        padding: 0;
        margin-bottom: 1rem;
    }

    td .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }

    .search-box input { font-size: 1rem; }

    .header .d-flex {
        width: 100%;
        justify-content: space-between;
    }

    th { font-size: 0.625rem; padding: 0.625rem 0.75rem; }
    td { font-size: 0.75rem; padding: 0.625rem 0.75rem; }

    .badge { font-size: 0.625rem; padding: 0.2rem 0.5rem; }
    .alert { font-size: 0.8125rem; padding: 0.75rem 1rem; }
}

/* ═══════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════ */
.d-flex { display: flex; }
.d-lg-none { display: none; }
.d-none { display: none; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }
.flex-column { flex-direction: column; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

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

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

.ml-auto { margin-left: auto; }
.me-3 { margin-right: 0.75rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-3); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }

.font-weight-bold { font-weight: 700; }
.font-sm { font-size: 0.8125rem; }
.font-lg { font-size: 1.125rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--radius-sm); }
.rounded-circle { border-radius: 50%; }
.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }

.bg-primary { background: var(--accent); }
.bg-success { background: var(--success); }
.bg-danger { background: var(--danger); }
.bg-warning { background: var(--warning); }
.bg-info { background: var(--info); }

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.slide-up { animation: slideUp 0.4s ease; }

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

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

.hover-scale { transition: transform 0.2s ease; }
.hover-scale:hover { transform: scale(1.03); }

.hover-lift { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

/* ═══════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

/* ═══════════════════════════════════════════
   LEGACY COMPAT
   ═══════════════════════════════════════════ */
.content-row { margin-bottom: 2rem; }
.content-row-title { font-size: 1.25rem; margin-bottom: 1rem; font-weight: 700; }

.content-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0;
    scrollbar-width: none;
}
.content-slider::-webkit-scrollbar { display: none; }

.content-card {
    min-width: 200px;
    height: 120px;
    margin-right: 0.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.content-card:hover { transform: scale(1.03); box-shadow: var(--shadow-card-hover); }
.content-card img { width: 100%; height: 100%; object-fit: cover; }

.content-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card:hover .content-card-overlay { opacity: 1; }
.content-card-title { color: white; font-size: 0.8125rem; font-weight: 600; }
.content-card-info { font-size: 0.6875rem; color: #b8b8d0; }

.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,26,0.7), rgba(10,10,26,0.95));
}

.hero-content { max-width: 600px; padding: 0 4%; z-index: 1; }
.hero-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
.hero-description { font-size: 1.125rem; margin-bottom: 2rem; color: var(--text-2); }
.hero-buttons { display: flex; gap: 0.75rem; }
