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

/* ==========================================
   DESIGN SYSTEM VARIABLES (Light Theme Default)
   ========================================== */
:root {
    /* Fonts */
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Outfit', sans-serif;

    /* Colors (Inspired by reference screenshot) */
    --bg-page: #edf2f7;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    /* Brand Accent Colors */
    --brand-primary: #009663; /* Solid Emerald Green from image */
    --brand-hover: #008054;
    --brand-light: #e6f7f0;
    --brand-primary-rgb: 0, 150, 99;

    --rate-up: #009663;
    --rate-down: #ef4444;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --input-focus: #009663;
    
    /* Interface Shadows & Transitions */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 20px 35px -10px rgba(0, 0, 0, 0.08), 0 10px 20px -8px rgba(0, 0, 0, 0.04);
    --transition-speed: 0.25s;
}

/* ==========================================
   RESET & SYSTEM STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    transition: background-color var(--transition-speed) ease, 
                border-color var(--transition-speed) ease, 
                color var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
}

body.rtl {
    font-family: var(--font-ar);
}
body.ltr {
    font-family: var(--font-en);
}

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

/* ==========================================
   LAYOUT UTILITIES & CONTAINERS
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

section {
    padding: 96px 0;
}

/* White clean card layout */
.content-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.content-card-hover {
    transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow var(--transition-speed) ease;
}

.content-card-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(var(--brand-primary-rgb), 0.25);
}

/* ==========================================
   TYPOGRAPHY & ACCENTS
   ========================================== */
h1, h2, h3, h4 {
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-primary);
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 12px;
    background-color: var(--brand-light);
    border-radius: 50px;
    border: 1px solid rgba(var(--brand-primary-rgb), 0.15);
}

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

.section-title {
    font-size: 1.8rem;
    margin-top: 8px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 16px;
}

/* Buttons style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--brand-hover);
    box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb), 0.15);
}

.btn-secondary {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background-color: var(--bg-page);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* ==========================================
   HEADER / STICKY NAVIGATION (Floating Glass Dock)
   ========================================== */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1200px;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.logo-icon {
    width: 38px;
    height: 38px;
    background-color: var(--brand-primary);
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-primary);
    transition: width var(--transition-speed) ease;
}

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

.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Control Selector Lang */
.control-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.control-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* Hamburger toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 110;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform 0.3s, opacity 0.3s;
}

/* Mobile Side Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--card-bg);
    border-left: 1px solid var(--border-color);
    z-index: 99;
    padding: 100px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.ltr .mobile-nav {
    right: auto;
    left: -100%;
    border-left: none;
    border-right: 1px solid var(--border-color);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.rtl.nav-open .mobile-nav { right: 0; }
body.ltr.nav-open .mobile-nav { left: 0; }

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a {
    font-size: 1.1rem;
    font-weight: 700;
}

/* ==========================================
   HERO SECTION (Centered Layout)
   ========================================== */
.hero-section {
    padding-top: 180px;
    padding-bottom: 80px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 760px;
}

body.rtl .hero-content {
    text-align: center;
    align-items: center;
}

body.ltr .hero-content {
    text-align: center;
    align-items: center;
}

.hero-title {
    font-size: clamp(1.8rem, 3.8vw, 2.8rem);
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.3;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 680px;
}

.hero-badges {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

.hero-badge-item svg {
    width: 14px;
    height: 14px;
    fill: var(--brand-primary);
}

/* ==========================================
   SERVICES SECTION (Symmetric Redesign)
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    position: relative;
    border-radius: 20px;
    padding: 40px 32px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right; /* Default Right-aligned text for RTL */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.rtl .service-card {
    align-items: flex-start;
    text-align: right;
}

body.ltr .service-card {
    align-items: flex-start;
    text-align: left; /* Left-aligned text for LTR */
}

/* Hover style: Lifts card slightly and colors the border green */
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-primary);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--brand-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(var(--brand-primary-rgb), 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.3s ease, 
                color 0.3s ease;
}

