/* ==========================================
   قافلة الجزيرة - نظام ضمان البطاريات
   Unified Styles
   ========================================== */

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

/* ==========================================
   CSS Variables - Global Theme
   يمكنك تغيير الألوان من هنا لتغيير مظهر الموقع بالكامل
   ========================================== */
:root {
    /* الألوان الأساسية - Primary Colors (البرتقالي/الذهبي من الشعار) */
    --primary-color: #fea500;        /* البرتقالي الأساسي */
    --primary-light: #ffb733;        /* برتقالي فاتح */
    --primary-dark: #e69500;         /* برتقالي غامق */
    --primary-gradient: linear-gradient(135deg, #fea500 0%, #e69500 100%);
    
    /* الألوان الثانوية - Secondary Colors (الأسود من الشعار) */
    --secondary-color: #1a1a1a;      /* الأسود */
    --secondary-light: #333333;      /* أسود فاتح */
    --secondary-dark: #000000;       /* أسود غامق */
    
    /* ألوان النص - Text Colors */
    --text-dark: #1a1a2e;
    --text-color: #333333;
    --text-light: #555555;
    --text-muted: #777777;
    
    /* ألوان الخلفية - Background Colors */
    --white: #ffffff;
    --light-bg: #f5f7fa;
    --gray-bg: #eef1f5;
    --dark-bg: #1a1a2e;
    
    /* ألوان الحدود - Border Colors */
    --border-color: #e2e8f0;
    --border-light: #f0f0f5;
    
    /* ألوان الحالات - State Colors */
    --success-color: #10b981;
    --success-light: #d1fae5;
    --danger-color: #ef4444;
    --danger-light: #fee2e2;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --info-color: #3b82f6;
    --info-light: #dbeafe;
    
    /* الظلال - Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 4px 15px rgba(254, 165, 0, 0.3);
    
    /* الانتقالات والتأثيرات */
    --transition-fast: all 0.15s ease;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* الزوايا الدائرية */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    /* الأبعاد */
    --sidebar-width: 280px;
    --sidebar-collapsed: 70px;
    --header-height: 72px;
    --container-max: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
}

/* ==========================================
   Main Content
   ========================================== */
.main-content {
    min-height: calc(100vh - var(--header-height) - 300px);
}

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

.container-sm {
    max-width: 800px;
}

.container-lg {
    max-width: 1400px;
}

/* ==========================================
   Header / Navbar
   ========================================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

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

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

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

.logo img {
    height: 45px;
    width: auto;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.header-cta:hover {
    background: var(--primary-dark);
}

.header-cta svg {
    width: 18px;
    height: 18px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-toggle:hover {
    background: var(--light-bg);
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================
   Mobile Menu
   ========================================== */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85%;
    height: 100vh;
    background: var(--white);
    z-index: 1002;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-hover);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header .logo {
    gap: 8px;
}

.mobile-menu-header .logo img {
    height: 40px;
}

.mobile-menu-header .logo span {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
}

.mobile-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--text-light);
}

.mobile-close:hover {
    background: var(--light-bg);
    color: var(--text-dark);
}

.mobile-nav {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--border-radius-sm);
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: var(--light-bg);
    color: var(--primary-color);
}

.mobile-nav a svg {
    width: 20px;
    height: 20px;
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: #1a1a1a;
    border-color: var(--primary-color);
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(254, 165, 0, 0.4);
}

.btn-secondary {
    background: #1a1a1a;
    color: var(--white);
    border-color: #1a1a1a;
}

.btn-secondary:hover {
    background: #333333;
    border-color: #333333;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #1a1a1a;
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: var(--white);
    color: #1a1a1a;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
    border-color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger-dark);
    border-color: var(--danger-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--text-dark);
    padding: 8px 12px;
}

.btn-ghost:hover {
    background: var(--light-bg);
}

/* ==========================================
   Forms
   ========================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(254, 165, 0, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.form-error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 6px;
}

.form-hint {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 6px;
}

/* ==========================================
   Cards
   ========================================== */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

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

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--light-bg);
}

