/* --- DESIGN SYSTEM & VARIABLES --- */
:root {
    --primary: #800020;        /* Burgundy Burgundy */
    --primary-light: #a62b46;
    --secondary: #b8860b;      /* Elegant Gold */
    --secondary-light: #d4af37;
    --dark: #121212;
    --light: #faf7f2;          /* Luxury Cream Background */
    --text-dark: #2c2929;
    --text-light: #f5f5f5;
    --white: #ffffff;
    --gray-light: #f3eee8;
    --gray-medium: #e0d8cd;
    --gray-dark: #403b35;
    --danger: #c94c4c;
    --success: #2e7d32;
    --warning: #ef6c00;
    
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 8px 30px rgba(128, 0, 32, 0.04);
    --shadow-medium: 0 12px 40px rgba(128, 0, 32, 0.08);
    --shadow-premium: 0 20px 50px rgba(128, 0, 32, 0.15);
    --border-radius: 16px;
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Outfit', sans-serif;
}

/* Dark Mode Variable Overrides */
body.dark-theme {
    --light: #161616;
    --text-dark: #eae1e1;
    --white: #202020;
    --gray-light: #2a2a2a;
    --gray-medium: #3a3a3a;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* --- GENERAL RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    background-color: var(--light);
    color: var(--text-dark);
    line-height: 1.6;
    transition: var(--transition);
}

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

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

ul {
    list-style: none;
}

/* --- UTILITY CLASSES --- */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--gray-light);
}

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

.text-white {
    color: var(--text-light);
}

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

.text-danger {
    color: var(--danger) !important;
}

.text-gold {
    color: var(--secondary-light) !important;
}

.grid {
    display: grid;
    gap: 32px;
}

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

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

.premium-shadow {
    box-shadow: var(--shadow-premium);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-family: var(--font-ar);
    font-weight: 600;
    font-size: 15px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.4);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

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

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 20px;
}

.btn-xs {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 12px;
}

.btn-white {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-3px);
    background-color: var(--gray-light);
}

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

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* --- HEADER / NAVIGATION --- */
.app-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

body.dark-theme .app-header {
    background-color: rgba(22, 22, 22, 0.85);
    border-bottom: 1px solid var(--gray-medium);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.logo-icon {
    font-size: 28px;
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
}

.logo-text h1 {
    font-family: var(--font-en);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
    line-height: 1;
}

.logo-text h1 span {
    color: var(--secondary);
}

.logo-text small {
    font-family: var(--font-ar);
    font-size: 11px;
    color: var(--text-dark);
    opacity: 0.8;
}

.nav-menu ul {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: rgba(128, 0, 32, 0.08);
    color: var(--primary);
}

body.dark-theme .nav-menu a:hover, body.dark-theme .nav-menu a.active {
    background-color: rgba(184, 134, 11, 0.15);
    color: var(--secondary-light);
}

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

.download-doc-btn {
    background-color: #2b579a; /* Word color */
    color: var(--white);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-doc-btn:hover {
    background-color: #1e3f70;
    transform: translateY(-2px);
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 6px;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 60px 0;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tag {
    background-color: rgba(128, 0, 32, 0.08);
    color: var(--primary);
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(128, 0, 32, 0.15);
}

body.dark-theme .hero-tag {
    background-color: rgba(184, 134, 11, 0.12);
    color: var(--secondary-light);
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-dark);
    opacity: 0.9;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--border-radius);
    border: 2px solid var(--white);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.02);
}

.floating-badge {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    color: var(--text-dark);
}

.floating-badge.badge-1 {
    top: 20%;
    right: -40px;
    border-right: 4px solid var(--success);
    animation: float 4s ease-in-out infinite;
}

.floating-badge.badge-2 {
    bottom: 20%;
    left: -40px;
    border-left: 4px solid var(--secondary);
    animation: float 4.5s ease-in-out infinite 0.5s;
}

body.dark-theme .floating-badge {
    background-color: rgba(30, 30, 30, 0.9);
}

/* --- SECTION GENERAL HEADER --- */
.section-header {
    margin-bottom: 50px;
}

.sub-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

body.dark-theme .sub-title {
    color: var(--secondary-light);
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-dark);
    opacity: 0.8;
    max-width: 650px;
    margin: 0 auto;
}

/* --- SECTION 1: CHALLENGE CARDS --- */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 32px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.challenge-card {
    cursor: pointer;
}

.card-icon {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 24px;
}

