* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --bg-main: #020617;
    --bg-surface: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.6);
    --border-color: rgba(51, 65, 85, 0.5);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --primary: #06b6d4;      /* Cyan */
    --primary-hover: #0891b2;
    --secondary: #3b82f6;    /* Blue */
    --accent: #8b5cf6;       /* Purple */
    
    --gradient-primary: linear-gradient(to right, var(--primary), var(--secondary));
    --gradient-reverse: linear-gradient(to right, var(--secondary), var(--primary));

    --navbar-bg: rgba(2, 6, 23, 0.85);
    --mobile-nav-bg: rgba(2, 6, 23, 0.98);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    direction: rtl;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1152px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--gradient-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    color: white;
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3), 0 0 30px rgba(59, 130, 246, 0.2);
}
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5), 0 0 40px rgba(59, 130, 246, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: white;
}
.btn-outline:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: scale(1.05);
}

/* Top Header & Announcement Bar */
.top-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 60;
}

.announcement-bar {
    background-color: #000000;
    border-bottom: 1px solid rgba(6, 182, 212, 0.15);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.announcement-container {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    direction: ltr; /* Keeps terminal symbol and text left-to-right aligned like code */
}

[dir="rtl"] .announcement-container {
    direction: rtl; /* For RTL typing natural flow, but we style terminal prompt nicely */
}

.terminal-prompt {
    color: #10b981; /* Green prompt */
    font-weight: 700;
}

.terminal-text {
    color: #e2e8f0; /* Off-white terminal text */
    font-weight: 500;
    min-height: 1.25rem;
}

.terminal-cursor {
    color: var(--primary);
    font-weight: 700;
    animation: terminal-blink 1s step-end infinite;
}

@keyframes terminal-blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.sub-header {
    background-color: #080c16;
    border-bottom: 1px solid var(--border-color);
    padding: 0.45rem 0;
}

.sub-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1152px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sub-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sub-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sub-header-info {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

.sub-header-info:hover {
    color: var(--primary);
}

.sub-header-info svg {
    color: var(--primary);
}

.sub-header-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sub-header-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(6, 182, 212, 0.08);
    transform: translateY(-1px);
}

.sub-header-btn svg {
    color: var(--primary);
}

/* Responsive Sub-Header */
@media (max-width: 768px) {
    .sub-header-container {
        padding: 0.45rem 1rem;
    }
    .sub-header-left .sub-header-info:first-child {
        display: none !important; /* Hide address on small screens to save space */
    }
    .sub-header-left {
        gap: 0.75rem;
    }
    #auth-trigger {
        display: none !important; /* Hide Register button in sub-header on mobile views */
    }
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: var(--navbar-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary);
    transition: transform 0.5s ease;
}

.logo-img.logo-light {
    transform: rotate(0deg);
}

.logo-img.logo-dark {
    transform: rotate(0deg);
}

.nav-brand:hover .logo-img.logo-dark {
    transform: rotate(360deg);
}

.nav-brand:hover .logo-img.logo-light {
    transform: rotate(360deg);
}

/* Default Dark Mode logo rules (Navbar and Hero) */
.logo-light,
.hero-image .logo-light {
    display: none !important;
}

.logo-dark,
.hero-image .logo-dark {
    display: block !important;
}

/* Light Mode logo overrides (Navbar and Hero) */
body.light-mode .logo-dark,
body.light-mode .hero-image .logo-dark {
    display: none !important;
}

body.light-mode .logo-light,
body.light-mode .hero-image .logo-light {
    display: block !important;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}
@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.nav-link:hover {
    color: white;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--text-main);
}

@media (min-width: 768px) {
    .mobile-menu-btn { display: none !important; }
}

/* Mobile Actions Group (Navbar) */
.nav-mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .nav-mobile-actions {
        display: none !important;
    }
}

.mobile-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-action-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(6, 182, 212, 0.08);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.mobile-action-btn svg {
    color: currentColor;
    transition: color 0.3s ease;
}

.mobile-action-btn:active {
    transform: scale(0.95);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
    overflow: hidden;
}

.hero-bg-blobs {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.blob-1 {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse-slow 4s infinite alternate;
}

.blob-2 {
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse-slow 5s infinite alternate-reverse;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1152px;
    width: 100%;
    display: grid;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .hero-content { grid-template-columns: 1fr 1fr; }
}

.hero-text {
    text-align: center;
    order: 2;
}
@media (min-width: 1024px) {
    .hero-text { text-align: right; order: 1; }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero-title { font-size: 3.5rem; } }

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.25rem; } }

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}
@media (min-width: 640px) {
    .hero-actions { flex-direction: row; }
}
@media (min-width: 1024px) {
    .hero-actions { justify-content: flex-start; }
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
    order: 1;
}
@media (min-width: 1024px) {
    .hero-image-wrapper { order: 2; }
}

.hero-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    padding: 0.5rem;
    background: var(--gradient-primary);
    position: relative;
    z-index: 1;
}
@media (min-width: 768px) {
    .hero-image { width: 350px; height: 350px; }
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: var(--bg-surface);
}

.hero-image img.logo-light {
    transform: rotate(0deg);
}

