/**
 * Platform Design System
 * Modern SaaS Aesthetics
 * Responsive & RTL/LTR Unified Master Stylesheet
 */

:root {
    /* Primary Brand Colors (Modern Violet / Purple) */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #ede9fe;
    --primary-50: #f5f3ff;
    --primary-100: #ede9fe;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --primary-glow: rgba(99, 102, 241, 0.28);

    /* Secondary & Accent Colors */
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --accent-light: #f3e8ff;
    --accent-gradient: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);

    /* Dark Neutral & Surfaces */
    --dark: #0f172a;
    --dark-muted: #334155;
    --sidebar-bg: #090d16;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --surface-hover: #f1f5f9;

    /* Borders */
    --border: #e2e8f0;
    --border-dark: #cbd5e1;
    --border-focus: #818cf8;

    /* Text Hierarchy */
    --text: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Functional Semantic Colors */
    --success: #10b981;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;
    --info: #0284c7;
    --info-bg: #f0f9ff;
    --info-border: #bae6fd;

    /* Border Radii */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 9999px;

    /* Multi-layered Soft Shadows (Stripe / Shopify Caliber) */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.28);

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

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

img, svg {
    max-width: 100%;
    display: inline-block;
    vertical-align: middle;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Lucide and Inline SVG standard sizing */
.lucide, svg.icon {
    width: 1.15em;
    height: 1.15em;
    stroke-width: 2;
    vertical-align: middle;
    display: inline-block;
}

/* ==========================================================================
   Header & Navbar (Clean Glassmorphic)
   ========================================================================== */
.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03);
    transition: background 0.2s, box-shadow 0.2s;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    position: relative;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.brand-logo .logo-icon {
    width: 38px;
    height: 38px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px var(--primary-glow);
    transition: transform var(--transition-fast);
}

.brand-logo:hover .logo-icon {
    transform: scale(1.05);
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

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

.nav-link {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-50);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-close-btn {
    display: none;
}

/* Mobile Nav Toggle Button */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--dark);
    font-size: 1.25rem;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    line-height: 1;
    transition: all var(--transition-fast);
}

.mobile-nav-toggle:hover {
    background: var(--light-bg);
    color: var(--primary);
    border-color: var(--primary-light);
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    z-index: 1010;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.nav-backdrop.active {
    display: block;
    opacity: 1;
}

/* ==========================================================================
   Buttons (Shopify / Stripe Standard)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.92rem;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    transition: all var(--transition-fast);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--primary-glow);
    transform: translateY(-1px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.25);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, #6d28d9 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-dark);
    color: var(--text-secondary);
}

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

.btn-sm {
    padding: 0.38rem 0.85rem;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

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

/* Storefront specific buttons */
.btn-store-primary {
    background-color: var(--store-primary, var(--primary));
    color: #ffffff;
    border: none;
    font-weight: 700;
}

.btn-store-primary:hover {
    filter: brightness(0.92);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-store-buy {
    background: linear-gradient(135deg, var(--store-secondary, var(--primary)) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    padding: 0.95rem 1.6rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    border: none;
    transition: all var(--transition-fast);
}

.btn-store-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
    color: #ffffff;
}

/* ==========================================================================
   Hero Section (Modern Stripe SaaS Grid)
   ========================================================================== */
.hero {
    padding: 5.5rem 0 4.5rem;
    background: radial-gradient(circle at 80% 15%, var(--primary-50) 0%, #ffffff 65%);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.22;
    color: var(--dark);
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 580px;
}

.subdomain-search-box {
    background: #ffffff;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    transition: all var(--transition-fast);
    margin-bottom: 1.25rem;
}

.subdomain-search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.subdomain-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

.subdomain-input {
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-weight: 700;
    width: 100%;
    color: var(--text);
    direction: ltr;
    text-align: right;
    background: transparent;
    font-family: inherit;
}

html[dir="ltr"] .subdomain-input {
    text-align: left;
}

.subdomain-suffix {
    color: var(--text-muted);
    font-weight: 700;
    direction: ltr;
    padding: 0 0.5rem;
    user-select: none;
    font-size: 0.95rem;
}

/* ==========================================================================
   Feature Cards
   ========================================================================== */
.features-section {
    padding: 5.5rem 0;
    background: #ffffff;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-card:hover::before {
    background: var(--primary-gradient);
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: var(--primary-50);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--primary-light);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

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

/* ==========================================================================
   Pricing Section (High-Converting SaaS Matrix)
   ========================================================================== */
.pricing-section {
    padding: 5.5rem 0;
    background: var(--light-bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: 0 12px 30px var(--primary-glow);
    transform: scale(1.03);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: 0.35rem 1.25rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.pricing-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--dark);
    margin: 1rem 0;
    letter-spacing: -0.03em;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0 2rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.6rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    border-bottom: 1px dashed #f1f5f9;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li.disabled {
    color: var(--text-light);
    text-decoration: line-through;
}

/* ==========================================================================
   Auth Cards (Stripe Grade Clean)
   ========================================================================== */
.auth-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1rem;
    background: radial-gradient(circle at 50% 20%, var(--primary-50) 0%, var(--light-bg) 60%);
}

.auth-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 490px;
    padding: 2.75rem 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

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

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-fast);
    background-color: #ffffff;
    color: var(--text);
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3.5px var(--primary-glow);
}

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

