/**
 * BreakICloudPro — Unified Luxury Design System & Theme
 * Ultra-Dark Glassmorphism Architecture
 * Fully Responsive for Mobile, Tablet, Laptop, and 4K Screens
 */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Readex+Pro:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700;800&display=swap');

:root {
    --bg-base: #06080d;
    --bg-surface: #0a0e17;
    --bg-card: rgba(14, 20, 33, 0.75);
    --bg-card-hover: rgba(20, 28, 48, 0.88);
    --bg-glass: rgba(10, 14, 23, 0.82);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.45);
    --border-glow: rgba(0, 210, 255, 0.35);

    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.35);
    --cyan: #00d2ff;
    --cyan-glow: rgba(0, 210, 255, 0.3);
    --purple: #8b5cf6;
    --emerald: #10b981;
    --amber: #f59e0b;
    --danger: #ef4444;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --font-ar: 'Readex Pro', 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-en: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-subtle: 0 4px 24px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 10px 35px rgba(37, 99, 235, 0.25);
    --container: 1240px;
}

/* Base Reset & Global Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #2563eb #06080d;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-ar);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

html[dir="ltr"] body {
    font-family: var(--font-en);
}

/* Custom Modern Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #06080d;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1e293b, #2563eb);
    border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb, #00d2ff);
}

/* Ambient Glow Background Effects */
.ambient-glow {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.glow-blob-1 {
    position: absolute;
    top: -150px;
    left: 15%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(0,0,0,0) 70%);
    filter: blur(100px);
}
.glow-blob-2 {
    position: absolute;
    top: 35%;
    right: -100px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(0,0,0,0) 70%);
    filter: blur(110px);
}
.glow-blob-3 {
    position: absolute;
    bottom: 5%;
    left: -100px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.08) 0%, rgba(0,0,0,0) 70%);
    filter: blur(100px);
}

.layout-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

.admin-main,
.portal-main,
.app-main {
    flex: 1;
    padding: 36px 0 60px;
    width: 100%;
}

@media (max-width: 768px) {
    .admin-main,
    .portal-main,
    .app-main {
        padding: 24px 0 40px;
    }
}

/* ==========================================================================
   FLOATING CENTERED LUXURY NAVBAR ISLAND (Fluid, Scalable & Responsive)
   ========================================================================== */
.navbar-wrapper {
    position: sticky;
    top: clamp(6px, 1vw, 12px);
    z-index: 1000;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 clamp(8px, 1.2vw, 24px);
    pointer-events: none;
}

.navbar {
    pointer-events: auto;
    width: 100%;
    max-width: 1560px;
    background: rgba(10, 14, 24, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    padding: clamp(4px, 0.5vw, 6px) clamp(10px, 1.2vw, 18px);
    box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.65), 0 0 25px rgba(0, 210, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    background: rgba(7, 10, 18, 0.95);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 210, 255, 0.12);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(6px, 1vw, 16px);
    width: 100%;
    min-height: 48px;
    min-width: 0;
}

.nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-width: 0;
}

@media (max-width: 1180px) {
    .nav-center {
        display: none;
    }
    .nav-inner {
        justify-content: space-between;
    }
    .navbar {
        border-radius: var(--radius-xl);
    }
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: clamp(8px, 0.8vw, 10px);
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}

.brand-logo-img {
    width: clamp(34px, 2.4vw, 38px);
    height: clamp(34px, 2.4vw, 38px);
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 210, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.25s ease;
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.05);
}

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

