/* Mobile-First Design System - Optimized for 360-430px screens first */

:root {
    /* Enhanced Mobile-First Color Palette */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-gradient: transparent;
    --secondary: #f59e0b;
    --accent: #10b981;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Enhanced Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Enhanced Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-overlay: rgba(255, 255, 255, 0.95);
    --bg-gradient: transparent;
    --bg-card-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    
    /* Enhanced Text Colors - Fixed contrast for mobile */
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #ffffff;
    --text-dark: #000000;
    
    /* Enhanced Border Colors */
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --border-dark: #9ca3af;
    
    /* Enhanced Mobile-First Shadow System */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 10px 30px rgba(99, 102, 241, 0.15);
    --shadow-button: 0 4px 15px rgba(99, 102, 241, 0.3);
    
    /* Enhanced Mobile-First Border Radius */
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.25rem;
--border-color: #e2e8f0;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Enhanced Mobile-First Spacing (48px minimum tap targets) */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.25rem;    /* 20px */
    --space-6: 1.5rem;     /* 24px */
    --space-8: 2rem;       /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px - Enhanced touch target */
    --space-16: 4rem;      /* 64px */
    --space-20: 5rem;      /* 80px */
    --space-24: 6rem;      /* 96px */
    
    /* Enhanced Mobile-First Typography - Optimized for readability */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.875rem;   /* 14px - Enhanced readability */
    --font-size-sm: 1rem;       /* 16px - Enhanced readability */
    --font-size-base: 1.125rem; /* 18px - Enhanced readability */
    --font-size-lg: 1.25rem;    /* 20px */
    --font-size-xl: 1.5rem;     /* 24px */
    --font-size-2xl: 1.875rem;  /* 30px */
    --font-size-3xl: 2.25rem;   /* 36px */
    --font-size-4xl: 3rem;      /* 48px */
    --font-size-5xl: 3.75rem;   /* 60px */
    
    /* Enhanced Mobile-First Transitions */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Enhanced Mobile-First Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-overlay: 1050;
    --z-tooltip: 1060;
    --z-popover: 1070;
    --z-toast: 1080;
    --z-hero-content: 10;
    --z-hero-banner: 1;
    --z-hero-overlay: 2;
}

/* Mobile-First Reset and Base Styles */

/* Mobile-First Box Sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile-First HTML and Body */
html {
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Ensure no white space at top */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto !important;
    position: relative;
}

/* Fixed Header Styles - Mobile Optimized */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001; /* Higher than banner to stay on top */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0 16px; /* Remove top/bottom padding to eliminate gap */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 60px; /* Standard mobile header height */
    min-height: 60px; /* Ensure minimum height for touch targets */
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
}

.brand-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary) !important;
    white-space: nowrap;
}

/* Responsive header adjustments */
@media (min-width: 768px) {
    .site-header {
        padding: 20px 30px;
    }
    
    .header-logo {
        width: 50px;
        height: 50px;
    }
    
    .brand-name {
        font-size: 20px;
    }
}

/* Mobile-First Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--space-4) 0;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-base); }
h6 { font-size: var(--font-size-sm); }

p {
    margin: 0 0 var(--space-4) 0;
    color: var(--text-secondary);
}

/* Mobile-First Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

a:hover {
    color: var(--primary-dark);
}

/* Mobile-First Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile-First Buttons */
button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile-First Form Elements */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    background-color: var(--white);
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Mobile-First Lists */
ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Mobile-First Container */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Mobile-First Grid System */
.grid {
    display: grid;
    gap: var(--space-4);
}

/* Mobile-First Flexbox Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

/* Mobile-First Spacing Utilities */
.m-0 { margin: 0; }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-6 { margin: var(--space-6); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }

/* Mobile-First Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }

/* Mobile-First Display Utilities */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }

/* Mobile-First Position Utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Mobile-First Width/Height Utilities */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* Mobile-First Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile-First Focus Styles */
.focus\:outline-none:focus {
    outline: none;
}

.focus\:ring:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Mobile-First Touch Targets (44px minimum) */
.touch-target {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mobile-First Header Styles */
.mobile-simple-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
    min-height: 60px;
    display: flex;
    align-items: center;
}

.mobile-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 var(--space-4); /* Remove top/bottom padding to eliminate gap */
    max-width: 100%;
}

.mobile-brand-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: white;
    transition: all var(--transition-fast);
    min-height: 44px;
    padding: var(--space-2);
    border-radius: var(--radius-md);
}

.mobile-brand-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: white;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.mobile-brand:hover {
    transform: translateY(-1px);
    color: rgba(255, 255, 255, 0.8);
}

.mobile-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--font-size-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.mobile-brand-logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.mobile-brand-name {
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: white !important;
    white-space: nowrap;
    transition: color var(--transition-fast);
    line-height: 1.2;
}

.mobile-brand:hover .mobile-brand-name {
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile-First Navigation Menu */
.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
    transform: translateY(-100%);
    transition: transform var(--transition-normal);
}

.mobile-nav-menu.active {
    display: block;
    transform: translateY(0);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: var(--space-4);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    min-height: 44px;
}

.mobile-nav-link:hover {
    background-color: var(--gray-50);
    color: var(--primary);
}

/* Mobile-First Hamburger Menu */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background-color: var(--gray-50);
    color: var(--primary);
}