/* Sections */
.section {
    padding: 5rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
@media (min-width: 768px) { .section-title { font-size: 2.5rem; } }

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Grid Layouts */
.services-grid, .templates-grid, .testimonials-grid, .team-grid {
    display: grid;
    gap: 2rem;
    max-width: 1152px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .services-grid, .templates-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .services-grid, .templates-grid, .testimonials-grid, .team-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card > .btn:last-child,
.card > button:last-child {
    margin-top: auto;
}

.p-0 { padding: 0 !important; }
.overflow-hidden { overflow: hidden; }

.template-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.template-img-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    flex-shrink: 0;
}

.template-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.template-card:hover .template-img-wrapper img {
    transform: scale(1.1);
}

.template-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.p-6 {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    background: rgba(6, 182, 212, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}
.service-icon svg { width: 32px; height: 32px; }

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

.template-card .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .card {
        padding: 1.25rem;
    }
}

/* Tabs Styles */
.tabs-container { margin-top: 2rem; }
.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.tab-btn {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}
.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.tab-btn.active {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}
.tab-content { animation: fadeIn 0.5s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.placeholder-img svg { filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5)); }

/* Forms */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1rem;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Animations */
@keyframes pulse-slow {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Footer */
.footer {
    background-color: var(--bg-surface);
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}
.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.footer-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-link:hover {
    color: white;
    background: var(--primary);
    transform: translateY(-3px);
}
/* Modal for Template Previews */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.modal-content-wrapper {
    position: relative;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    animation: zoom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content {
    margin: auto;
    display: block;
    width: 100%;
    max-width: 800px;
    border-radius: 1rem;
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.3);
    border: 1px solid var(--border-color);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #ef4444; /* Changed close button to red */
    font-size: 40px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1001;
}

.modal-close:hover,
.modal-close:focus {
    color: #f87171;
    transform: scale(1.15) rotate(90deg);
}

@keyframes zoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
    .modal-close {
        right: 20px;
    }
}

/* Card Featured Popular Plan */
.card-featured {
    border-color: var(--primary) !important;
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.1) 0%, var(--bg-card) 100%) !important;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15) !important;
}

@media (min-width: 1024px) {
    .card-featured {
        transform: scale(1.05);
    }
}

/* Badge Spacer to align cards without badges */
.badge-spacer {
    height: 2.125rem;
    margin-bottom: 1rem;
    visibility: hidden;
}

/* Location Banner Styling */
.location-banner {
    margin-top: 3rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, var(--bg-surface) 100%);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.location-info {
    flex: 1;
    min-width: 250px;
}

.location-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[dir="rtl"] .location-title svg {
    margin-left: 0.5rem;
    margin-right: 0;
}
[dir="ltr"] .location-title svg {
    margin-right: 0.5rem;
    margin-left: 0;
}

.location-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
}

.location-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid var(--primary);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    background: transparent;
}

.location-link:hover {
    background: var(--primary);
    color: white !important;
}

.contact-info {
    flex: 1;
    min-width: 250px;
}

[dir="rtl"] .contact-info {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 2rem;
    padding-left: 0;
}
[dir="ltr"] .contact-info {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 2rem;
    padding-right: 0;
    text-align: left;
}

.contact-phone {
    font-size: 1.75rem;
    font-weight: 800;
    color: inherit;
    text-decoration: none;
    display: inline-block;
    direction: ltr;
    transition: color 0.3s ease;
}

.contact-phone:hover {
    color: var(--primary);
}

