/* styles.css */
/* ===========================================
   GBE LOGISTICS - DESIGN SYSTEM & STYLES
   =========================================== */

/* ============================================
   CSS VARIABLES - BRAND COLORS
   ============================================ */
:root {
    /* Primary Colors */
    --gbe-blue: #0047BA;
    --gbe-blue-dark: #003494;
    --gbe-blue-light: #1a5cc9;
    --gbe-yellow: #FFD200;
    --gbe-yellow-dark: #E6BD00;
    --gbe-yellow-light: #FFE033;
    
    /* Supporting Colors */
    --gbe-sand: #DDD9C3;
    --gbe-sand-light: #EBE8DC;
    --gbe-ice: #E8EEF7;
    --gbe-ice-light: #F4F7FB;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --black: #000000;
    
    /* Status Colors */
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --error: #EF4444;
    --error-light: #FEE2E2;
    --info: #3B82F6;
    --info-light: #DBEAFE;
    
    /* Typography */
    --font-display: 'Thmanyah Serif Display', 'Thmanyah Sans', -apple-system, sans-serif;
    --font-body: 'Thmanyah Sans', 'Thmanyah Serif Text', -apple-system, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-gbe: 0 4px 20px rgba(0, 71, 186, 0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --container-max: 1280px;
    --header-height: 80px;
    --sidebar-width: 280px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: 3rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin-bottom: var(--space-md); }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

.text-muted { color: var(--gray-500); }
.text-blue { color: var(--gbe-blue); }
.text-yellow { color: var(--gbe-yellow-dark); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.text-right { text-align: right; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-sm {
    padding: var(--space-2xl) 0;
}

.grid {
    display: grid;
    gap: var(--space-lg);
}

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

.flex {
    display: flex;
}

.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    color: var(--white);
    background-color: var(--gbe-blue);
    border-color: var(--gbe-blue);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--gbe-blue-dark);
    border-color: var(--gbe-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    color: var(--gbe-blue);
    background-color: var(--white);
    border-color: var(--gbe-blue);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--gbe-blue);
    color: var(--white);
}

.btn-yellow {
    color: var(--gbe-blue);
    background-color: var(--gbe-yellow);
    border-color: var(--gbe-yellow);
}

.btn-yellow:hover:not(:disabled) {
    background-color: var(--gbe-yellow-dark);
    border-color: var(--gbe-yellow-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-ghost {
    color: var(--gray-700);
    background-color: transparent;
    border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
    background-color: var(--gray-100);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

.btn-icon {
    padding: 0.625rem;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   DROPDOWN MENU
   ============================================ */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-trigger svg {
    transition: transform var(--transition-base);
}

.dropdown-wrapper:hover .dropdown-trigger svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 1000;
    margin-top: 0.5rem;
}

.dropdown-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--gbe-ice);
    color: var(--gbe-blue);
}

.dropdown-item svg {
    flex-shrink: 0;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.dropdown-item:hover svg {
    color: var(--gbe-blue);
}

/* Dark theme dropdown */
[data-theme="dark"] .dropdown-menu {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
}

[data-theme="dark"] .dropdown-item {
    color: var(--gray-300);
}

[data-theme="dark"] .dropdown-item:hover {
    background: var(--gray-700);
    color: var(--white);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-label .required {
    color: var(--error);
    margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--gray-800);
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: var(--gray-400);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--gbe-blue);
    box-shadow: 0 0 0 3px rgba(0, 71, 186, 0.15);
}

.form-input.is-valid { border-color: var(--success); }
.form-input.is-invalid { border-color: var(--error); }

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

.form-error {
    margin-top: var(--space-xs);
    font-size: 0.8125rem;
    color: var(--error);
}

.form-help {
    margin-top: var(--space-xs);
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--gbe-blue);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: var(--space-lg);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--gray-900);
}

.card-text {
    color: var(--gray-600);
    margin-bottom: var(--space-md);
}

.card-footer {
    padding: var(--space-md) var(--space-lg);
    background-color: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

/* Service Card */
.service-card {
    padding: var(--space-xl);
    text-align: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    transition: all var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--gbe-blue);
}

.service-card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    padding: var(--space-md);
    background: var(--gbe-ice);
    border-radius: var(--radius-lg);
    color: var(--gbe-blue);
}

.service-card .icon svg {
    width: 100%;
    height: 100%;
}

/* Stat Card */
.stat-card {
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--gbe-blue) 0%, var(--gbe-blue-dark) 100%);
    border-radius: var(--radius-xl);
    color: var(--white);
    text-align: center;
}

.stat-card .stat-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-card .stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: all var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gbe-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gbe-yellow);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--gray-700);
    transition: all var(--transition-base);
}

/* Mobile Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: 997;
}

body.menu-open .menu-overlay {
    display: block;
    opacity: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: linear-gradient(135deg, var(--gbe-blue) 0%, var(--gbe-blue-dark) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        /* Grid lines */
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        /* Large circles */
        radial-gradient(circle 280px at 65% 15%, rgba(255,255,255,0.07) 0%, transparent 70%),
        radial-gradient(circle 220px at 30% 75%, rgba(255,255,255,0.06) 0%, transparent 70%),
        radial-gradient(circle 160px at 85% 80%, rgba(255,255,255,0.05) 0%, transparent 70%),
        /* Circle outlines */
        radial-gradient(circle 300px at 60% 20%, transparent 58%, rgba(255,255,255,0.04) 59%, rgba(255,255,255,0.04) 60%, transparent 61%),
        radial-gradient(circle 200px at 25% 65%, transparent 58%, rgba(255,255,255,0.03) 59%, rgba(255,255,255,0.03) 60%, transparent 61%),
        radial-gradient(circle 150px at 80% 75%, transparent 58%, rgba(255,255,255,0.03) 59%, rgba(255,255,255,0.03) 60%, transparent 61%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    opacity: 1;
    transition: transform 0.5s ease;
    z-index: 0;
}
.hero:hover::before {
    transform: scale(1.03) translate(2px, -2px);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-lg);
    background: rgba(255, 210, 0, 0.2);
    border: 1px solid rgba(255, 210, 0, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gbe-yellow);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--white);
}

.hero h1 span {
    color: var(--gbe-yellow);
}

.hero p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand img {
    height: 48px;
    margin-bottom: var(--space-lg);
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: var(--gray-400);
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--gray-800);
    border-radius: var(--radius-md);
    color: var(--gray-400);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background-color: var(--gbe-blue);
    color: var(--white);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gbe-yellow);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ============================================
   TABLES
   ============================================ */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    background-color: var(--gray-50);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tr:hover {
    background-color: var(--gray-50);
}

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

/* ============================================
   BADGES & STATUS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: var(--radius-full);
}

.badge-primary { background: var(--gbe-ice); color: var(--gbe-blue); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-error { background: var(--error-light); color: var(--error); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

/* ============================================
   ALERTS
   ============================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.alert-success { background: var(--success-light); color: #065F46; }
.alert-warning { background: var(--warning-light); color: #92400E; }
.alert-error { background: var(--error-light); color: #991B1B; }
.alert-info { background: var(--info-light); color: #1E40AF; }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

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

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    padding: var(--space-sm);
    cursor: pointer;
    background: none;
    border: none;
    color: var(--gray-500);
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--gray-700);
}

.modal-body {
    padding: var(--space-lg);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-top: 1px solid var(--gray-200);
}

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

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

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

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

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

.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.5s ease forwards; }
.animate-slide-in-right { animation: slideInRight 0.5s ease forwards; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* Staggered animations */
.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }
.stagger > *:nth-child(5) { animation-delay: 0.5s; }

/* ============================================
   UTILITIES
   ============================================ */