.mobile-menu-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main Content with Header Offset */
.main-content {
    padding-top: 0; /* No padding needed */
    flex: 1 0 auto; /* Grow to fill available space */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Full height */
    overflow-y: auto;
    margin-top: 0; /* Ensure no margin */
    /* Force no gaps */
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Enhanced Mobile-First Hero Section */
.mobile-hero-modern {
    min-height: 100vh; /* Full height */
    display: block; /* Change from flex to block to eliminate centering */
    position: relative;
    overflow: hidden;
    padding: 0 !important; /* Force remove all padding */
    text-align: center;
    margin: 0 !important; /* Force remove all margins */
    background: transparent;
    top: 0; /* Ensure it starts from the very top */
    /* Force banner to stick to header */
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    /* Mobile-specific fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Clean mobile hero background without animations */
.mobile-hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

/* Removed motion effects for better performance */

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: none;
}

/* Removed particle animations for better performance */

/* Country-specific Hero Styles - Standard Mobile Hero Layout - CACHE BUST */
.hero-country-banner {
    position: absolute;
    top: 0 !important;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover !important; /* Cover for proper hero background */
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
    z-index: 1;
    height: 60vh !important; /* Standard mobile hero height - not full screen */
    min-height: 400px !important; /* Minimum reasonable height */
    max-height: 600px !important; /* Maximum reasonable height */
    display: block !important;
    visibility: visible !important;
    /* Force mobile browsers to respect these settings */
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    /* Eliminate any possible gaps */
    margin: 0 !important;
    padding: 0 !important;
    /* Mobile-specific fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: auto;
}

/* Force cache busting and ensure proper display */
.hero-country-banner {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
    /* iOS Safari specific fixes */
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    /* Force hardware acceleration on mobile */
    will-change: transform;
    /* Prevent iOS Safari from applying its own styles */
    -webkit-user-select: none;
    user-select: none;
}

/* iOS Safari specific banner fixes */
@supports (-webkit-touch-callout: none) {
    .hero-country-banner {
        background-attachment: scroll;
        -webkit-background-size: cover !important;
        background-size: cover !important;
        background-position: center !important;
        /* Force repaint on iOS */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        /* iOS specific fixes */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        /* Additional iOS fixes */
        top: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        /* Standard mobile hero height */
        height: 60vh !important;
        min-height: 400px !important;
        max-height: 600px !important;
    }
}

/* Mobile browser specific fixes */
@media screen and (max-width: 768px) {
    .hero-country-banner {
        /* Force mobile browsers to respect background-size */
        -webkit-background-size: cover !important;
        background-size: cover !important;
        background-position: center !important;
        /* Prevent mobile browsers from applying their own scaling */
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
        /* Additional mobile fixes */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: auto;
        /* Force banner to stick to header on mobile */
        top: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        /* Standard mobile hero height */
        height: 60vh !important;
        min-height: 400px !important;
        max-height: 600px !important;
    }
}

.hero-country-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.country-flag-hero {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all var(--transition-normal);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.country-flag-hero:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Ensure hero content stays above banner - Standard Mobile Hero - CACHE BUST */
.mobile-hero-content-modern {
    position: relative;
    z-index: 10;
    padding: var(--space-6) var(--space-4) 0 !important; /* Remove bottom padding to eliminate gap */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    /* Ensure content is properly positioned in standard hero */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 60vh !important; /* Match hero height - good size */
    max-height: 600px !important; /* Maximum reasonable height */
}

/* Force override for country hero banners - CACHE BUST */
body .hero-country-banner,
html body .hero-country-banner,
body .hero-country-banner,
.hero-country-banner {
    height: 60vh !important; /* Standard mobile hero height - not full screen */
    min-height: 400px !important; /* Minimum reasonable height */
    max-height: 600px !important; /* Maximum reasonable height */
    background-size: cover !important; /* Cover for proper hero background */
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    background-position: center !important;
    -webkit-background-position: center !important;
    -moz-background-position: center !important;
    -o-background-position: center !important;
    background-repeat: no-repeat !important;
    -webkit-background-repeat: no-repeat !important;
    -moz-background-repeat: no-repeat !important;
    -o-background-repeat: no-repeat !important;
}

/* Additional force override for all screen sizes */
@media screen and (max-width: 9999px) {
    .hero-country-banner {
        background-size: cover !important;
        -webkit-background-size: cover !important;
        -moz-background-size: cover !important;
        -o-background-size: cover !important;
        height: 60vh !important;
        min-height: 400px !important;
        max-height: 600px !important;
    }
}

/* ULTIMATE FORCE OVERRIDE - This should definitely work */
.hero-country-banner,
.hero-country-banner[style],
.hero-country-banner[class*="hero"],
body .hero-country-banner,
html .hero-country-banner {
    background-size: cover !important;
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    height: 60vh !important;
    min-height: 400px !important;
    max-height: 600px !important;
    background-position: center !important;
    -webkit-background-position: center !important;
    -moz-background-position: center !important;
    -o-background-position: center !important;
    background-repeat: no-repeat !important;
    -webkit-background-repeat: no-repeat !important;
    -moz-background-repeat: no-repeat !important;
    -o-background-repeat: no-repeat !important;
}

/* FINAL OVERRIDE - Force background cover and remove gaps */
* .hero-country-banner,
*[class*="hero-country-banner"] {
    background-size: cover !important;
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    height: 60vh !important;
    min-height: 400px !important;
    max-height: 600px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ULTIMATE OVERRIDE - Override inline styles */
.hero-country-banner[style*="background-image"] {
    background-size: cover !important;
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    height: 60vh !important;
    min-height: 400px !important;
    max-height: 600px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    background-position: center !important;
    -webkit-background-position: center !important;
    -moz-background-position: center !important;
    -o-background-position: center !important;
    background-repeat: no-repeat !important;
    -webkit-background-repeat: no-repeat !important;
    -moz-background-repeat: no-repeat !important;
    -o-background-repeat: no-repeat !important;
}

/* FINAL FORCE OVERRIDE - This will definitely work */
.hero-country-banner,
.hero-country-banner[style],
.hero-country-banner[style*="background-image"],
* .hero-country-banner {
    background-size: cover !important;
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    height: 60vh !important;
    min-height: 400px !important;
    max-height: 600px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* MOBILE-SPECIFIC FORCE OVERRIDE */
@media screen and (max-width: 768px) {
    .hero-country-banner,
    .hero-country-banner[style],
    .hero-country-banner[style*="background-image"],
    * .hero-country-banner {
        background-size: cover !important;
        -webkit-background-size: cover !important;
        -moz-background-size: cover !important;
        -o-background-size: cover !important;
        height: 60vh !important;
        min-height: 400px !important;
        max-height: 600px !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        background-position: center !important;
        -webkit-background-position: center !important;
        -moz-background-position: center !important;
        -o-background-position: center !important;
    }
}

/* Hero title container for better mobile layout */
.hero-title-container {
    margin-bottom: var(--space-4);
}

.hero-subtitle-container {
    margin-top: var(--space-3);
}



/* Back to Home Button - Only show on non-home pages */
.mobile-back-button {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
}

.mobile-back-button .mobile-btn-modern {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: var(--font-size-sm);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

.mobile-back-button .mobile-btn-modern:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.brand-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.brand-icon {
    width: 80px;
    height: 80px;
    background: transparent;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    animation: iconPulse 3s ease-in-out infinite;
    border: 3px solid #22c55e;
    position: relative;
    overflow: hidden;
}

.brand-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(34, 197, 94, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.brand-icon i {
    font-size: var(--font-size-3xl);
    color: #22c55e;
    animation: cannabisFloat 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes iconRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes cannabisFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-5px) rotate(5deg); 
    }
    50% { 
        transform: translateY(-10px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-5px) rotate(-5deg); 
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

.mobile-hero-title-modern {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: #1a1a1a !important;
    margin: 0;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8), 0 1px 2px rgba(255, 255, 255, 0.6);
    line-height: 1.2;
    letter-spacing: -0.01em;
    max-width: 100%;
}

/* Ensure cannabis icon is not affected by title gradient */
.brand-title-wrapper .cannabis-icon-inline {
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background: none;
    background-clip: initial;
    color: #22c55e !important;
    opacity: 1 !important;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)); }
    100% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)); }
}

.mobile-hero-subtitle-modern {
    font-size: var(--font-size-base);
    color: #4a5568 !important;
    margin-bottom: var(--space-4);
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

@keyframes subtitleFade {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

.mobile-hero-buttons-modern {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
}

.mobile-btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-8);
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 700;
    font-size: var(--font-size-lg);
    transition: all var(--transition-bounce);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    min-height: 56px; /* Enhanced mobile touch target - 48px+ for accessibility */
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    width: 100%; /* Full width for app download buttons */
    margin-top: var(--space-4);
    box-shadow: var(--shadow-button);
    backdrop-filter: blur(10px);
}

.mobile-btn-modern:active {
    transform: scale(0.98);
}

.mobile-btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.mobile-btn-modern:hover::before {
    left: 100%;
}

.mobile-btn-primary-modern {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(0);
}

.mobile-btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.mobile-btn-secondary-modern {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.mobile-btn-secondary-modern:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mobile-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    z-index: 1;
}

.mobile-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.mobile-hero-content {
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 3;
    text-align: center;
}

.mobile-hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-6);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out;
}

.mobile-hero-subtitle {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.mobile-hero-description {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-10);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.mobile-hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Modern Light Buttons */
.mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Ensure download links look like buttons */
.mobile-btn[download] {
    display: inline-flex;
    text-decoration: none;
    color: inherit;
}

.mobile-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.mobile-btn:hover::before {
    left: 100%;
}

.mobile-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(0);
}