.brand-title {
    font-size: clamp(15px, 1.1vw, 18px);
    font-weight: 900;
    letter-spacing: -0.3px;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.brand-title span {
    background: linear-gradient(135deg, #00d2ff 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-badge {
    font-size: clamp(8.5px, 0.65vw, 9.5px);
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Nav Links Menu (Pill Bar) */
.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(2px, 0.3vw, 4px);
    list-style: none;
    background: rgba(255, 255, 255, 0.03);
    padding: 3px clamp(3px, 0.35vw, 6px);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: nowrap;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: clamp(11.5px, 0.78vw, 13px);
    font-weight: 600;
    padding: 5px clamp(6px, 0.6vw, 11px);
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

/* Specific RTL Polish for Arabic Navbar */
html[dir="rtl"] .brand-title {
    font-size: clamp(14px, 0.95vw, 17px);
}

html[dir="rtl"] .brand-badge {
    font-size: clamp(8px, 0.52vw, 9px);
    letter-spacing: 0.2px;
}

html[dir="rtl"] .nav-links {
    gap: clamp(1px, 0.2vw, 3px);
    padding: 3px clamp(3px, 0.25vw, 5px);
}

html[dir="rtl"] .nav-link {
    font-size: clamp(11px, 0.72vw, 12.5px);
    padding: 5px clamp(5px, 0.5vw, 9px);
    font-weight: 600;
}

html[dir="rtl"] .nav-actions {
    gap: clamp(5px, 0.5vw, 8px);
}

html[dir="rtl"] .btn-lang,
html[dir="rtl"] .nav-actions .btn {
    font-size: 12px;
    padding: 6px clamp(8px, 0.7vw, 13px);
}

/* Dropdown System in Navbar */
.nav-item-dropdown {
    position: relative;
}

.nav-dropdown-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.25s ease;
}

.nav-item-dropdown:hover .nav-dropdown-arrow,
.nav-item-dropdown.active .nav-dropdown-arrow,
.nav-item-dropdown:focus-within .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 320px;
    background: rgba(11, 16, 28, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 210, 255, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

html[dir="ltr"] .nav-dropdown-menu {
    right: auto;
    left: 0;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu,
.nav-item-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-dropdown-item:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(59, 130, 246, 0.35);
    color: #fff;
    transform: translateX(-3px);
}

html[dir="ltr"] .nav-dropdown-item:hover {
    transform: translateX(3px);
}

.nav-dropdown-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.nav-dropdown-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nav-dropdown-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.nav-dropdown-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Nav Action Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-lang {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.btn-lang:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {
    .btn-lang {
        display: none;
    }
}

/* ==========================================================================
   BUTTONS SYSTEM (Modern, Accessible & Touch-Friendly)
   ========================================================================== */
.btn, .btn-primary, .btn-cyan, .btn-glass, .btn-telegram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    line-height: 1.2;
}

.btn-lg {
    padding: 13px 28px;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #00d2ff 100%);
    color: #fff !important;
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 210, 255, 0.45);
    filter: brightness(1.1);
}

.btn-cyan {
    background: linear-gradient(135deg, #00d2ff 0%, #0284c7 100%);
    color: #06080d !important;
    font-weight: 800;
    box-shadow: 0 4px 18px rgba(0, 210, 255, 0.35);
}

.btn-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 210, 255, 0.5);
    filter: brightness(1.08);
}

.btn-telegram {
    background: rgba(36, 161, 222, 0.12);
    border: 1px solid rgba(36, 161, 222, 0.35);
    color: #38bdf8 !important;
}

.btn-telegram:hover {
    background: rgba(36, 161, 222, 0.25);
    border-color: #38bdf8;
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc !important;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-user-pill {
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
}

.btn-user-pill:hover {
    background: rgba(37, 99, 235, 0.25);
    border-color: #60a5fa;
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn svg {
    width: 22px;
    height: 22px;
}

/* ==========================================================================
   THREE-LINES (HAMBURGER) MENU SYSTEM & SLIDE DRAWER
   ========================================================================== */
.btn-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
    padding: 0;
}

@media (max-width: 1100px) {
    .btn-hamburger {
        display: inline-flex;
    }
}

.btn-hamburger .bar {
    width: 22px;
    height: 2.5px;
    background: #f8fafc;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hamburger:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(0, 210, 255, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 210, 255, 0.3);
}

.btn-hamburger:hover .bar {
    background: var(--cyan);
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.7);
}

.btn-hamburger.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background: var(--cyan);
}

.btn-hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.btn-hamburger.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background: var(--cyan);
}

.btn-hamburger:active {
    transform: translateY(0) scale(0.96);
}

/* Quick Hub Overlay & Modal */
.quick-hub-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 14, 0.88);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quick-hub-overlay.active,
.quick-hub-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.quick-hub-modal {
    width: 100%;
    max-width: 980px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(145deg, rgba(14, 20, 34, 0.96) 0%, rgba(9, 13, 23, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(0, 210, 255, 0.12);
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-hub-overlay.active .quick-hub-modal,
.quick-hub-overlay.open .quick-hub-modal {
    transform: scale(1) translateY(0);
}

.quick-hub-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-hub-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.quick-hub-logo {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 18px rgba(0, 210, 255, 0.35);
}

.quick-hub-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}

.quick-hub-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.7; }
}

.quick-hub-close-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
}

.quick-hub-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    transform: rotate(90deg);
}