.hidden { display: none !important; }
.sr-only { 
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

.bg-white { background-color: var(--white); }
.bg-gray { background-color: var(--gray-50); }
.bg-blue { background-color: var(--gbe-blue); }
.bg-ice { background-color: var(--gbe-ice); }
.bg-sand { background-color: var(--gbe-sand); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .section { padding: var(--space-2xl) 0; }

    .hero h1 { font-size: 2.5rem; }
    .hero { min-height: 70vh; }

    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    /* Header adjustments for better mobile visibility */
    .header {
        z-index: 1001;
        box-shadow: var(--shadow-md);
        background-color: var(--white) !important;
        position: fixed;
        width: 100%;
    }

    .header-inner {
        padding: 0 var(--space-md);
        position: relative;
    }

    /* Logo sizing for mobile - ENSURE VISIBILITY */
    .logo {
        display: flex !important;
        z-index: 1002;
        position: relative;
    }

    .logo img {
        height: 40px;
        display: block !important;
    }

    /* Mobile navigation menu - slides from right */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: var(--space-xl) var(--space-lg);
        padding-bottom: 220px; /* Space for nav-actions at bottom */
        gap: var(--space-md);
        background: var(--white);
        transform: translateX(100%);
        transition: transform var(--transition-smooth);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    /* Mobile navigation links */
    .nav-link {
        font-size: 1.125rem;
        padding: var(--space-md);
        text-align: center;
        border-radius: var(--radius-md);
        transition: all var(--transition-base);
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--gbe-ice);
    }

    /* Remove underline animation on mobile nav links */
    .nav-link::after {
        display: none;
    }

    /* Show hamburger menu toggle - ENSURE VISIBILITY */
    .menu-toggle {
        display: flex !important;
        z-index: 1002;
        position: relative;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
        margin-left: auto;
    }

    .menu-toggle span {
        display: block;
        background-color: var(--gray-700);
    }

    /* Hamburger animation when active */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Nav actions - positioned within the slide-out menu at bottom */
    .nav-actions {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
        padding: var(--space-lg);
        background: var(--white);
        transform: translateX(100%);
        transition: transform var(--transition-smooth);
        box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-top: 2px solid var(--gbe-blue);
        max-height: 200px;
        overflow-y: auto;
    }

    /* Show nav-actions when menu is active */
    body.menu-open .nav-actions,
    .nav-menu.active ~ .nav-actions {
        transform: translateX(0);
    }

    /* Stack buttons vertically in mobile menu */
    .nav-actions .btn {
        width: 100%;
        justify-content: center;
        white-space: nowrap;
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }

    /* Theme toggle in mobile - make it more compact */
    .nav-actions .theme-switch {
        align-self: center;
        margin-bottom: var(--space-xs);
        transform: scale(0.9);
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Dropdown in mobile menu */
    .nav-actions .dropdown-wrapper {
        width: 100%;
    }

    .nav-actions .dropdown-wrapper .dropdown-trigger {
        width: 100%;
        justify-content: center;
    }

    .nav-actions .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: var(--space-sm);
        display: none;
        background: var(--white);
        border: 1px solid var(--gray-200);
    }

    .nav-actions .dropdown-wrapper:hover .dropdown-menu,
    .nav-actions .dropdown-wrapper.active .dropdown-menu {
        display: block;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* ============================================
   ANIMATED HERO SLOGAN - GBE is Smart, Swift, Saudi
   ============================================ */
.hero-slogan {
    margin-bottom: var(--space-lg);
}

.slogan-loader {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    color: var(--white);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.slogan-static {
    display: inline-block;
}

.slogan-words {
    /* Fixed: increased height to prevent Arabic text cropping */
    overflow: hidden;
    position: relative;
    height: 1.8em;
    min-width: 3.5em;
}

.slogan-words::after {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 20;
    pointer-events: none;
}

.slogan-word {
    display: block;
    height: 1.8em;
    line-height: 1.8;
    color: var(--gbe-yellow);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 4px 30px rgba(255, 210, 0, 0.4);
    animation: slogan-spin 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes slogan-spin {
    0%, 8% {
        transform: translateY(0);
    }
    20%, 30% {
        transform: translateY(-100%);
    }
    45%, 55% {
        transform: translateY(-200%);
    }
    70%, 100% {
        transform: translateY(0);
    }
}

/* Additional hover effect for slogan */
.slogan-loader:hover .slogan-word {
    animation-play-state: paused;
}

/* Responsive adjustments for slogan */
@media (max-width: 768px) {
    .slogan-loader {
        font-size: clamp(2rem, 10vw, 3.5rem);
        flex-direction: column;
        gap: 0.1em;
    }
    
    .slogan-words {
    /* Fixed: increased height to prevent Arabic text cropping */
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .slogan-loader {
        font-size: clamp(1.75rem, 12vw, 2.5rem);
    }
}

/* ============================================
   RESPONSIVE 480PX
   ============================================ */
@media (max-width: 480px) {
    :root {
        --header-height: 65px;
    }

    .container {
        padding: 0 var(--space-md);
    }

    h1 { font-size: 1.875rem; }

    .hero h1 { font-size: 2rem; }

    /* Extra small mobile header adjustments */
    .header {
        background-color: var(--white) !important;
        box-shadow: var(--shadow-md);
    }

    .header-inner {
        padding: 0 var(--space-sm);
    }

    .logo {
        display: flex !important;
        z-index: 1002;
    }

    .logo img {
        height: 36px;
        display: block !important;
    }

    /* Ensure hamburger menu is visible on small screens */
    .menu-toggle {
        display: flex !important;
        z-index: 1002;
        padding: 6px;
    }

    .menu-toggle span {
        width: 22px;
        height: 2px;
    }

    /* Smaller buttons on tiny screens */
    .nav-actions .btn-sm {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }

    /* Adjust nav menu padding */
    .nav-menu {
        padding-top: var(--space-xl);
        padding-bottom: 220px;
    }

    .nav-link {
        font-size: 1rem;
        padding: var(--space-sm);
    }

    /* Make nav-actions more compact on tiny screens */
    .nav-actions {
        padding: var(--space-md);
        gap: var(--space-xs);
    }

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

/* Language Toggle Button */
.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1.5px solid var(--gray-300, #D1D5DB);
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700, #374151);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.lang-toggle-btn:hover {
    border-color: var(--gbe-blue, #0047BA);
    color: var(--gbe-blue, #0047BA);
}
.lang-toggle-btn .globe-icon {
    width: 16px;
    height: 16px;
}
[data-theme="dark"] .lang-toggle-btn {
    border-color: #475569;
    color: #e2e8f0;
}

/* Dark mode logo swap */
[data-theme="dark"] .logo img,
[data-theme="dark"] .footer-brand img {
    content: url('../images/logo-dark.png');
}
[data-theme="dark"] .preloader-logo img {
    content: url('../images/logo-dark.png');
}

/* GBE Blue hover effect background */
.gbe-hero-bg {
    position: relative;
    overflow: hidden;
}
.gbe-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0047BA 0%, #1a5fd4 40%, #2563EB 100%);
    z-index: 0;
}
.gbe-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle 300px at 70% 20%, rgba(255,255,255,0.08) 0%, transparent 70%),
        radial-gradient(circle 250px at 30% 70%, rgba(255,255,255,0.06) 0%, transparent 70%),
        radial-gradient(circle 180px at 85% 80%, rgba(255,255,255,0.05) 0%, transparent 70%),
        radial-gradient(circle 400px at 20% 30%, rgba(255,255,255,0.04) 0%, transparent 70%);
    z-index: 0;
    transition: transform 0.3s ease;
}
.gbe-hero-bg:hover::after {
    transform: scale(1.05) rotate(1deg);
}
.gbe-hero-bg > * {
    position: relative;
    z-index: 1;
}

/* Inner page hero floating circles overlay */
.gbe-page-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        /* Grid */
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        /* Filled circles */
        radial-gradient(circle 280px at 65% 15%, rgba(255,255,255,0.07) 0%, transparent 70%),
        radial-gradient(circle 220px at 30% 75%, rgba(255,255,255,0.06) 0%, transparent 70%),
        radial-gradient(circle 160px at 85% 80%, rgba(255,255,255,0.05) 0%, transparent 70%),
        /* Circle outlines */
        radial-gradient(circle 300px at 60% 20%, transparent 58%, rgba(255,255,255,0.04) 59%, rgba(255,255,255,0.04) 60%, transparent 61%),
        radial-gradient(circle 200px at 25% 65%, transparent 58%, rgba(255,255,255,0.03) 59%, rgba(255,255,255,0.03) 60%, transparent 61%),
        radial-gradient(circle 150px at 80% 75%, transparent 58%, rgba(255,255,255,0.03) 59%, rgba(255,255,255,0.03) 60%, transparent 61%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    pointer-events: none;
    transition: transform 0.5s ease;
    z-index: 0;
}
section:hover .gbe-page-hero-overlay {
    transform: scale(1.03) translate(2px, -2px);
}

/* Thmanyah weight overrides: titles = Black (900), subtitles = Bold (700) */
h1, h2, .section-title, .hero-slogan, .slogan-loader, .track-title {
    font-weight: 900 !important;
}
h3, h4, .section-subtitle, .section-tag {
    font-weight: 700 !important;
}

/* ============================================
   MOBILE OPTIMIZATION - ENHANCED
   ============================================ */

/* Better mobile stats grid */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .stat-item {
        padding: 1.25rem 0.75rem !important;
    }

    .stat-number {
        font-size: 1.75rem !important;
    }

    .stat-label {
        font-size: 0.8rem !important;
    }

    .stat-icon svg {
        width: 24px !important;
        height: 24px !important;
    }

    /* Hero mobile fixes */
    .hero {
        padding-top: 80px !important;
        padding-bottom: 60px !important;
        min-height: auto !important;
    }

    .hero-content {
        padding: 0 0.5rem !important;
    }

    .hero-badge {
        font-size: 0.8rem !important;
        padding: 6px 14px !important;
    }

    .hero p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    .hero-actions {
        gap: 0.75rem !important;
    }

    .hero-actions .btn {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }

    /* Services grid mobile */
    .services-grid,
    .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Fleet grid */
    .fleet-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Section padding mobile */
    .section,
    section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .section-sm {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Section headers mobile */
    .section-tag {
        font-size: 0.75rem !important;
    }

    .section-subtitle {
        font-size: 0.9rem !important;
        max-width: 100% !important;
    }

    /* Footer mobile */
    .footer-grid {
        gap: 2rem !important;
    }

    .footer-brand p {
        font-size: 0.875rem !important;
    }

    .footer-links li {
        font-size: 0.875rem !important;
    }

    /* Testimonials mobile - prevent horizontal overflow */
    .testimonials-columns-container {
        overflow: hidden !important;
    }

    .testimonials-col {
        min-width: 0 !important;
    }

    .tc-card {
        padding: 1.25rem !important;
    }

    .tc-card-text {
        font-size: 0.875rem !important;
        line-height: 1.6 !important;
    }

    /* Trust ticker mobile */
    .trust-ticker-label {
        font-size: 0.8rem !important;
    }

    .marquee-item {
        font-size: 0.8rem !important;
        gap: 6px !important;
    }

    /* Container mobile padding */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Scroll indicator hide on mobile */
    .scroll-indicator {
        display: none !important;
    }

    /* Feature items mobile */
    .feature-item {
        padding: 1.25rem !important;
    }

    .feature-content h5 {
        font-size: 1rem !important;
    }

    .feature-content p {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .stat-item {
        padding: 1rem 0.5rem !important;
    }

    .stat-number {
        font-size: 1.5rem !important;
    }

    .hero {
        padding-top: 70px !important;
        padding-bottom: 40px !important;
    }

    .hero-actions {
        flex-direction: column !important;
        width: 100% !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* CTA section mobile */
    .cta-card {
        padding: 2rem 1.25rem !important;
    }

    .cta-card h2 {
        font-size: 1.5rem !important;
    }

    .cta-card p {
        font-size: 0.9rem !important;
    }
}

/* Prevent horizontal scroll on all mobile */
html, body {
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Fix images overflow on mobile */
img {
    max-width: 100%;
    height: auto;
}


/* nav-redesign.css */
/* ===========================================
   GBE MEGA MENU - Premium Navigation
   =========================================== */

/* ---- Reset & Base ---- */
.mega-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.mega-header.scrolled {
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .mega-header {
    background: rgba(15, 23, 42, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .mega-header.scrolled {
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.mega-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 72px;
    gap: 8px;
}

/* ---- Logo ---- */
.mega-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.mega-logo img {
    height: 36px;
    width: auto;
}

/* ---- Desktop Nav ---- */
.mega-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 32px;
    flex: 1;
}

    min-width: 0;
    overflow: hidden;
[dir="rtl"] .mega-nav {
    margin-left: 0;
    margin-right: 32px;
}

.mega-nav-item {
    position: relative;
}

/* Nav trigger buttons/links */
.mega-nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-700, #374151);
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
}

.mega-nav-trigger:hover,
.mega-nav-item.active .mega-nav-trigger {
    background: rgba(0, 71, 186, 0.06);
    color: var(--gbe-blue, #0047BA);
}

[data-theme="dark"] .mega-nav-trigger {
    color: #cbd5e1;
}

[data-theme="dark"] .mega-nav-trigger:hover,
[data-theme="dark"] .mega-nav-item.active .mega-nav-trigger {
    background: rgba(96, 165, 250, 0.1);
    color: #93c5fd;
}

.mega-nav-trigger .chevron-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
    opacity: 0.5;
}

.mega-nav-item.active .mega-nav-trigger .chevron-icon {
    transform: rotate(180deg);
    opacity: 1;
}

/* ---- Dropdown Panel ---- */
.mega-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.mega-nav-item.active .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

[data-theme="dark"] .mega-dropdown {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Dropdown wide variant for description items */
.mega-dropdown.mega-dropdown--desc {
    min-width: 300px;
}

/* ---- Dropdown Items ---- */
.mega-dd-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--gray-800, #1f2937);
    transition: background 0.15s ease;
}

.mega-dd-item:hover {
    background: rgba(0, 71, 186, 0.05);
}

[data-theme="dark"] .mega-dd-item {
    color: #e2e8f0;
}

[data-theme="dark"] .mega-dd-item:hover {
    background: rgba(96, 165, 250, 0.08);
}

.mega-dd-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 71, 186, 0.08);
    color: var(--gbe-blue, #0047BA);
    flex-shrink: 0;
    margin-top: 1px;
}

[data-theme="dark"] .mega-dd-item-icon {
    background: rgba(96, 165, 250, 0.12);
    color: #93c5fd;
}

.mega-dd-item-icon svg {
    width: 18px;
    height: 18px;
}

.mega-dd-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mega-dd-item-label {
    font-size: 1rem;
    font-weight: 600;
    color: inherit;
    line-height: 1.3;
}

.mega-dd-item-desc {
    font-size: 0.78rem;
    color: var(--gray-500, #6b7280);
    line-height: 1.35;
}

[data-theme="dark"] .mega-dd-item-desc {
    color: #94a3b8;
}

/* Simple dropdown items (no icon, no description) */
.mega-dd-item--simple {
    padding: 9px 14px;
    align-items: center;
}

.mega-dd-item--simple .mega-dd-item-label {
    font-weight: 500;
}

/* Icon dropdown items (icon + label, no description) */
.mega-dd-item--icon {
    align-items: center;
}

.mega-dd-item--icon .mega-dd-item-icon {
    margin-top: 0;
}

/* ---- Right Actions ---- */
.mega-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

[dir="rtl"] .mega-actions {
    margin-left: 0;
    margin-right: auto;
}

/* Language Toggle */
.mega-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1.5px solid var(--gray-300, #d1d5db);
    border-radius: 8px;
    background: transparent;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-600, #4b5563);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.mega-lang-toggle:hover {
    border-color: var(--gbe-blue, #0047BA);
    color: var(--gbe-blue, #0047BA);
}

[data-theme="dark"] .mega-lang-toggle {
    border-color: #475569;
    color: #94a3b8;
}

[data-theme="dark"] .mega-lang-toggle:hover {
    border-color: #60a5fa;
    color: #60a5fa;
}

.mega-lang-toggle svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* Portal Buttons */
.mega-portal-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.mega-portal-btn--yellow {
    background: var(--gbe-yellow, #FFD200);
    color: #1a1a1a;
}

.mega-portal-btn--yellow:hover {
    background: #e6bd00;
    box-shadow: 0 2px 8px rgba(255, 210, 0, 0.3);
}

.mega-portal-btn--blue {
    background: var(--gbe-blue, #0047BA);
    color: #fff;
}

.mega-portal-btn--blue:hover {
    background: #003a9e;
    box-shadow: 0 2px 8px rgba(0, 71, 186, 0.3);
}

.mega-portal-btn--red {
    background: #DC2626;
    color: #fff;
}

.mega-portal-btn--red:hover {
    background: #b91c1c;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}


/* ---- Hamburger ---- */
.mega-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    border-radius: 8px;
    transition: background 0.15s ease;
    position: relative;
}

[dir="rtl"] .mega-hamburger {
    margin-left: 0;
    margin-right: 8px;
}

.mega-hamburger:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .mega-hamburger:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mega-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gray-700, #374151);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
}

[data-theme="dark"] .mega-hamburger span {
    background: #cbd5e1;
}

.mega-hamburger span:nth-child(1) {
    transform: translateY(-6px);
}

.mega-hamburger span:nth-child(3) {
    transform: translateY(6px);
}

.mega-hamburger.open span:nth-child(1) {
    transform: rotate(45deg);
}

.mega-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mega-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg);
}

/* ---- Overlay ---- */
.mega-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mega-overlay.visible {
    display: block;
    opacity: 1;
}

/* ---- Mobile Menu ---- */
.mega-mobile-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

[dir="rtl"] .mega-mobile-panel {
    right: auto;
    left: 0;
    transform: translateX(-100%);
}

.mega-mobile-panel.open {
    transform: translateX(0);
}

[data-theme="dark"] .mega-mobile-panel {
    background: #0f172a;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
}

.mega-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .mega-mobile-top {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.mega-mobile-top .mega-logo img {
    height: 28px;
}

.mega-mobile-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    color: var(--gray-500, #6b7280);
    transition: background 0.15s;
}

.mega-mobile-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .mega-mobile-close {
    color: #94a3b8;
}

.mega-mobile-close svg {
    width: 20px;
    height: 20px;
}

/* Mobile nav items */
.mega-mobile-nav {
    padding: 12px 16px;
}

.mega-mobile-link {
    display: block;
    padding: 12px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-800, #1f2937);
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.15s;
}

.mega-mobile-link:hover {
    background: rgba(0, 71, 186, 0.05);
}

[data-theme="dark"] .mega-mobile-link {
    color: #e2e8f0;
}

[data-theme="dark"] .mega-mobile-link:hover {
    background: rgba(96, 165, 250, 0.08);
}

/* Accordion group */
.mega-mobile-group {
    margin-bottom: 2px;
}

.mega-mobile-group-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-800, #1f2937);
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.15s;
    text-align: left;
}

[dir="rtl"] .mega-mobile-group-trigger {
    text-align: right;
}

.mega-mobile-group-trigger:hover {
    background: rgba(0, 71, 186, 0.05);
}

[data-theme="dark"] .mega-mobile-group-trigger {
    color: #e2e8f0;
}

[data-theme="dark"] .mega-mobile-group-trigger:hover {
    background: rgba(96, 165, 250, 0.08);
}

.mega-mobile-group-trigger .chevron-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
    opacity: 0.4;
}

.mega-mobile-group.open .mega-mobile-group-trigger .chevron-icon {
    transform: rotate(180deg);
    opacity: 0.7;
}

.mega-mobile-group-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mega-mobile-group.open .mega-mobile-group-content {
    max-height: 400px;
}

.mega-mobile-group-content .mega-mobile-sublink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 32px;
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-600, #4b5563);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

[dir="rtl"] .mega-mobile-group-content .mega-mobile-sublink {
    padding: 10px 32px 10px 16px;
}

.mega-mobile-group-content .mega-mobile-sublink:hover {
    background: rgba(0, 71, 186, 0.05);
    color: var(--gbe-blue, #0047BA);
}

[data-theme="dark"] .mega-mobile-group-content .mega-mobile-sublink {
    color: #94a3b8;
}

[data-theme="dark"] .mega-mobile-group-content .mega-mobile-sublink:hover {
    background: rgba(96, 165, 250, 0.08);
    color: #93c5fd;
}

.mega-mobile-sublink-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(0, 71, 186, 0.06);
    color: var(--gbe-blue, #0047BA);
    flex-shrink: 0;
}

[data-theme="dark"] .mega-mobile-sublink-icon {
    background: rgba(96, 165, 250, 0.1);
    color: #93c5fd;
}

.mega-mobile-sublink-icon svg {
    width: 14px;
    height: 14px;
}

.mega-mobile-sublink-desc {
    font-size: 0.72rem;
    color: var(--gray-400, #9ca3af);
    margin-top: 1px;
}

[data-theme="dark"] .mega-mobile-sublink-desc {
    color: #64748b;
}

/* Mobile bottom actions */
.mega-mobile-actions {
    padding: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

[data-theme="dark"] .mega-mobile-actions {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.mega-mobile-actions .mega-portal-btn {
    justify-content: center;
    padding: 11px 16px;
    font-size: 1rem;
    border-radius: 10px;
}

.mega-mobile-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

/* ---- RTL support ---- */
[dir="rtl"] .mega-dropdown {
    left: auto;
    right: 50%;
    transform: translateX(50%) translateY(6px);
}

[dir="rtl"] .mega-nav-item.active .mega-dropdown {
    transform: translateX(50%) translateY(0);
}

[dir="rtl"] .mega-mobile-panel {
    right: auto;
    left: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .mega-nav,
    .mega-actions .mega-portal-btn,
    .mega-actions .mega-lang-toggle {
        display: none;
    }

    .mega-hamburger {
        display: flex;
    }

    .mega-mobile-panel {
        display: block;
    }

    .mega-header-inner {
        height: 56px;
    }
}

@media (min-width: 1025px) {
    .mega-mobile-panel,
    .mega-overlay,
    .mega-hamburger {
        display: none !important;
    }
}

/* Hide old nav classes if leftover */
.header .nav-menu,
.header .nav-actions,
.header .menu-toggle,
.header .dropdown-wrapper {
    display: none !important;
}


/* === Combo Toggle: Language + Theme === */
.gbe-combo-toggle {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    border-radius: 20px;
    padding: 2px;
    gap: 0;
    height: 36px;
    transition: all 0.3s ease;
}
.gbe-combo-toggle:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.25);
}
.combo-lang, .combo-theme {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 700;
    font-family: Inter, system-ui, sans-serif;
    transition: all 0.25s ease;
    min-width: 36px;
    height: 32px;
}
.combo-lang:hover, .combo-theme:hover {
    background: rgba(255,255,255,0.15);
}
.combo-lang-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.combo-divider {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}
.combo-sun, .combo-moon {
    transition: opacity 0.3s, transform 0.3s;
}
.combo-theme svg {
    width: 16px;
    height: 16px;
}
[data-theme="dark"] .combo-sun { display: none; }
[data-theme="dark"] .combo-moon { display: block; }
.combo-sun { display: block; color: #fff; }
.combo-moon { display: none; color: #fff; }
.mega-header.scrolled .combo-sun { color: #f59e0b; }
.mega-header.scrolled .combo-moon { color: #6366f1; }
[data-theme="dark"] .combo-sun { color: #f59e0b; }
[data-theme="dark"] .combo-moon { color: #c4b5fd; }

/* Scrolled state - darker bg */
.mega-header.scrolled .gbe-combo-toggle {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.08);
}
.mega-header.scrolled .combo-lang,
.mega-header.scrolled .combo-theme {
    color: #374151;
}
.mega-header.scrolled .combo-divider {
    background: rgba(0,0,0,0.12);
}
[data-theme="dark"] .mega-header.scrolled .gbe-combo-toggle {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
}
[data-theme="dark"] .mega-header.scrolled .combo-lang,
[data-theme="dark"] .mega-header.scrolled .combo-theme {
    color: #e2e8f0;
}
[data-theme="dark"] .mega-header.scrolled .combo-divider {
    background: rgba(255,255,255,0.15);
}

/* Light mode combo toggle fix */
.gbe-combo-toggle { background: rgba(0,71,186,.06); border-color: rgba(0,71,186,.12); }
.gbe-combo-toggle:hover { background: rgba(0,71,186,.1); border-color: rgba(0,71,186,.18); }
.combo-lang, .combo-theme { color: #374151; }
.combo-lang:hover, .combo-theme:hover { background: rgba(0,71,186,.08); }
.combo-divider { background: rgba(0,0,0,.12); }
.combo-sun { color: #f59e0b; }
.combo-moon { color: #6366f1; }
[data-theme="dark"] .gbe-combo-toggle { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); }
[data-theme="dark"] .gbe-combo-toggle:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.25); }
[data-theme="dark"] .combo-lang, [data-theme="dark"] .combo-theme { color: #e2e8f0; }
[data-theme="dark"] .combo-lang:hover, [data-theme="dark"] .combo-theme:hover { background: rgba(255,255,255,.15); }
[data-theme="dark"] .combo-divider { background: rgba(255,255,255,.2); }

/* Hide old controls - keep in DOM for JS handlers */
.theme-switch { display: none !important; }
.mega-lang-toggle { display: none !important; }

/* ===========================================
   FIX: Stabilize navbar - prevent horizontal shift from scrollbar
   =========================================== */
html {
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

/* Ensure consistent header height and prevent layout shift */
.mega-header {
    min-height: 72px;
    width: 100%;
    left: 0;
    right: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Prevent horizontal overflow */
body {
    overflow-x: hidden;
    width: 100%;
}

/* Prevent preloader from causing layout shift */
.preloader {
    overflow: hidden;
}

/* Force hardware acceleration on header transitions */
.mega-header.scrolled {
    transform: translateZ(0);
}

/* theme-switch.css */
/* ============================================
   GBE LOGISTICS - THEME SWITCH & DARK MODE
   ============================================ */

/* From Uiverse.io by Galahhad - SMALLER SIZE */ 
.theme-switch {
  --toggle-size: 8px;
  --container-width: 5.625em;
  --container-height: 2.5em;
  --container-radius: 6.25em;
  --container-light-bg: #3D7EAE;
  --container-night-bg: #1D1F2C;
  --circle-container-diameter: 3.375em;
  --sun-moon-diameter: 2.125em;
  --sun-bg: #ECCA2F;
  --moon-bg: #C4C9D1;
  --spot-color: #959DB1;
  --circle-container-offset: calc((var(--circle-container-diameter) - var(--container-height)) / 2 * -1);
  --stars-color: #fff;
  --clouds-color: #F3FDFF;
  --back-clouds-color: #AACADF;
  --transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25);
  --circle-transition: .3s cubic-bezier(0, -0.02, 0.35, 1.17);
}

.theme-switch, .theme-switch *, .theme-switch *::before, .theme-switch *::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: var(--toggle-size);
}

.theme-switch__container {
  width: var(--container-width);
  height: var(--container-height);
  background-color: var(--container-light-bg);
  border-radius: var(--container-radius);
  overflow: hidden;
  cursor: pointer;
  -webkit-box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
  position: relative;
}

.theme-switch__container::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  -webkit-box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
  box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
  border-radius: var(--container-radius)
}

.theme-switch__checkbox {
  display: none;
}

.theme-switch__circle-container {
  width: var(--circle-container-diameter);
  height: var(--circle-container-diameter);
  background-color: rgba(255, 255, 255, 0.1);
  position: absolute;
  left: var(--circle-container-offset);
  top: var(--circle-container-offset);
  border-radius: var(--container-radius);
  -webkit-box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-transition: var(--circle-transition);
  -o-transition: var(--circle-transition);
  transition: var(--circle-transition);
  pointer-events: none;
}

.theme-switch__sun-moon-container {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  width: var(--sun-moon-diameter);
  height: var(--sun-moon-diameter);
  margin: auto;
  border-radius: var(--container-radius);
  background-color: var(--sun-bg);
  -webkit-box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  -webkit-filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  overflow: hidden;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
}

.theme-switch__moon {
  -webkit-transform: translateX(100%);
  -ms-transform: translateX(100%);
  transform: translateX(100%);
  width: 100%;
  height: 100%;
  background-color: var(--moon-bg);
  border-radius: inherit;
  -webkit-box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
  position: relative;
}

.theme-switch__spot {
  position: absolute;
  top: 0.75em;
  left: 0.312em;
  width: 0.75em;
  height: 0.75em;
  border-radius: var(--container-radius);
  background-color: var(--spot-color);
  -webkit-box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
  box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
}

.theme-switch__spot:nth-of-type(2) {
  width: 0.375em;
  height: 0.375em;
  top: 0.937em;
  left: 1.375em;
}

.theme-switch__spot:nth-last-of-type(3) {
  width: 0.25em;
  height: 0.25em;
  top: 0.312em;
  left: 0.812em;
}

.theme-switch__clouds {
  width: 1.25em;
  height: 1.25em;
  background-color: var(--clouds-color);
  border-radius: var(--container-radius);
  position: absolute;
  bottom: -0.625em;
  left: 0.312em;
  -webkit-box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
  box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
  -webkit-transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
  -o-transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
  transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
}

.theme-switch__stars-container {
  position: absolute;
  color: var(--stars-color);
  top: -100%;
  left: 0.312em;
  width: 2.75em;
  height: auto;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
}

/* actions */

.theme-switch__checkbox:checked + .theme-switch__container {
  background-color: var(--container-night-bg);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter));
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container:hover {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter) - 0.187em)
}

.theme-switch__circle-container:hover {
  left: calc(var(--circle-container-offset) + 0.187em);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__moon {
  -webkit-transform: translate(0);
  -ms-transform: translate(0);
  transform: translate(0);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__clouds {
  bottom: -4.062em;
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__stars-container {
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

/* ============================================
   LIGHT MODE DEFAULTS - FIX VISIBILITY
   ============================================ */

:root {
  /* Light mode text colors */
  --text-color-light: #1a202c;
  --text-color-secondary-light: #4a5568;
  --text-color-muted-light: #718096;
  --bg-color-light: #ffffff;
  --bg-color-secondary-light: #f7fafc;
  --bg-color-tertiary-light: #edf2f7;
  --border-color-light: #e2e8f0;
}

/* Ensure light mode has proper dark text */
body:not([data-theme="dark"]) .stat-value,
body:not([data-theme="dark"]) .stat-card h2,
body:not([data-theme="dark"]) .stat-card h3,
body:not([data-theme="dark"]) .stat-card .value,
html:not([data-theme="dark"]) .stat-value,
html:not([data-theme="dark"]) .stat-card h2,
html:not([data-theme="dark"]) .stat-card h3 {
  color: #1a202c !important;
}

body:not([data-theme="dark"]) .stat-label,
body:not([data-theme="dark"]) .stat-card p,
html:not([data-theme="dark"]) .stat-label,
html:not([data-theme="dark"]) .stat-card p {
  color: #4a5568 !important;
}

/* ============================================
   DARK MODE STYLES - COMPLETE WEBSITE
   ============================================ */

[data-theme="dark"] {
  /* Background Colors */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;
  --bg-hover: #334155;
  
  /* Text Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-color: #f1f5f9;
  --text-color-secondary: #cbd5e1;
  --text-color-muted: #94a3b8;
  
  /* Border Colors */
  --border-color: #334155;
  --border-light: #475569;
  
  /* Override existing variables */
  --gray-50: #0f172a;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-400: #64748b;
  --gray-500: #94a3b8;
  --gray-600: #cbd5e1;
  --gray-700: #e2e8f0;
  --gray-800: #f1f5f9;
  --gray-900: #f8fafc;
  
  /* Component specific */
  --input-bg: #1e293b;
  --input-border: #334155;
  --dropdown-bg: #1e293b;
  --modal-bg: #1e293b;
  --table-stripe: #1e293b;
  --scrollbar-bg: #334155;
  --scrollbar-thumb: #475569;
  --card-bg: #1e293b;
  --bg-color: #0f172a;
  --bg-color-secondary: #1e293b;
  --bg-color-tertiary: #334155;
}

/* ============================================
   DARK MODE - GLOBAL STYLES
   ============================================ */

[data-theme="dark"],
[data-theme="dark"] body {
  background-color: #0f172a !important;
  color: #f1f5f9 !important;
}

/* Dark Mode - All Text Elements */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #f1f5f9 !important;
}

[data-theme="dark"] p,
[data-theme="dark"] span:not(.theme-switch span),
[data-theme="dark"] div:not(.theme-switch div),
[data-theme="dark"] label {
  color: #f1f5f9;
}

/* Dark Mode - Secondary Text */
[data-theme="dark"] .text-secondary,
[data-theme="dark"] .text-muted,
[data-theme="dark"] small,
[data-theme="dark"] .subtitle,
[data-theme="dark"] .description {
  color: #94a3b8 !important;
}

/* ============================================
   DARK MODE - PORTAL SPECIFIC
   ============================================ */

[data-theme="dark"] .main-content {
  background: #0f172a !important;
}

[data-theme="dark"] .topbar {
  background: #1e293b !important;
  border-bottom-color: #334155 !important;
}

[data-theme="dark"] .search-box {
  background: #334155 !important;
  border: 1px solid #475569 !important;
}

[data-theme="dark"] .search-box input {
  color: #f1f5f9 !important;
  background: transparent !important;
}

[data-theme="dark"] .search-box input::placeholder {
  color: #64748b !important;
}

[data-theme="dark"] .search-box svg {
  color: #64748b !important;
}

[data-theme="dark"] .lang-switch {
  background: #334155 !important;
  color: #f1f5f9 !important;
  border: 1px solid #475569 !important;
}

[data-theme="dark"] .lang-switch:hover {
  background: #475569 !important;
}

[data-theme="dark"] .notification-btn svg {
  color: #94a3b8 !important;
}

[data-theme="dark"] .notification-btn:hover {
  background: #334155 !important;
  border-radius: 8px;
}

[data-theme="dark"] .user-dropdown:hover {
  background: #334155 !important;
}

[data-theme="dark"] .user-name {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .user-role {
  color: #94a3b8 !important;
}

[data-theme="dark"] .page-title {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .page-subtitle {
  color: #94a3b8 !important;
}

/* Dark Mode - Cards & Stat Cards */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .dashboard-card,
[data-theme="dark"] .card {
  background: #1e293b !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .card-header {
  border-bottom-color: #334155 !important;
  background: transparent !important;
}

[data-theme="dark"] .card-title {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .card-body {
  background: transparent !important;
}

/* Dark Mode - Stat Values */
[data-theme="dark"] .stat-value,
[data-theme="dark"] .stat-card h2,
[data-theme="dark"] .stat-card h3,
[data-theme="dark"] .stat-card .value {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .stat-label,
[data-theme="dark"] .stat-card p {
  color: #94a3b8 !important;
}

/* Dark Mode - Stat Icons */
[data-theme="dark"] .stat-icon.blue {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #60a5fa !important;
}

[data-theme="dark"] .stat-icon.yellow {
  background: rgba(251, 191, 36, 0.2) !important;
  color: #fbbf24 !important;
}

[data-theme="dark"] .stat-icon.green {
  background: rgba(34, 197, 94, 0.2) !important;
  color: #22c55e !important;
}

[data-theme="dark"] .stat-icon.red {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #ef4444 !important;
}

/* Dark Mode - Quick Actions */
[data-theme="dark"] .quick-action {
  background: #334155 !important;
  border: 2px solid transparent !important;
}

[data-theme="dark"] .quick-action:hover {
  background: #1e293b !important;
  border-color: #0047BA !important;
}

[data-theme="dark"] .quick-action-icon {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #60a5fa !important;
}

[data-theme="dark"] .quick-action-label {
  color: #f1f5f9 !important;
}

/* Dark Mode - Sidebar */
[data-theme="dark"] .sidebar {
  background: linear-gradient(180deg, #0c1929 0%, #000a1a 100%) !important;
}

/* Dark Mode - Buttons */
[data-theme="dark"] .btn-ghost {
  color: #94a3b8 !important;
}

[data-theme="dark"] .btn-ghost:hover {
  background: #334155 !important;
  color: #f1f5f9 !important;
}

[data-theme="dark"] .btn-secondary {
  background: #334155 !important;
  color: #f1f5f9 !important;
  border-color: #475569 !important;
}

[data-theme="dark"] .btn-secondary:hover {
  background: #475569 !important;
}

/* Dark Mode - Forms */
[data-theme="dark"] input:not(.theme-switch__checkbox),
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #64748b !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  border-color: #0047BA !important;
  box-shadow: 0 0 0 3px rgba(0, 71, 186, 0.2) !important;
}

/* Dark Mode - Tables */
[data-theme="dark"] table {
  background: #1e293b !important;
}

[data-theme="dark"] th {
  background: #334155 !important;
  color: #f1f5f9 !important;
  border-color: #475569 !important;
}

[data-theme="dark"] td {
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

[data-theme="dark"] tr:nth-child(even) {
  background: rgba(51, 65, 85, 0.5) !important;
}

[data-theme="dark"] tr:hover {
  background: #334155 !important;
}

/* Dark Mode - Modals */
[data-theme="dark"] .modal-content,
[data-theme="dark"] .modal {
  background: #1e293b !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
  border-color: #334155 !important;
}

[data-theme="dark"] .modal-title {
  color: #f1f5f9 !important;
}

/* Dark Mode - Dropdowns */
[data-theme="dark"] .dropdown-menu {
  background: #1e293b !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .dropdown-item {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .dropdown-item:hover {
  background: #334155 !important;
}

/* Dark Mode - Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #334155;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Dark Mode - Links */
[data-theme="dark"] a:not(.btn):not(.nav-item):not(.quick-action):not(.nav-link):not(.service-link) {
  color: #60a5fa;
}

[data-theme="dark"] a:not(.btn):not(.nav-item):not(.quick-action):not(.nav-link):not(.service-link):hover {
  color: #93c5fd;
}

/* Dark Mode - Code blocks */
[data-theme="dark"] code,
[data-theme="dark"] pre {
  background: #334155 !important;
  color: #e2e8f0 !important;
}

/* Dark Mode - Horizontal Rules */
[data-theme="dark"] hr {
  border-color: #334155 !important;
}

/* Dark Mode - Alerts */
[data-theme="dark"] .alert {
  border-color: #334155 !important;
}

[data-theme="dark"] .alert-info {
  background: rgba(59, 130, 246, 0.1) !important;
  color: #60a5fa !important;
}

[data-theme="dark"] .alert-success {
  background: rgba(34, 197, 94, 0.1) !important;
  color: #22c55e !important;
}

[data-theme="dark"] .alert-warning {
  background: rgba(251, 191, 36, 0.1) !important;
  color: #fbbf24 !important;
}

[data-theme="dark"] .alert-error,
[data-theme="dark"] .alert-danger {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
}

/* ============================================
   DARK MODE - PUBLIC WEBSITE SPECIFIC
   ============================================ */

/* Dark Mode - Public Header/Navigation */
[data-theme="dark"] header,
[data-theme="dark"] .header,
[data-theme="dark"] .navbar {
  background: #1e293b !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .header.scrolled {
  background: rgba(30, 41, 59, 0.95) !important;
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .nav-link {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #FFD200 !important;
}

/* Dark Mode - Mobile Menu */
[data-theme="dark"] .nav-menu {
  background: #1e293b !important;
  border-left: 1px solid #334155;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  background: #334155 !important;
}

/* Dark Mode - Mobile Nav Actions */
[data-theme="dark"] .nav-actions {
  background: #0f172a !important;
  border-top-color: #0047BA !important;
}

/* Dark Mode - Mobile Menu Toggle */
[data-theme="dark"] .menu-toggle span {
  background-color: #f1f5f9 !important;
}

/* Dark Mode - Public Footer */
[data-theme="dark"] footer,
[data-theme="dark"] .footer {
  background: #0a0f1a !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .footer-title {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .footer-links a {
  color: #94a3b8 !important;
}

[data-theme="dark"] .footer-links a:hover {
  color: #FFD200 !important;
}

[data-theme="dark"] .footer-bottom {
  border-color: #334155 !important;
  color: #94a3b8 !important;
}

/* Dark Mode - Public Hero Section */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0047BA 0%, #002a6e 100%) !important;
}

/* Dark Mode - Public Sections */
[data-theme="dark"] section {
  background: #0f172a !important;
}

[data-theme="dark"] section.bg-gray,
[data-theme="dark"] .bg-gray {
  background: #1e293b !important;
}

[data-theme="dark"] section.bg-white,
[data-theme="dark"] .bg-white:not(.btn):not(.badge) {
  background: #0f172a !important;
}

/* Dark Mode - Section Headers */
[data-theme="dark"] .section-tag {
  color: #60a5fa !important;
}

[data-theme="dark"] .section-subtitle {
  color: #94a3b8 !important;
}

/* Dark Mode - Public Cards */
[data-theme="dark"] .service-card,
[data-theme="dark"] .service-card-animated,
[data-theme="dark"] .service-card-inner,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .fleet-card,
[data-theme="dark"] .fleet-card-inner {
  background: #1e293b !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .service-card h4,
[data-theme="dark"] .service-card-inner h4,
[data-theme="dark"] .fleet-card h5,
[data-theme="dark"] .fleet-card-inner h5 {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .service-card p,
[data-theme="dark"] .service-card-inner p,
[data-theme="dark"] .fleet-card p,
[data-theme="dark"] .fleet-card-inner p {
  color: #94a3b8 !important;
}

[data-theme="dark"] .service-link {
  color: #60a5fa !important;
}

[data-theme="dark"] .service-link:hover {
  color: #FFD200 !important;
}

/* Dark Mode - Feature Items */
[data-theme="dark"] .feature-item {
  background: #1e293b !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .feature-content h5 {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .feature-content p {
  color: #94a3b8 !important;
}

[data-theme="dark"] .feature-number {
  color: rgba(255, 255, 255, 0.1) !important;
}

/* Dark Mode - CTA Card */
[data-theme="dark"] .cta-card {
  background: linear-gradient(135deg, #0047BA 0%, #002a6e 100%) !important;
}

/* Dark Mode - Public Track Form */
[data-theme="dark"] .track-form,
[data-theme="dark"] .tracking-form {
  background: #1e293b !important;
  border-color: #334155 !important;
}

/* Dark Mode - Public Stats */
[data-theme="dark"] .stats-section {
  background: #1e293b !important;
}

[data-theme="dark"] .stat-item {
  background: transparent !important;
}

[data-theme="dark"] .stat-number,
[data-theme="dark"] .stat-item .counter {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .stat-label,
[data-theme="dark"] .stat-item .stat-label {
  color: #94a3b8 !important;
}

[data-theme="dark"] .stat-icon {
  color: #0047BA !important;
}

/* Dark Mode - Fleet Section */
[data-theme="dark"] .fleet-count {
  color: #0047BA !important;
}

/* Dark Mode - CTA Section */
[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, #0047BA 0%, #002a6e 100%) !important;
}

/* Dark Mode - Trust Badges */
[data-theme="dark"] .trust-badge {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Dark Mode - Page Hero (inner pages) */
[data-theme="dark"] .page-hero {
  background: linear-gradient(135deg, #0047BA 0%, #002a6e 100%) !important;
}

/* Dark Mode - Contact Info */
[data-theme="dark"] .contact-info-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}

/* Dark Mode - Preloader */
[data-theme="dark"] .preloader {
    background: #1a1a2e;
}

/* ============================================
   SMOOTH TRANSITIONS
   ============================================ */

body,
.main-content,
.topbar,
.search-box,
.lang-switch,
.user-dropdown,
.stat-card,
.dashboard-card,
.card,
.card-header,
.card-body,
.quick-action,
input,
select,
textarea,
table,
th,
td,
.modal-content,
.dropdown-menu,
header,
footer,
section,
nav,
.sidebar,
.service-card,
.service-card-animated,
.fleet-card,
.feature-item,
h1, h2, h3, h4, h5, h6, p, span, div {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   PORTAL-SPECIFIC INLINE STYLE OVERRIDES
   ============================================ */

[data-theme="dark"] [style*="background: var(--gray-50)"] {
  background: #334155 !important;
}

[data-theme="dark"] [style*="color: var(--gray-500)"] {
  color: #94a3b8 !important;
}

[data-theme="dark"] [style*="color: var(--gray-700)"] {
  color: #e2e8f0 !important;
}

/* Fix for stat card mini */
[data-theme="dark"] .stat-card-mini {
  background: #1e293b !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .stat-card-mini-value {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .stat-card-mini-label {
  color: #94a3b8 !important;
}

/* Fix for page content area */
[data-theme="dark"] .page-content,
[data-theme="dark"] .content-area {
  background: transparent !important;
}

/* Theme toggle wrapper for public site header */
.theme-toggle-wrapper {
  display: flex;
  align-items: center;
  margin-right: 12px;
}

/* ============================================
   DARK MODE - HERO WAVE FIX
   ============================================ */
[data-theme="dark"] .hero-wave svg path {
    fill: #0f172a !important;
}

/* Dark mode - Stats section bg fix */
[data-theme="dark"] .stats-section {
    background: #0f172a !important;
}

/* Dark mode - Trust ticker */
[data-theme="dark"] .trust-ticker {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .trust-ticker-label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .marquee-item {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .marquee-item svg {
    color: #60a5fa !important;
}

/* Dark mode - Stat bars */
[data-theme="dark"] .stat-bar {
    background: #334155 !important;
}

[data-theme="dark"] .stat-bar::after {
    background: linear-gradient(90deg, #0047BA, #60a5fa) !important;
}

/* Dark mode - Our Clients section */
[data-theme="dark"] .clients-section,
[data-theme="dark"] .gbe-clients-section {
    background: #1e293b !important;
}

/* Dark mode - Testimonials */
[data-theme="dark"] .tc-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .tc-card-text {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .tc-card-name {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .tc-card-role {
    color: #94a3b8 !important;
}

/* Dark mode - CTA section buttons */
[data-theme="dark"] .btn-yellow {
    background: #FFD200 !important;
    color: #1a1a1a !important;
}

[data-theme="dark"] .btn-outline-white {
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
}

/* Dark mode - Back to Top button */
[data-theme="dark"] .back-to-top {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .back-to-top:hover {
    background: #0047BA !important;
    border-color: #0047BA !important;
}

/* Dark mode - Services section text */
[data-theme="dark"] .service-card-inner .service-icon,
[data-theme="dark"] .service-card .service-icon {
    background: rgba(0, 71, 186, 0.15) !important;
    color: #60a5fa !important;
}

/* Dark mode - Feature icons */
[data-theme="dark"] .feature-icon {
    background: rgba(0, 71, 186, 0.15) !important;
    color: #60a5fa !important;
}

/* Dark mode - Stat icon colors (brand blue instead of generic) */
[data-theme="dark"] .stat-icon svg {
    color: #60a5fa !important;
}


/* thmanyah-fonts.css */
/* ===========================================
   THMANYAH FONT FAMILY - @font-face declarations
   =========================================== */

/* Thmanyah Sans - Body text */
@font-face {
    font-family: 'Thmanyah Sans';
    src: url('/fonts/thmanyah/thmanyahsans-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Sans';
    src: url('/fonts/thmanyah/thmanyahsans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Sans';
    src: url('/fonts/thmanyah/thmanyahsans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Sans';
    src: url('/fonts/thmanyah/thmanyahsans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Sans';
    src: url('/fonts/thmanyah/thmanyahsans-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Thmanyah Serif Display - Headlines */
@font-face {
    font-family: 'Thmanyah Serif Display';
    src: url('/fonts/thmanyah/thmanyahserifdisplay-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Serif Display';
    src: url('/fonts/thmanyah/thmanyahserifdisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Serif Display';
    src: url('/fonts/thmanyah/thmanyahserifdisplay-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Serif Display';
    src: url('/fonts/thmanyah/thmanyahserifdisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Serif Display';
    src: url('/fonts/thmanyah/thmanyahserifdisplay-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Thmanyah Serif Text - Body alternative */
@font-face {
    font-family: 'Thmanyah Serif Text';
    src: url('/fonts/thmanyah/thmanyahseriftext-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Serif Text';
    src: url('/fonts/thmanyah/thmanyahseriftext-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Serif Text';
    src: url('/fonts/thmanyah/thmanyahseriftext-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Serif Text';
    src: url('/fonts/thmanyah/thmanyahseriftext-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Serif Text';
    src: url('/fonts/thmanyah/thmanyahseriftext-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* rtl.css */
/* ===========================================
   GBE LOGISTICS - RTL & ARABIC SUPPORT
   =========================================== */

/* Arabic Font */
@font-face {
    font-family: 'Arsenica Arabic';
    src: url('https://alfont.com/wp-content/fonts/new-arabic-fonts//alfont_com_Arsenica-Arabic-Antiqua-Extrabold-TRIAL.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Arabic body font - use IBM Plex Sans Arabic for readability */
.lang-ar {
    --font-arabic: 'Thmanyah Sans', 'Thmanyah Serif Text', -apple-system, sans-serif;
    --font-arabic-display: 'Thmanyah Serif Display', 'Thmanyah Sans', -apple-system, sans-serif;
}

.lang-ar body,
.lang-ar input,
.lang-ar select,
.lang-ar textarea,
.lang-ar button,
.lang-ar .btn {
    font-family: var(--font-arabic) !important;
}

/* Display headings use Arsenica Arabic */
.lang-ar h1,
.lang-ar h2,
.lang-ar .hero h1,
.lang-ar .slogan-loader,
.lang-ar .track-title,
.lang-ar .section-title {
    font-family: var(--font-arabic-display) !important;
}

/* RTL Layout Flips */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .header-inner {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .nav-actions {
    flex-direction: row-reverse;
}

/* Hero RTL */
[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .hero-actions {
    justify-content: flex-start;
}

[dir="rtl"] .hero-badge {
    flex-direction: row-reverse;
}

/* Slogan RTL */
[dir="rtl"] .slogan-loader {
    direction: rtl;
}

/* Cards & Grid RTL */
[dir="rtl"] .service-card {
    text-align: right;
}

[dir="rtl"] .feature-item {
    text-align: right;
}

[dir="rtl"] .review-row {
    flex-direction: row-reverse;
}

/* Forms RTL */
[dir="rtl"] .form-label {
    text-align: right;
}

[dir="rtl"] .form-label .required {
    margin-left: 0;
    margin-right: 2px;
}

[dir="rtl"] .form-input,
[dir="rtl"] .form-select,
[dir="rtl"] .form-textarea {
    text-align: right;
}

[dir="rtl"] .form-navigation {
    flex-direction: row-reverse;
}

/* Buttons RTL */
[dir="rtl"] .btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .btn svg {
    margin-left: 0;
    margin-right: 0;
}

/* Dropdown RTL */
[dir="rtl"] .dropdown-menu {
    left: auto;
    right: 0;
}

[dir="rtl"] .dropdown-item {
    flex-direction: row-reverse;
    text-align: right;
}

/* Footer RTL */
[dir="rtl"] .footer-grid {
    direction: rtl;
}

[dir="rtl"] .footer-brand {
    text-align: right;
}

[dir="rtl"] .footer-links {
    text-align: right;
}

[dir="rtl"] .footer-bottom {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-social {
    flex-direction: row-reverse;
}

/* Progress Steps RTL */
[dir="rtl"] .progress-steps {
    flex-direction: row-reverse;
}

[dir="rtl"] .progress-line {
    left: auto;
    right: 0;
}

/* Ship page RTL */
[dir="rtl"] .shipping-header {
    text-align: right;
}

[dir="rtl"] .pricing-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .coupon-group {
    flex-direction: row-reverse;
}

/* Track page RTL */
[dir="rtl"] .back-link {
    left: auto;
    right: var(--space-xl);
    flex-direction: row-reverse;
}

[dir="rtl"] .back-link:hover {
    transform: translateX(4px);
}

[dir="rtl"] .lang-toggle {
    right: auto;
    left: var(--space-xl);
}

[dir="rtl"] .search-box {
    flex-direction: row-reverse;
}

[dir="rtl"] .search-input {
    text-align: right;
}

/* Alerts RTL */
[dir="rtl"] .alert {
    flex-direction: row-reverse;
    text-align: right;
}

/* Tables RTL */
[dir="rtl"] .table th,
[dir="rtl"] .table td {
    text-align: right;
}

/* Stats RTL */
[dir="rtl"] .stat-card {
    text-align: right;
}

/* Scroll indicators RTL */
[dir="rtl"] .scroll-reveal {
    transform: translateX(20px);
}

[dir="rtl"] .scroll-reveal.visible {
    transform: translateX(0);
}

/* Flex gap fix for RTL */
[dir="rtl"] .flex {
    flex-direction: row-reverse;
}

[dir="rtl"] .flex-col {
    flex-direction: column;
}

/* Mobile Menu RTL */
@media (max-width: 768px) {
    [dir="rtl"] .nav-menu {
        flex-direction: column;
        transform: translateX(-100%);
        left: 0;
        right: auto;
    }

    [dir="rtl"] .nav-menu.active {
        transform: translateX(0);
    }

    [dir="rtl"] .header-inner {
        flex-direction: row;
    }

    [dir="rtl"] .menu-toggle {
        margin-left: 0;
        margin-right: auto;
    }

    [dir="rtl"] .nav-actions {
        flex-direction: column;
        transform: translateX(-100%);
        left: 0;
        right: auto;
    }

    [dir="rtl"] body.menu-open .nav-actions,
    [dir="rtl"] .nav-menu.active ~ .nav-actions {
        transform: translateX(0);
    }
}

/* Language Toggle Button */
.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0, 71, 186, 0.08);
    border: 1px solid rgba(0, 71, 186, 0.15);
    border-radius: var(--radius-full, 9999px);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gbe-blue, #0047BA);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lang-toggle-btn:hover {
    background: rgba(0, 71, 186, 0.15);
    border-color: rgba(0, 71, 186, 0.3);
}

.lang-toggle-btn .globe-icon {
    width: 16px;
    height: 16px;
}

/* Dark mode lang toggle */
[data-theme="dark"] .lang-toggle-btn {
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

[data-theme="dark"] .lang-toggle-btn:hover {
    background: rgba(96, 165, 250, 0.2);
}

/* Marquee / Ticker */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--white, #fff), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--white, #fff), transparent);
}

[data-theme="dark"] .marquee-container::before {
    background: linear-gradient(to right, #0f172a, transparent);
}

[data-theme="dark"] .marquee-container::after {
    background: linear-gradient(to left, #0f172a, transparent);
}

[dir="rtl"] .marquee-track {
    animation-direction: reverse;
}

/* RTL Nav alignment fixes */
[dir="rtl"] .mega-header-inner {
    align-items: center;
}
[dir="rtl"] .mega-nav-trigger {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}
[dir="rtl"] .mega-portal-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
}
[dir="rtl"] .mega-lang-toggle {
    display: inline-flex;
    align-items: center;
}

/* ===========================================
   FIX: Numbers and phone codes stay LTR in RTL mode
   =========================================== */
.lang-ar input[type="tel"],
.lang-ar input[type="number"],
.lang-ar .phone-code,
.lang-ar .country-code,
.lang-ar [dir="ltr"],
.lang-ar .stat-number,
.lang-ar .counter,
.lang-ar .fleet-count,
.lang-ar .phone-link,
.lang-ar .footer-contact li:nth-child(2),
.lang-ar .footer-contact li:nth-child(3) {
    direction: ltr;
    unicode-bidi: isolate;
}

/* Phone input group stays LTR */
.lang-ar .phone-input-group,
.lang-ar .phone-field,
.lang-ar .input-group-phone {
    direction: ltr;
    unicode-bidi: isolate;
}

/* Ensure form labels stay RTL but input values are LTR */
.lang-ar input[type="email"],
.lang-ar input[type="url"] {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: right;
}

/* Timeline years stay LTR */
.lang-ar .timeline h4,
.lang-ar [style*="color: var(--gbe-blue)"] {
    direction: ltr;
    unicode-bidi: isolate;
}

/* ===========================================
   FIX: Ship/Track form phone inputs stay LTR in RTL
   =========================================== */
.lang-ar .form-input[type="tel"],
.lang-ar .form-input[type="number"],
.lang-ar input[type="tel"],
.lang-ar input[type="number"] {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: right;
}

/* Country code prefix stays LTR */
.lang-ar span[style*="+966"],
.lang-ar .country-code-prefix {
    direction: ltr;
    unicode-bidi: isolate;
}

/* Phone input wrapper keeps LTR layout */
.lang-ar .form-row > div:has(input[type="tel"]) {
    direction: ltr;
    unicode-bidi: isolate;
}

/* Keep +966 prefix on the left side in RTL */
.lang-ar div[style*="display:flex"] > span[style*="+966"],
.lang-ar div[style*="display: flex"] > span[style*="+966"] {
    order: -1;
}

/* OTP inputs stay LTR */
.lang-ar .otp-container,
.lang-ar .otp-container input {
    direction: ltr;
    unicode-bidi: isolate;
}

/* Ship-shipment phone input - always LTR */
[dir="rtl"] #senderPhone,
[dir="rtl"] #receiverPhone {
    direction: ltr;
    text-align: left;
}
[dir="rtl"] .form-input[type="tel"] {
    direction: ltr;
    text-align: left;
}

/* FAB position: left in Arabic, right in English */
[dir="rtl"] .voice-call-fab {
    right: auto;
    left: 28px;
}
[dir="rtl"] .voice-hint-bubble {
    right: auto;
    left: 28px;
}
[dir="rtl"] .voice-hint-arrow {
    right: auto;
    left: 28px;
}
[dir="rtl"] .voice-options-panel,
[dir="rtl"] .voice-call-panel {
    right: auto;
    left: 28px;
}
[dir="rtl"] .voice-chat-panel {
    right: auto;
    left: 28px;
}
@media (max-width: 768px) {
    [dir="rtl"] .voice-call-fab {
        right: auto;
        left: 20px;
    }
    [dir="rtl"] .voice-hint-bubble {
        right: auto;
        left: 20px;
    }
    [dir="rtl"] .voice-options-panel,
    [dir="rtl"] .voice-call-panel {
        right: auto;
        left: 12px;
    }
    [dir="rtl"] .voice-chat-panel {
        right: 0;
        left: 0;
    }
}
@media (max-width: 480px) {
    [dir="rtl"] .voice-call-fab {
        right: auto;
        left: 16px;
    }
    [dir="rtl"] .voice-hint-bubble {
        right: auto;
        left: 16px;
    }
    [dir="rtl"] .voice-options-panel,
    [dir="rtl"] .voice-call-panel {
        right: auto;
        left: 10px;
    }
}

/* === Ship-shipment phone prefix + OTP RTL fixes (batch 4) === */
/* Phone input wrapper: always LTR so +966 stays on left */
[dir="rtl"] .phone-input-wrapper,
.lang-ar .phone-input-wrapper {
    direction: ltr !important;
    unicode-bidi: isolate;
}

/* OTP input containers: always LTR so digits fill left-to-right */
[dir="rtl"] .otp-container,
.lang-ar .otp-container,
[dir="rtl"] #emailOtpSection .otp-container,
[dir="rtl"] #emailOtpContainer {
    direction: ltr !important;
    unicode-bidi: isolate;
    display: flex;
    justify-content: center;
}

[dir="rtl"] .otp-input,
.lang-ar .otp-input {
    direction: ltr !important;
    unicode-bidi: isolate;
    text-align: center;
}

/* OTP section text stays RTL but inputs LTR */
[dir="rtl"] #emailOtpSection,
[dir="rtl"] #phoneOtpSection {
    direction: rtl;
}

[dir="rtl"] #emailOtpSection .otp-container,
[dir="rtl"] #phoneOtpSection .otp-container,
[dir="rtl"] #receiverPhoneOtpSection .otp-container,
[dir="rtl"] #receiverEmailOtpSection .otp-container {
    direction: ltr !important;
}

/* dark-mode-ship-track.css */
/* ===========================================
   DARK MODE FIXES - SHIP & TRACK PAGES
   =========================================== */

/* Shipping Container */
[data-theme="dark"] .shipping-container {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

/* Shipping Card */
[data-theme="dark"] .shipping-card {
    background: #1e293b !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3) !important;
}

/* Progress Container */
[data-theme="dark"] .progress-container {
    background: #1e293b !important;
    border-bottom-color: #334155 !important;
}

/* Progress Steps */
[data-theme="dark"] .progress-steps::before {
    background: #334155 !important;
}

[data-theme="dark"] .step-circle {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .progress-step.active .step-circle {
    background: var(--gbe-blue, #0047BA) !important;
    border-color: var(--gbe-blue, #0047BA) !important;
    color: #fff !important;
}

[data-theme="dark"] .progress-step.completed .step-circle {
    background: #10B981 !important;
    border-color: #10B981 !important;
    color: #fff !important;
}

[data-theme="dark"] .step-label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .progress-step.active .step-label {
    color: #60a5fa !important;
}

/* Form Steps Content */
[data-theme="dark"] .form-steps {
    background: #1e293b !important;
}

[data-theme="dark"] .step-title {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .step-description {
    color: #94a3b8 !important;
}

/* Form Groups */
[data-theme="dark"] .form-group label,
[data-theme="dark"] .form-label {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea,
[data-theme="dark"] .shipping-card input,
[data-theme="dark"] .shipping-card select,
[data-theme="dark"] .shipping-card textarea {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .shipping-card input::placeholder {
    color: #64748b !important;
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .shipping-card input:focus,
[data-theme="dark"] .shipping-card select:focus {
    border-color: #0047BA !important;
    box-shadow: 0 0 0 3px rgba(0, 71, 186, 0.2) !important;
}

/* OTP Inputs */
[data-theme="dark"] .otp-input {
    background: #0f172a !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .otp-input:focus {
    border-color: #0047BA !important;
    box-shadow: 0 0 0 3px rgba(0, 71, 186, 0.2) !important;
}

[data-theme="dark"] .otp-timer {
    color: #94a3b8 !important;
}

[data-theme="dark"] .resend-link {
    color: #60a5fa !important;
}

[data-theme="dark"] .resend-link.disabled {
    color: #475569 !important;
}

/* Pricing Summary */
[data-theme="dark"] .pricing-summary {
    background: #0f172a !important;
    border: 1px solid #334155;
}

[data-theme="dark"] .pricing-row {
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .pricing-label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .pricing-value {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .pricing-row:last-child {
    color: #60a5fa !important;
}

/* Coupon */
[data-theme="dark"] .coupon-input {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .coupon-success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #34d399 !important;
}

[data-theme="dark"] .coupon-error {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #f87171 !important;
}

/* Review Section */
[data-theme="dark"] .review-section {
    background: #0f172a !important;
    border: 1px solid #334155;
}

[data-theme="dark"] .review-section h3 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .review-label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .review-value {
    color: #f1f5f9 !important;
}

/* Tracking Number Box */
[data-theme="dark"] .tracking-number {
    background: rgba(0, 71, 186, 0.1) !important;
    border: 1px solid rgba(0, 71, 186, 0.2);
}

[data-theme="dark"] .tracking-label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .tracking-value {
    color: #60a5fa !important;
}

/* Confirmation Icon */
[data-theme="dark"] .confirmation-icon {
    background: rgba(16, 185, 129, 0.15) !important;
}

/* Form Navigation Border */
[data-theme="dark"] .form-navigation {
    border-top-color: #334155 !important;
}

/* Dimension Group */
[data-theme="dark"] .dimension-group input {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

/* Package Type Cards (if any) */
[data-theme="dark"] .package-type-card,
[data-theme="dark"] .service-type-card {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .package-type-card.selected,
[data-theme="dark"] .service-type-card.selected {
    border-color: #0047BA !important;
    background: rgba(0, 71, 186, 0.1) !important;
}

[data-theme="dark"] .package-type-card:hover,
[data-theme="dark"] .service-type-card:hover {
    border-color: #475569 !important;
    background: #1e293b !important;
}

/* Checkbox & Radio in dark mode */
[data-theme="dark"] .form-check-input {
    accent-color: #0047BA;
}

[data-theme="dark"] .form-check label {
    color: #e2e8f0 !important;
}

/* Info boxes */
[data-theme="dark"] .info-box,
[data-theme="dark"] .notice-box {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
    color: #93c5fd !important;
}

/* Tabs in Ship/Track */
[data-theme="dark"] .tab-btn,
[data-theme="dark"] [data-tab] {
    background: #1e293b !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .tab-btn.active,
[data-theme="dark"] [data-tab].active {
    background: #0047BA !important;
    color: #fff !important;
    border-color: #0047BA !important;
}

[data-theme="dark"] .tab-content,
[data-theme="dark"] [data-tab-content] {
    background: #1e293b !important;
    color: #f1f5f9 !important;
}

/* Map container dark mode */
[data-theme="dark"] .map-container {
    border-color: #334155 !important;
}

[data-theme="dark"] .map-header {
    background: #0f172a !important;
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .map-header h3 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .map-header p {
    color: #94a3b8 !important;
}

/* Track page search in dark mode */
[data-theme="dark"] .search-container {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .search-box {
    background: #1e293b !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .search-input {
    color: #f1f5f9 !important;
    background: transparent !important;
}

[data-theme="dark"] .search-input::placeholder {
    color: #64748b !important;
}

/* Form error messages */
[data-theme="dark"] .form-error {
    color: #f87171 !important;
}

[data-theme="dark"] .form-help {
    color: #64748b !important;
}

/* Select dropdown arrows */
[data-theme="dark"] select option {
    background: #1e293b;
    color: #f1f5f9;
}

/* Map Status Messages */
.map-status {
    font-size: 0.8125rem;
    padding: 0.75rem 1.25rem;
}
.map-status-info {
    background: #eff6ff;
    color: #1d4ed8;
    border-bottom: 1px solid #dbeafe;
}
.map-status-success {
    background: #f0fdf4;
    color: #15803d;
    border-bottom: 1px solid #dcfce7;
}
.map-status-error {
    background: #fef2f2;
    color: #dc2626;
    border-bottom: 1px solid #fecaca;
}

[data-theme="dark"] .map-status-info {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #93c5fd !important;
    border-bottom-color: rgba(59, 130, 246, 0.2) !important;
}
[data-theme="dark"] .map-status-success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #34d399 !important;
    border-bottom-color: rgba(16, 185, 129, 0.2) !important;
}
[data-theme="dark"] .map-status-error {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #f87171 !important;
    border-bottom-color: rgba(239, 68, 68, 0.2) !important;
}

/* voice-call.css */
/* ===========================================
   FLOATING AI ASSISTANT - Popup + Options + Chat + Call
   =========================================== */

/* ── Floating Button (Liquid Glass) ── */
.voice-call-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    color: #fff;
    cursor: pointer;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.18),
        0 0 0 1px rgba(255,255,255,0.08) inset,
        0 1px 0 rgba(255,255,255,0.25) inset;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    animation: voice-fab-glow 4s ease-in-out infinite;
    overflow: visible;
    padding: 0;
}
.voice-call-fab:hover {
    transform: scale(1.08);
    box-shadow:
        0 12px 40px rgba(0,0,0,0.22),
        0 0 0 1px rgba(255,255,255,0.15) inset,
        0 0 20px rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}
.voice-call-fab svg { width: 28px; height: 28px; }
.voice-call-fab .fab-sara-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 10;
}
.voice-call-fab .fab-inner-glow {
    position: absolute; inset: 0; border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
    opacity: 1; pointer-events: none;
    z-index: 11;
}
.voice-call-fab .fab-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #22c55e;
    border: 2.5px solid rgba(255,255,255,0.9);
    z-index: 15;
    animation: voice-online-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(34,197,94,0.6);
}
.voice-call-fab .fab-ping {
    position: absolute; inset: -4px; border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.15);
    opacity: 1;
    animation: voice-fab-ping 3s cubic-bezier(0,0,0.2,1) infinite;
    pointer-events: none;
}
.voice-call-fab.calling-state {
    background: rgba(239,68,68,0.15);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-color: rgba(239,68,68,0.4);
    box-shadow:
        0 8px 32px rgba(239,68,68,0.25),
        0 0 0 1px rgba(239,68,68,0.15) inset;
    animation: none;
}
.voice-call-fab.calling-state .fab-ping { display: none; }
.voice-call-fab.calling-state .fab-online-dot { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.6); animation: none; }

@keyframes voice-fab-glow {
    0%,100% {
        box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.08) inset, 0 1px 0 rgba(255,255,255,0.25) inset;
    }
    50% {
        box-shadow: 0 8px 32px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.12) inset, 0 0 16px rgba(255,255,255,0.06);
    }
}
@keyframes voice-fab-ping {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}
@keyframes voice-online-pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}

/* ── Hint Bubble (Liquid Glass) ── */
.voice-hint-bubble {
    position: fixed;
    bottom: 104px;
    right: 28px;
    z-index: 9998;
    max-width: 280px;
    cursor: pointer;
    animation: voiceHintSlideIn 0.6s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
    opacity: 0;
}
.voice-hint-bubble-inner {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 14px 18px;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.15),
        0 0 0 1px rgba(255,255,255,0.06) inset,
        0 1px 0 rgba(255,255,255,0.2) inset;
    font-family: 'Thmanyah', Inter, system-ui, sans-serif;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.voice-hint-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255,255,255,0.35);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.voice-hint-text-wrap {
    flex: 1;
    min-width: 0;
}
.voice-hint-bubble-inner p {
    margin: 0; font-size: 13px; font-weight: 500;
    color: rgba(255,255,255,0.92); line-height: 1.45;
}
.voice-hint-bubble-inner .hint-name { color: #60a5fa; font-weight: 700; }
.voice-hint-bubble-inner .hint-cta {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.3px;
}
.voice-hint-arrow {
    position: absolute; bottom: -7px; right: 28px;
    width: 14px; height: 14px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-right: 1px solid rgba(255,255,255,0.25);
    border-bottom: 1px solid rgba(255,255,255,0.25);
    transform: rotate(45deg);
}
/* Light theme override for hint bubble */
@media (prefers-color-scheme: light) {
    .voice-hint-bubble-inner {
        background: rgba(255,255,255,0.65);
        border-color: rgba(255,255,255,0.5);
        box-shadow:
            0 8px 32px rgba(0,0,0,0.1),
            0 0 0 1px rgba(255,255,255,0.3) inset,
            0 1px 0 rgba(255,255,255,0.5) inset;
    }
    .voice-hint-bubble-inner p { color: #1e293b; }
    .voice-hint-bubble-inner .hint-name { color: #2563eb; }
    .voice-hint-bubble-inner .hint-cta { color: rgba(30,41,59,0.5); }
    .voice-hint-arrow { background: rgba(255,255,255,0.65); border-color: rgba(255,255,255,0.5); }
}
[data-theme="dark"] .voice-hint-bubble-inner {
    background: rgba(15,23,42,0.4);
    border-color: rgba(255,255,255,0.15);
}
[data-theme="dark"] .voice-hint-bubble-inner p { color: rgba(255,255,255,0.9); }
[data-theme="dark"] .voice-hint-arrow { background: rgba(15,23,42,0.4); border-color: rgba(255,255,255,0.15); }

@keyframes voiceHintSlideIn {
    0% { opacity: 0; transform: translateY(16px) scale(0.92); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Options Panel ── */
.voice-options-panel {
    position: fixed;
    bottom: 100px;
    right: 28px;
    z-index: 9998;
    width: 288px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(39,39,42,0.92), rgba(24,24,27,0.96));
    border: 1px solid rgba(113,113,122,0.35);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(24px);
    overflow: hidden;
    animation: voicePopIn 0.3s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
}
.voice-options-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(63,63,70,0.5);
}
.voice-options-header .status-dot {
    display: inline-block; width: 8px; height: 8px;
    border-radius: 50%; background: #22c55e;
    animation: pulse-dot 2s ease-in-out infinite;
    margin-right: 6px; vertical-align: middle;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.5} }
.voice-options-header .label {
    font-size: 12px; font-weight: 500; color: #a1a1aa;
    font-family: 'Thmanyah', Inter, system-ui, sans-serif;
}
.voice-options-header .title {
    margin: 8px 0 0; font-size: 14px; font-weight: 600;
    color: #e4e4e7; font-family: 'Thmanyah', Inter, system-ui, sans-serif;
}
.voice-options-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }

.voice-option-btn {
    display: flex; align-items: center; gap: 16px;
    padding: 16px; border-radius: 12px;
    background: rgba(39,39,42,0.6);
    border: 1px solid rgba(63,63,70,0.4);
    cursor: pointer; transition: all 0.2s ease;
    text-align: left; color: #fff;
    font-family: 'Thmanyah', Inter, system-ui, sans-serif;
}
.voice-option-btn:hover {
    background: rgba(63,63,70,0.6);
}
.voice-option-btn.chat-opt:hover { border-color: rgba(99,102,241,0.4); }
.voice-option-btn.call-opt:hover { border-color: rgba(34,197,94,0.4); }

.voice-option-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: transform 0.2s;
}
.voice-option-btn:hover .voice-option-icon { transform: scale(1.05); }
.voice-option-icon.chat-icon {
    background: linear-gradient(135deg, #6366f1, #a855f7);
}
.voice-option-icon.call-icon {
    background: linear-gradient(135deg, #22c55e, #059669);
}
.voice-option-icon svg { width: 20px; height: 20px; color: #fff; }
.voice-option-text .opt-title {
    font-size: 14px; font-weight: 600; color: #f4f4f5; display: block;
}
.voice-option-text .opt-desc {
    font-size: 12px; color: #a1a1aa; display: block; margin-top: 2px;
}

/* ── Call Panel ── */
.voice-call-panel {
    position: fixed;
    bottom: 100px;
    right: 28px;
    z-index: 9998;
    width: 300px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(39,39,42,0.92), rgba(24,24,27,0.96));
    border: 1px solid rgba(113,113,122,0.35);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(24px);
    overflow: hidden;
    animation: voicePopIn 0.3s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
}
.voice-call-panel-header {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff; padding: 16px 20px;
    display: flex; align-items: center; gap: 12px;
}
.voice-call-panel-header svg { width: 20px; height: 20px; flex-shrink: 0; }
.voice-call-panel-header h4 { margin: 0; font-size: 14px; font-weight: 600; font-family: 'Thmanyah', Inter, system-ui, sans-serif; }
.voice-call-panel-header small { display: block; font-size: 12px; opacity: 0.8; margin-top: 2px; font-family: 'Thmanyah', Inter, system-ui, sans-serif; }

.voice-call-panel-body {
    padding: 24px; text-align: center;
}
.voice-call-timer {
    font-size: 1.5rem; font-weight: 700; color: #f4f4f5;
    margin-bottom: 4px; font-variant-numeric: tabular-nums;
    font-family: 'SF Mono', Menlo, monospace;
}
.voice-call-status {
    font-size: 13px; color: #a1a1aa; margin-bottom: 16px;
    font-family: 'Thmanyah', Inter, system-ui, sans-serif;
}

/* Visualizer */
.voice-visualizer {
    display: flex; align-items: center; justify-content: center;
    gap: 3px; height: 40px; margin-bottom: 16px;
}
.voice-visualizer .bar {
    width: 4px; height: 8px; border-radius: 2px;
    background: #22c55e; transition: height 0.1s ease;
}
.voice-visualizer.active .bar {
    animation: voice-bar-dance 0.5s ease-in-out infinite alternate;
}
.voice-visualizer .bar:nth-child(1) { animation-delay: 0s; }
.voice-visualizer .bar:nth-child(2) { animation-delay: 0.08s; }
.voice-visualizer .bar:nth-child(3) { animation-delay: 0.16s; }
.voice-visualizer .bar:nth-child(4) { animation-delay: 0.12s; }
.voice-visualizer .bar:nth-child(5) { animation-delay: 0.04s; }
.voice-visualizer .bar:nth-child(6) { animation-delay: 0.2s; }
.voice-visualizer .bar:nth-child(7) { animation-delay: 0.1s; }
@keyframes voice-bar-dance { 0% { height: 8px; } 100% { height: 32px; } }

/* End call */
.voice-end-call {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px; background: #ef4444; color: #fff;
    border: none; border-radius: 24px; font-size: 13px;
    font-weight: 600; cursor: pointer; transition: all 0.2s ease;
    font-family: 'Thmanyah', Inter, system-ui, sans-serif;
}
.voice-end-call:hover { background: #dc2626; transform: scale(1.04); }
.voice-end-call svg { width: 16px; height: 16px; }

/* ── Chat Panel ── */
.voice-chat-panel {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 380px;
    height: 560px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(24,24,27,0.98), rgba(17,17,20,0.99));
    border: 1px solid rgba(113,113,122,0.3);
    box-shadow: 0 12px 48px rgba(0,0,0,0.4);
    backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: voicePopIn 0.3s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
}

/* Chat Header */
.voice-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    flex-shrink: 0;
}
.voice-chat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.voice-chat-avatar {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
}
.voice-chat-avatar svg { width: 20px; height: 20px; color: #fff; }
.voice-chat-header h4 {
    margin: 0; font-size: 14px; font-weight: 600; color: #fff;
    font-family: 'Thmanyah', Inter, system-ui, sans-serif;
}
.voice-chat-header small {
    display: block; font-size: 11px; color: rgba(255,255,255,0.7);
    margin-top: 1px; font-family: 'Thmanyah', Inter, system-ui, sans-serif;
}
.voice-chat-close {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff; transition: background 0.2s;
}
.voice-chat-close:hover { background: rgba(255,255,255,0.2); }
.voice-chat-close svg { width: 16px; height: 16px; }

/* Chat Messages */
.voice-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.voice-chat-messages::-webkit-scrollbar { width: 4px; }
.voice-chat-messages::-webkit-scrollbar-track { background: transparent; }
.voice-chat-messages::-webkit-scrollbar-thumb { background: rgba(113,113,122,0.3); border-radius: 2px; }

.chat-msg { display: flex; max-width: 85%; }
.chat-msg.user { align-self: flex-end; }
.chat-msg.bot { align-self: flex-start; }

.chat-msg-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    font-family: 'Thmanyah', Inter, system-ui, sans-serif;
    word-break: break-word;
}
.chat-msg.bot .chat-msg-bubble {
    background: rgba(63,63,70,0.5);
    color: #e4e4e7;
    border-bottom-left-radius: 4px;
}
.chat-msg.user .chat-msg-bubble {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* Typing indicator */
.chat-msg-bubble.typing {
    display: flex; gap: 4px; padding: 14px 18px;
}
.chat-msg-bubble.typing .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #a1a1aa;
    animation: chatTypingBounce 1.4s ease-in-out infinite;
}
.chat-msg-bubble.typing .dot:nth-child(2) { animation-delay: 0.2s; }
.chat-msg-bubble.typing .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatTypingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Attachment chips */
.voice-chat-attachments {
    padding: 6px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid rgba(63,63,70,0.3);
    flex-shrink: 0;
}
.chat-attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 20px;
    font-size: 11px;
    color: #c4b5fd;
    font-family: 'Thmanyah', Inter, system-ui, sans-serif;
}
.chip-icon { display: flex; }
.chip-icon svg { width: 12px; height: 12px; }
.chip-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-remove {
    background: none; border: none; color: #a1a1aa;
    cursor: pointer; font-size: 14px; line-height: 1;
    padding: 0 2px; transition: color 0.2s;
}
.chip-remove:hover { color: #ef4444; }

/* Chat Input Area */
.voice-chat-input-area {
    padding: 8px 12px 12px;
    border-top: 1px solid rgba(63,63,70,0.3);
    flex-shrink: 0;
}
.voice-chat-toolbar {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}
.chat-tool-btn {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(63,63,70,0.3);
    border: 1px solid rgba(63,63,70,0.4);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #a1a1aa; transition: all 0.2s;
}
.chat-tool-btn:hover { background: rgba(63,63,70,0.5); color: #e4e4e7; }
.chat-tool-btn svg { width: 15px; height: 15px; }

.voice-chat-input-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.voice-chat-input {
    flex: 1;
    background: rgba(39,39,42,0.6);
    border: 1px solid rgba(63,63,70,0.5);
    border-radius: 12px;
    padding: 10px 14px;
    color: #e4e4e7;
    font-size: 13px;
    font-family: 'Thmanyah', Inter, system-ui, sans-serif;
    resize: none;
    outline: none;
    max-height: 120px;
    line-height: 1.4;
    transition: border-color 0.2s;
}
.voice-chat-input::placeholder { color: #71717a; }
.voice-chat-input:focus { border-color: rgba(99,102,241,0.5); }

.voice-chat-send {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: all 0.2s;
}
.voice-chat-send:hover:not(:disabled) { transform: scale(1.05); box-shadow: 0 0 12px rgba(99,102,241,0.5); }
.voice-chat-send:disabled { opacity: 0.4; cursor: default; }
.voice-chat-send svg { width: 18px; height: 18px; }

/* ── Shared ── */
@keyframes voicePopIn {
    0% { opacity: 0; transform: scale(0.8) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.voice-hidden { display: none !important; }

/* ── Mobile ── */
@media (max-width: 768px) {
    .voice-call-fab {
        bottom: 20px; right: 20px;
        width: 56px; height: 56px;
        min-width: 56px; min-height: 56px;
    }
    .voice-call-fab svg { width: 26px; height: 26px; }
    .voice-hint-bubble { bottom: 88px; right: 20px; max-width: 200px; }
    .voice-options-panel,
    .voice-call-panel {
        right: 12px; left: 12px;
        width: auto; bottom: 88px;
    }
    .voice-chat-panel {
        right: 0; left: 0; bottom: 0; top: 0;
        width: 100%; height: 100%;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .voice-call-fab {
        bottom: 16px; right: 16px;
        width: 54px; height: 54px;
        min-width: 54px; min-height: 54px;
    }
    .voice-call-fab svg { width: 24px; height: 24px; }
    .voice-hint-bubble { bottom: 82px; right: 16px; }
    .voice-options-panel,
    .voice-call-panel {
        right: 10px; left: 10px;
        width: auto; bottom: 82px;
    }
}

/* Touch support */
.voice-call-fab {
    -webkit-tap-highlight-color: rgba(99, 102, 241, 0.3);
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    isolation: isolate;
}
.voice-call-fab:active {
    transform: scale(0.92);
    transition: transform 0.1s ease;
}

/* Ensure FAB stays above other fixed elements */
.back-to-top {
    z-index: 9990 !important;
}