.mobile-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.mobile-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.mobile-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Modern Light Sections */
.mobile-section {
    padding: var(--space-20) 0;
    position: relative;
}

.mobile-section-app-template {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    position: relative;
    overflow: hidden;
}

.mobile-section-app-template::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Modern Light Container */
.mobile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    position: relative;
    z-index: 1;
}

/* Modern Light Section Titles */
.mobile-section-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-6);
    color: var(--text-primary);
    position: relative;
}

.mobile-section-title-app-template {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-6);
    color: var(--text-primary);
    position: relative;
}

.mobile-section-title::after {
    content: '';
    position: absolute;
    bottom: -var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
}

.mobile-section-subtitle {
    font-size: var(--font-size-xl);
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-16);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.mobile-section-subtitle-app-template {
    font-size: var(--font-size-xl);
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-16);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Modern Light Cards */
.mobile-card {
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.mobile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.mobile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.mobile-card:hover::before {
    transform: scaleX(1);
}

.mobile-section-app-template .mobile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
}

.mobile-section-app-template .mobile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.mobile-card-content {
    position: relative;
    z-index: 1;
}

.mobile-card-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    text-align: center;
}

.mobile-section-app-template .mobile-card-title {
    color: var(--text-primary);
}

.mobile-card-description {
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
    font-size: var(--font-size-base);
}

.mobile-section-app-template .mobile-card-description {
    color: var(--text-secondary);
}

/* Modern Light Feature Cards */
.mobile-feature-card {
    text-align: center;
    padding: var(--space-8);
}

.mobile-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.mobile-feature-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-xl);
}

.mobile-feature-icon i {
    font-size: var(--font-size-3xl);
    color: var(--white);
}

.mobile-feature-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.mobile-feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: var(--font-size-base);
}

/* Modern Light Grid */
.mobile-grid {
    display: grid;
    gap: var(--space-8);
}

.mobile-grid-1 { 
    grid-template-columns: 1fr; 
    gap: 24px;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .mobile-grid-1 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        max-width: 800px;
    }
}

@media (min-width: 1024px) {
    .mobile-grid-1 {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        max-width: 1200px;
    }
}