.quick-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .quick-hub-grid {
        grid-template-columns: 1fr;
    }
    .quick-hub-modal {
        padding: 22px 18px;
    }
}

.quick-hub-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.25s ease;
}

.quick-hub-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 210, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.quick-hub-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-hub-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.icon-blue { background: rgba(37, 99, 235, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.icon-purple { background: rgba(139, 92, 246, 0.15); color: #c084fc; border: 1px solid rgba(192, 132, 252, 0.3); }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }

.quick-hub-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.quick-hub-card-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-hub-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quick-hub-link-item:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #fff;
    transform: translateX(-3px);
}

html[dir="ltr"] .quick-hub-link-item:hover {
    transform: translateX(3px);
}

.quick-hub-link-item .badge-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: rgba(0, 210, 255, 0.15);
    color: var(--cyan);
    border: 1px solid rgba(0, 210, 255, 0.3);
}

.quick-hub-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   MOBILE DRAWER & OVERLAY
   ========================================================================== */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open,
.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -320px;
    width: min(320px, 85vw);
    background: #0a0e17;
    border-inline-start: 1px solid var(--border);
    z-index: 1999;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1), left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

html[dir="ltr"] .mobile-nav-drawer {
    right: auto;
    left: -320px;
    border-inline-start: none;
    border-inline-end: 1px solid var(--border);
}

.mobile-nav-drawer.open,
.mobile-nav-drawer.active {
    right: 0;
}

html[dir="ltr"] .mobile-nav-drawer.open,
html[dir="ltr"] .mobile-nav-drawer.active {
    left: 0;
}

/* ==========================================================================
   HERO SECTION RESPONSIVE DESIGN
   ========================================================================== */
.hero-section {
    padding: 70px 0 50px;
    text-align: center;
    position: relative;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0 30px;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan);
    animation: pulseGlow 2s infinite;
}

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

.hero-title {
    font-size: clamp(26px, 4.8vw, 48px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.5px;
    max-width: 960px;
    margin: 0 auto 20px;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, #93c5fd 70%, #00d2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: clamp(14.5px, 1.8vw, 17.5px);
    color: var(--text-muted);
    max-width: 820px;
    margin: 0 auto 34px;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

@media (max-width: 540px) {
    .hero-cta-group .btn {
        width: 100%;
    }
}

.hero-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: rgba(14, 20, 33, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    max-width: 1060px;
    margin: 0 auto;
    box-shadow: var(--shadow-subtle);
}

@media (max-width: 900px) {
    .hero-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-stats-bar {
        grid-template-columns: 1fr;
        padding: 18px;
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.stat-num {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    font-family: var(--font-mono);
}

.stat-num.cyan { color: var(--cyan); }
.stat-num.emerald { color: var(--emerald); }
.stat-num.purple { color: var(--purple); }

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   SECTIONS & GRIDS
   ========================================================================== */
.section {
    padding: 80px 0;
    position: relative;
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
}

.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.25);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 14px;
}

.section-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   MODULES & CARDS
   ========================================================================== */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

.module-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.module-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   RESPONSIVE COMPATIBILITY MATRIX TABLE
   ========================================================================== */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-subtle);
    margin-top: 20px;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    text-align: right;
}

html[dir="ltr"] .matrix-table {
    text-align: left;
}

.matrix-table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.matrix-table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 14px;
    color: #cbd5e1;
    vertical-align: middle;
}

.matrix-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

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

/* ==========================================================================
   STATUS BADGES
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.badge-active {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.badge-expired, .badge-suspended {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.badge-lifetime {
    background: rgba(0, 210, 255, 0.15);
    border: 1px solid rgba(0, 210, 255, 0.4);
    color: #00d2ff;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINT CONTROLS
   ========================================================================== */
@media (max-width: 1080px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: inline-flex;
    }
}

/* ==========================================================================
   PORTAL LAYOUTS & USER/ADMIN DASHBOARDS
   ========================================================================== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.page-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.page-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 960px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.portal-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s ease;
}

.portal-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.portal-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-card-title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-box {
    background: #04060a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--cyan);
    word-break: break-all;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 14px;
}

.detail-row:last-child {
    border-bottom: none;
}

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

.detail-val {
    font-weight: 700;
    color: #fff;
}

/* ==========================================================================
   HARMONIZED COMPATIBILITY SYSTEM (Ensures Zero Disruption Across All Pages)
   ========================================================================== */

/* Modern Card Compatibility */
.modern-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-subtle);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.modern-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* Table Card & Modern Table Compatibility */
.table-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    margin-bottom: 28px;
}