.form-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* ==========================================================================
   Cards, Badges & Tables
   ========================================================================== */
.card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    margin-bottom: 1.75rem;
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}

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

.card-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}

.card-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
}

.card-body {
    padding: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
}

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
}

.status-new { background: #e0f2fe; color: #0369a1; }
.status-confirmed { background: #dcfce7; color: #15803d; }
.status-ready { background: #fef3c7; color: #b45309; }
.status-shipped { background: #ede9fe; color: #6d28d9; }
.status-delivered { background: #d1fae5; color: #047857; }
.status-cancelled { background: #fee2e2; color: #b91c1c; }
.status-warning { background: #fef3c7; color: #92400e; }

/* Data Tables */
.data-table, .table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    text-align: start;
}

.data-table th, .data-table td,
.table th, .table td {
    padding: 0.95rem 1.15rem;
    text-align: start;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table th, .table th {
    background-color: #f8fafc;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.data-table tr:hover td,
.table tr:hover td {
    background-color: #faf5ff;
}

/* ==========================================================================
   Alerts
   ========================================================================== */
.alert {
    padding: 0.95rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: var(--success-bg);
    color: #065f46;
    border-color: var(--success-border);
}

.alert-error, .alert-danger {
    background-color: var(--danger-bg);
    color: #991b1b;
    border-color: var(--danger-border);
}

.alert-warning {
    background-color: var(--warning-bg);
    color: #92400e;
    border-color: var(--warning-border);
}

.alert-info {
    background-color: var(--info-bg);
    color: #0369a1;
    border-color: var(--info-border);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.site-footer a {
    color: var(--text-secondary);
    font-weight: 600;
}

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

/* ==========================================================================
   Utility Responsive Grids
   ========================================================================== */
.responsive-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.responsive-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
}

.responsive-grid-split {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 1.75rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Responsive Media Queries (Mobile-First Polish)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.75rem;
        text-align: center;
    }

    .hero-content {
        max-width: 650px;
        margin: 0 auto;
    }

    .subdomain-search-box {
        max-width: 550px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.75rem;
    }

    .responsive-grid-split {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: #ffffff;
    }

    .container {
        padding: 0 1.15rem;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 0.5rem;
        cursor: pointer;
        color: var(--dark);
        z-index: 1005;
    }

    .mobile-nav-toggle:focus,
    .mobile-nav-toggle:active {
        outline: none;
        background: var(--light-bg);
    }

    .nav-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: rgba(15, 23, 42, 0.55);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .nav-backdrop.active {
        display: block !important;
        opacity: 1;
        visibility: visible;
    }

    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        bottom: 0;
        height: 100vh;
        height: 100dvh;
        width: 320px;
        max-width: 86vw;
        background: #ffffff;
        z-index: 10000;
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 1.75rem 1.25rem 2rem;
        box-shadow: 0 0 35px rgba(0, 0, 0, 0.25);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        visibility: hidden;
    }

    html[dir="rtl"] .nav-menu-wrapper {
        right: 0;
        left: auto;
        transform: translateX(100%);
    }

    html[dir="ltr"] .nav-menu-wrapper {
        left: 0;
        right: auto;
        transform: translateX(-100%);
    }

    .nav-menu-wrapper.active {
        transform: translateX(0) !important;
        visibility: visible;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 0.8rem 1rem;
        border-radius: var(--radius-sm);
        font-size: 1rem;
        font-weight: 700;
        background: var(--light-bg);
    }

    .nav-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
        border-top: 1px solid var(--border);
        padding-top: 1.25rem;
    }

    .nav-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    .mobile-menu-close-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid var(--border);
    }

    .mobile-menu-close-btn button {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-muted);
        line-height: 1;
        padding: 0.25rem 0.5rem;
    }

    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero-title {
        font-size: 2.15rem;
        line-height: 1.25;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }

    .subdomain-search-box {
        flex-direction: column;
        padding: 0.65rem;
        gap: 0.65rem;
    }

    .subdomain-input-wrapper {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 0.5rem 0.75rem;
        background: #f8fafc;
    }

    .subdomain-search-box .btn {
        width: 100%;
        padding: 0.85rem 1.25rem;
    }

    .features-section {
        padding: 3.5rem 0;
    }

    .section-header h2 {
        font-size: 1.85rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .pricing-section {
        padding: 3.5rem 0;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card {
        padding: 2.25rem 1.75rem;
    }

    .pricing-card.popular {
        transform: none;
    }

    .auth-wrapper {
        min-height: auto;
        padding: 2.5rem 0.85rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .storefront-navbar {
        height: auto !important;
        min-height: 62px;
        padding: 0.75rem 0 !important;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .storefront-search-form {
        order: 3;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0.5rem 0 0 0 !important;
    }

    .storefront-product-grid {
        grid-template-columns: 1fr !important;
        gap: 1.75rem !important;
    }

    .whatsapp-float-btn {
        bottom: 20px;
        left: 20px;
        width: 52px;
        height: 52px;
        font-size: 26px;
    }

    .responsive-grid-2,
    .responsive-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .brand-logo {
        font-size: 1.2rem;
    }

    .brand-logo .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 0.88rem;
    }

    .pricing-price {
        font-size: 2.25rem;
    }

    .auth-card {
        padding: 1.75rem 1.25rem;
    }

    .store-product-grid {
        grid-template-columns: 1fr !important;
    }
}