@media (min-width: 1280px) {
    .mobile-grid-1 {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        max-width: 1400px;
    }
}
.mobile-grid-2 { grid-template-columns: repeat(2, 1fr); }
.mobile-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Full-Screen Mobile App Download Section */
.mobile-section-full {
    padding: 0;
    margin: 0;
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.mobile-container-full {
    max-width: 100%;
    margin: 0;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mobile-section-title-full {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    text-align: center;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.mobile-section-subtitle-full {
    font-size: 1rem;
    color: #6b7280;
    text-align: center;
    margin: 0 0 32px 0;
    font-weight: 500;
}

.mobile-app-download-full {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

.mobile-app-card-full {
    background: var(--bg-card-gradient);
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-bounce);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.app-card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.android-bg {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.ios-bg {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.mobile-app-card-full:hover .app-card-background {
    opacity: 0.15;
}

.mobile-app-card-full:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.3);
}

.app-card-content {
    position: relative;
    z-index: 10;
    padding: var(--space-10);
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.app-card-header-full {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.app-platform-icon-full {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: var(--shadow-button);
    transition: all var(--transition-bounce);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.mobile-app-card-full:nth-child(2) .app-platform-icon-full {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.app-platform-info-full h3 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 var(--space-2) 0;
    line-height: 1.2;
}

.app-platform-info-full p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin: 0;
    font-weight: 600;
}

.app-card-features-full {
    margin-bottom: 32px;
    flex: 1;
}

/* Download buttons - full width, modern gradient */
.download-btn-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 14px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.35);
    transition: all 0.25s ease;
    cursor: pointer;
}

.download-btn-full i { font-size: 1.125rem; }

.download-btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(16, 185, 129, 0.4);
}

.download-btn-full:active { transform: translateY(0); }

/* iOS card: blue/purple gradient for download button */
.mobile-app-card-full:nth-child(2) .download-btn-full {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
    border-color: rgba(255, 255, 255, 0.25);
}

.mobile-app-card-full:nth-child(2) .download-btn-full:hover {
    box-shadow: 0 14px 32px rgba(99, 102, 241, 0.4);
}

.feature-item-full {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    font-weight: 600;
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.feature-item-full:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.feature-item-full i {
    color: #10b981;
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

/* iOS card icons - blue/purple theme */
.mobile-app-card-full:nth-child(2) .feature-item-full i {
    color: #6366f1;
}

.mobile-app-info-full {
    margin-top: 32px;
    text-align: center;
}

.mobile-app-description-full {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.mobile-app-description-full i {
    color: #10b981;
}

.mobile-btn-full {
    width: 100%;
    min-height: 72px;
    font-size: var(--font-size-xl);
    font-weight: 700;
    border-radius: var(--radius-xl);
    transition: all var(--transition-bounce);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 3px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    box-shadow: var(--shadow-button);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    backdrop-filter: blur(10px);
}

.mobile-app-card-full:nth-child(2) .mobile-btn-full {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.mobile-btn-full:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.4);
}

.mobile-app-card-full:nth-child(2) .mobile-btn-full:hover {
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.4);
}

.mobile-btn-full:active {
    transform: translateY(0);
}

/* Mobile-specific touch improvements for full-screen design */
@media (max-width: 480px) {
    .mobile-section-full {
        min-height: 100vh;
        padding: 0;
    }
    
    .mobile-container-full {
        padding: 16px;
    }
    
    .mobile-section-title-full {
        font-size: 1.75rem;
        margin: 0 0 8px 0;
    }
    
    .mobile-section-subtitle-full {
        font-size: 0.9rem;
        margin: 0 0 24px 0;
    }
    
    .mobile-app-card-full {
        min-height: 350px;
        border-radius: 20px;
    }
    
    .app-card-content {
        padding: 24px;
    }
    
    .app-card-header-full {
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .app-platform-icon-full {
        width: 64px;
        height: 64px;
        font-size: 2.5rem;
        border-radius: 16px;
    }
    
    .app-platform-info-full h3 {
        font-size: 1.5rem;
    }
    
    .app-platform-info-full p {
        font-size: 1rem;
    }
    
    .app-card-features-full {
        margin-bottom: 24px;
    }

    /* Mobile sizes for download buttons */
    .download-btn-full {
        min-height: 52px;
        font-size: 0.98rem;
        border-radius: 12px;
    }
    
    .feature-item-full {
        font-size: 1rem;
        margin-bottom: 16px;
        gap: 12px;
    }
    
    .feature-item-full i {
        font-size: 1.125rem;
        width: 20px;
    }
    
    .mobile-btn-full {
        min-height: 56px;
        font-size: 1rem;
        border-radius: 12px;
    }
    
    .mobile-app-info-full {
        margin-top: 24px;
    }
    
    .mobile-app-description-full {
        font-size: 0.9rem;
    }
}

/* Touch feedback for mobile */
.mobile-app-card-full:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.mobile-btn-full:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Minimal Modern Footer */
.mobile-minimal-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    padding: var(--space-6) 0;
    margin-top: auto;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

.mobile-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    text-align: center;
}

.mobile-designer-credit {
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0.7;
}

.mobile-designer-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    position: relative;
}

.mobile-designer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width var(--transition-normal);
}

.mobile-designer-link:hover {
    color: var(--primary-dark);
}

.mobile-designer-link:hover::after {
    width: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.mobile-animate-slide-up {
    animation: slideInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.mobile-animate-fade-in {
    animation: fadeIn 0.8s ease-out;
    animation-fill-mode: both;
}

.mobile-animate-scale-in {
    animation: scaleIn 0.8s ease-out;
    animation-fill-mode: both;
}

.mobile-animate-bounce-in {
    animation: bounceIn 0.8s ease-out;
    animation-fill-mode: both;
}

/* Product Card Animations */
.mobile-product-card {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.mobile-product-card:nth-child(1) { animation-delay: 0.1s; }
.mobile-product-card:nth-child(2) { animation-delay: 0.2s; }
.mobile-product-card:nth-child(3) { animation-delay: 0.3s; }
.mobile-product-card:nth-child(4) { animation-delay: 0.4s; }
.mobile-product-card:nth-child(5) { animation-delay: 0.5s; }
.mobile-product-card:nth-child(6) { animation-delay: 0.6s; }

/* Mobile-First Responsive Breakpoints */

/* Large Mobile (430px+) */
@media (min-width: 430px) {
    .mobile-container {
        max-width: 430px;
        padding: 0 var(--space-6);
    }
    
    .mobile-btn-modern {
    min-width: 160px;
    padding: 12px 24px;
    font-size: 16px;
    min-height: 48px;
}
    
    .mobile-hero-title-modern {
        font-size: var(--font-size-4xl);
    }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    .mobile-container {
        max-width: 768px;
        padding: 0 var(--space-8);
    }
    
    .mobile-hero-modern {
        min-height: 100vh;
        padding: var(--space-16) var(--space-6);
    }
    
    .mobile-hero-content-modern {
        padding-top: 0; /* Remove padding to eliminate white space */
    }
    
    .mobile-back-button {
        top: 30px;
        right: 30px;
    }
    
    .mobile-back-button .mobile-btn-modern {
    font-size: 14px;
    padding: 12px 16px;
}
    
    .mobile-hero-buttons-modern {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-6);
    }
    
    .mobile-hero-title-modern {
        font-size: var(--font-size-5xl);
        margin-bottom: var(--space-8);
    }
    
    .mobile-grid-1 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .mobile-grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .mobile-grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .mobile-section-title {
        font-size: var(--font-size-4xl);
    }
    
    .mobile-app-download-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .mobile-app-card {
        padding: 32px;
        min-height: 320px;
        width: 100%;
    }
    
    .app-card-header {
        gap: 20px;
        margin-bottom: 32px;
    }
    
    .app-platform-icon {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }
    
    .app-platform-info h3 {
        font-size: 1.75rem;
    }
    
    .app-card-features {
        margin-bottom: 32px;
    }
    
    .feature-item {
        gap: 16px;
        margin-bottom: 20px;
        font-size: 1rem;
    }
    
    .mobile-app-info {
        margin-top: 48px;
    }
    
    .download-btn {
        min-height: 64px;
        font-size: 1.125rem;
    }
    
    .mobile-brand-logo {
        width: 50px;
        height: 50px;
    }
    
    .mobile-brand-name {
        font-size: var(--font-size-xl);
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .mobile-container {
        max-width: 1024px;
        padding: 0 var(--space-8);
    }
    
    .mobile-hero-modern {
        min-height: 100vh;
        padding: var(--space-20) var(--space-8);
    }
    
    .mobile-hero-content-modern {
        padding-top: 0; /* Remove padding to eliminate white space */
    }
    
    .mobile-back-button {
        top: 40px;
        right: 40px;
    }
    
    .mobile-hero-title-modern {
        font-size: var(--font-size-5xl);
    }
    
    .mobile-grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
    .mobile-container {
        max-width: 1280px;
        padding: 0 var(--space-12);
    }
    
    .mobile-hero-modern {
        min-height: 100vh;
    }
}

/* Utility Classes */
.mobile-text-center { text-align: center; }
.mobile-text-left { text-align: left; }
.mobile-text-right { text-align: right; }

.mobile-mt-0 { margin-top: 0; }
.mobile-mt-4 { margin-top: var(--space-4); }
.mobile-mt-6 { margin-top: var(--space-6); }
.mobile-mt-8 { margin-top: var(--space-8); }

.mobile-mb-0 { margin-bottom: 0; }
.mobile-mb-4 { margin-bottom: var(--space-4); }
.mobile-mb-6 { margin-bottom: var(--space-6); }
.mobile-mb-8 { margin-bottom: var(--space-8); }

.mobile-p-0 { padding: 0; }
.mobile-p-4 { padding: var(--space-4); }
.mobile-p-6 { padding: var(--space-6); }
.mobile-p-8 { padding: var(--space-8); }

/* Content below banner - NO GAP */
.mobile-section:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure no gap between hero and first section */
.mobile-hero-modern + .mobile-section,
.mobile-hero-modern + section,
.hero-country-banner + .mobile-section,
.hero-country-banner + section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Specific rule for nav section after hero */
.mobile-hero-modern + .mobile-nav-section,
.hero-country-banner + .mobile-nav-section {
    margin-top: 0 !important;
    padding-top: 20px !important;
}

/* Country products page: lock hero sizing without affecting home page */
.country-hero.mobile-hero-modern {
    min-height: 60vh !important;
    height: 60vh !important;
    padding: 0 !important;
}
.country-hero .hero-background,
.country-hero .hero-country-banner {
    height: 60vh !important;
    min-height: 60vh !important;
}
.country-hero .hero-country-banner {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Home page: remove gaps without changing banner size */
.home-hero.mobile-hero-modern {
    margin-top: 0 !important;
    padding-top: 0 !important;
    min-height: 60vh !important; /* Match banner height */
    height: 60vh !important;     /* Prevent extra space */
    padding: 0 !important;       /* Ensure no internal spacing */
}
.home-hero .hero-background { line-height: 0 !important; }
.home-hero .hero-country-banner {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    height: 60vh !important;           /* keep banner height consistent */
    min-height: 60vh !important;
    background-size: cover !important;  /* ensure cover on mobile */
    background-position: center !important;
}
.home-hero + section { margin-top: 0 !important; padding-top: 0 !important; }

/* Home page: adjust countries section heading spacing and sizes on mobile */
@media (max-width: 768px) {
    .home-hero + .mobile-countries-section {
        margin-top: 0 !important;
        padding-top: 8px !important; /* tighter distance below hero */
    }
    .home-hero + .mobile-countries-section .mobile-section-title,
    .mobile-apps-section .mobile-section-title {
        font-size: 1.6rem !important; /* balanced mobile title */
        line-height: 1.2 !important;
        margin: 6px 0 8px 0 !important;
        text-align: center !important;
    }
    .home-hero + .mobile-countries-section .mobile-section-subtitle,
    .mobile-apps-section .mobile-section-subtitle {
        font-size: 1rem !important; /* readable subtitle */
        line-height: 1.5 !important;
        margin: 0 0 16px 0 !important;
        text-align: center !important;
    }
}

/* Additional Modern Elements */
.mobile-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.mobile-card:hover::after {
    opacity: 1;
}

/* Smooth scrolling for all elements */
* {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.mobile-btn:focus,
.mobile-footer-link:focus,
.mobile-footer-social-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Cannabis Icon Styles */
.mobile-brand-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    animation: iconPulse 3s ease-in-out infinite;
}

.mobile-brand-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

.mobile-brand-icon i {
    font-size: var(--font-size-3xl);
    color: white;
    animation: iconRotate 4s linear infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes iconRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modern Cannabis Icon Styles */
.brand-cannabis-icon {
    display: inline-block;
    margin-left: var(--space-4);
    position: relative;
    animation: cannabisFloat 3s ease-in-out infinite;
}

.brand-cannabis-icon i {
    font-size: var(--font-size-2xl);
    color: #22c55e;
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.6));
    animation: cannabisGlow 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
}

.brand-cannabis-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: cannabisPulse 4s ease-in-out infinite;
    z-index: 1;
}

.brand-cannabis-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: cannabisPulse 4s ease-in-out infinite 1s;
    z-index: 0;
}

@keyframes cannabisFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-3px) rotate(2deg); 
    }
    50% { 
        transform: translateY(-6px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-3px) rotate(-2deg); 
    }
}

