/* ==========================================================================
   Nexus eSIM Customer Storefront - Light Theme Stylesheet & Dynamic Animations
   ========================================================================== */

:root {
    --bg-light: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --border-color: #cbd5e1;
    --border-darker: #94a3b8;
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;
    
    --accent-emerald: #047857;
    --accent-emerald-light: #ecfdf5;
    --accent-emerald-border: #6ee7b7;
    --accent-cyan: #0284c7;
    --accent-purple: #6d28d9;
    
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Space Grotesk', monospace;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 32px rgba(15, 23, 42, 0.12);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.light-theme {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

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

/* Announcement Top Bar */
.announcement-bar {
    background: #047857;
    color: #ffffff;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
}

.announcement-bar code {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

/* Header Navbar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1.5px solid #e2e8f0;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #047857;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
    transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
    transform: rotate(12deg) scale(1.05);
}

.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: #0f172a; line-height: 1; }
.brand-name .highlight { color: var(--accent-emerald); }
.brand-tag { font-size: 0.65rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-top: 2px; }

.main-nav { display: flex; align-items: center; gap: 24px; }
.nav-link { color: #334155; text-decoration: none; font-weight: 700; font-size: 0.92rem; transition: var(--transition); white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--accent-emerald); }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* Dedicated International Language Bar */
.global-language-bar {
    background: #ffffff;
    border-bottom: 2px solid var(--border-color);
    padding: 10px 0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.lang-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.lang-bar-label {
    font-weight: 800;
    font-size: 0.88rem;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 4px;
}

.lang-bar-buttons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.lang-bar-btn {
    background: #f8fafc;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 7px 16px;
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.lang-bar-btn:hover {
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
    background: var(--accent-emerald-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.15);
}

.lang-bar-btn.active {
    background: var(--accent-emerald-light);
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.2);
}

.flag-svg-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.lang-bar-btn:hover .flag-svg-icon {
    transform: scale(1.15);
}

/* Currency Select Dropdown */
.currency-select {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 7px 12px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #0f172a;
    outline: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition);
}

.currency-select:hover, .currency-select:focus {
    border-color: var(--accent-emerald);
}

/* Guest Nav Buttons */
.guest-nav-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Buttons & Badges */
h1, h2, h3, h4 { font-family: var(--font-heading); letter-spacing: -0.02em; color: #0f172a; }
.gradient-text { background: linear-gradient(135deg, #0f172a, var(--accent-emerald)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 18px; border-radius: var(--radius-md); font-weight: 700; font-size: 0.9rem;
    cursor: pointer; border: 1.5px solid transparent; transition: var(--transition); text-decoration: none;
    font-family: var(--font-body);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.88rem;
    border-radius: 10px;
}

.btn-emerald {
    background: var(--accent-emerald); color: #ffffff;
    border-color: #047857;
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.2);
}
.btn-emerald:hover { background: #065f46; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(4, 120, 87, 0.35); }

.btn-outline {
    background: #ffffff;
    border: 2px solid var(--border-color);
    color: #0f172a;
    font-weight: 700;
}
.btn-outline:hover {
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
    background: var(--accent-emerald-light);
    transform: translateY(-2px);
}

.btn-primary { background: #0f172a; color: #ffffff; }
.btn-primary:hover { background: #1e293b; transform: translateY(-2px); }

.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.w-full { width: 100%; }

.card {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 24px;
    transition: var(--transition);
}

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-full); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-emerald { background: var(--accent-emerald-light); color: var(--accent-emerald); border: 1.5px solid var(--accent-emerald-border); }

.section { padding: 30px 0 50px 0; }
.section-header { max-width: 640px; margin: 0 auto 20px auto; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.section-title { font-size: 2.2rem; margin: 0 0 6px 0; line-height: 1.2; font-weight: 800; color: #0f172a; }

/* Hero Section with Entrance Animations */
.hero-shop-section { padding: 32px 0 24px 0; background: radial-gradient(circle at 50% 0%, #ecfdf5 0%, var(--bg-light) 70%); }
.hero-shop-title {
    font-size: 2.8rem; line-height: 1.15; margin: 12px 0 10px 0; font-weight: 800; color: #0f172a;
    animation: heroFadeDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-shop-sub {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--accent-emerald);
    margin: 10px auto 24px auto;
    letter-spacing: -0.02em;
    animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.search-box-wrap {
    max-width: 580px; margin: 0 auto;
    animation: searchPop 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.search-input-box {
    background: #ffffff;
    border: 2.5px solid var(--accent-emerald);
    box-shadow: 0 8px 24px rgba(4, 120, 87, 0.15);
    border-radius: var(--radius-full);
    padding: 12px 22px;
    display: flex; align-items: center; gap: 14px;
    transition: var(--transition);
}

.search-input-box:focus-within {
    box-shadow: 0 12px 32px rgba(4, 120, 87, 0.28);
    transform: scale(1.02);
}

.search-input-box svg { color: var(--accent-emerald); }
.search-input-box input {
    background: transparent; border: none; outline: none;
    color: #0f172a; font-size: 1.15rem; font-family: var(--font-body); width: 100%; font-weight: 600;
}

/* Country Catalog Grid & Perfectly Uniform Card Heights */
#destinations { padding-top: 10px; }
.destinations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }

.country-card {
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    height: 250px; /* Exact uniform height for all cards across all rows! */
    opacity: 0;
    transform: translateY(30px);
    animation: cardAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.country-card:hover {
    border-color: #047857;
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 36px rgba(4, 120, 87, 0.2);
}

/* Top header section with fixed min-height so price boxes align at EXACT same Y position! */
.c-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    height: 72px; /* Fixed height for top title area */
    overflow: hidden;
}

.c-flag-icon {
    width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease;
    margin-top: 2px;
}
.country-card:hover .c-flag-icon { transform: scale(1.15) rotate(5deg); }

.c-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.c-network {
    font-size: 0.78rem;
    color: #475569;
    font-weight: 600;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Middle Price Box - Perfectly aligned on every card! */
.c-card-middle {
    background: #f8fafc;
    border-top: 1.5px dashed #cbd5e1;
    border-bottom: 1.5px dashed #cbd5e1;
    padding: 10px 14px;
    margin: 10px 0;
    text-align: center;
    border-radius: var(--radius-md);
    transition: background 0.3s ease;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-card:hover .c-card-middle { background: var(--accent-emerald-light); border-color: var(--accent-emerald-border); }

.c-starting-price-centered {
    font-size: 0.92rem;
    color: #475569;
    font-weight: 700;
}

.c-starting-price-centered strong {
    font-size: 1.55rem;
    color: #047857;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-left: 4px;
}

.c-card-bottom {
    margin-top: auto;
    width: 100%;
}

.btn-card-full-bottom {
    width: 100%;
    border: 2px solid #047857;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 10px 16px;
    text-align: center;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.country-card:hover .btn-card-full-bottom {
    background: #047857;
    color: #ffffff;
}

/* Steps & FAQ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
    text-align: center; padding: 36px 24px;
    transition: var(--transition);
}
.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-emerald);
}

.step-icon-bg {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--accent-emerald-light); color: var(--accent-emerald);
    font-size: 1.4rem; font-weight: 800; border: 2px solid var(--accent-emerald-border);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto;
    transition: transform 0.3s ease, background 0.3s ease;
}
.step-card:hover .step-icon-bg {
    transform: scale(1.15) rotate(360deg);
    background: var(--accent-emerald);
    color: #ffffff;
}

.step-card h3 { margin-bottom: 10px; font-size: 1.25rem; font-weight: 800; }
.step-card p { font-size: 0.95rem; color: #334155; }

.comp-card { background: linear-gradient(135deg, #ffffff, #f0fdf4); border-color: var(--accent-emerald-border); padding: 40px; }
.comp-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.comp-title { font-size: 2rem; margin: 12px 0; font-weight: 800; }
.comp-sub { color: #334155; margin-bottom: 20px; }
.comp-list { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.95rem; color: #0f172a; }
.comp-check-box { background: #ffffff; padding: 28px; border-radius: var(--radius-md); border: 2px solid var(--border-color); text-align: center; box-shadow: var(--shadow-md); transition: var(--transition); }
.comp-check-box:hover { transform: translateY(-4px); border-color: var(--accent-emerald); }
.check-icon-large { font-size: 3rem; margin-bottom: 12px; }

.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { padding: 24px; transition: var(--transition); }
.faq-item:hover { border-color: var(--accent-emerald); transform: translateX(6px); }
.faq-item h4 { font-size: 1.15rem; margin-bottom: 8px; color: #0f172a; font-weight: 800; }
.faq-item p { font-size: 0.95rem; color: #334155; }

/* Bottom Relocated Trust Strip */
.trust-strip-bottom {
    background: #ffffff;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    padding: 22px 0;
    margin-top: 40px;
}

.trust-flex {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: center;
}

.t-item { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; transition: var(--transition); }
.t-item:hover { transform: translateY(-2px); }
.t-icon { font-size: 1.5rem; flex-shrink: 0; }
.t-item strong { display: block; font-weight: 800; color: #0f172a; white-space: nowrap; line-height: 1.2; }
.t-item span { color: #475569; font-size: 0.78rem; line-height: 1.2; display: block; font-weight: 500; }

/* LIVE FLOATING SALES TICKER (SOCIAL PROOF POPUP) */
.live-sales-ticker {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 900;
    background: #ffffff;
    border: 2px solid var(--accent-emerald);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    box-shadow: 0 12px 32px rgba(4, 120, 87, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 380px;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.live-sales-ticker.active {
    transform: translateY(0);
    opacity: 1;
}

.ticker-pulse-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 1.8s infinite;
    flex-shrink: 0;
}

.ticker-text {
    font-size: 0.85rem;
    color: #0f172a;
    line-weight: 600;
}

.ticker-text strong {
    color: var(--accent-emerald);
    font-weight: 800;
}

.ticker-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
    padding: 0 4px;
    transition: color 0.2s ease;
}

.ticker-close-btn:hover {
    color: #0f172a;
}

/* KEYFRAME ANIMATIONS */
@keyframes heroFadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes searchPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* INTERSECTION OBSERVER SCROLL REVEAL UTILITIES */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-from-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-from-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-from-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-from-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* MODAL GENERAL & BACKDROP */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-backdrop.hidden {
    display: none !important;
}

.modal-content {
    width: 100%;
    max-width: 480px !important;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    background: #ffffff;
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    margin: 0 auto !important;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* AUTHENTICATION & USER DROPDOWN */
.user-menu-wrap {
    position: relative;
}

.user-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.user-avatar-icon { font-size: 1.1rem; }

.user-dropdown-menu {
    position: absolute;
    top: 115%;
    right: 0;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    z-index: 120;
}

.user-dropdown-menu a {
    padding: 10px 18px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    transition: var(--transition);
}

.user-dropdown-menu a:hover {
    background: var(--bg-subtle);
    color: var(--accent-emerald);
}

.user-dropdown-menu .logout-link {
    color: #d92d20;
}
.user-dropdown-menu .logout-link:hover {
    background: #fef2f2;
    color: #b42318;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* Auth Modal Specifics */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: var(--bg-subtle);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 22px;
}

.auth-tab-btn {
    background: none;
    border: none;
    padding: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    color: #64748b;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.auth-tab-btn.active {
    background: #ffffff;
    color: var(--accent-emerald);
    box-shadow: var(--shadow-sm);
}

.alert-banner {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.alert-banner.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b42318;
}

.alert-banner.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

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

.pwd-toggle-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.checkbox-group label {
    font-size: 0.82rem;
    color: #475569;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-helper-text {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 14px;
}

.auth-helper-text code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #047857;
    font-family: var(--font-mono);
}

/* ACCOUNT PORTAL DASHBOARD */
.account-modal-card {
    max-width: 620px;
}

.account-header {
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 16px;
}

.account-user-badge {
    display: flex;
    align-items: center;
    gap: 14px;
}

.u-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-emerald);
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
}

.acc-user-name { font-size: 1.3rem; font-weight: 800; margin: 0; line-height: 1.2; }
.acc-user-email { font-size: 0.85rem; color: #64748b; font-weight: 600; }

.user-esim-card {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.user-esim-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.user-esim-country {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.user-esim-status-badge {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.data-progress-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 8px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #047857, #10b981);
    border-radius: var(--radius-full);
}

.esim-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #475569;
    font-weight: 600;
    margin-bottom: 12px;
}

.order-row {
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.order-info-title { font-weight: 800; font-size: 1rem; color: #0f172a; }
.order-info-sub { font-size: 0.8rem; color: #64748b; font-weight: 600; }
.order-price { font-weight: 800; font-size: 1.1rem; color: #047857; }

/* Modal Header Components */
.modal-country-header { display: flex; align-items: center; gap: 16px; text-align: left; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--border-color); }
.modal-flag { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.modal-country-name { font-size: 1.3rem; margin-bottom: 2px; font-weight: 800; color: #0f172a; }
.modal-network-tag { font-size: 0.82rem; color: var(--accent-emerald); font-weight: 800; }

.plans-list { display: flex; flex-direction: column; gap: 10px; }
.plan-option-row {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
}
.plan-option-row:hover { border-color: var(--accent-emerald); background: var(--accent-emerald-light); transform: translateX(4px); }
.plan-data { font-weight: 800; font-size: 1.1rem; color: #0f172a; }
.plan-days { font-size: 0.8rem; color: #475569; font-weight: 600; }
.plan-price { font-size: 1.25rem; font-weight: 800; color: var(--accent-emerald); font-family: var(--font-heading); }

.back-btn { background: none; border: none; color: #475569; font-size: 0.88rem; font-weight: 700; cursor: pointer; margin-bottom: 12px; }
.selected-plan-banner { background: var(--accent-emerald-light); border: 1.5px solid var(--accent-emerald-border); color: var(--accent-emerald); font-weight: 800; padding: 12px 16px; border-radius: var(--radius-md); margin-top: 8px; font-size: 0.95rem; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 800; margin-bottom: 6px; color: #0f172a; }
.form-input {
    width: 100%; background: #ffffff; border: 2px solid var(--border-color); color: #0f172a;
    padding: 12px 14px; border-radius: var(--radius-md); font-family: var(--font-body); font-size: 1rem;
    outline: none; transition: var(--transition); font-weight: 600;
}
.form-input:focus { border-color: var(--accent-emerald); box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15); }
.input-help { font-size: 0.78rem; color: #475569; display: block; margin-top: 4px; font-weight: 500; }

.payment-methods-select { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-btn { background: #ffffff; border: 2px solid var(--border-color); padding: 12px; border-radius: var(--radius-md); cursor: pointer; font-weight: 800; font-size: 0.88rem; text-align: center; transition: var(--transition); color: #0f172a; }
.pay-btn.active { border-color: var(--accent-emerald); background: var(--accent-emerald-light); color: var(--accent-emerald); }

.security-note { font-size: 0.78rem; color: #475569; text-align: center; margin-top: 10px; font-weight: 600; }
.success-badge-icon { font-size: 3rem; margin-bottom: 8px; }

.qr-code-wrap { background: #ffffff; padding: 16px; border-radius: var(--radius-md); border: 2px solid var(--border-color); display: inline-block; margin: 14px 0; box-shadow: var(--shadow-md); }
.activation-details { background: var(--bg-subtle); padding: 14px; border-radius: var(--radius-md); margin-bottom: 16px; text-align: left; font-size: 0.85rem; }
.act-row { margin-bottom: 6px; }
.act-lbl { color: #475569; font-weight: 700; display: block; }
.act-code { color: var(--accent-emerald); font-family: var(--font-mono); font-weight: 800; word-break: break-all; }
.act-val { color: #0f172a; font-weight: 800; }

/* Footer */
.site-footer { background: #ffffff; border-top: 2px solid var(--border-color); padding: 50px 0 30px 0; margin-top: 40px; font-size: 0.9rem; color: #475569; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.sub-text { font-size: 0.88rem; margin: 8px 0 12px 0; max-width: 320px; }
.copyright { font-size: 0.8rem; color: #64748b; font-weight: 500; }

.footer-links-grid { display: flex; gap: 48px; }
.f-col { display: flex; flex-direction: column; gap: 10px; }
.f-col strong { color: #0f172a; font-size: 0.95rem; margin-bottom: 4px; font-weight: 800; }
.f-col a { color: #475569; text-decoration: none; transition: var(--transition); }
.f-col a:hover { color: var(--accent-emerald); }

@media (max-width: 992px) {
    .main-nav { display: none; }
    .trust-flex { grid-template-columns: 1fr 1fr; }
    .steps-grid, .comp-grid { grid-template-columns: 1fr; }
    .hero-shop-title { font-size: 2.2rem; }
    .footer-inner { flex-direction: column; }
    .live-sales-ticker { bottom: 12px; left: 12px; right: 12px; max-width: none; }
}

@media (max-width: 600px) {
    .trust-flex { grid-template-columns: 1fr; }
    .header-actions { gap: 6px; }
    .lang-bar-inner { flex-direction: column; }
}

/* ==========================================================================
   ULTRA-STRICT MOBILE RESPONSIVENESS & ZERO HORIZONTAL OVERFLOW ENGINE
   ========================================================================== */

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    position: relative;
}

*, *::before, *::after {
    max-width: 100vw;
    box-sizing: border-box;
}

img, video, svg, canvas, iframe {
    max-width: 100% !important;
    height: auto;
}

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

.section, .site-footer {
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-content {
    max-width: 540px !important;
    width: 92% !important;
    margin: 40px auto !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28) !important;
    overflow-y: auto;
    max-height: 90vh;
    padding: 32px 28px !important;
}

.account-modal-card, .checkout-modal-card {
    max-width: 640px !important;
}

.site-header, .header-actions, .user-menu-wrap {
    overflow: visible !important;
}

.user-menu-wrap {
    position: relative !important;
}

.user-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    background: #ffffff !important;
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22) !important;
    min-width: 220px !important;
    width: max-content !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 8px 0 !important;
    z-index: 999999 !important;
    text-align: left !important;
}

.user-dropdown-menu a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 20px !important;
    color: #0f172a !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    white-space: nowrap !important;
    transition: var(--transition) !important;
}

.user-dropdown-menu a:hover {
    background: var(--bg-subtle) !important;
    color: var(--accent-emerald) !important;
}

.modal-content {
    overflow-y: auto;
    max-height: 90vh;
}

@media (max-width: 768px) {
    body {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    
    .hero-shop-title {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
        word-break: break-word;
    }
    
    .destinations-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .card {
        padding: 16px !important;
    }
    
    .modal-dialog, .modal-content {
        width: 95% !important;
        margin: 10px auto !important;
        padding: 18px 14px !important;
    }
    
    .header-inner {
        padding: 10px 14px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .brand-name {
        font-size: 1.3rem !important;
    }

    .table-wrapper, #admin-orders-table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        max-width: 100% !important;
    }

    .footer-links-grid {
        flex-direction: column !important;
        gap: 20px !important;
    }
}
