/* ===================================================
   TRANSSYSTEM - ULTRA-PREMIUM MODERN DESIGN SYSTEM
   Dark & Light Mode Professional Aesthetics & UX
   =================================================== */

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

/* ===================================================
   DESIGN TOKENS & COLOR PALETTE
   =================================================== */

:root {
    --primary: #00f0ff;
    --primary-dark: #00b8c4;
    --primary-glow: rgba(0, 240, 255, 0.15);
    --primary-glow-strong: rgba(0, 240, 255, 0.28);
    --accent: #a855f7;
    --accent-dark: #7c3aed;
    --accent-glow: rgba(168, 85, 247, 0.18);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --bg-main: #080c14;
    --bg-card: #0f1520;
    --bg-card-hover: #141d2e;
    --bg-nav: rgba(8, 12, 20, 0.88);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 240, 255, 0.35);

    --text-main: #f0f4f8;
    --text-muted: #8c9cb8;
    --text-light: #b0bac9;

    --glass-bg: rgba(15, 21, 32, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-card: rgba(18, 25, 38, 0.65);
    
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-colored: 0 12px 35px rgba(0, 240, 255, 0.14);
}

[data-theme="light"] {
    --bg-main: #f4f7fb;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-nav: rgba(244, 247, 251, 0.9);
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 153, 170, 0.35);

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;

    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-card: rgba(255, 255, 255, 0.85);

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-colored: 0 12px 35px rgba(0, 153, 170, 0.15);

    --primary: #0099aa;
    --primary-dark: #007788;
    --primary-glow: rgba(0, 153, 170, 0.1);
    --primary-glow-strong: rgba(0, 153, 170, 0.2);
}

/* ===================================================
   RESET & BASE STYLES
   =================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    direction: rtl;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 76px;
    overflow-x: hidden;
}

body.has-welcome-banner {
    padding-top: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.35;
    font-weight: 700;
    color: var(--text-main);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.glass {
    background: var(--glass-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ===================================================
   PRELOADER & SCROLL PROGRESS
   =================================================== */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.preloader-text {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1.5px;
}
@keyframes spin { to { transform: rotate(360deg); } }

#scrollProgress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 9998;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px var(--primary);
}

/* Welcome Offer Banner */
.welcome-offer-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(168, 85, 247, 0.12));
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    z-index: 1001;
    backdrop-filter: blur(10px);
}
.welcome-offer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.welcome-offer-image img {
    max-height: 48px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}
.welcome-offer-text {
    flex: 1;
    min-width: 200px;
}
.welcome-offer-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}
.welcome-offer-text p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}
.welcome-offer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.welcome-offer-close {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}
.welcome-offer-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: #ef4444;
}

/* ===================================================
   HEADER & NAVBAR (DESKTOP & MOBILE UX)
   =================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    background: transparent;
    transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

header.scrolled {
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}
.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.logo:hover .logo-img {
    transform: scale(1.04);
}

/* Desktop Navigation */
nav#mainNav {
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.nav-links-desktop {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links-desktop li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    border-radius: 10px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.nav-links-desktop li a:hover,
.nav-links-desktop li a.active {
    color: var(--primary);
    background: var(--primary-glow);
}

/* Hide Mobile Elements on Desktop by Default */
.nav-header-mobile,
.nav-links-mobile,
.nav-auth-mobile,
.nav-backdrop,
.menu-toggle {
    display: none !important;
}

/* Header Right Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.welcome-text {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}
.welcome-text strong {
    color: var(--primary);
}

.theme-toggle, .notification-bell {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    font-size: 15px;
}
.theme-toggle:hover, .notification-bell:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-glow);
}

/* Notifications Badge & Panel */
.notification-dropdown { position: relative; }
.notif-badge {
    position: absolute;
    top: -2px;
    left: -2px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(239,68,68,0.5);
}

.notification-panel {
    position: absolute;
    top: 48px;
    right: 0;
    width: 340px;
    max-height: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    z-index: 1050;
    overflow: hidden;
    backdrop-filter: blur(16px);
}
.notification-panel.show {
    display: flex;
    animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.notif-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}
.notif-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}
.mark-all-btn {
    background: var(--primary-glow);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: var(--primary);
    font-size: 11.5px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.mark-all-btn:hover {
    background: var(--primary);
    color: #080c14;
    border-color: transparent;
    box-shadow: 0 0 12px var(--primary-glow);
}

.notif-list {
    flex: 1;
    overflow-y: auto;
}
.no-notifs {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13.5px;
}

.notif-item {
    padding: 14px 18px;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}
.notif-item:hover {
    background: var(--primary-glow);
}
.notif-item.unread {
    background: rgba(0, 240, 255, 0.04);
}
.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}
.notif-content {
    flex: 1;
}
.notif-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}
.notif-message {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}
.notif-time {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Buttons & CTA */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #080c14;
    box-shadow: 0 4px 20px rgba(0,240,255,0.25);
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,240,255,0.42);
    color: #080c14;
}
.cta-btn.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    box-shadow: none;
}
.cta-btn.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-glow);
}
.cta-btn.btn-logout {
    background: transparent;
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
    box-shadow: none;
    padding: 8px 16px;
    font-size: 13px;
}
.cta-btn.btn-logout:hover {
    background: rgba(239,68,68,0.1);
    border-color: #ef4444;
}