/* Mobile Menu Toggle Styling */
@media (max-width: 767px) {
    .nav-links {
        display: none !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--mobile-nav-bg);
        backdrop-filter: blur(12px);
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        gap: 1.25rem;
        text-align: center;
        transition: all 0.3s ease;
        z-index: 100;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.show {
        display: flex !important;
    }
    
    .nav-links .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Responsiveness & Mobile Portrait Optimizations for Android & iOS */
@media (max-width: 767px) {
    body {
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .section {
        padding: 3.5rem 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-image {
        width: 220px;
        height: 220px;
    }
    
    /* Location Banner Stacked Borders */
    .contact-info {
        border-right: none !important;
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 0 !important;
        padding-left: 0 !important;
        padding-top: 2rem;
        margin-top: 1rem;
    }
    
    [dir="ltr"] .contact-info {
        text-align: center;
    }
    [dir="rtl"] .contact-info {
        text-align: center;
    }
    .location-banner {
        text-align: center;
        justify-content: center;
    }
    .location-title {
        justify-content: center;
    }
    
    /* Spacing between grid items */
    .services-grid, .templates-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    .testimonials-grid, .team-grid {
        gap: 1.25rem;
    }
    
    /* Services & Templates Cards Mobile Optimizations */
    .services-grid .card, .templates-grid .card {
        padding: 1rem !important;
        border-radius: 0.75rem !important;
    }
    .services-grid .card-title, .templates-grid .card-title {
        font-size: 1.05rem !important;
        margin-bottom: 0.5rem !important;
    }
    .services-grid .card-text, .templates-grid .card-text {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
    .services-grid .service-icon {
        margin-bottom: 0.75rem !important;
    }
    .services-grid .service-icon svg {
        width: 32px !important;
        height: 32px !important;
    }
    .template-card .p-6 {
        padding: 0.85rem !important;
    }

    /* Pricing Cards Mobile 3-Column Layout */
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.4rem !important;
    }
    .pricing-grid .card {
        padding: 0.6rem 0.3rem !important;
        border-radius: 0.75rem !important;
        height: 185px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        text-align: center !important;
    }
    .pricing-grid .card-title {
        font-size: 0.8rem !important;
        margin-bottom: 0.25rem !important;
        white-space: normal !important;
        height: 2.8rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1.15 !important;
    }
    .pricing-grid .card > .card-title + div {
        font-size: 1.1rem !important;
        margin-bottom: 0.25rem !important;
        height: auto !important;
        min-height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .pricing-grid .card > .card-title + div span {
        font-size: 0.55rem !important;
    }
    .pricing-grid .pricing-list-wrapper {
        display: none !important; /* Hide list of features on the main cards on mobile */
    }
    .pricing-grid .pricing-expand-btn {
        font-size: 0.65rem !important;
        margin-bottom: 0.35rem !important;
        gap: 0.15rem !important;
        margin-top: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .pricing-grid .pricing-expand-btn svg {
        width: 10px !important;
        height: 10px !important;
    }
    .pricing-grid .btn {
        padding: 0.4rem 0.4rem !important;
        font-size: 0.7rem !important;
        border-radius: 0.5rem !important;
        width: 100% !important;
        margin-top: 0 !important;
    }
    /* If there is a badge like "الأكثر طلباً" or "01 | باقة بيسك" */
    .pricing-grid .card > div[style*="background: var(--gradient-primary)"],
    .pricing-grid .card > div[style*="background: rgba"] {
        font-size: 0.55rem !important;
        padding: 0.1rem 0.3rem !important;
        margin-bottom: 0.25rem !important;
        border-radius: 0.5rem !important;
    }
    .pricing-grid .badge-spacer {
        height: 0.9rem !important;
        margin-bottom: 0.25rem !important;
        visibility: hidden !important;
    }

    /* Graphic Design Pricing Mobile 3-Column Layout */
    .design-pricing-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.4rem !important;
    }
    .design-price-card {
        padding: 0.6rem 0.3rem !important;
        border-radius: 0.75rem !important;
        height: 185px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        text-align: center !important;
    }
    .design-card-meta {
        font-size: 0.55rem !important;
        margin-bottom: 0.25rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center !important;
    }
    .design-card-title {
        font-size: 0.8rem !important;
        line-height: 1.15 !important;
        height: 2.8rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 0.25rem !important;
        text-align: center !important;
    }
    .design-card-price {
        font-size: 1.1rem !important;
        padding: 0.2rem 0.3rem !important;
        border-radius: 0.5rem !important;
        margin-bottom: 0.25rem !important;
        align-self: center !important;
        text-align: center !important;
        display: inline-block !important;
    }
    .design-card-price span {
        font-size: 0.55rem !important;
    }
    .design-pricing-grid .pricing-expand-btn {
        font-size: 0.65rem !important;
        margin-bottom: 0.35rem !important;
        gap: 0.15rem !important;
        margin-top: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .design-pricing-grid .pricing-expand-btn svg {
        width: 10px !important;
        height: 10px !important;
    }
    .design-pricing-grid .btn {
        padding: 0.4rem 0.4rem !important;
        font-size: 0.7rem !important;
        border-radius: 0.5rem !important;
        width: 100% !important;
    }
}

/* Extra small devices (e.g. iPhone SE, smaller Android phones) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem;
    }
    .hero-image {
        width: 180px;
        height: 180px;
    }
    .tab-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Light Mode Override */
body.light-mode {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: rgba(241, 245, 249, 0.7);
    --border-color: rgba(226, 232, 240, 0.8);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --navbar-bg: rgba(255, 255, 255, 0.85);
    --mobile-nav-bg: rgba(255, 255, 255, 0.98);
}

body.light-mode .announcement-bar {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .terminal-text {
    color: #0f172a;
}

body.light-mode .sub-header {
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

body.light-mode .navbar {
    border-bottom-color: rgba(226, 232, 240, 0.8);
}

body.light-mode .btn-outline {
    color: var(--text-main);
    border-color: var(--primary);
}

body.light-mode .btn-outline:hover {
    color: white;
}

body.light-mode .location-banner {
    border-color: rgba(6, 182, 212, 0.15);
}

body.light-mode .contact-info {
    border-color: rgba(15, 23, 42, 0.08) !important;
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    color: var(--text-main);
    background-color: var(--border-color);
}

.theme-toggle-btn .sun-icon {
    display: block;
}
.theme-toggle-btn .moon-icon {
    display: none;
}

body.light-mode .theme-toggle-btn .sun-icon {
    display: none;
}
body.light-mode .theme-toggle-btn .moon-icon {
    display: block;
}

@media (max-width: 767px) {
    .nav-links .theme-toggle-btn {
        margin: 0.5rem auto;
    }
}

/* Professional Footer Styling */
.footer {
    background-color: var(--bg-surface);
    padding: 4rem 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

[dir="ltr"] .footer {
    text-align: left;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
    max-width: 1152px;
    margin: 0 auto 3rem auto;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-col-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

[dir="ltr"] .footer-col-title::after {
    right: auto;
    left: 0;
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-location-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    align-self: flex-start;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-location-btn:hover {
    border-color: var(--primary);
    background-color: rgba(6, 182, 212, 0.05);
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .footer-location-btn {
        align-self: center;
    }
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease, padding 0.2s ease;
    display: inline-block;
    font-size: 0.95rem;
}

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

[dir="rtl"] .footer-links a:hover {
    padding-right: 5px;
}
[dir="ltr"] .footer-links a:hover {
    padding-left: 5px;
}

.footer-social-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 767px) {
    .footer-social-group {
        justify-content: center;
    }
}

.footer-social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
}

.footer-social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    color: white;
    background: var(--primary);
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-social-item span {
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-social-item:hover span {
    color: var(--primary);
}

/* Dropdown Menu Styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    min-width: 190px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 100;
    overflow: hidden;
    animation: dropdownFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .dropdown-item {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary);
}

.chevron-icon {
    transition: transform 0.3s ease;
}

.dropdown.active .chevron-icon {
    transform: rotate(180deg);
}

/* Adjustments for Mobile Nav Menu */
@media (max-width: 767px) {
    .dropdown {
        width: 100%;
    }
    .dropdown-trigger {
        width: 100%;
        justify-content: center;
    }
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid var(--border-color);
        margin-top: 0.5rem;
        background-color: rgba(2, 6, 23, 0.3);
    }
    body.light-mode .dropdown-menu {
        background-color: rgba(241, 245, 249, 0.5);
    }
}

/* Lightbox Gallery Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background-color: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: #ef4444; /* Changed close button to red */
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2010;
}

.lightbox-close-btn:hover {
    color: #f87171;
    transform: scale(1.15) rotate(90deg);
}

.lightbox-wrapper {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoom 0.3s ease;
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 2010;
}

.lightbox-btn:hover {
    background: var(--primary);
    border-color: transparent;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-btn-prev {
    left: -25px;
}

.lightbox-btn-next {
    right: -25px;
}

[dir="rtl"] .lightbox-btn-prev {
    left: auto;
    right: -25px;
}

[dir="rtl"] .lightbox-btn-next {
    right: auto;
    left: -25px;
}

@media (max-width: 992px) {
    .lightbox-btn-prev { left: 5px; }
    .lightbox-btn-next { right: 5px; }
    [dir="rtl"] .lightbox-btn-prev { right: 5px; left: auto; }
    [dir="rtl"] .lightbox-btn-next { left: 5px; right: auto; }
}

.lightbox-info {
    width: 90%;
    max-width: 900px;
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-main);
    z-index: 2010;
}

.lightbox-counter {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.lightbox-caption {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.6;
}

/* Admin Dashboard Styles */
.admin-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
}

.admin-login-card {
    max-width: 400px;
    margin: 10rem auto;
    padding: 2.5rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.admin-nav-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .admin-nav-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
}

.admin-header .admin-nav {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.admin-subheader-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-filter-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    width: 100%;
}

@media (max-width: 768px) {
    .admin-filter-nav {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-filter-btn {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
        text-align: center;
    }
}

.admin-filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.admin-filter-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background-color: rgba(6, 182, 212, 0.05);
}

.admin-filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.admin-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.admin-nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.admin-nav-btn.active {
    background: var(--gradient-primary);
    color: white;
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

[dir="ltr"] .admin-table th, [dir="ltr"] .admin-table td {
    text-align: left;
}

.admin-table th {
    background-color: var(--bg-surface);
    color: var(--text-main);
    font-weight: 700;
}

.admin-table tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

body.light-mode .admin-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 0.25rem;
}

.btn-danger {
    background: #ef4444;
}

.btn-danger:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.btn-success {
    background: #22c55e;
}

.btn-success:hover {
    background: #16a34a;
    transform: scale(1.05);
}

/* Image Manager Dropzone & Previews */
.dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    background: var(--bg-surface);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropzone:hover {
    border-color: var(--primary);
}

.dropzone p {
    color: var(--text-muted);
    margin: 0;
}

.admin-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.admin-image-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.admin-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-image-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(239, 68, 68, 0.85);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.admin-image-remove:hover {
    background: #ef4444;
    transform: scale(1.1);
}

/* Loader indicator */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Admin Modal Styles */
.admin-modal {
    display: none;
    position: fixed;
    z-index: 1500;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(12px);
    transition: opacity 0.3s ease;
}

.admin-modal.show {
    display: block;
}

.admin-modal-content {
    position: relative;
    width: 95%;
    max-width: 1100px;
    margin: 4rem auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: zoom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-modal:not(.admin-logged-in) .admin-modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

.admin-modal-close {
    position: absolute;
    top: 1.25rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ef4444;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1600;
}

[dir="rtl"] .admin-modal-close {
    left: 1.5rem;
    right: auto;
}

[dir="ltr"] .admin-modal-close {
    right: 1.5rem;
    left: auto;
}

.admin-modal-close:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.admin-modal-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.admin-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-logo-wrapper .logo-img {
    height: 90px;
    width: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
    background: #ffffff;
    padding: 3px;
    margin: 0 auto;
}

.admin-login-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .admin-modal-content {
        width: 96%;
        margin: 1.5rem auto;
        border-radius: 1.25rem;
    }
    
    .admin-container {
        padding: 1.25rem;
    }
    
    .admin-login-card {
        margin: 3rem auto;
        padding: 1.75rem 1.25rem;
        width: 100%;
        max-width: 100%;
    }
    
    .admin-login-row {
        grid-template-columns: 1fr;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .admin-header div {
        width: 100%;
    }
    
    #admin-logout-btn {
        align-self: flex-end;
        width: auto;
    }
    
    .admin-nav {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
        width: 100%;
    }
    
    .admin-nav-btn {
        flex: 1;
        padding: 0.5rem 0.5rem;
        font-size: 0.9rem;
        text-align: center;
    }

    /* Convert admin templates table into cards on mobile */
    .admin-table, 
    .admin-table thead, 
    .admin-table tbody, 
    .admin-table th, 
    .admin-table td, 
    .admin-table tr {
        display: block;
    }
    
    .admin-table thead {
        display: none;
    }
    
    .admin-table tr {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 1rem;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .admin-table td {
        padding: 0.6rem 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.95rem;
        border-bottom: 1px dashed var(--border-color);
    }
    
    .admin-table td:last-child {
        border-bottom: none;
        margin-top: 0.5rem;
        padding-top: 0.75rem;
    }
    
    .admin-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-muted);
        font-size: 0.85rem;
    }
    
    .admin-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .admin-panel form > div {
        gap: 1rem !important;
    }
}

/* Design Pricing Styles */
.design-pricing-container {
    width: 100%;
}

.pricing-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.pricing-filter-buttons {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none; /* Firefox */
    width: 100%;
}

@media (min-width: 768px) {
    .pricing-filter-buttons {
        justify-content: center;
    }
}

.pricing-filter-buttons::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.pricing-filter-btn {
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-family: inherit;
}

.pricing-filter-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(6, 182, 212, 0.08);
}

.pricing-filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.pricing-filter-btn.active:hover {
    color: white;
    background: var(--gradient-primary);
}

.design-pricing-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .design-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .design-pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.design-price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.design-price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.design-price-card:hover::before {
    opacity: 1;
}

.design-price-card.hidden {
    display: none !important;
}

.design-price-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.1);
}

.design-card-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.design-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    min-height: 2.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[dir="ltr"] .design-card-title {
    min-height: 3rem;
}

.design-card-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(6, 182, 212, 0.15);
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 1.5rem;
    font-family: 'Cairo', sans-serif;
}

body.light-mode .design-card-price {
    color: #000000;
}

.design-order-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    border-radius: 0.5rem;
}

/* Light Mode Nav Hover Fix */
body.light-mode .nav-link:hover {
    color: var(--primary) !important;
}

/* Auth Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(8px);
}

.auth-modal-container {
    position: relative;
    z-index: 10001;
    width: 90%;
    max-width: 500px;
    animation: authModalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: var(--text-main);
    max-height: 85vh;
    overflow-y: auto;
}

/* Custom Scrollbar for Modal Content */
.auth-modal-content::-webkit-scrollbar {
    width: 6px;
}
.auth-modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.auth-modal-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

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

.auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    flex-direction: row-reverse;
}