.service-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* On hover, lift and highlights the icon box */
.service-card:hover .service-icon {
    transform: translateY(-4px);
    background-color: var(--brand-primary);
    color: #ffffff;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 750;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ==========================================
   LOCATION & BRANCH SECTION (Side-by-Side)
   ========================================== */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}

.loc-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.loc-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

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

.loc-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

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

.loc-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.loc-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.5;
}

/* Vector Map Panel Layout */
.map-panel {
    border-radius: 20px;
    overflow: hidden;
    height: 340px;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.map-panel:hover {
    transform: translateY(-4px);
    border-color: var(--brand-primary);
}

.map-container {
    width: 100%;
    height: 100%;
    background-color: #f1f5f9;
    background-image: 
        radial-gradient(#cbd5e1 1px, transparent 0),
        radial-gradient(#cbd5e1 1px, transparent 0);
    background-size: 14px 14px;
    background-position: 0 0, 7px 7px;
    position: relative;
    overflow: hidden;
}

.map-sea-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #e0f2fe;
    border-bottom: 2px dashed #bae6fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0284c7;
    letter-spacing: 0.05em;
    z-index: 2;
}

/* Parks */
.map-park {
    position: absolute;
    background-color: #e2f1e4;
    border: 1px solid #c2e2c6;
    border-radius: 12px;
    z-index: 1;
}

.park-1 {
    top: 85px;
    left: 20px;
    width: 110px;
    height: 60px;
}

.park-2 {
    bottom: 25px;
    right: 40px;
    width: 120px;
    height: 70px;
}

/* Roads & Dashed Centerlines */
.map-road {
    position: absolute;
    background-color: #ffffff;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.road-h { 
    top: 180px; 
    left: 0; 
    width: 100%; 
    height: 20px; 
}
.road-h::after {
    content: '';
    width: 100%;
    height: 0;
    border-top: 1px dashed #cbd5e1;
}

.road-h-2 {
    top: 270px;
    left: 0;
    width: 100%;
    height: 16px;
    background-color: #f8fafc;
}
.road-h-2::after {
    content: '';
    width: 100%;
    height: 0;
    border-top: 1px dotted #cbd5e1;
}

.road-v { 
    top: 70px; 
    left: 180px; 
    width: 20px; 
    height: 270px; 
}
.road-v::after {
    content: '';
    height: 100%;
    width: 0;
    border-left: 1px dashed #cbd5e1;
}

/* Compass */
.map-compass {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 38px;
    height: 38px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    z-index: 3;
}

.map-compass svg {
    width: 20px;
    height: 20px;
}

.map-pin {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.pin-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-muted);
    border: 2px solid #ffffff;
    box-shadow: var(--shadow-sm);
}

.pin-name {
    font-size: 0.7rem;
    font-weight: 700;
    background-color: #ffffff;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-top: 4px;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.pin-hotel {
    top: 120px;
    left: 70px;
}

.pin-alazdehar {
    top: 150px;
    left: 205px;
}

.pin-alazdehar .pin-dot {
    width: 16px;
    height: 16px;
    background-color: var(--brand-primary);
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 150, 99, 0.4);
    animation: pinPulse 1.5s infinite alternate;
}

.pin-alazdehar .pin-name {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    font-weight: 800;
}

@keyframes pinPulse {
    0% { transform: scale(1); box-shadow: 0 0 4px rgba(0, 150, 99, 0.4); }
    100% { transform: scale(1.15); box-shadow: 0 0 12px rgba(0, 150, 99, 0.7); }
}

/* ==========================================
   CONTACT FORM SECTION (Underlined Fields)
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-card);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

body.rtl .form-label-row {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.form-label-row svg {
    width: 14px;
    height: 14px;
    fill: var(--brand-primary);
}

/* Underlined input wrappers */
.form-input-wrapper {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
    transition: border-color var(--transition-speed) ease;
}