@keyframes cannabisGlow {
    0% { 
        filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.6));
        transform: scale(1);
    }
    100% { 
        filter: drop-shadow(0 0 15px rgba(34, 197, 94, 0.8));
        transform: scale(1.05);
    }
}

@keyframes cannabisPulse {
    0%, 100% { 
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Responsive Cannabis Icon */
@media (min-width: 768px) {
    .brand-cannabis-icon i {
        font-size: var(--font-size-3xl);
    }
    
    .brand-cannabis-icon::before {
        width: 50px;
        height: 50px;
    }
    
    .brand-cannabis-icon::after {
        width: 70px;
        height: 70px;
    }
}

@media (min-width: 1024px) {
    .brand-cannabis-icon i {
        font-size: var(--font-size-4xl);
    }
    
    .brand-cannabis-icon::before {
        width: 60px;
        height: 60px;
    }
    
    .brand-cannabis-icon::after {
        width: 80px;
        height: 80px;
    }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 

/* Responsive Country Hero Styles */
@media (min-width: 768px) {
    .hero-country-banner {
        opacity: 1 !important;
        filter: none;
    }
    
    .country-flag-hero {
        width: 80px;
        height: 50px;
    }
}

@media (min-width: 1024px) {
    .hero-country-banner {
        opacity: 1 !important;
        filter: none;
    }
    
    .country-flag-hero {
        width: 100px;
        height: 60px;
    }
} 

/* Navigation Row - Back Button and Filter Buttons on Same Line */
.mobile-navigation-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.mobile-back-section {
    flex-shrink: 0;
}

.mobile-back-section .mobile-btn {
    min-height: 48px;
    min-width: 48px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.mobile-back-section .mobile-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.mobile-back-section .mobile-btn:active {
    transform: translateY(0);
}

.mobile-back-section .mobile-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Category Tabs Styles - Perfect Modern Design */
.mobile-category-tabs {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    flex: 1;
}

.mobile-category-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-width: 90px;
    min-height: 48px; /* Larger touch target for mobile */
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    flex: 1;
    max-width: 130px;
}

.mobile-category-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-category-tab.active {
    border-color: transparent;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.mobile-category-tab i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.mobile-category-tab.active i {
    color: white;
}

.mobile-category-tab span {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .mobile-navigation-row {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .mobile-back-section {
        order: 1;
        display: flex;
        justify-content: flex-start;
    }
    
    .mobile-category-tabs {
        order: 2;
        gap: 12px;
        justify-content: space-between;
        width: 100%;
    }
    
    .mobile-category-tab {
        padding: 16px 12px;
        min-width: 90px;
        min-height: 52px;
        font-size: 14px;
        flex: 1;
    }
    
    .mobile-category-tab span {
        font-size: 13px;
        font-weight: 700;
    }
    
    .mobile-category-tab i {
        font-size: 15px;
    }
} 

/* Brand Title Wrapper */
.brand-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
}

/* Design 4: Morphing Wave Cannabis Icon */
.cannabis-icon-inline {
    display: inline-block;
    font-size: var(--font-size-2xl);
    color: #166534 !important;
    vertical-align: middle;
    opacity: 1 !important;
    font-weight: bold;
    animation: morphWave 3.5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(22, 101, 52, 0.6));
    margin-left: 0; /* Remove left margin since we're using flex gap */
}

@keyframes morphWave {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 15px rgba(22, 101, 52, 0.6));
    }
    25% { 
        transform: scale(1.1) rotate(5deg);
        filter: drop-shadow(0 0 20px rgba(22, 101, 52, 0.8));
    }
    50% { 
        transform: scale(1.2) rotate(0deg);
        filter: drop-shadow(0 0 25px rgba(22, 101, 52, 1));
    }
    75% { 
        transform: scale(1.1) rotate(-5deg);
        filter: drop-shadow(0 0 20px rgba(22, 101, 52, 0.8));
    }
}

/* Responsive Morphing Wave Cannabis Icon */
@media (min-width: 768px) {
    .cannabis-icon-inline {
        font-size: var(--font-size-3xl);
    }
}

@media (min-width: 1024px) {
    .cannabis-icon-inline {
        font-size: var(--font-size-4xl);
    }
} 

/* Product Card Styles - Perfect Modern & Minimal Design */
.mobile-product-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(10px);
    min-height: 380px; /* Optimized for mobile */
    display: flex;
    flex-direction: column;
}

.mobile-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.mobile-product-image-container {
    width: 100%;
    height: 280px; /* Optimized height for mobile */
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.product-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Back to cover for consistent box appearance */
    object-position: center;
    background: var(--bg-secondary);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-product-card:hover .product-cover-img {
    transform: scale(1.05);
}

.product-category-badge-small {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    z-index: 10;
}

.view-details-btn-bottom {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 16px; /* Better readability */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    min-height: 52px; /* Enhanced touch target */
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    -webkit-tap-highlight-color: transparent;
}

.view-details-btn-bottom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.view-details-btn-bottom i {
    font-size: 0.9rem;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 3rem;
    position: relative;
}

.product-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

.mobile-product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 140px;
    flex: 1; /* Take remaining space */
    justify-content: space-between;
}

.mobile-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
    text-align: center;
    letter-spacing: -0.02em;
}

.mobile-product-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.price-per-gram {
    text-align: center;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}