.auth-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 6px;
    padding: 0.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.auth-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

body.light-mode .auth-close-btn {
    background: rgba(15, 23, 42, 0.05);
}
body.light-mode .auth-close-btn:hover {
    background: rgba(15, 23, 42, 0.1);
}

.auth-modal-tabs {
    display: flex;
    gap: 1.25rem;
}

.auth-tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.4rem 0;
    position: relative;
    font-family: inherit;
    transition: color 0.3s ease;
}

.auth-tab-btn.active {
    color: var(--primary);
}

.auth-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.auth-tab-btn.active::after {
    transform: scaleX(1);
}

.auth-tab-content {
    display: none;
}

.auth-tab-content.active {
    display: block;
}

.auth-tab-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-form .form-group {
    margin: 0;
}

.auth-form .form-control {
    margin-bottom: 0;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    height: 2.6rem;
    border-radius: 0.5rem;
}

.form-row-double {
    display: flex;
    gap: 0.85rem;
}

@media (max-width: 480px) {
    .form-row-double {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }
}

.phone-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.phone-country-select {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.4rem 0.5rem;
    color: var(--text-main);
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    height: 2.6rem;
    width: 105px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.phone-country-select:focus {
    border-color: var(--primary);
}

.phone-country-select option {
    background: var(--bg-surface);
    color: var(--text-main);
}

.phone-group input {
    flex: 1;
}

.form-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0.25rem 0;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    line-height: 1.4;
    text-align: right;
}