.form-input:focus {
    border-color: var(--brand-primary);
    box-shadow: none;
}

body.rtl .form-input { text-align: right; }

.form-input-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--brand-primary);
    transition: width 0.3s ease;
}

.form-input:focus ~ .form-input-line {
    width: 100%;
}

.status-msg {
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 16px;
    display: none;
    text-align: center;
}

.status-msg.success {
    background-color: var(--brand-light);
    color: var(--brand-primary);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.2);
    display: block;
}

/* ==========================================
   FOOTER (Anchors design)
   ========================================== */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 64px 0 32px 0;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

body.rtl .footer-brand { align-items: flex-start; }

.footer-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    max-width: 320px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #1e293b;
    border: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.social-btn:hover {
    color: #ffffff;
    background-color: #334155;
    border-color: #475569;
}

.social-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 16px;
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background-color: var(--bg-page);
}
::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--brand-primary);
}

/* ==========================================
   RATES & CALCULATOR SECTION
   ========================================== */
#rates {
    background-color: #f8fafc;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.rates-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: stretch;
}

.rates-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calculator-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(var(--brand-primary-rgb), 0.02) 100%);
    border-color: rgba(var(--brand-primary-rgb), 0.12);
}

.rates-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    flex-wrap: wrap;
    gap: 16px;
}

.rates-tabs {
    display: flex;
    background-color: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
}

.rates-tab {
    padding: 8px 20px;
    border: none;
    background-color: transparent;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.rates-tab.active {
    background-color: var(--card-bg);
    color: var(--brand-primary);
    box-shadow: var(--shadow-sm);
}

.rates-live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--brand-light);
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(var(--brand-primary-rgb), 0.15);
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
    animation: livePulse 1.2s infinite alternate;
}

@keyframes livePulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.25); opacity: 1; }
}

.rates-live-badge span:last-child {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

body.ltr .rates-table {
    text-align: left;
}

.rates-table th {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
}

.rates-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    vertical-align: middle;
}

.rates-table tbody tr {
    transition: background-color 0.2s ease;
}

.rates-table tbody tr:hover {
    background-color: rgba(var(--brand-primary-rgb), 0.015);
}