/* Hamburger Toggle Button */
.menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    cursor: pointer;
    padding: 9px 8px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s ease;
    z-index: 1001;
}
.menu-toggle:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===================================================
   HERO SECTION
   =================================================== */

.hero {
    position: relative;
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 70px 0;
}
.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-shape { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.09; }
.hero-shape:nth-child(1) { width: 550px; height: 550px; background: var(--primary); top: -180px; right: -120px; animation: floatShape 8s ease-in-out infinite; }
.hero-shape:nth-child(2) { width: 400px; height: 400px; background: var(--accent); bottom: -120px; left: -70px; animation: floatShape 10s ease-in-out infinite reverse; }

.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.hero-particle { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); opacity: 0.45; animation: particleFloat linear infinite; }
.hero-particle:nth-child(1) { left: 10%; top: 20%; animation-duration: 6s; }
.hero-particle:nth-child(2) { left: 25%; top: 60%; animation-duration: 8s; animation-delay: 1s; width: 6px; height: 6px; }
.hero-particle:nth-child(3) { left: 50%; top: 30%; animation-duration: 7s; animation-delay: 2s; background: var(--accent); }

@keyframes particleFloat { 0% { transform: translateY(0) scale(1); opacity: 0.4; } 50% { transform: translateY(-30px) scale(1.3); opacity: 0.7; } 100% { transform: translateY(0) scale(1); opacity: 0.4; } }
@keyframes floatShape { 0%, 100% { transform: translate(0,0) scale(1); } 33% { transform: translate(20px,-20px) scale(1.05); } 66% { transform: translate(-10px,15px) scale(0.95); } }

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero-content h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 900; line-height: 1.25; margin-bottom: 20px; letter-spacing: -0.5px; }
.hero-content h1 span { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-content > p { font-size: 16.5px; color: var(--text-muted); line-height: 1.85; margin-bottom: 32px; }
.hero-visual { display: flex; align-items: center; justify-content: center; position: relative; }
.hero-circle { width: 280px; height: 280px; border-radius: 50%; border: 2px solid rgba(0,240,255,0.18); display: flex; align-items: center; justify-content: center; position: relative; animation: rotateSlow 20s linear infinite; background: radial-gradient(circle, rgba(0,240,255,0.06) 0%, transparent 70%); }
.hero-circle::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(0,240,255,0.12); }
@keyframes rotateSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero-inner-card { position: absolute; bottom: -20px; left: -20px; padding: 20px 24px; max-width: 240px; text-align: right; border: 1px solid var(--border-hover); box-shadow: var(--shadow-colored); }

/* ===================================================
   SECTION TITLES & CARDS
   =================================================== */

.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: clamp(26px, 3.8vw, 38px); font-weight: 800; margin-bottom: 14px; }
.section-title h2 span { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-title p { font-size: 16px; color: var(--text-muted); max-width: 620px; margin: 0 auto; line-height: 1.8; }

.services-grid, .clients-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card, .client-card { padding: 32px 26px; border-radius: 20px; transition: all 0.35s ease; position: relative; overflow: hidden; }
.service-card:hover, .client-card:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: var(--shadow-colored); }
.service-icon { width: 60px; height: 60px; border-radius: 16px; background: var(--primary-glow); border: 1px solid rgba(0,240,255,0.2); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 26px; color: var(--primary); transition: all 0.3s ease; }
.service-card:hover .service-icon { transform: scale(1.06); background: var(--primary-glow-strong); }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.8; }