[dir="ltr"] .form-checkbox-label {
    text-align: left;
}

.form-checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: var(--primary);
}

.auth-links-row {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    height: 2.6rem;
    font-size: 1rem;
    font-weight: 700;
}

/* Background Canvas Styling */
.code-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1; /* Above body background, below main content */
    pointer-events: none;
    overflow: hidden;
}

#code-pulse-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Ensure content sits above the background canvas */
.hero, 
.section, 
.footer {
    position: relative;
    z-index: 2;
}

/* System Notification Styles */
.system-notification-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10000;
    pointer-events: none;
    max-width: 380px;
    width: calc(100vw - 48px);
}

[dir="rtl"] .system-notification-container {
    left: auto;
    right: 24px;
}

.system-notification {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(205, 162, 116, 0.45);
    border-left: 5px solid #cda274; /* Gold accent on the left */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 14px 18px;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: notification-slide-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: all 0.35s ease;
    text-align: left;
}

[dir="rtl"] .system-notification {
    border-left: 1px solid rgba(205, 162, 116, 0.45);
    border-right: 5px solid #cda274; /* Gold accent on the right for RTL */
    text-align: right;
}

.system-notification.hide {
    animation: notification-slide-out 0.35s ease-in forwards;
}

.system-notification-title {
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    margin: 0;
}

.system-notification-body {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
    font-family: 'Cairo', sans-serif;
    margin: 0;
}

/* Dark Mode Overrides */
body:not(.light-mode) .system-notification {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(6, 182, 212, 0.3);
    border-left: 5px solid var(--primary); /* Cyan accent on the left for dark mode LTR */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(6, 182, 212, 0.1);
}

body:not(.light-mode)[dir="rtl"] .system-notification {
    border-left: 1px solid rgba(6, 182, 212, 0.3);
    border-right: 5px solid var(--primary); /* Cyan accent on the right for dark mode RTL */
}

body:not(.light-mode) .system-notification-title {
    color: var(--text-main);
}

body:not(.light-mode) .system-notification-body {
    color: var(--text-muted);
}

/* Slide Animations */
@keyframes notification-slide-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes notification-slide-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
        max-height: 120px;
        margin-bottom: 12px;
        padding-top: 14px;
        padding-bottom: 14px;
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
    }
}

/* ==========================================================================
   Dedicated Popup Modals Styling
   ========================================================================== */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 2500; /* Higher than normal modals */
    inset: 0;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup-modal.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.popup-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(10px);
}