/* ==========================================
   Alerts
   ========================================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.alert-warning {
    background: rgba(248, 181, 0, 0.1);
    color: #c79100;
    border: 1px solid rgba(248, 181, 0, 0.2);
}

/* ==========================================
   Account Layout with Sidebar
   ========================================== */
.account-layout {
    min-height: 100vh;
    background: var(--light-bg);
    padding-top: var(--header-height);
}

.account-wrapper {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    border-left: 1px solid var(--border-color);
    position: fixed;
    top: var(--header-height);
    right: 0;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
}

.sidebar-user-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.sidebar-user-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sidebar-nav {
    padding: 15px 12px;
}

.sidebar-nav-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 4px;
}

.sidebar-nav a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.sidebar-nav a.active {
    background: rgba(254, 165, 0, 0.15);
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-nav a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-nav a.logout-link {
    color: var(--danger);
}

.sidebar-nav a.logout-link:hover {
    background: rgba(220, 53, 69, 0.1);
}

/* Mobile Sidebar Toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: var(--primary-dark);
}

.sidebar-toggle svg {
    width: 24px;
    height: 24px;
}

/* Account Content */
.account-content {
    flex: 1;
    margin-right: var(--sidebar-width);
    padding: 30px;
    transition: var(--transition);
}

.account-content-header {
    margin-bottom: 30px;
}

.account-content-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.account-content-header p {
    color: var(--text-light);
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 32px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.welcome-card h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.welcome-card p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.welcome-card .btn {
    background: var(--secondary-color);
    color: var(--text-light);
    border-color: var(--secondary-color);
}

.welcome-card .btn:hover {
    background: var(--secondary-light);
    border-color: var(--secondary-light);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(254, 165, 0, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.stat-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.stat-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Quick Links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.quick-link:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.quick-link-icon {
    width: 48px;
    height: 48px;
    background: var(--light-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-link-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.quick-link-content h4 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.quick-link-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(254, 165, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(254, 165, 0, 0.1) 0%, transparent 50%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #1a1a1a;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.battery-icon {
    width: 200px;
    height: 200px;
    color: var(--primary-color);
    animation: float 3s ease-in-out infinite;
}

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

.shield-badge {
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    color: var(--primary-color);
    animation: pulse-glow 2s ease-in-out infinite;
}

.shield-badge svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 20px rgba(254, 165, 0, 0.4));
}

.circle-decoration {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(254, 165, 0, 0.2);
}

.circle-1 {
    width: 350px;
    height: 350px;
    animation: rotate-slow 20s linear infinite;
}

.circle-2 {
    width: 280px;
    height: 280px;
    border-style: dashed;
    animation: rotate-slow 15s linear infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: rgba(254, 165, 0, 0.05);
    border: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

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

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(254, 165, 0, 0.3);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================
   Section Common Styles
   ========================================== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-badge {
    display: inline-block;
    background: rgba(254, 165, 0, 0.15);
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 20px;
    display: block;
    width: 100%;
}

.section-description {
    font-size: 1.1rem;
    color: #555555;
    max-width: 600px;
    margin: 0 auto;
    display: block;
    width: 100%;
}

/* ==========================================
   Features / Cards Section
   ========================================== */
.features {
    background: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.features-grid.features-grid-3 {
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #1a1a1a;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.feature-description {
    color: #555555;
    line-height: 1.7;
}

/* ==========================================
   Map Section
   ========================================== */
.map-section {
    background: var(--light-bg);
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.map-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.map-info-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.map-info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.map-info-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.map-info-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.map-info-content p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

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

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo img {
    filter: brightness(0) invert(1);
}

.footer-brand .logo span {
    color: var(--white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links ul a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact ul li svg {
    color: var(--secondary-color);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ==========================================
   Auth Pages
   ========================================== */
.auth-wrapper {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.auth-container {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.auth-card {
    width: 100%;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    padding: 40px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.auth-form .form-label svg {
    color: var(--primary-color);
}

.auth-form .form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all var(--transition);
}

.auth-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}

.auth-form .form-control.is-invalid {
    border-color: var(--danger-color);
}

.auth-form .form-error {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 6px;
}

.auth-form .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-form .form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.auth-form .form-check-label {
    color: var(--text-color);
    cursor: pointer;
}

.auth-form .btn-lg {
    padding: 14px 24px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-footer {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.auth-footer p {
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all var(--transition);
}

.auth-back:hover {
    color: var(--white);
    transform: translateX(-5px);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + 40px) 20px 40px;
    background: var(--light-bg);
}

.auth-body {
    padding: 32px;
}

/* ==========================================
   Page Header - Unified Design
   ========================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    color: var(--white);
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.page-header .header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.page-header .header-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.page-header .header-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--white);
}

.page-header .page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--white);
}

.page-header .page-subtitle {
    font-size: 0.95rem;
    opacity: 0.85;
    margin: 4px 0 0 0;
    color: var(--white);
}

.page-header .btn-outline {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    backdrop-filter: blur(5px);
}

.page-header .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.page-header .btn-primary {
    position: relative;
    z-index: 1;
    background: var(--white);
    color: var(--primary-dark);
    border: none;
}

.page-header .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Account Content Header - Legacy */
.account-content-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    color: var(--white);
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
}

.account-content-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.account-content-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.account-content-header p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin: 0;
    color: var(--white);
    position: relative;
    z-index: 1;
}

/* ==========================================
   Page Content & Public Page Header
   ========================================== */
.page-content {
    padding: 50px 0;
    background: var(--light-bg);
    min-height: 60vh;
}

.public-page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.public-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(254, 165, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(254, 165, 0, 0.1) 0%, transparent 50%);
}

.public-page-header .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.public-page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
}

.public-page-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    margin: 0 auto;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.empty-state svg {
    margin-bottom: 20px;
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 1.3rem;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Search Box */
.search-box {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    gap: 15px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--light-bg);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(254, 165, 0, 0.15);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Results Info */
.results-info {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.results-info strong {
    color: var(--text-dark);
}

.results-info a {
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: 600;
}

.results-info a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 40px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--border-radius-sm);
    background: var(--white);
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .active span {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

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

/* ==========================================
   Agents Page Styles
   ========================================== */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.agent-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.agent-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-bottom: 1px solid var(--border-color);
}

.agent-avatar {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 1.6rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(254, 165, 0, 0.3);
}

.agent-info {
    flex: 1;
}

.agent-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.agent-badge {
    display: inline-block;
    background: rgba(254, 165, 0, 0.15);
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.agent-card-body {
    padding: 25px;
}

.agent-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.agent-detail i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.agent-card-footer {
    display: flex;
    gap: 12px;
    padding: 20px 25px;
    background: #fafafa;
    border-top: 1px solid var(--border-color);
}

.agent-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.agent-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(254, 165, 0, 0.3);
}

.agent-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 165, 0, 0.4);
}

.agent-btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.agent-btn-outline:hover {
    background: var(--primary-color);
    color: #1a1a1a;
}

.search-input-wrapper {
    display: flex;
    gap: 15px;
    width: 100%;
}

.search-input-wrapper .search-input {
    flex: 1;
}

/* Empty State for Agents */
.empty-state {
    text-align: center;
    padding: 80px 30px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1rem;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 0;
        margin-bottom: 30px;
    }

    .hero-image img {
        max-width: 400px;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Sidebar responsive */
    .sidebar {
        right: calc(-1 * var(--sidebar-width));
    }
    
    .sidebar.active {
        right: 0;
    }
    
    .account-content {
        margin-right: 0;
    }
    
    .sidebar-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links h4::after,
    .footer-contact h4::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer-brand {
        max-width: 100%;
    }
    
    .account-content {
        padding: 20px 15px;
    }
    
    .welcome-card {
        padding: 24px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-input-wrapper {
        flex-direction: column;
    }
    
    .agents-grid {
        grid-template-columns: 1fr;
    }
    
    .agent-card-footer {
        flex-direction: column;
    }
    
    .public-page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 60px;
    }
    
    .hero {
        padding-top: 100px;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .section {
        padding: 50px 0;
    }

    .map-container iframe {
        height: 300px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Utilities
   ========================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

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

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

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