.client-card { text-align: center; }
.client-logo-container { width: 96px; height: 96px; border-radius: 50%; background: var(--bg-card-hover); border: 2px solid var(--border-color); margin: 0 auto 18px auto; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: border-color 0.3s ease; }
.client-card:hover .client-logo-container { border-color: var(--primary); }
.client-logo-container img { width: 100%; height: 100%; object-fit: cover; }
.client-type { display: inline-block; font-size: 12px; font-weight: 600; color: var(--primary); background: var(--primary-glow); border: 1px solid rgba(0,240,255,0.2); border-radius: 20px; padding: 3px 12px; margin-bottom: 12px; }
.client-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.8; }

/* Stat cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}
.stat-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-colored);
    transform: translateY(-3px);
}
.stat-info h4 {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.stat-info p {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* ===================================================
   ADMIN & DASHBOARD COMMON UI
   =================================================== */

.admin-title-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.admin-page-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
}
.admin-page-title i {
    color: var(--primary);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Cairo', sans-serif;
    text-decoration: none;
    white-space: nowrap;
}
.action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-glow);
}
.action-btn.btn-danger {
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}
.action-btn.btn-danger:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: #ef4444;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}
.badge-primary { background: var(--primary-glow); color: var(--primary); border: 1px solid rgba(0,240,255,0.25); }
.badge-success { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.badge-warning { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.25); }
.badge-danger { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.25); }
.badge-accent { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(168,85,247,0.25); }
.badge-pending { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.25); }
.badge-contacted { background: rgba(59,130,246,0.12); color: #3b82f6; border: 1px solid rgba(59,130,246,0.25); }
.badge-inprogress { background: var(--primary-glow); color: var(--primary); border: 1px solid rgba(0,240,255,0.25); }
.badge-completed { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.25); }

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 18px;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
th, td {
    padding: 14px 18px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}
th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 13px;
    white-space: nowrap;
}
td {
    color: var(--text-main);
}
tr:last-child td {
    border-bottom: none;
}
tr:hover td {
    background: var(--primary-glow);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    margin-bottom: 30px;
}
.dashboard-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.search-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.search-input {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    width: 260px;
    outline: none;
    transition: all 0.25s ease;
}
.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3.5px var(--primary-glow);
    width: 300px;
}
.filter-select {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-grid .full-width {
    grid-column: 1 / -1;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 5000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease;
}
.modal-content, .modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
    position: relative;
    box-shadow: var(--shadow);
}
.close-modal, .modal-close {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    font-size: 18px;
}
.close-modal:hover, .modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
}

.login-box { max-width: 450px; margin: 0 auto; padding: 45px 35px; border-radius: 24px; text-align: center; }
.login-box h2 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.form-group { margin-bottom: 18px; text-align: right; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 12px; color: var(--text-main); font-family: 'Cairo', sans-serif; font-size: 14px; transition: all 0.25s ease; outline: none; direction: rtl; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3.5px var(--primary-glow); }

/* Google Sign-In & Divider styling */
.google-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}
.google-divider::before, .google-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.google-btn-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0 5px 0;
    min-height: 48px;
}
.google-btn-wrapper iframe {
    margin: 0 auto !important;
}

footer { background: var(--bg-card); border-top: 1px solid var(--border-color); padding: 60px 0 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 45px; margin-bottom: 40px; }
.footer-info p { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-top: 16px; }
.footer-links h4 { font-size: 15px; margin-bottom: 18px; border-bottom: 2px solid var(--primary-glow); display: inline-block; padding-bottom: 6px; }
.footer-links ul li a { font-size: 14px; color: var(--text-muted); }
.footer-links ul li a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border-color); padding: 20px 0; text-align: center; font-size: 13px; color: var(--text-muted); }