.popup-modal-container {
    position: relative;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(6, 182, 212, 0.15);
    overflow: hidden;
    z-index: 2510;
    display: flex;
    flex-direction: column;
    animation: popupZoom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#popup-services .popup-modal-container {
    max-width: 800px;
}

@keyframes popupZoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.popup-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(2, 6, 23, 0.2);
}

.popup-modal-title {
    font-size: 1.35rem;
    font-weight: 700;
}

.popup-close-btn {
    background: none;
    border: none;
    color: #ef4444; /* Red Close Button */
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
}

.popup-close-btn:hover {
    color: #f87171;
    transform: scale(1.15) rotate(90deg);
    background: rgba(239, 68, 68, 0.08);
}

.popup-modal-body {
    padding: 1.75rem;
    overflow-y: auto;
    max-height: calc(85vh - 70px);
}

/* Modal Content Specific Styling */
.popup-lead {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.popup-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.popup-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .popup-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.popup-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.popup-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.02);
}

.popup-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.popup-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.popup-buttons-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.popup-buttons-group .btn {
    flex: 1;
    min-width: 180px;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-phone {
    background: var(--gradient-primary);
    color: white;
}

.btn-phone:hover {
    transform: translateY(-2px);
}

/* Terms Styling */
.popup-terms-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.popup-term-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.popup-term-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(6, 182, 212, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    align-self: flex-start;
}

.popup-term-text {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
}

.popup-notes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.popup-note-item {
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.popup-note-item.warning {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

body.light-mode .popup-note-item.warning {
    background: rgba(239, 68, 68, 0.04);
}

.popup-note-item.info {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

body.light-mode .popup-note-item.info {
    background: rgba(59, 130, 246, 0.04);
    color: #2563eb;
}

/* Working Hours styles */
.popup-hours-card {
    background: rgba(6, 182, 212, 0.04);
    border: 1px solid rgba(6, 182, 212, 0.15);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    margin: 1rem 0;
}

.popup-hours-card h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.popup-hours-row {
    font-size: 1.05rem;
    margin: 0.5rem 0;
    color: var(--text-main);
}

/* Mobile responsive styles for filter and tab buttons (max-width: 768px) */
@media (max-width: 768px) {
    /* Ready Templates Section Buttons */
    .tab-buttons {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
        width: 100% !important;
        max-width: 500px;
        margin: 0 auto 2.5rem auto !important;
    }
    
    .tab-btn {
        width: 100% !important;
        height: 100% !important;
        min-height: 52px !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 0.75rem !important;
    }

    /* Graphic Design Pricing Section Buttons */
    .pricing-filter-buttons {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
        width: 100% !important;
        max-width: 500px;
        margin: 0 auto !important;
        padding-bottom: 0 !important;
        overflow-x: visible !important;
    }
    
    .pricing-filter-btn {
        width: 100% !important;
        height: 100% !important;
        min-height: 52px !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 0.75rem !important;
    }
    
    /* Make the 'All' / 'الكل' button span full width (2 columns) */
    .pricing-filter-btn[data-filter="all"] {
        grid-column: span 2 !important;
    }
}

/* Custom full-width horizontal layout for specific team members (Monther Al-Baadani) */
.team-card-horizontal {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 3rem 2.5rem;
    gap: 3rem;
}

.team-card-horizontal .member-image-wrapper {
    flex-shrink: 0;
}

.team-card-horizontal .member-info {
    flex-grow: 1;
    text-align: right;
}

[dir="ltr"] .team-card-horizontal .member-info {
    text-align: left;
}

@media (max-width: 768px) {
    .team-card-horizontal {
        flex-direction: column !important;
        text-align: center !important;
        padding: 2.5rem 1.5rem !important;
        gap: 1.5rem !important;
    }
    .team-card-horizontal .member-info {
        text-align: center !important;
    }
}

/* Pricing Card List Expand/Collapse */
.pricing-list-wrapper {
    position: relative;
    max-height: 165px; /* height of approx 4 items */
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
}

.pricing-list-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background: linear-gradient(to top, var(--bg-surface), transparent);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.light-mode .pricing-list-wrapper::after {
    background: linear-gradient(to top, #ffffff, transparent);
}

.pricing-list-wrapper.no-fade::after {
    display: none;
}

.card.expanded .pricing-list-wrapper {
    max-height: 1000px;
}

.card.expanded .pricing-list-wrapper::after {
    opacity: 0;
}

.pricing-expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
    user-select: none;
}

.pricing-expand-btn:hover {
    color: var(--primary-hover);
}

.pricing-expand-btn svg {
    transition: transform 0.3s ease;
}

.card.expanded .pricing-expand-btn svg {
    transform: rotate(180deg);
}

/* Portfolio & Introduction Section */
.portfolio-section {
    position: relative;
    z-index: 10;
}

#portfolio {
    scroll-margin-top: 6rem;
}

.portfolio-video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    max-width: 850px;
    margin: 0 auto 5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

body.light-mode .portfolio-video-card {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.portfolio-video-card:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.15);
}

.portfolio-video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 1rem;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-video-container iframe,
.portfolio-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.portfolio-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.portfolio-row:last-child {
    margin-bottom: 2rem;
}

.portfolio-row:nth-child(even) {
    flex-direction: row-reverse;
}

.portfolio-text-container {
    flex: 1;
}

.portfolio-img-container {
    flex: 1.1;
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transition: all 0.4s ease;
    aspect-ratio: 16/10;
}

body.light-mode .portfolio-img-container {
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
}

.portfolio-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.portfolio-img-container:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
}

.portfolio-img-container:hover img {
    transform: scale(1.05);
}

.portfolio-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 2rem;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.portfolio-row-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.portfolio-row-text {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.portfolio-tips-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.portfolio-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.5;
}

.portfolio-tip-icon {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: var(--primary);
}

@media (max-width: 992px) {
    .portfolio-row {
        flex-direction: column !important;
        gap: 2.5rem;
        margin-bottom: 4.5rem;
    }
    .portfolio-img-container {
        width: 100%;
    }
    .portfolio-video-card {
        margin-bottom: 4rem;
    }
}

/* Responsive Sub-Header for Android / iOS */
@media (max-width: 480px) {
    .sub-header-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        padding: 0.45rem 0.75rem !important;
    }
    .sub-header-info {
        font-size: 0.75rem !important;
    }
    .sub-header-btn {
        padding: 0.25rem 0.55rem !important;
        font-size: 0.75rem !important;
    }
}