body.dark-theme .card-icon {
    color: var(--secondary-light);
}

.card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.card p {
    font-size: 14px;
    opacity: 0.8;
    color: var(--text-dark);
}

/* Card Solution Overlay on Hover */
.solution-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 40px 32px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.challenge-card:hover .solution-overlay {
    top: 0;
}

.solution-overlay h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.solution-overlay p {
    color: var(--white);
    opacity: 0.95;
    font-size: 14px;
}

/* --- SECTION 2: TECHNICAL TABS --- */
.tech-tabs {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-medium);
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    border-bottom: 2px solid var(--gray-light);
    padding-bottom: 20px;
    margin-bottom: 32px;
}

.tab-link {
    background: none;
    border: none;
    font-family: var(--font-ar);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    opacity: 0.6;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-link:hover, .tab-link.active {
    opacity: 1;
    color: var(--primary);
    background-color: rgba(128, 0, 32, 0.08);
}

body.dark-theme .tab-link:hover, body.dark-theme .tab-link.active {
    color: var(--secondary-light);
    background-color: rgba(184, 134, 11, 0.15);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.tech-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.tech-detail-text h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.tech-detail-text p {
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 24px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list li {
    font-size: 14.5px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-list i {
    color: var(--success);
    margin-top: 4px;
    font-size: 18px;
}

.tech-detail-visual {
    border-radius: var(--border-radius);
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 24px;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.1);
}

.bg-gradient-rose {
    background: linear-gradient(135deg, #ffd1d7, #ecc1c6);
}

body.dark-theme .bg-gradient-rose {
    background: linear-gradient(135deg, #5a2e34, #2c0e12);
}

.bg-gradient-gold {
    background: linear-gradient(135deg, #f7ebb8, #dfce8f);
}

body.dark-theme .bg-gradient-gold {
    background: linear-gradient(135deg, #5e4a1a, #201a05);
}

.bg-gradient-slate {
    background: linear-gradient(135deg, #cfd8dc, #90a4ae);
}

body.dark-theme .bg-gradient-slate {
    background: linear-gradient(135deg, #263238, #10171a);
}

/* APP MOCKUPS INSIDE VISUALS */
.mockup-app {
    width: 220px;
    height: 340px;
    background-color: var(--white);
    border-radius: 24px;
    border: 6px solid #2c2c2c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mockup-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
}

.mockup-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex-grow: 1;
    background-color: #fcfcfc;
}

body.dark-theme .mockup-body {
    background-color: #1a1a1a;
}

.mockup-card {
    background-color: var(--white);
    border: 1px solid #e0d8cd;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

body.dark-theme .mockup-card {
    border-color: #3a3a3a;
}

.mockup-card-img {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 6px;
}

.mockup-card-title {
    font-size: 10px;
    font-weight: 700;
}

.mockup-card-price {
    font-size: 9px;
    color: var(--secondary);
    margin: 4px 0;
}

.old-price {
    text-decoration: line-through;
    opacity: 0.5;
    font-size: 8px;
}

.mockup-add-btn {
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    font-size: 9px;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
}

.status-dot-green {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.route-map-mock {
    height: 180px;
    background-color: #eceff1;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.map-point {
    position: absolute;
    color: var(--primary);
    font-size: 18px;
    animation: bounce 2s infinite;
}

.point-1 { top: 20%; left: 30%; }
.point-2 { top: 70%; left: 70%; color: var(--success); }

.map-line {
    position: absolute;
    top: 30%;
    left: 40%;
    width: 60px;
    height: 2px;
    background-color: var(--primary);
    transform: rotate(45deg);
    border-top: 2px dashed var(--primary);
}

.map-label {
    position: absolute;
    bottom: 6px;
    left: 6px;
    font-size: 8px;
    background-color: rgba(255,255,255,0.8);
    padding: 2px 6px;
    border-radius: 4px;
}

.mockup-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    padding: 6px;
    background-color: #eceff1;
    border-radius: 8px;
}

/* Admin Dashboard visual mockup */
.mockup-admin-dashboard {
    width: 100%;
    height: 280px;
    background-color: #2c3e50;
    border-radius: 12px;
    border: 4px solid #1a252f;
    display: flex;
    overflow: hidden;
}

.admin-sidebar {
    width: 45px;
    background-color: #1a252f;
}

.admin-main {
    flex-grow: 1;
    padding: 16px;
    background-color: #ecf0f1;
    display: flex;
    flex-direction: column;
}

.admin-bar {
    font-size: 11px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.mini-chart-bar-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 120px;
    border-bottom: 2px solid #bdc3c7;
    padding-bottom: 4px;
}

.mini-bar {
    width: 25px;
    background-color: var(--primary);
    border-radius: 4px 4px 0 0;
    animation: growBar 1.5s ease-out;
}

.bar-1 { background-color: var(--primary); }
.bar-2 { background-color: var(--secondary); }
.bar-3 { background-color: #2980b9; }

/* Architecture Box */
.architecture-box {
    margin-top: 48px;
    border-radius: var(--border-radius);
    padding: 40px;
}

.arch-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 20px;
    margin-bottom: 28px;
}

.arch-header h3 {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.arch-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

.arch-item .icon {
    font-size: 32px;
    color: var(--secondary-light);
    margin-bottom: 16px;
    display: block;
}

.arch-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.arch-item p {
    font-size: 12.5px;
    opacity: 0.75;
}

/* --- SECTION 3: FINANCIAL PROPOSAL --- */
.pricing-container {
    align-items: stretch;
}

.pricing-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 48px 40px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-light);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.pricing-card.featured {
    border: 3px solid var(--secondary);
    box-shadow: var(--shadow-premium);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary);
    color: var(--white);
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
}

.featured .pricing-badge {
    background-color: var(--secondary);
}

.pricing-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.pricing-desc {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 24px;
}

.price {
    font-family: var(--font-en);
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.featured .price {
    color: var(--secondary);
}

.price .period {
    font-family: var(--font-ar);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    opacity: 0.8;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-features li {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features i {
    color: var(--success);
}

.total-year-one {
    font-size: 16px;
    padding: 16px;
    background-color: rgba(128, 0, 32, 0.05);
    border-radius: 8px;
    margin-bottom: 24px;
    text-align: center;
    border: 1px dashed var(--primary);
}

.featured .total-year-one {
    background-color: rgba(184, 134, 11, 0.08);
    border-color: var(--secondary);
}

.pricing-note {
    margin-top: 36px;
    font-size: 13px;
    opacity: 0.8;
}

/* --- SECTION 4: ROI CALCULATOR --- */
.calc-box {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    border: 1px solid var(--gray-light);
}

.calc-inputs {
    padding: 48px;
}

.calc-inputs h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 28px;
    color: var(--text-dark);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    background-color: var(--white);
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
}

.input-wrapper input:focus {
    border-color: var(--primary);
}

.input-suffix {
    position: absolute;
    left: 16px;
    font-weight: 700;
    color: var(--text-dark);
    opacity: 0.6;
}

.input-group select {
    padding: 12px 16px;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    background-color: var(--white);
    color: var(--text-dark);
    cursor: pointer;
}

.calc-results {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calc-results h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
}

.result-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    flex-grow: 1;
}

.result-item-box {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.res-title {
    font-size: 11px;
    opacity: 0.8;
}

.res-value {
    font-family: var(--font-en);
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary-light);
}

.res-value.highlight {
    color: #4caf50;
    font-size: 28px;
}

.res-desc {
    font-size: 10px;
    opacity: 0.7;
}

/* --- SECTION 5: LIVE MOCK PROTOTYPE (DASHBOARD) --- */
.dashboard-shell {
    border-radius: var(--border-radius);
    background-color: #16191b;
    border: 4px solid #282c2f;
    min-height: 550px;
    display: flex;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

.dash-sidebar {
    width: 220px;
    background-color: #1e2225;
    border-left: 2px solid #282c2f;
    padding: 24px 0;
}

.sidebar-title {
    padding: 0 24px;
    font-family: var(--font-en);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 32px;
}

.sidebar-menu li {
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #90a4ae;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.sidebar-menu li:hover, .sidebar-menu li.active {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.05);
    border-right: 4px solid var(--secondary);
}

.dash-viewport {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #121416;
}

.dash-topbar {
    height: 70px;
    border-bottom: 2px solid #1e2225;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
}

.top-title {
    font-size: 16px;
    font-weight: 700;
}

.top-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-name {
    font-size: 12px;
    opacity: 0.8;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-panel {
    display: none;
    padding: 28px;
    overflow-y: auto;
    flex-grow: 1;
}

.dash-panel.active {
    display: flex;
    flex-direction: column;
    gap: 28px;
    animation: fadeIn 0.4s ease-in-out;
}

/* Metrics in Dashboard */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.metric-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.metric-card.alert-border {
    border-color: rgba(201, 76, 76, 0.4);
}

.met-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--secondary-light);
}

.met-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.met-label {
    font-size: 11px;
    opacity: 0.7;
}

.met-val {
    font-size: 18px;
    font-weight: 800;
}

.dash-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.dash-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
}

.dash-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feed-item {
    border-right: 2px solid var(--secondary);
    padding-right: 12px;
}

.feed-item .time {
    font-size: 9px;
    opacity: 0.6;
    display: block;
}

.feed-item p {
    font-size: 12.5px;
    margin-top: 4px;
}

/* Inventory panel styling */
.inventory-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

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

.dash-table th {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 14px;
    font-weight: 700;
    border-bottom: 2px solid rgba(255,255,255,0.08);
}

.dash-table td {
    padding: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.badge-success { background-color: rgba(46, 125, 50, 0.2); color: #81c784; }
.badge-warning { background-color: rgba(239, 108, 0, 0.2); color: #ffb74d; }
.badge-danger { background-color: rgba(201, 76, 76, 0.2); color: #e57373; }

.product-form-box {
    margin-top: 24px;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.product-form-box h4 {
    margin-bottom: 16px;
    font-size: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.form-grid input {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 6px;
    color: var(--white);
    outline: none;
    font-family: var(--font-ar);
    font-size: 13px;
}

.form-grid input:focus {
    border-color: var(--secondary-light);
}

.form-actions {
    display: flex;
    gap: 10px;
}

.hidden {
    display: none !important;
}

/* Reps tracking styling */
.reps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rep-item {
    background-color: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 14px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.rep-item:hover, .rep-item.selected-rep {
    background-color: rgba(255,255,255,0.06);
    border-color: var(--secondary-light);
}

.rep-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rep-info strong {
    font-size: 13px;
}

.rep-info span {
    font-size: 10.5px;
    opacity: 0.7;
}

.rep-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Simulated Map */
.map-container-box {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.simulated-map {
    width: 100%;
    height: 100%;
    background-color: #2b3940; /* Map theme dark */
    position: relative;
}

.map-grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.map-marker-pin {
    position: absolute;
    color: var(--danger);
    font-size: 32px;
    z-index: 10;
    transform: translate(50%, -100%);
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pin-pulse {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: rgba(201, 76, 76, 0.4);
    border-radius: 50%;
    animation: ping 2s infinite;
}

.pin-name {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark);
    color: var(--white);
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.1);
}

.map-instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 12px;
    opacity: 0.6;
    max-width: 80%;
    pointer-events: none;
}

.map-coordinate-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    font-size: 11px;
    font-family: var(--font-en);
    border-radius: 6px;
}

/* --- SECTION 6: TIMELINE & STEPS --- */
.timeline-visual {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.timeline-visual::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 30px;
    width: 4px;
    background-color: var(--gray-medium);
}

.timeline-step {
    position: relative;
    padding-right: 80px;
}

.step-num {
    position: absolute;
    right: 12px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(128, 0, 32, 0.25);
}

body.dark-theme .step-num {
    background-color: var(--secondary);
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.25);
}

.step-content h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 13.5px;
    opacity: 0.8;
}

/* --- SECTION 7: FINAL CTA --- */
.final-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.final-cta h2 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 16px;
}

.final-cta p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- FOOTER --- */
.app-footer-text {
    padding: 30px 0;
    border-top: 1px solid var(--gray-medium);
    font-size: 13px;
    opacity: 0.8;
}

body.dark-theme .app-footer-text {
    border-top-color: var(--gray-medium);
}

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

body.dark-theme .footer-content a {
    color: var(--secondary-light);
}

/* --- KEYFRAMES & ANIMATIONS --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

@keyframes ping {
    0% { transform: translateX(-50%) scale(0.5); opacity: 1; }
    100% { transform: translateX(-50%) scale(2); opacity: 0; }
}

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

@keyframes growBar {
    from { height: 0; }
}

/* --- RESPONSIVE STYLING --- */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
    .floating-badge.badge-1 { right: 0; }
    .floating-badge.badge-2 { left: 0; }
    .arch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 16px 0;
        gap: 16px;
    }
    .nav-menu ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .tech-detail-grid {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dashboard-shell {
        flex-direction: column;
    }
    .dash-sidebar {
        width: 100%;
        border-left: none;
        border-bottom: 2px solid #282c2f;
    }
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
    }
    .sidebar-menu li {
        white-space: nowrap;
    }
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 320px;
    }
}