.whatsapp-float { position: fixed; bottom: 85px; right: 20px; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; }
.whatsapp-toggle { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, #25D366, #128C7E); box-shadow: 0 4px 22px rgba(37,211,102,0.4); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.25s ease; }
.whatsapp-toggle:hover { transform: scale(1.08); }
.whatsapp-toggle i { font-size: 28px; color: #fff; }

/* Animation Reveal */
.reveal, .reveal-up, .reveal-down, .reveal-scale { opacity: 0; transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-up { transform: translateY(30px); }
.reveal-scale { transform: scale(0.92); }
.reveal.active, .reveal-up.active, .reveal-scale.active { opacity: 1; transform: none; }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* ===================================================
   RESPONSIVE UX / UI (DESKTOP & MOBILE MEDIA QUERIES)
   =================================================== */

@media (max-width: 1024px) {
    .hero-grid { gap: 35px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-info { grid-column: 1 / -1; }
}

/* MOBILE VIEWPORT <= 900px */
@media (max-width: 900px) {
    body { padding-top: 66px; }
    header { padding: 10px 0; }
    .header-container { gap: 12px; }
    .logo-img { height: 34px; }
    
    /* Show Mobile Hamburger Toggle */
    .menu-toggle { display: flex !important; }
    
    /* Hide Desktop Navigation Links */
    .nav-links-desktop {
        display: none !important;
    }
    
    /* Mobile Side Drawer Navigation */
    nav#mainNav {
        position: fixed;
        top: 0;
        right: -100%;
        bottom: 0;
        width: 290px;
        background: var(--bg-card);
        border-left: 1px solid var(--border-color);
        z-index: 1200;
        display: flex;
        flex-direction: column;
        padding: 20px;
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        gap: 16px;
        box-shadow: none;
    }
    nav#mainNav.nav-open {
        right: 0;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    }
    
    /* Mobile Header inside Side Drawer */
    .nav-header-mobile {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 12px;
        width: 100%;
    }
    .nav-logo-mobile {
        height: 32px;
        width: auto;
        object-fit: contain;
    }
    .nav-brand-mobile {
        font-weight: 800;
        font-size: 16px;
        background: linear-gradient(135deg, var(--primary), var(--accent));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin: 0 auto 0 10px;
        white-space: nowrap;
    }
    .nav-close-sheet {
        display: flex !important;
        background: var(--bg-main);
        border: 1px solid var(--border-color);
        color: var(--text-muted);
        width: 34px;
        height: 34px;
        border-radius: 50%;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        transition: all 0.25s ease;
        flex-shrink: 0;
    }
    .nav-close-sheet:hover {
        background: rgba(239, 68, 68, 0.15);
        color: #ef4444;
        border-color: #ef4444;
    }
    
    .nav-links-mobile {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
    }
    .nav-links-mobile a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        font-size: 14.5px;
        font-weight: 600;
        color: var(--text-light);
        border-radius: 10px;
        transition: all 0.2s ease;
    }
    .nav-links-mobile a i {
        font-size: 16px;
        color: var(--text-muted);
        width: 20px;
        text-align: center;
    }
    .nav-links-mobile a:hover, .nav-links-mobile a.active {
        color: var(--primary);
        background: var(--primary-glow);
    }
    .nav-links-mobile a:hover i, .nav-links-mobile a.active i {
        color: var(--primary);
    }
    
    .nav-section-label {
        display: block !important;
        font-size: 11px;
        font-weight: 800;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin: 12px 14px 4px 0;
    }
    
    .nav-auth-mobile {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid var(--border-color);
    }
    .nav-auth-mobile .cta-btn {
        justify-content: center;
        width: 100%;
        padding: 11px;
    }
    .nav-auth-mobile .welcome-text {
        text-align: center;
        margin-bottom: 4px;
        font-size: 13.5px;
    }
    
    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.65);
        backdrop-filter: blur(4px);
        z-index: 1150;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .nav-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }

    .header-actions .cta-btn,
    .header-actions .welcome-text {
        display: none !important;
    }
    
    .hero {
        padding: 35px 0 50px;
        min-height: auto;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .hero-content h1 {
        font-size: clamp(23px, 6vw, 34px);
    }
    .hero-content > p {
        font-size: 14.5px;
        margin-bottom: 22px;
    }
    .hero-content div[style*="display: flex"] {
        flex-direction: column;
        gap: 10px !important;
        align-items: stretch;
    }
    .hero-content .cta-btn {
        width: 100%;
        justify-content: center;
    }
    .hero-visual {
        order: -1;
        margin-top: 10px;
    }
    .hero-circle {
        width: 170px;
        height: 170px;
    }
    .hero-inner-card {
        position: relative;
        left: 0;
        bottom: 0;
        margin: 18px auto 0;
        max-width: 300px;
        text-align: center;
    }

    .services-grid, .clients-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .service-card, .client-card {
        padding: 22px 18px;
    }
    
    .login-box {
        padding: 28px 18px;
    }

    .notification-panel {
        width: 290px;
        right: -40px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-content h1 { font-size: 23px; }
    .section-title h2 { font-size: 21px; }
    .whatsapp-float { bottom: 75px; right: 12px; }
    .whatsapp-float.left { left: 12px; }
}

body.has-welcome-banner .whatsapp-float { bottom: 170px; }
@media (max-width: 480px) { body.has-welcome-banner .whatsapp-float { bottom: 190px; } }