/* Lightbox Website Button Responsive Layout */
#lightbox-action-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

#lightbox-demo-btn {
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

@media (max-width: 768px) {
    #lightbox-demo-btn {
        width: 100% !important;
        max-width: 320px !important;
        font-size: 0.9rem !important;
        padding: 0.7rem 1.5rem !important;
        border-radius: 2rem !important;
    }
    .lightbox-info {
        padding-bottom: 2rem !important;
    }
}

/* Footer & Team layout adjustments for vertical mobile views (Android & iOS) */
@media (max-width: 767px) {
    /* 1. Footer adjustments: make Quick Links and Customer Service side-by-side */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem 1.5rem !important;
    }
    .footer-grid .footer-col:first-child {
        grid-column: span 2 !important;
    }

    /* 2. Team grid adjustments: first two side-by-side, third full-width */
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem 0.75rem !important;
        max-width: 100% !important;
    }
    .team-grid .card:not(.team-card-horizontal) {
        padding: 1.5rem 0.75rem !important;
    }
    .team-card-horizontal {
        grid-column: span 2 !important;
        flex-direction: column !important;
        text-align: center !important;
        padding: 1.5rem 1rem !important;
        gap: 1rem !important;
    }
    /* Scale down avatars, fonts, and paddings for side-by-side team cards */
    .team-grid .card div[style*="width: 150px"],
    .team-grid .member-image-wrapper {
        width: 90px !important;
        height: 90px !important;
        margin-bottom: 0.75rem !important;
    }
    .team-grid .card-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.25rem !important;
    }
    .team-grid .card div[style*="color: var(--primary)"] {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.3 !important;
    }
    .team-grid .card-text {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }
}

/* ==========================================================================
   AI Chatbot Premium Widget Styles
   ========================================================================== */
#ai-chatbot-widget {
    position: fixed;
    top: 165px;
    right: 60px;
    z-index: 10000;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

/* RTL Support */
[dir="rtl"] #ai-chatbot-widget,
html[lang="ar"] #ai-chatbot-widget {
    right: auto;
    left: 60px;
    align-items: flex-start;
}

/* Welcoming Tooltip Speech Bubble */
#chatbot-tooltip {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(3, 105, 161, 0.3);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#chatbot-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Arrow pointing down to the button */
#chatbot-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 24px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #0369a1;
}

/* RTL Speech Bubble Adjustments */
[dir="rtl"] #chatbot-tooltip,
html[lang="ar"] #chatbot-tooltip {
    right: auto;
    left: 0;
}

[dir="rtl"] #chatbot-tooltip::after,
html[lang="ar"] #chatbot-tooltip::after {
    right: auto;
    left: 24px;
}

#chatbot-tooltip .tooltip-text {
    line-height: 1.4;
}

#chatbot-tooltip .tooltip-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    padding: 0 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    font-weight: bold;
}

#chatbot-tooltip .tooltip-close:hover {
    color: #ffffff;
}

/* Floating Chat Button */
#chatbot-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary, linear-gradient(135deg, #0284c7, #0369a1));
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(3, 105, 161, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
    overflow: visible;
}

#chatbot-toggle-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

/* Theme-specific chatbot images */
#ai-chatbot-widget .chatbot-img-dark {
    display: block; /* Default is dark mode */
}
#ai-chatbot-widget .chatbot-img-light {
    display: none;
}

body.light-mode #ai-chatbot-widget .chatbot-img-dark {
    display: none;
}
body.light-mode #ai-chatbot-widget .chatbot-img-light {
    display: block;
}

#chatbot-toggle-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(3, 105, 161, 0.4);
}

#chatbot-toggle-btn:active {
    transform: scale(0.95);
}

#chatbot-toggle-btn .notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    animation: pulse-badge 2s infinite;
}

[dir="rtl"] #chatbot-toggle-btn .notification-badge,
html[lang="ar"] #chatbot-toggle-btn .notification-badge {
    right: auto;
    left: -2px;
}

@keyframes pulse-badge {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Chat Container */
#chatbot-container {
    width: 380px;
    height: 520px;
    max-height: calc(100vh - 220px);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.85); /* Slate 900 Glass */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: absolute;
    top: 75px;
    right: 0;
}

[dir="rtl"] #chatbot-container,
html[lang="ar"] #chatbot-container {
    right: auto;
    left: 0;
}

#chatbot-container.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Header */
.chatbot-header {
    padding: 15px 20px;
    background: rgba(3, 105, 161, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.chatbot-info h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.chatbot-info .status-indicator {
    font-size: 0.75rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.chatbot-info .status-indicator::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

#chatbot-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 4px;
}

#chatbot-close-btn:hover {
    color: #fff;
}

/* Chat Messages */
.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
    animation: fade-in-msg 0.3s ease;
}