.currency-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.currency-flag-initials {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.flag-usd { background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: #ffffff; }
.flag-eur { background: linear-gradient(135deg, #d97706, #f59e0b); color: #ffffff; }
.flag-gbp { background: linear-gradient(135deg, #065f46, #10b981); color: #ffffff; }
.flag-try { background: linear-gradient(135deg, #991b1b, #ef4444); color: #ffffff; }
.flag-egp { background: linear-gradient(135deg, #374151, #9ca3af); color: #ffffff; }

.currency-name-text {
    font-size: 0.95rem;
    font-weight: 700;
}

.rate-val {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.flash-up {
    animation: flashGreen 1.5s ease;
}

.flash-down {
    animation: flashRed 1.5s ease;
}

@keyframes flashGreen {
    0% { background-color: rgba(16, 185, 129, 0.25); color: #10b981; }
    100% { background-color: transparent; }
}

@keyframes flashRed {
    0% { background-color: rgba(239, 68, 68, 0.25); color: #ef4444; }
    100% { background-color: transparent; }
}

.change-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

body.rtl .change-cell {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rate-up { color: #10b981; }
.rate-down { color: #ef4444; }
.rate-stable { color: var(--text-muted); }

.trend-arrow {
    font-size: 0.75rem;
}

.rates-footer-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.update-stamp {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Calculator specific styles */
.calc-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

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

.calc-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
    background-color: var(--card-bg);
}

body.rtl .calc-input {
    padding-left: 70px;
}
body.ltr .calc-input {
    padding-right: 70px;
}

.calc-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.1);
}

.calc-currency-badge {
    position: absolute;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--brand-primary);
    background-color: var(--brand-light);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(var(--brand-primary-rgb), 0.1);
}

body.rtl .calc-currency-badge {
    left: 12px;
}
body.ltr .calc-currency-badge {
    right: 12px;
}

.calc-swap-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: flex-end;
    gap: 12px;
}

.calc-select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-select-wrapper label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.calc-select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
    background-color: var(--card-bg);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.calc-select:focus {
    border-color: var(--brand-primary);
}

.btn-swap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--brand-primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.btn-swap:hover {
    transform: rotate(180deg);
    border-color: var(--brand-primary);
    background-color: var(--brand-light);
}

.btn-swap svg {
    width: 18px;
    height: 18px;
}

.calc-result-box {
    margin-top: 12px;
    background-color: rgba(var(--brand-primary-rgb), 0.03);
    border: 1px dashed rgba(var(--brand-primary-rgb), 0.25);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.result-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-primary);
    font-family: monospace;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.result-currency {
    font-size: 1rem;
    font-weight: 800;
}

.calc-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-weight: 600;
}

/* ==========================================
   BENTO GRID STYLING & DECORATIVE PILLS/GRAPHICS
   ========================================== */
.bento-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.bento-pill {
    padding: 6px 12px;
    background-color: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 750;
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

.service-card:hover .bento-pill {
    background-color: var(--brand-light);
    border-color: rgba(var(--brand-primary-rgb), 0.2);
    color: var(--brand-primary);
}

.bento-graphic-container {
    width: 100%;
    height: 140px;
    margin-top: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f8fafc;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
}

.service-card:hover .bento-graphic-container {
    background-color: var(--brand-light);
    border-color: rgba(var(--brand-primary-rgb), 0.15);
}

/* Globe graphic */
.bento-graphic-globe {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px dashed rgba(var(--brand-primary-rgb), 0.3);
    position: relative;
    animation: rotateGlobe 12s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.bento-graphic-globe::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 40px;
    border-radius: 50%;
    border-top: 2px solid rgba(var(--brand-primary-rgb), 0.25);
    border-bottom: 2px solid rgba(var(--brand-primary-rgb), 0.25);
    top: 50%;
    transform: translateY(-50%);
}

.bento-graphic-globe::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 80px;
    border-radius: 50%;
    border-left: 2px solid rgba(var(--brand-primary-rgb), 0.25);
    border-right: 2px solid rgba(var(--brand-primary-rgb), 0.25);
    left: 50%;
    transform: translateX(-50%);
}

@keyframes rotateGlobe {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Transfer Arrow graphic */
.bento-graphic-arrow {
    position: absolute;
    color: var(--brand-primary);
    animation: bounceArrow 2.5s ease-in-out infinite alternate;
}

@keyframes bounceArrow {
    0% { transform: translate(-15px, -5px); opacity: 0.6; }
    100% { transform: translate(15px, 5px); opacity: 1; }
}

@media (min-width: 1025px) {
    .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
        gap: 32px;
    }
    
    .bento-wide-1 {
        grid-column: span 2;
    }
    
    .bento-tall {
        grid-column: 3;
        grid-row: span 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .bento-small {
        grid-column: 1;
    }
    
    .bento-wide-2 {
        grid-column: span 2;
        display: flex;
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
    }
    
    .bento-wide-2-content {
        flex: 1;
    }
}

/* ==========================================
   RESPONSIVE LAYOUTS (Symmetric Centered)
   ========================================== */
@media (max-width: 1024px) {
    header {
        top: 12px;
        width: calc(100% - 24px);
    }
    
    .hero-grid {
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    body.rtl .hero-content { text-align: center; }
    
    .rates-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 64px 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-swap-row {
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: center;
        text-align: center;
    }
    
    .btn-swap {
        margin: 8px auto;
        transform: rotate(90deg);
    }
    
    .btn-swap:hover {
        transform: rotate(270deg);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    body.rtl .footer-brand { align-items: center; }
    
    .footer-col {
        align-items: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