.table-responsive,
.modern-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

html[dir="rtl"] .modern-table {
    text-align: right;
}

.modern-table th {
    background: rgba(255, 255, 255, 0.02);
    padding: 14px 20px;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    font-size: 11.5px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.modern-table td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    vertical-align: middle;
}

.modern-table tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

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

/* Page Header System */
.enterprise-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.enterprise-page-header .page-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Modern Input & Select Controls */
.modern-input,
.modern-select {
    width: 100%;
    background: rgba(7, 9, 14, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.modern-input:focus,
.modern-select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 14px rgba(0, 210, 255, 0.25);
    background: rgba(10, 14, 24, 0.9);
}

/* Modern Buttons */
.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: var(--radius-full);
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    line-height: 1.2;
}

.modern-btn.btn-primary,
.modern-btn.primary {
    background: linear-gradient(135deg, #2563eb 0%, #00d2ff 100%);
    color: #fff !important;
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow: 0 4px 18px rgba(0, 210, 255, 0.25);
}

.modern-btn.btn-primary:hover,
.modern-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4);
    filter: brightness(1.1);
}

.modern-btn.btn-secondary,
.modern-btn.glass {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
    color: #f8fafc !important;
}

.modern-btn.btn-secondary:hover,
.modern-btn.glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.modern-btn.btn-danger,
.modern-btn.danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5 !important;
}

.modern-btn.btn-danger:hover,
.modern-btn.danger:hover {
    background: #ef4444;
    color: #fff !important;
}

.modern-btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Modern Badge System */
.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.badge-modern.badge-active,
.badge-modern.active { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-modern.badge-pending,
.badge-modern.pending { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-modern.badge-expired,
.badge-modern.danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-modern.badge-cyan,
.badge-modern.cyan { background: rgba(0, 210, 255, 0.15); color: #38bdf8; border: 1px solid rgba(0, 210, 255, 0.3); }

/* KPI Grid System */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.kpi-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.kpi-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 210, 255, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 210, 255, 0.08);
}

.kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.kpi-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--cyan);
}

.kpi-icon.blue { background: rgba(37, 99, 235, 0.15); border-color: rgba(37, 99, 235, 0.3); color: #60a5fa; }
.kpi-icon.emerald { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); color: #34d399; }
.kpi-icon.purple { background: rgba(139, 92, 246, 0.15); border-color: rgba(139, 92, 246, 0.3); color: #c084fc; }
.kpi-icon.amber { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.3); color: #fbbf24; }

.kpi-value {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-mono);
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 6px;
}

.kpi-footer {
    font-size: 12px;
    color: var(--text-dim);
}

/* ==========================================================================
   CLEAN MOBILE & IPHONE OPTIMIZATION (Safe Areas, Touch Targets, 16px Inputs)
   ========================================================================== */
@media (max-width: 768px) {
    /* Touch target minimum 44px */
    .btn,
    .modern-btn,
    .btn-lang,
    .btn-hamburger {
        min-height: 42px;
    }

    /* Prevent iPhone Safari auto-zoom on form inputs */
    .modern-input,
    .modern-select,
    .search-input,
    .filter-select,
    input[type="text"],
    input[type="password"],
    input[type="email"],
    select,
    textarea {
        font-size: 16px !important;
    }

    .enterprise-page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .enterprise-page-header .page-actions {
        width: 100%;
    }

    .enterprise-page-header .page-actions .modern-btn,
    .enterprise-page-header .page-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .portal-card,
    .modern-card {
        padding: 20px 16px;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

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

/* ==========================================================================
   SEARCH GROUPS, FILTERS & SVG ICON SAFETY CONSTRAINTS
   ========================================================================== */
.search-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 200px;
}

.search-group .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
    color: var(--text-muted, #94a3b8);
    pointer-events: none;
    z-index: 2;
}

html[dir="rtl"] .search-group .search-icon {
    left: auto;
    right: 14px;
}

.search-group input.modern-input,
.search-group .modern-input {
    padding-left: 42px !important;
    width: 100%;
}

html[dir="rtl"] .search-group input.modern-input,
html[dir="rtl"] .search-group .modern-input {
    padding-left: 16px !important;
    padding-right: 42px !important;
}

.filter-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

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

/* Global SVG Safety Constraint: Never allow unconstrained SVGs to balloon */
.kpi-icon svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
}

svg.search-icon {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    min-height: 16px;
}