.product-category-badge {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Perfect Mobile Responsive Design - Optimized */
@media (max-width: 480px) {
    .mobile-product-card {
        margin-bottom: 20px;
        min-height: 360px; /* Optimized for mobile */
    }
    
    .mobile-product-image-container {
        height: 240px; /* FIXED height for mobile */
    }
    
    .mobile-card-title {
        font-size: 16px;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .product-price {
        font-size: 18px; /* Better mobile readability */
    }
    
    .view-details-btn-bottom {
        padding: 16px 20px;
        font-size: 15px; /* Better readability */
        min-height: 52px; /* Enhanced touch target */
    }
    
    .product-category-badge-small {
        top: 8px;
        right: 8px;
        padding: 6px 12px;
        font-size: 11px;
        font-weight: 600;
    }
    
    .mobile-product-info {
        padding: 20px 16px;
        min-height: 120px;
    }
}

@media (min-width: 768px) {
    .mobile-product-card {
        margin-bottom: 24px;
        min-height: 380px;
    }
    
    .mobile-product-image-container {
        height: 280px; /* FIXED height for tablet */
    }
    
    .mobile-card-title {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.6rem;
    }
    
    .mobile-product-info {
        padding: 20px 16px;
        min-height: 120px;
    }
}

@media (min-width: 1024px) {
    .mobile-product-card {
        margin-bottom: 20px;
        min-height: 320px; /* Much smaller for desktop */
    }
    
    .mobile-product-image-container {
        height: 200px; /* FIXED height for desktop */
    }
    
    .mobile-card-title {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.4rem;
    }
    
    .mobile-product-info {
        padding: 16px 12px;
        min-height: 100px;
    }
    
    .view-details-btn-bottom {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .product-category-badge-small {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 0.6rem;
    }
}

/* No Products Message */
.mobile-no-products {
    text-align: center;
    padding: var(--space-8);
}

.mobile-no-products i {
    font-size: var(--font-size-4xl);
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.mobile-no-products h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.mobile-no-products p {
    color: var(--text-secondary);
}

/* Product Detail Page Styles - Mobile Optimized */
.mobile-product-detail-card {
    background: var(--bg-card);
    border-radius: 0; /* Full width for mobile */
    padding: 0;
    box-shadow: none; /* Remove shadow for full width */
    border: none; /* Remove border for full width */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 0; /* No margin for full width */
    width: 100%; /* Full width */
    max-width: 100%; /* Full width */
}

.product-media-section {
    margin-bottom: 20px;
}

.product-main-image {
    width: 100%;
    height: 350px; /* Increased height for mobile */
    border-radius: 0; /* Full width */
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder-large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 64px;
    position: relative;
}

.product-placeholder-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

.product-video-section {
    margin-top: 20px;
    padding: 0 20px;
}

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.product-video-section h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.edit-cover-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.edit-cover-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.edit-cover-btn i {
    font-size: 12px;
}

.product-video {
    width: 100%;
    height: 200px; /* FIXED standard height for mobile */
    border-radius: 12px;
    object-fit: cover; /* Back to cover for consistent box appearance */
    background: #000; /* Black background for videos */
}

.product-info-section {
    padding: 24px 20px; /* Increased padding for mobile */
    width: 100%; /* Full width */
}

.product-header {
    margin-bottom: 20px;
}

.product-title {
    font-size: 28px; /* Larger font for mobile */
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0; /* More spacing */
    line-height: 1.2;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.product-price-large {
    font-weight: 700;
    color: #10b981;
    font-size: 32px; /* Larger font for mobile */
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px; /* More spacing */
}

.product-description {
    margin-bottom: 20px;
}

.product-description h4 {
    margin: 0 0 12px 0;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.product-description p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-primary); /* ensure strong contrast in dark/light */
}

.product-details {
    margin-bottom: 24px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0; /* More padding for mobile */
    border-bottom: 1px solid var(--border-light);
    font-size: 16px; /* Larger font for mobile */
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 16px; /* Larger font for mobile */
}

.detail-value {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 16px; /* Larger font for mobile */
    display: flex;
    align-items: center;
    gap: 8px;
}

.country-flag-small {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

/* Quality Indicators */
.quality-premium {
    color: #FFD700 !important;
    font-weight: 700 !important;
}

.quality-standard {
    color: var(--text-primary) !important;
    font-weight: 500 !important;
}

.quality-economy {
    color: var(--text-muted) !important;
    font-weight: 400 !important;
}

/* Availability Indicators */
.availability-in_stock {
    color: #4CAF50 !important;
    font-weight: 600 !important;
}

.availability-out_of_stock {
    color: #F44336 !important;
    font-weight: 600 !important;
}

.availability-pre_order {
    color: #FF9800 !important;
    font-weight: 600 !important;
}

.product-actions {
    display: flex;
    gap: 16px; /* More gap for mobile */
    flex-wrap: wrap;
    margin-top: 32px; /* More spacing */
    padding: 0 4px; /* Small padding for mobile */
}

.product-actions .mobile-btn-modern {
    flex: 1;
    min-width: 120px;
}

/* Responsive Design for Product Detail */
@media (min-width: 768px) {
    .product-main-image {
        height: 300px;
    }
    
    .product-title {
        font-size: 28px;
    }
    
    .product-price-large {
        font-size: 28px;
    }
    
    .product-video {
        height: 250px; /* FIXED height for mobile */
    }
}

@media (min-width: 1024px) {
    .product-main-image {
        height: 350px;
    }
    
    .product-title {
        font-size: 32px;
    }
    
    .product-price-large {
        font-size: 32px;
    }
    
    .product-video {
        height: 300px; /* FIXED height for desktop */
    }
} 

/* Product Detail Styles - New Template */
.mobile-product-detail-card {
    background: #0f172a;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    margin: 0;
    overflow: hidden;
    min-height: 100vh;
}

.product-media-section {
    width: 100%;
    position: relative;
}

.product-video-container {
    width: 100%;
    height: 400px; /* FIXED standard height for mobile */
    overflow: hidden;
    background: #000; /* Black background for videos */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    max-width: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-video-modern {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Back to cover for consistent box appearance */
    border-radius: 0;
}

.product-image-container {
    width: 100%;
    height: 400px; /* FIXED standard height for mobile */
    overflow: hidden;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    max-width: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-detail-img-modern {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Back to cover for consistent box appearance */
    border-radius: 0;
}

.product-placeholder-modern {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #64748b;
    font-size: 4rem;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    max-width: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-info-section {
    padding: 0;
    background: #0f172a;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%; /* Full width for mobile */
}

.product-hero {
    min-height: 400px !important; /* Good mobile hero size */
    height: 60vh !important; /* Good mobile hero size - not full screen */
    max-height: 600px !important; /* Maximum reasonable height */
    padding: 0 !important; /* Remove padding to use full height */
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-bottom: 1px solid #334155;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
}

.product-main-info {
    display: flex;
    justify-content: space-between;
    align-items: center !important; /* Center content in standardized hero */
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100% !important;
    padding: var(--space-6) var(--space-4) !important; /* Add padding for content */
}

.product-title-area {
    flex: 1;
}

.product-title-new {
    font-size: 2.2rem; /* Optimized for mobile */
    font-weight: 900;
    color: #f8fafc;
    margin: 0 0 16px 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.product-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.product-tag {
    background: #3b82f6;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.quality-tag {
    background: #10b981;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.quality-premium {
    background: #f59e0b;
}

.quality-standard {
    background: #10b981;
}

.quality-economy {
    background: #6b7280;
}

.price-area {
    text-align: right;
    background: rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-main {
    font-size: 2.8rem; /* Optimized for mobile */
    font-weight: 900;
    color: #fbbf24;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.price-sub {
    font-size: 1.1rem;
    color: #94a3b8;
    font-weight: 600;
    display: block;
}

.product-description-new {
    padding: 40px 24px;
    background: #0f172a;
    border-bottom: 1px solid #334155;
}

.description-content {
    max-width: 1200px;
    margin: 0 auto;
}

.description-content p {
    color: var(--text-primary) !important; /* black in light, white in dark */
    line-height: 1.8;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
}

.product-details-new {
    padding: 40px 24px;
    background: #0f172a;
    border-bottom: 1px solid #334155;
}

.detail-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px; /* Optimized padding for mobile */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.detail-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.detail-label {
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-weight: 700;
    color: #f8fafc;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flag-new {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.availability-in_stock {
    color: #10b981;
}

.availability-out_of_stock {
    color: #ef4444;
}

.availability-pre_order {
    color: #f59e0b;
}

.action-buttons-new {
    padding: 32px 20px; /* Optimized padding for mobile */
    background: #0f172a;
    display: flex;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.primary-btn-new {
    flex: 2;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 18px 24px; /* Optimized padding for mobile */
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem; /* Optimized font size for mobile */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    min-height: 52px; /* Enhanced touch target */
}

.primary-btn-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.6);
}

.secondary-btn-new {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.secondary-btn-new:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Mobile Responsive Design - Optimized */
@media (max-width: 480px) {
    .product-video-container,
    .product-image-container,
    .product-placeholder-modern {
        height: 280px; /* FIXED height for mobile */
    }
    
    .product-hero {
        min-height: 400px !important; /* Good mobile hero size */
        height: 60vh !important; /* Good mobile hero size - not full screen */
        max-height: 600px !important; /* Maximum reasonable height */
        padding: 0 !important; /* Remove padding to use full height */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .product-main-info {
        flex-direction: column;
        gap: 16px; /* Tighter spacing */
    }
    
    .product-title-new {
        font-size: 1.8rem; /* Better mobile readability */
    }
    
    .price-main {
        font-size: 2.2rem; /* Better mobile readability */
    }
    
    .price-area {
        text-align: left;
        padding: 16px; /* Optimized padding */
    }
    
    .product-description-new {
        padding: 20px 16px; /* Optimized padding */
    }
    
    .description-content p {
        font-size: 0.95rem; /* Better mobile readability */
    }
    
    .product-details-new {
        padding: 20px 16px; /* Optimized padding */
    }
    
    .detail-row {
        grid-template-columns: 1fr;
        gap: 12px; /* Tighter spacing */
    }
    
    .detail-item {
        padding: 16px; /* Optimized padding */
    }
    
    .action-buttons-new {
        padding: 20px 16px; /* Optimized padding */
        flex-direction: column;
        gap: 12px;
    }
    
    .primary-btn-new,
    .secondary-btn-new {
        flex: 1;
        padding: 16px 20px; /* Optimized padding */
        min-height: 52px; /* Enhanced touch target */
    }
}

@media (min-width: 768px) {
    .product-video-container,
    .product-image-container,
    .product-placeholder-modern {
        height: 400px; /* FIXED height for tablet */
    }
    
    .product-title-new {
        font-size: 2.4rem;
    }
    
    .price-main {
        font-size: 2.8rem;
    }
    
    .detail-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-video-container,
    .product-image-container,
    .product-placeholder-modern {
        height: 500px; /* FIXED height for desktop */
    }
    
    .product-title-new {
        font-size: 2.8rem;
    }
    
    .price-main {
        font-size: 3.2rem;
    }
    
    .detail-row {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }
}

/* ========================================
   COUNTRIES SECTION STYLES
   ======================================== */

.mobile-countries-section {
    padding: var(--space-8) var(--space-4);
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.mobile-countries-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.mobile-countries-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.mobile-country-card {
    background: var(--bg-card-gradient);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-bounce);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    min-height: 280px;
}

.mobile-country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.mobile-country-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.3);
}

.mobile-country-card:hover::before {
    transform: scaleX(1);
}

.country-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-4);
}

.country-flag {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid rgba(255, 255, 255, 0.3);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-bounce);
}

.mobile-country-card:hover .country-flag {
    transform: scale(1.15) rotate(5deg);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.6);
}

.country-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
    display: block;
    background: #f0f0f0; /* Fallback background */
}

.country-name {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    transition: all var(--transition-bounce);
}

.mobile-country-card:hover .country-name {
    color: var(--primary);
    transform: scale(1.05);
}

.country-description {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    max-width: 300px;
    font-weight: 500;
}

/* Responsive Design for Countries Section */
@media (min-width: 768px) {
    .mobile-countries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
    
    .mobile-country-card {
        padding: var(--space-8);
    }
    
    .country-flag {
        width: 100px;
        height: 100px;
    }
    
    .country-name {
        font-size: var(--font-size-2xl);
    }
    
    .country-description {
        font-size: var(--font-size-base);
        max-width: 320px;
    }
}

@media (min-width: 1024px) {
    .mobile-countries-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-10);
    }
    
    .mobile-country-card {
        padding: var(--space-10);
    }
    
    .country-flag {
        width: 120px;
        height: 120px;
    }
    
    .country-name {
        font-size: var(--font-size-3xl);
    }
    
    .country-description {
        font-size: var(--font-size-lg);
        max-width: 360px;
    }
}

@media (min-width: 1280px) {
    .mobile-countries-section {
        padding: var(--space-12) var(--space-6);
    }
    
    .mobile-countries-grid {
        gap: var(--space-12);
    }
    
    .mobile-country-card {
        padding: var(--space-12);
    }
    
    .country-flag {
        width: 140px;
        height: 140px;
    }
    
    .country-name {
        font-size: var(--font-size-4xl);
    }
    
    .country-description {
        font-size: var(--font-size-xl);
        max-width: 400px;
    }
}

/* Enhanced Mobile Responsiveness Fixes */

/* Force mobile-first responsive behavior */
@media (max-width: 767px) {
    /* Ensure all containers are mobile-optimized */
    .container, .mobile-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        margin: 0 auto !important;
    }
    
    /* Force mobile grid layouts */
    .mobile-grid, .grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Mobile-optimized hero section */
    .mobile-hero-modern {
        min-height: 100vh !important;
        padding: 2rem 1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .mobile-hero-content-modern {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        padding: 0 1rem !important;
    }
    
    /* Mobile-optimized buttons */
    .mobile-btn-modern, .btn {
        width: 100% !important;
        max-width: 300px !important;
        min-height: 48px !important;
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
        border-radius: 12px !important;
        margin: 0.5rem auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
    }
    
    /* Mobile-optimized cards */
    .mobile-card, .card {
        width: 100% !important;
        margin: 0.5rem 0 !important;
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
    
    /* Mobile-optimized app cards */
    .mobile-app-card-full {
        width: 100% !important;
        margin: 1rem 0 !important;
        padding: 1.5rem !important;
    }
    
    /* Mobile-optimized product cards */
    .mobile-product-card {
        width: 100% !important;
        margin: 0.5rem 0 !important;
    }
    
    /* Mobile-optimized country cards */
    .mobile-country-card {
        width: 100% !important;
        margin: 0.5rem 0 !important;
    }
    
    /* Mobile-optimized typography */
    .mobile-hero-title-modern, h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .mobile-hero-subtitle-modern, h2 {
        font-size: 1.25rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Mobile-optimized sections */
    .mobile-section {
        padding: 2rem 1rem !important;
        width: 100% !important;
    }
    
    /* Mobile-optimized header */
    .site-header, .mobile-simple-header {
        width: 100% !important;
        padding: 0 !important; /* Remove all padding to eliminate gap */
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
    }
    
    /* Mobile-optimized footer */
    .mobile-minimal-footer {
        width: 100% !important;
        padding: 1rem !important;
        text-align: center !important;
    }
    
    /* Force mobile navigation */
    .mobile-nav-menu {
        width: 100% !important;
        position: fixed !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--bg-primary) !important;
        z-index: 999 !important;
    }
    
    /* Mobile-optimized forms */
    input, textarea, select {
        width: 100% !important;
        min-height: 48px !important;
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
    }
    
    /* Mobile-optimized images */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Mobile-optimized videos */
    video {
        width: 100% !important;
        height: auto !important;
        max-height: 300px !important;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .mobile-hero-title-modern, h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .mobile-hero-subtitle-modern, h2 {
        font-size: 1.125rem !important;
        line-height: 1.5 !important;
    }
    
    .mobile-btn-modern, .btn {
        font-size: 1rem !important;
        padding: 0.75rem 1.5rem !important;
        min-height: 56px !important;
    }
    
    .mobile-card, .card {
        padding: 1rem !important;
    }
    
    .mobile-section {
        padding: 1.5rem 0.75rem !important;
    }
    
    .hero-country-banner {
        height: 60vh !important; /* Good mobile hero size */
        min-height: 400px !important;
        max-height: 600px !important; /* Maximum reasonable height */
        background-size: cover !important; /* Force cover on mobile */
        -webkit-background-size: cover !important;
        -moz-background-size: cover !important;
        -o-background-size: cover !important;
        background-position: center !important;
        background-attachment: scroll !important;
        /* Force banner to stick to header on small mobile */
        top: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
    }
    
    .country-flag-hero {
        width: 60px !important;
        height: 40px !important;
    }
    
    .mobile-hero-content-modern {
        padding: 2rem 1rem 0 !important; /* Remove bottom padding to eliminate gap */
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .mobile-grid-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .mobile-btn-modern, .btn {
        max-width: 250px !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .mobile-grid-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .mobile-grid-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .mobile-btn-modern, .btn {
        width: auto !important;
        max-width: none !important;
    }
    
    .mobile-hero-modern {
        min-height: 60vh !important; /* Standard mobile hero height */
    }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
    .mobile-grid-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .mobile-grid-4 {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .mobile-container {
        max-width: 1200px !important;
    }
}

/* Prevent horizontal scroll on all devices */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure proper touch targets on mobile */
@media (pointer: coarse) {
    .mobile-btn-modern, .btn, button, a {
        min-height: 48px !important;
        min-width: 48px !important;
    }
    
    input, textarea, select {
        min-height: 48px !important;
    }
    
    .mobile-hero-title-modern {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .mobile-hero-subtitle-modern {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .mobile-brand-logo, img {
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
    }
}

/* Landscape orientation fixes */
@media (orientation: landscape) and (max-height: 500px) {
    .mobile-hero-modern {
        min-height: 100vh !important;
        padding: 1rem !important;
    }
    
    .mobile-hero-title-modern {
        font-size: 1.5rem !important;
    }
    
    .mobile-hero-subtitle-modern {
        font-size: 1rem !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a !important;
        --bg-secondary: #2d2d2d !important;
        --text-primary: #ffffff !important;   /* base text stays bright */
        --text-secondary: #d1d5db !important; /* slightly brighter for readability */
        --border-color: #404040 !important;
    }
}

/* Force LIGHT theme across the site regardless of device setting */
:root { color-scheme: light; }
html[data-theme="light"] {
    --bg-primary: #ffffff !important;
    --bg-secondary: #f8fafc !important;
    --text-primary: #1a1a1a !important;
    --text-secondary: #4a5568 !important;
    --border-color: #e5e7eb !important;
}

/* Prevent iOS Safari text autosizing differences */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Viewport height fixes for real mobile browsers */
.home-hero.mobile-hero-modern,
.country-hero.mobile-hero-modern,
.country-hero .hero-country-banner,
.home-hero .hero-country-banner {
    height: 60vh;            /* fallback */
    min-height: 60vh;
}

@supports (height: 100svh) {
    .home-hero.mobile-hero-modern,
    .country-hero.mobile-hero-modern,
    .country-hero .hero-country-banner,
    .home-hero .hero-country-banner {
        height: 60svh;       /* stable visible viewport */
        min-height: 60svh;
    }
}

@supports (height: 100dvh) {
    .home-hero.mobile-hero-modern,
    .country-hero.mobile-hero-modern,
    .country-hero .hero-country-banner,
    .home-hero .hero-country-banner {
        height: 60dvh;       /* modern browsers */
        min-height: 60dvh;
    }
}

/* Print styles */
@media print {
    .mobile-hero-modern,
    .mobile-section,
    .mobile-card {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
    
    .mobile-btn-modern,
    .btn,
    button {
        display: none !important;
    }
}

/* ===== MOBILE-SPECIFIC GAP FIXES ===== */
/* Eliminate white space between header and banner on mobile only */

@media screen and (max-width: 768px) {
    /* Reset all top spacing on body, main, and first containers */
    body {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    main.main-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Remove any sticky header spacer */
    .site-header + *,
    .mobile-simple-header + * {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Reset scroll-padding-top if exists */
    html {
        scroll-padding-top: 0 !important;
    }
    
    /* Hero section - remove all top spacing */
    .mobile-hero-modern {
        margin-top: 0 !important;
        padding-top: 0 !important;
        line-height: 0 !important; /* Remove baseline spacing */
    }
    
    /* Banner container - remove baseline spacing */
    .hero-background {
        line-height: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Banner image - force block display and top alignment */
    .hero-country-banner {
        display: block !important;
        vertical-align: top !important;
        line-height: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-top: none !important;
        box-shadow: none !important;
    }
    
    /* iOS Safe Area - header only gets safe-area padding */
    .site-header,
    .mobile-simple-header {
        padding-top: env(safe-area-inset-top) !important;
        margin-top: 0 !important;
    }
    
    /* Hero gets no additional top spacing */
    .mobile-hero-modern {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Ensure proper z-index layering without spacing */
    .site-header,
    .mobile-simple-header {
        z-index: 1001 !important;
    }
    
    .hero-country-banner {
        z-index: 1 !important;
        top: 0 !important;
    }
    
    /* Fix flag display issues on mobile */
    .country-flag {
        width: 80px !important;
        height: 80px !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        border: 3px solid rgba(255, 255, 255, 0.3) !important;
        background: #f0f0f0 !important;
    }
    
    .country-flag img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        border-radius: 50% !important;
    }
    
    /* Ensure country cards display properly */
    .mobile-country-card {
        background: white !important;
        border-radius: 16px !important;
        padding: 24px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
        text-align: center !important;
    }
}

/* === HOTFIX: remove white gap above banner on mobile (no size change) === */
@media (max-width: 1024px) {
  /* Ensure banner image is aligned to the very top */
  .hero-country-banner {
    background-position: center !important; /* Keep center for proper flag display */
    background-size: cover !important; /* Force cover to eliminate white sidebars */
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
    box-shadow: none !important;
  }
  /* Ensure the first section has zero vertical offset */
  body > section:first-of-type,
  .mobile-hero-modern {
    margin-top: 0 !important;
    padding-top: 0 !important;
    line-height: 0 !important; /* prevents baseline gaps from inline children */
  }
}
/* === END HOTFIX === */

/* === PRODUCTS PAGE SPECIFIC STYLES === */

/* Mobile Banner Size Fix - STANDARD HERO SIZE */
.hero-country-banner {
    width: 100%;
    height: 60vh !important; /* Standard mobile hero height */
    min-height: 400px !important;
    max-height: 600px !important;
    background-size: cover !important;
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    margin-bottom: 0 !important; /* Ensure no bottom margin */
    padding-bottom: 0 !important; /* Ensure no bottom padding */
}

@media (max-width: 768px) {
    .hero-country-banner {
        height: 60vh !important; /* Standard mobile hero height */
        min-height: 400px !important;
        max-height: 600px !important;
    }
}

@media (max-width: 480px) {
    .hero-country-banner {
        height: 60vh !important; /* Standard mobile hero height */
        min-height: 400px !important;
        max-height: 600px !important;
    }
}
.mobile-nav-section {
    padding: 20px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    margin-top: 0 !important;
    padding-top: 0 !important; /* Remove top padding to eliminate gap */
}

.mobile-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.mobile-back-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-back-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.mobile-category-filters {
    display: flex;
    gap: 10px;
}

.mobile-category-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-category-btn.active,
.mobile-category-btn:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: transparent;
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.mobile-products-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Responsive Design for Products Page */
@media (max-width: 768px) {
    .mobile-nav-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mobile-category-filters {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .mobile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mobile-nav-section {
        padding: 15px;
        margin-top: 0 !important;
        padding-top: 0 !important; /* Keep no top padding on mobile */
    }
    
    .mobile-products-section {
        padding: 15px;
    }
}