@keyframes fade-in-msg {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.bot {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[dir="rtl"] .message.bot,
html[lang="ar"] .message.bot {
    align-self: flex-start;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 4px;
}

.message.user {
    background: var(--primary, #0284c7);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

[dir="rtl"] .message.user,
html[lang="ar"] .message.user {
    align-self: flex-end;
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 4px;
}

/* Typing Indicator Animation */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: typing 1.4s infinite both;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Input Area */
.chatbot-input-area {
    padding: 15px 20px;
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#chatbot-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

#chatbot-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 10px 18px;
    font-size: 0.9rem;
    color: #fff;
    outline: none;
    transition: all 0.3s;
}

#chatbot-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary, #0284c7);
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

#chatbot-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary, #0284c7);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
    flex-shrink: 0;
}

#chatbot-send-btn:hover {
    background: #0369a1;
    transform: scale(1.05);
}

#chatbot-send-btn:active {
    transform: scale(0.95);
}

#chatbot-send-btn svg {
    transition: transform 0.2s;
}

#chatbot-form:submit #chatbot-send-btn svg {
    transform: translate(2px, -2px);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    #ai-chatbot-widget {
        top: 185px;
        bottom: auto;
        right: auto;
        left: 20px;
        align-items: flex-start;
    }
    
    /* Mobile RTL Overrides */
    [dir="rtl"] #ai-chatbot-widget,
    html[lang="ar"] #ai-chatbot-widget {
        left: auto;
        right: 20px;
        align-items: flex-end;
    }
    
    #chatbot-container {
        width: calc(100vw - 40px);
        height: 460px;
        top: 70px;
        bottom: auto;
        position: absolute;
        left: 0;
        right: auto;
    }

    [dir="rtl"] #chatbot-container,
    html[lang="ar"] #chatbot-container {
        left: auto;
        right: 0;
    }

    #chatbot-tooltip {
        bottom: 75px;
        right: auto;
        left: 0;
    }

    [dir="rtl"] #chatbot-tooltip,
    html[lang="ar"] #chatbot-tooltip {
        left: auto;
        right: 0;
    }

    #chatbot-tooltip::after {
        right: auto;
        left: 24px;
    }

    [dir="rtl"] #chatbot-tooltip::after,
    html[lang="ar"] #chatbot-tooltip::after {
        left: auto;
        right: 24px;
    }
}

/* =================================================================================
   Uniform Pricing Card Layouts & Popup Modals (Desktop & Mobile)
   ================================================================================= */

/* Hide the features list on normal cards to make them shorter and uniform */
.card .pricing-list-wrapper {
    display: none !important;
}

/* Ensure flex columns and spacing for all pricing cards on desktop */
@media (min-width: 769px) {
    .pricing-grid .card,
    .design-pricing-grid .design-price-card {
        height: 300px !important;
        padding: 2rem 1.25rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .pricing-grid .card-title,
    .design-pricing-grid .design-card-title {
        font-size: 1.35rem !important;
        margin-top: 0.25rem !important;
        margin-bottom: 0.5rem !important;
        height: 3.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1.3 !important;
    }
    
    .pricing-grid .card > .card-title + div,
    .design-pricing-grid .design-card-price {
        font-size: 2.1rem !important;
        margin-bottom: 1rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: auto !important;
        min-height: auto !important;
        align-self: center !important;
    }
    
    .pricing-grid .card > .card-title + div span,
    .design-pricing-grid .design-card-price span {
        font-size: 0.9rem !important;
    }
    
    .pricing-expand-btn {
        margin-top: 0.25rem !important;
        margin-bottom: 1.25rem !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.25rem !important;
    }
}

/* Pricing Modal Styling */
.pricing-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
}

.pricing-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.pricing-modal-content {
    background: var(--bg-surface);
    border: 2px solid var(--primary);
    border-radius: 1.5rem;
    padding: 3rem 2rem 2rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(6, 182, 212, 0.35);
    position: relative;
    transform: scale(0.92);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.pricing-modal.active .pricing-modal-content {
    transform: scale(1);
    opacity: 1;
}

.pricing-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.pricing-modal-close:hover {
    color: var(--text-main);
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--primary);
    transform: rotate(90deg);
}

.modal-badge-container {
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.3rem 1.25rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.modal-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    text-align: center;
    line-height: 1.3;
}

.modal-price {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-price span {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-right: 0.25rem;
}

.modal-features-container {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.modal-features-container::-webkit-scrollbar {
    width: 6px;
}
.modal-features-container::-webkit-scrollbar-track {
    background: transparent;
}
.modal-features-container::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 3px;
}

.modal-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.modal-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-main);
    text-align: right;
}

[dir="ltr"] .modal-features li {
    text-align: left;
}

.modal-features li svg {
    margin-top: 0.15rem;
    color: var(--primary);
    flex-shrink: 0;
}

body.light-mode .pricing-modal {
    background: rgba(241, 245, 249, 0.85);
}

body.light-mode .pricing-modal-content {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
}

body.light-mode .pricing-modal-close {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .modal-features-container {
    background: rgba(0, 0, 0, 0.01);
    border-color: rgba(0, 0, 0, 0.03);
}

body.light-mode .modal-features li {
    color: #1e293b;
}

@media (max-width: 480px) {
    .pricing-modal-content {
        padding: 2.5rem 1.25rem 1.5rem;
        border-radius: 1.25rem;
    }
    .modal-title {
        font-size: 1.35rem;
    }
    .modal-price {
        font-size: 1.85rem;
    }
    .modal-features li {
        font-size: 0.85rem;
    }
}

/* Class to override display: flex !important when filtering pricing cards */
.pricing-grid .card.hidden-card {
    display: none !important;
}

