﻿/* Hide scrollbar globally but keep functionality */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

:root {
    --primary: #D97442;
    --primary-hover: #BF6235;
    --primary-light: rgba(217, 116, 66, 0.08);
    --bg-main: #F8FAFC;
    --text-main: #0F172A;
    --text-primary: #0F172A;
    --text-muted: #64748B;
    --text-secondary: #64748B;
    --border-light: #F1F5F9;
    --border-color: #E2E8F0;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-xl: 16px;
    --radius-lg: 12px;
    --radius-md: 10px;
    --radius-sm: 8px;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    scrollbar-width: none;
}

html, body { 
    overflow-x: hidden; 
    overscroll-behavior: none; 
    height: 100%;
}
body.no-anim { animation: none; }
*::-webkit-scrollbar { display: none; }

/* Fast click / No delay */
a, button, [onclick] { touch-action: manipulation; }

/* Global Loader */
#global-loader { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); z-index: 9999999; display: none; align-items: center; justify-content: center; }
#global-loader.active { display: flex; }
.g-spinner { width: 36px; height: 36px; border: 4px solid rgba(217, 116, 66, 0.2); border-radius: 50%; border-top-color: var(--primary); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-overflow-scrolling: touch;
}

/* =========================================
   MOBILE APP DASHBOARD LAYOUT
   ========================================= */
.mobile-app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0 20px 100px;
    background: var(--bg-main);
}
.desktop-landing-layout { display: none; }

/* M-Header */
.m-top-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0 -20px 16px;
    padding: 12px 20px 8px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
}

.m-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: transparent;
    border: none;
}
.m-logo { display: flex; align-items: center; }
.m-logo-img { height: 32px; width: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-light); }

.m-header-icons { display: flex; gap: 14px; align-items: center; }
.m-header-icons a, .m-cart-badge {
    color: var(--text-main);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    transition: all 0.2s;
}
.m-header-icons a:active { transform: scale(0.9); background: var(--border-light); }

.m-cart-badge { position: relative; cursor: pointer; }
.m-cart-badge .badge {
    position: absolute; top: -6px; right: -8px;
    background: var(--primary); color: #fff; font-size: 10px; font-weight: 800;
    min-width: 18px; height: 18px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(217, 116, 66, 0.2);
    opacity: 0; transform: scale(0.5); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}
.m-cart-badge .badge.visible { opacity: 1; transform: scale(1); }

/* M-Search */
.m-search-container {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 0;
    transition: all 0.2s;
}
.m-search-container:active { transform: scale(0.98); border-color: var(--primary); }
.m-search-container .search-icon { width: 18px; height: 18px; color: var(--text-muted); margin-right: 12px; }
.m-search-container input { flex: 1; border: none; outline: none; font-size: 14px; font-weight: 600; color: var(--text-main); background: transparent; }
.m-search-container .camera-icon { width: 20px; height: 20px; color: var(--primary); }

/* M-Banners */
.m-banner {
    padding: 20px;
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    text-decoration: none;
    transition: all 0.2s;
}
.m-banner-orange {
    background: linear-gradient(120deg, #FF3B1F 0%, #E8541A 40%, #F07820 100%);
    color: #fff;
    box-shadow: 0 10px 28px rgba(220,60,20,0.35);
    position: relative;
    overflow: hidden;
    padding: 14px 16px !important;
    min-height: 72px;
    align-items: center;
    border-radius: 18px;
}
.m-banner-orange .banner-grid {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none;
}
.banner-star {
    position: absolute;
    color: rgba(255,235,150,0.9);
    pointer-events: none;
    animation: star-pulse 2.4s ease-in-out infinite;
}
.banner-star-1 { top: 13px; left: 14px; font-size: 16px; animation-delay: 0s; }
.banner-star-2 { top: 20px; right: 88px; font-size: 11px; animation-delay: 1.2s; }
@keyframes star-pulse { 0%,100%{ opacity:0.7; transform:scale(1); } 50%{ opacity:1; transform:scale(1.35); } }
.banner-text-block {
    display: flex; flex-direction: column; gap: 3px;
    position: relative; z-index: 1; flex: 1;
}
.banner-title {
    font-size: 16px; font-weight: 900; letter-spacing: 0.3px;
    color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.18); line-height: 1.15;
    white-space: nowrap;
}
.banner-subtitle {
    font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85);
    white-space: nowrap;
}
.banner-play-icon {
    position: relative; width: 56px; height: 56px; flex-shrink: 0; z-index: 1;
}
.banner-play-card {
    position: absolute; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.banner-play-card-back {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #FFB347, #FF7F00);
    top: 10px; left: 10px;
    transform: rotate(15deg);
    box-shadow: 2px 4px 10px rgba(0,0,0,0.2);
}
.banner-play-card-front {
    width: 44px; height: 44px;
    background: #fff;
    top: 2px; left: 2px;
    transform: rotate(-5deg);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.m-banner-white {
    background: #fff;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}
.m-banner-white .left { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.m-banner-white .left svg { width: 20px; height: 20px; color: var(--primary); }
.m-banner-white .arrow { color: var(--text-muted); width: 18px; height: 18px; }

/* M-Countries */
.m-countries {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    margin-bottom: 20px;
}
.m-countries h3 { font-size: 11px; font-weight: 800; margin-bottom: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.m-flags-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; }
.m-flags-row .flag-img { width: 28px; height: 18px; object-fit: cover; border-radius: 3px; flex-shrink: 0; border: 1px solid #F1F5F9; }

/* M-Action Cards */
.m-action-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.m-card {
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    color: #fff;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    transition: all 0.2s;
    border: none;
}
.m-card:active { transform: scale(0.96); }
.m-card-orange { background: #1E293B; } /* Dark slate for contrast */
.m-card-blue { background: #3B82F6; } 
.m-card h4 { font-size: 14px; font-weight: 800; margin-bottom: 6px; line-height: 1.3; z-index: 1; }
.m-card p { font-size: 10px; opacity: 0.8; line-height: 1.4; z-index: 1; font-weight: 500; }
.m-card-icon { position: absolute; bottom: -8px; right: -8px; opacity: 0.15; transform: rotate(-10deg); }
.m-card-icon svg { width: 80px; height: 80px; }

/* M-Parcels */
.m-parcels-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 24px; }
.m-parcels-scroll img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius-md); flex-shrink: 0; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); }

/* App Bottom Nav for Mobile */
.app-bottom-nav { 
    position: fixed !important; 
    bottom: 0 !important; 
    left: 0; right: 0; 
    height: 80px; 
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex; 
    justify-content: space-around; 
    align-items: center; 
    z-index: 10000; 
    padding-bottom: env(safe-area-inset-bottom); 
    border-top: 1px solid var(--border-light); 
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.05);
    transform: translateZ(0);
}
.nav-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    color: #94A3B8; 
    text-decoration: none; 
    font-size: 10px; 
    font-weight: 700; 
    gap: 4px; 
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); 
}
.nav-item.active { color: var(--primary); transform: translateY(-2px); }
.nav-item svg { width: 26px; height: 26px; }
.nav-item.active svg { stroke-width: 2.5; }
.nav-cart-icon { position: relative; }
.nav-cart-icon .badge { 
    position: absolute; top: -6px; right: -8px; 
    background: #EF4444; color: #FFF; font-size: 10px; font-weight: 700; 
    border-radius: 50%; width: 16px; height: 16px; 
    display: flex; align-items: center; justify-content: center; 
    border: 2px solid #FFF; 
    opacity: 0; transform: scale(0.5); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-cart-icon .badge.visible { opacity: 1; transform: scale(1); }

/* =========================================
   DESKTOP LANDING PAGE LAYOUT 
   ========================================= */

/* Header */
.header { background: var(--bg-color); height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-img { height: 32px; width: auto; object-fit: contain; }
.m-logo-img { height: 28px; width: auto; object-fit: contain; }

.desktop-nav { display: none; }
.desktop-nav a { margin-left: 32px; text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 15px; transition: color 0.2s; }
.desktop-nav a:hover { color: var(--primary); }

/* Header Icons */
.header-icons { display: none; align-items: center; gap: 24px; margin-left: 24px; }
.header-icons a { color: var(--text-primary); display: flex; align-items: center; position: relative; transition: color 0.2s; }
.header-icons a:hover { color: var(--primary); }
.cart-icon .badge { position: absolute; top: -6px; right: -10px; background: #EF4444; color: #FFF; font-size: 11px; font-weight: 700; height: 18px; min-width: 18px; display: flex; align-items: center; justify-content: center; border-radius: 9px; padding: 0 5px; border: 2px solid var(--bg-color); }

/* Hero Section */
.hero { padding: 40px 20px; text-align: center; display: flex; flex-direction: column; gap: 32px; }
.hero-content h1 { font-size: 32px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; color: var(--text-primary); letter-spacing: -1px; }
.subtitle { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; max-width: 600px; margin-inline: auto; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.cta-btn { display: inline-flex; justify-content: center; align-items: center; text-decoration: none; padding: 14px 28px; border-radius: var(--radius-md); font-weight: 600; font-size: 16px; width: 100%; max-width: 300px; transition: all 0.2s; }
.cta-btn.primary { background: var(--primary); color: #FFF; box-shadow: none; }
.cta-btn.primary:active { transform: scale(0.98); background: var(--primary-hover); }
.cta-btn.secondary { background: var(--primary-light); color: var(--primary); }
.cta-btn.secondary:active { background: rgba(217, 116, 66, 0.15); }

.hero-visual { width: 100%; aspect-ratio: 4/3; background: var(--primary-light); border-radius: 0; position: relative; display: flex; align-items: center; justify-content: center; }
.hero-visual svg { width: 50%; height: 50%; color: var(--primary); opacity: 0.8; }

/* Common Section */
.section-header { text-align: center; margin-bottom: 32px; }
.section-header h2 { font-size: 24px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; letter-spacing: -0.5px; }
.section-header p { color: var(--text-secondary); font-size: 15px; }

/* How It Works */
.how-it-works { padding: 40px 20px; background: var(--bg-alt); }
.steps-grid { display: flex; flex-direction: column; gap: 20px; }
.step-card { background: var(--bg-color); padding: 24px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); }
.step-number { background: var(--primary-light); color: var(--primary); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; font-size: 18px; margin-bottom: 16px; }
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.step-card p { font-size: 14px; color: var(--text-secondary); }

/* Testimonials */
.testimonials { padding: 40px 20px; }
.testimonials-grid { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; scrollbar-width: none; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.testimonials-grid::-webkit-scrollbar { display: none; }
.testimonial-card { min-width: 280px; scroll-snap-align: center; background: var(--bg-color); padding: 24px; border-radius: var(--radius-md); box-shadow: var(--shadow-md); border: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 16px; }
.stars { color: #D97442; font-size: 18px; letter-spacing: 2px; }
.review { font-size: 15px; font-style: italic; color: var(--text-secondary); flex-grow: 1; line-height: 1.5; }
.author { display: flex; flex-direction: column; border-top: 1px solid var(--border-color); padding-top: 12px; }
.author strong { font-size: 14px; color: var(--text-primary); font-weight: 600; }
.author span { font-size: 12px; color: var(--text-secondary); }

/* Footer */
.footer { padding: 40px 20px; background: var(--text-primary); color: #FFF; border-radius: 0; }
.footer-content { display: flex; flex-direction: column; gap: 32px; }
.footer-brand .logo { color: #FFF; margin-bottom: 8px; }
.footer-brand p { color: #94A3B8; font-size: 14px; }
.footer h4 { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: #F8FAFC; }
.footer p { color: #94A3B8; font-size: 14px; margin-bottom: 8px; }
.social-icons { display: flex; gap: 12px; }
.social-icons a { color: #FFF; background: rgba(255,255,255,0.1); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s; }
.social-icons a:active { background: var(--primary); }
.footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 13px; color: #94A3B8; }

/* Auth Modal */
.auth-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: #fff; z-index: 9999;
    display: none; align-items: stretch; justify-content: stretch;
    backdrop-filter: none;
    animation: fadeInPage 0.2s ease-out;
}
@keyframes fadeInPage { from { opacity: 0; } to { opacity: 1; } }

/* Prevent background interactions and button overlapping */
body.modal-open { overflow: hidden; }
body.modal-open .m-cart-summary-fixed,
body.modal-open .app-bottom-nav,
body.modal-open .m-header { 
    display: none !important; 
}
.auth-modal-overlay.active { display: flex; }

.auth-modal-content {
    background: #fff; width: 100%; height: 100%;
    display: flex; flex-direction: column; padding: 20px 28px;
    position: relative; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.close-modal { position: absolute; top: 16px; right: 16px; background: #F1F5F9; border: none; cursor: pointer; color: var(--text-main); width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; z-index: 10; }
.close-modal:active { transform: scale(0.9); }

.back-btn { position: absolute; top: 16px; left: 16px; background: #F1F5F9; border: none; cursor: pointer; color: var(--text-main); width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; z-index: 10; padding: 0; }
.back-btn:active { transform: scale(0.9); }

.auth-step { display: none; flex-direction: column; flex: 1; justify-content: flex-start; text-align: center; padding-top: 40px; }
.auth-step.active { display: flex; animation: fadeInPage 0.3s ease; }
@keyframes fadeInPage { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.auth-step h2 { font-size: 24px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.auth-step p { color: var(--text-secondary); font-size: 14px; margin-bottom: 30px; }

.auth-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; border-radius: 16px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s; border: none; margin-bottom: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.btn-email { background: var(--text-primary); color: #FFF; }
.btn-email:active { transform: scale(0.98); background: #000; }
.btn-google { background: #FFF; color: var(--text-primary); border: 1.5px solid var(--border-color); }
.btn-google:active { transform: scale(0.98); background: #F8FAFC; }

.btn-primary { background: var(--primary); color: #FFF; }
.btn-primary:active { background: var(--primary-hover); }
.btn-secondary { background: var(--primary-light); color: var(--primary); }
.logout-btn { 
    background: transparent !important; 
    border: 1px solid var(--border-color) !important; 
    color: var(--text-secondary) !important; 
    box-shadow: none !important;
}
.logout-btn svg { color: var(--text-secondary) !important; }

.input-group { display: flex; flex-direction: column; margin-bottom: 16px; text-align: left; }
.input-group label { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.input-group input { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font-main); outline: none; transition: border-color 0.2s; }
.input-group input:focus { border-color: var(--primary); }

.form-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.forgot-password { display: block; text-align: center; color: var(--text-secondary); font-size: 13px; margin-top: 16px; text-decoration: none; }
.forgot-password:hover { color: var(--primary); }

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper input { width: 100%; padding-left: 40px; padding-right: 40px; }
.input-icon-left { position: absolute; left: 12px; width: 18px; height: 18px; color: #94A3B8; }
.input-icon-right { position: absolute; right: 12px; width: 18px; height: 18px; color: #94A3B8; cursor: pointer; }

.auth-divider { display: flex; align-items: center; text-align: center; margin: 24px 0; color: #94A3B8; font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border-color); }
.auth-divider span { padding: 0 12px; }

.terms-checkbox { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0; }
.terms-checkbox input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0;}
.terms-checkbox label { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.terms-checkbox a { color: var(--primary); text-decoration: underline; font-weight: 600; }

.auth-switch { text-align: center; font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.auth-switch a { color: var(--primary); text-decoration: none; font-weight: 700; }

.auth-footer-links { text-align: center; font-size: 12px; color: #94A3B8; }
.auth-footer-links a { color: #94A3B8; text-decoration: underline; }

/* --------------------------------------
   CART PAGE STYLES (Mobile & Desktop)
   -------------------------------------- */
/* Mobile Cart */
.cart-mobile-layout { background: var(--bg-color); padding: 0 0 280px 0; }
.m-cart-header { 
    background: #fff; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 16px; 
    position: fixed; 
    top: 0; 
    left: 0;
    right: 0;
    z-index: 1000; 
    border-bottom: 1px solid #f3f4f6; 
}
.m-cart-header-right { display: flex; align-items: center; gap: 16px; color: #111827; }
.m-cart-header .back-link { color: #111827; }

.m-cart-items { 
    padding: 70px 20px 20px; 
    display: flex; 
    flex-direction: column; 
    background: #fff; 
    min-height: 101%; 
    overscroll-behavior-y: contain;
}
.cart-item { background: transparent; padding: 20px 0; display: flex; gap: 16px; border-bottom: 1px solid #f3f4f6; position: relative; }
.cart-item:last-child { border-bottom: none; }
.cart-item img { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; }
.cart-item-details { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cart-item-title { font-size: 13px; font-weight: 700; color: #111827; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 14px; font-weight: 800; color: #111827; margin-bottom: 6px; }
.cart-item-pill { 
    display: inline-flex; align-items: center; gap: 4px;
    background: #f8fafc; color: #64748b; font-size: 9px; font-weight: 700;
    padding: 3px 8px; border-radius: 12px; border: 1px solid #e2e8f0; width: fit-content; margin-bottom: 10px;
}
.cart-item-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.qty-controls { display: flex; align-items: center; gap: 12px; }
.qty-controls button { width: 24px; height: 24px; background: #fff; border: 1px solid #e5e7eb; border-radius: 4px; font-size: 14px; color: #9ca3af; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.qty-controls span { font-size: 13px; font-weight: 800; color: #111827; min-width: 20px; text-align: center; }
.cart-item-trash { color: #f9b282; background: none; border: none; cursor: pointer; padding: 4px; position: absolute; bottom: 18px; right: 0; }
.cart-item-trash svg { width: 18px; height: 18px; }

/* Summary Mobile */
.m-cart-summary-fixed { 
    position: fixed; bottom: 65px; left: 0; right: 0; background: #fff; 
    padding: 20px 20px 24px; box-shadow: 0 -10px 20px rgba(0,0,0,0.05); z-index: 90;
}
.summary-row-main { display: flex; justify-content: space-between; align-items: center; font-size: 18px; font-weight: 800; color: #000; margin-bottom: 16px; }
.summary-row-sub { display: flex; justify-content: space-between; font-size: 14px; color: #6b7280; margin-bottom: 10px; font-weight: 500; }
.summary-note { text-align: center; font-size: 12px; color: #9ca3af; margin: 20px 0; font-weight: 500; }
.btn-payer { 
    background: #D97442; color: #fff; width: 100%; border: none; border-radius: 0;
    padding: 16px; font-size: 16px; font-weight: 700; display: flex; justify-content: center; align-items: center; gap: 10px;
    cursor: pointer; box-shadow: none;
}

/* Desktop Cart */
.d-cart-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; min-height: 60vh; }
.d-cart-title { font-size: 32px; font-weight: 800; margin-bottom: 32px; }
.d-cart-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.d-cart-items-list { display: flex; flex-direction: column; gap: 16px; }
.d-cart-item { display: flex; gap: 24px; background: #fff; padding: 24px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); align-items: center; }
.d-cart-item img { width: 100px; height: 100px; border-radius: var(--radius-sm); object-fit: cover; }
.d-cart-item .details { flex: 1; }
.d-cart-item .details h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.d-cart-item .details p { font-size: 13px; color: var(--text-secondary); }
.d-cart-item .qty-wrapper { display: flex; align-items: center; gap: 16px; background: var(--bg-alt); border-radius: 24px; padding: 8px 16px; border: 1px solid var(--border-color); }
.d-cart-item .qty-wrapper button { background: none; border: none; font-size: 18px; font-weight: 600; cursor: pointer; color: var(--text-primary); }
.d-cart-item .qty-wrapper span { font-weight: 700; width: 20px; text-align: center; }
.d-cart-item .price-wrapper { text-align: right; min-width: 120px; }
.d-cart-item .price-wrapper .price { font-size: 20px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.d-cart-item .remove-btn { background: none; border: none; color: #EF4444; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; position: relative; z-index: 2; touch-action: manipulation; padding: 8px 0; min-height: 44px; }

.d-cart-summary { background: #fff; padding: 24px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); height: fit-content; position: sticky; top: 100px; }
.d-cart-summary h2 { font-size: 20px; font-weight: 800; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 16px; color: var(--text-secondary); font-size: 15px; }
.summary-total { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-color); font-size: 20px; font-weight: 800; color: var(--text-primary); margin-bottom: 24px; }
.secure-checkout { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 12px; color: #10B981; margin-top: 16px; font-weight: 600; }

/* --------------------------------------
   PROFILE PAGE STYLES
   -------------------------------------- */
/* Mobile Profile */
.profile-mobile-layout { background: #F8F9FA; padding-bottom: 80px; min-height:100vh; }
.profile-header { background: #fff; padding: 40px 20px 24px; text-align: center; border-bottom: 1px solid var(--border-color); }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; border: 2px solid var(--border-color); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-header h2 { font-size: 24px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.profile-header p { font-size: 14px; color: var(--text-secondary); }

.profile-actions-container { padding: 20px; }
.profile-actions-container h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.action-list { display: flex; flex-direction: column; gap: 12px; }
.action-item { display: flex; align-items: center; background: #fff; padding: 16px; border-radius: var(--radius-md); text-decoration: none; color: var(--text-primary); box-shadow: var(--shadow-sm); }
.action-icon { 
    width: 32px; 
    height: 32px; 
    background: transparent; 
    border-radius: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-right: 12px; 
    color: var(--text-primary); 
    border: none;
}
.action-text { flex: 1; }
.action-text h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.action-text p { font-size: 12px; color: var(--text-secondary); }
.action-item .chevron { color: #D1D5DB; }

.profile-legal-links { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-color); }
.profile-legal-links p { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; font-weight: 600; }
.profile-legal-links a { display: block; font-size: 13px; color: #6B7280; text-decoration: underline; margin-bottom: 8px; }

/* Desktop Profile */
.d-profile-wrapper { display: flex; width: 100%; min-height: 100vh; }
.d-profile-sidebar { width: 280px; background: #fff; padding: 32px 24px; border-right: 1px solid var(--border-color); display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; }
.d-profile-nav { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.d-profile-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-md); text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 15px; }
.d-profile-nav a:hover { background: #F9FAFB; color: var(--text-primary); }
.d-profile-nav a.active { color: var(--primary); font-weight: 700; }
.d-profile-sidebar-footer { padding-top: 24px; border-top: 1px solid var(--border-color); }
.d-profile-sidebar-footer a { display: block; font-size: 12px; color: #9CA3AF; margin-bottom: 12px; text-decoration: none; }
.d-profile-sidebar-footer a:hover { text-decoration: underline; }

.d-profile-content { flex: 1; padding: 40px; margin-left: 280px; max-width: calc(100% - 280px); animation: fadeSlideIn 0.35s ease-out; overflow-y: auto; scroll-behavior: smooth; }
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.d-profile-header-tabs { display: flex; gap: 12px; margin-bottom: 32px; align-items: center; }
.d-profile-header-tabs .tab { 
    background: #fff; 
    color: var(--text-secondary); 
    padding: 10px 24px; 
    border-radius: 0px; 
    border: 1px solid var(--border-color); 
    font-weight: 700; 
    font-size: 14px; 
    cursor: pointer; 
    transition: all 0.2s;
    display: flex;
    align-items: center;
}
.d-profile-header-tabs .tab.active { 
    background: var(--primary); 
    color: #fff; 
    border-color: var(--primary); 
}
.d-profile-header-tabs .tab:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}
.d-profile-card { background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); }
.d-profile-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.d-profile-avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.d-profile-avatar-row img { width: 80px; height: 80px; border-radius: 50%; border: 1px solid var(--border-color); }
.d-profile-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* --------------------------------------
   CUSTOM PRODUCT REQUEST PAGE
   -------------------------------------- */
.custom-request-container { padding: 20px; }
.image-preview-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.image-preview-container img { width: 60px; height: 60px; border-radius: 4px; object-fit: cover; border: 1px solid var(--border-color); }
.fee-estimate-box { background: #FFF1E6; border: none; border-radius: 0; padding: 16px; margin-top: 16px; }
.fee-row { display: flex; justify-content: space-between; align-items: center; }

/* Desktop adjustments */
@media (min-width: 768px) {
    html { scroll-behavior: smooth; }
    body { padding-bottom: 0; scroll-behavior: smooth; }
    .mobile-app-layout { display: none; }
    .desktop-landing-layout { display: block; }
    .app-bottom-nav { display: none; }
    
    .desktop-nav { display: flex; align-items: center; }
    .header-icons { display: flex; }
    
    .footer { border-radius: 0; }
    .footer-content { flex-direction: row; justify-content: space-between; max-width: 1200px; margin: 0 auto; }
    
    .hero { flex-direction: row; align-items: center; padding: 80px 40px; max-width: 1200px; margin: 0 auto; text-align: left; }
    .hero-content { flex: 1; }
    .hero-visual { flex: 1; }
    .hero-content h1 { font-size: 56px; margin-bottom: 24px; line-height: 1.1; }
    .subtitle { font-size: 18px; margin-bottom: 40px; margin-inline: 0; }
    .hero-actions { flex-direction: row; }
    .cta-btn { width: auto; }
    
    .section-header h2 { font-size: 36px; }
    .section-header p { font-size: 18px; }
    
    .how-it-works { padding: 80px 40px; }
    .steps-grid { flex-direction: row; max-width: 1200px; margin: 0 auto; }
    .step-card { flex: 1; padding: 32px; }
    
    .testimonials { padding: 80px 40px; }
    .testimonials-grid { max-width: 1200px; margin: 0 auto; justify-content: center; }
    .testimonial-card { min-width: 320px; }
    
    .auth-modal-content {
        width: 400px;
        height: auto;
        min-height: 400px;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
    }
}

/* UI Elements */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    display: inline-block;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========================================
   PAYMENT MODAL
   ========================================= */
.pay-modal-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.pay-modal-header {
    margin-bottom: 24px;
    text-align: center;
}

.pay-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ECFDF5;
    color: #10B981;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.pay-modal-header h2 {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 4px;
}

.pay-modal-header p {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 0;
}

/* Operator Grid */
.operator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.operator-card,
.exp-operator-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 12px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.operator-card img,
.exp-operator-card img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.operator-card span,
.exp-operator-card span {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.op-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    background: #D97442;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.operator-card.selected,
.exp-operator-card.selected {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 4px 12px rgba(217, 116, 66, 0.08);
}

.operator-card.selected .op-check,
.exp-operator-card.selected .op-check {
    opacity: 1;
    transform: scale(1);
}

.operator-card:active,
.exp-operator-card:active {
    transform: scale(0.97);
}

.pay-continue-btn {
    width: 100%;
    margin-top: 0;
}

.pay-continue-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Amount box */
.pay-amount-box {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.pay-amount-label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.pay-amount-value {
    color: var(--primary);
    font-size: 24px;
    font-weight: 800;
}

.pay-operator-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: #F8FAFC;
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.pay-operator-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.pay-operator-name {
    font-size: 13px;
    font-weight: 700;
    color: #64748B;
}

/* Currency toggle */
.pay-currency-row {
    display: flex;
    gap: 8px;
}

.currency-btn,
.exp-currency-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s;
}

.currency-btn.active,
.exp-currency-btn.active {
    border-color: var(--primary);
    background: #fff;
    color: var(--primary);
}

/* Security note */
.pay-security-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 11px;
    color: #64748B;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 10px;
}

.pay-security-note svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Processing state */
.pay-center-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    gap: 16px;
}

.pay-center-content h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0F172A;
}

.pay-center-content p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.6;
}

/* 3D Spinner */
.pay-spinner-3d {
    width: 90px;
    height: 90px;
    position: relative;
    perspective: 200px;
    margin-bottom: 16px;
}

.pay-spinner-3d .spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid transparent;
}

.pay-spinner-3d .spinner-ring:nth-child(1) {
    border-top-color: #D97442;
    border-bottom-color: #D97442;
    animation: pay-spin-3d-1 1.4s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
}

.pay-spinner-3d .spinner-ring:nth-child(2) {
    inset: 8px;
    border-left-color: #F59E0B;
    border-right-color: #F59E0B;
    animation: pay-spin-3d-2 1.4s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
}

.pay-spinner-3d .spinner-ring:nth-child(3) {
    inset: 16px;
    border-top-color: #FBBF24;
    border-bottom-color: #FBBF24;
    animation: pay-spin-3d-3 1.4s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
}

.pay-spinner-3d .spinner-core {
    position: absolute;
    inset: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FFF7ED, #FFEDD5);
    box-shadow: 0 0 20px rgba(217, 116, 66, 0.25), inset 0 -2px 6px rgba(217, 116, 66, 0.15);
    animation: pay-core-pulse 1.4s ease-in-out infinite;
}

@keyframes pay-spin-3d-1 {
    0%   { transform: rotateX(35deg) rotateY(0deg); }
    100% { transform: rotateX(35deg) rotateY(360deg); }
}
@keyframes pay-spin-3d-2 {
    0%   { transform: rotateX(50deg) rotateZ(0deg); }
    100% { transform: rotateX(50deg) rotateZ(-360deg); }
}
@keyframes pay-spin-3d-3 {
    0%   { transform: rotateY(60deg) rotateZ(0deg); }
    100% { transform: rotateY(60deg) rotateZ(360deg); }
}
@keyframes pay-core-pulse {
    0%, 100% { transform: scale(0.92); opacity: 0.7; }
    50%      { transform: scale(1.08); opacity: 1; }
}

/* Animated dots */
.pay-poll-dots {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.pay-poll-dots span {
    width: 10px;
    height: 10px;
    background: #CBD5E1;
    border-radius: 50%;
    animation: pay-dot-bounce 1.2s ease-in-out infinite;
}

.pay-poll-dots span:nth-child(2) { animation-delay: 0.2s; }
.pay-poll-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pay-dot-bounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
    40% { transform: scale(1.3); opacity: 1; background: #D97442; }
}

/* 3D Result Icons */
.pay-result-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    transform-style: preserve-3d;
    animation: pay-3d-entry 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.pay-result-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    animation: pay-ring-expand 0.8s ease-out 0.3s both;
}

.pay-result-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%);
    pointer-events: none;
}

.pay-result-icon svg {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
    animation: pay-icon-draw 0.4s ease-out 0.35s both;
}

@keyframes pay-3d-entry {
    0%   { transform: scale(0) rotate(-45deg); opacity: 0; }
    60%  { transform: scale(1.1) rotate(5deg); opacity: 1; }
    80%  { transform: scale(0.95) rotate(-2deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes pay-ring-expand {
    0%   { transform: scale(0.6); opacity: 0; }
    40%  { opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes pay-icon-draw {
    from { stroke-dashoffset: 50; stroke-dasharray: 50; opacity: 0; }
    to   { stroke-dashoffset: 0; stroke-dasharray: 50; opacity: 1; }
}

.pay-success-icon {
    background: #22C55E;
    color: #22C55E;
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.45),
                0 2px 8px rgba(34, 197, 94, 0.3);
    animation: pay-3d-entry 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both,
               pay-glow-green 2.5s ease-in-out 1s infinite;
}

@keyframes pay-glow-green {
    0%, 100% { box-shadow: 0 6px 24px rgba(34, 197, 94, 0.45), 0 2px 8px rgba(34, 197, 94, 0.3); }
    50%      { box-shadow: 0 6px 32px rgba(34, 197, 94, 0.6), 0 2px 12px rgba(34, 197, 94, 0.4); }
}

.pay-failure-icon {
    background: #EF4444;
    color: #EF4444;
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.45),
                0 2px 8px rgba(239, 68, 68, 0.3);
    animation: pay-3d-entry 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both,
               pay-glow-red 2.5s ease-in-out 1s infinite;
}

@keyframes pay-glow-red {
    0%, 100% { box-shadow: 0 6px 24px rgba(239, 68, 68, 0.45), 0 2px 8px rgba(239, 68, 68, 0.3); }
    50%      { box-shadow: 0 6px 32px rgba(239, 68, 68, 0.6), 0 2px 12px rgba(239, 68, 68, 0.4); }
}

@media (max-width: 400px) {
    .pay-result-icon { width: 60px; height: 60px; }
    .pay-result-icon svg { width: 28px; height: 28px; }
}

.pay-ref-display {
    font-size: 13px;
    font-weight: 700;
    color: #64748B;
    background: #F8FAFC;
    padding: 8px 16px;
    border-radius: 8px;
    margin-top: -8px;
}

@media (min-width: 768px) {
    .pay-modal-content {
        width: 440px;
        height: auto;
        min-height: 500px;
        max-height: 90vh;
        border-radius: 20px;
        box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    }
}

/* Validation Modals */
.val-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.val-modal-desc {
    font-size: 13px;
    color: #9CA3AF;
    line-height: 1.5;
    margin-bottom: 20px;
}

.val-country-select select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    font-family: inherit;
    outline: none;
}
.val-country-select::after {
    content: "";
    position: absolute; right: 16px; top: 50%;
    transform: translateY(-50%);
    width: 12px; height: 8px;
    background: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
    pointer-events: none;
}

.val-phone-row {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    overflow: hidden;
    background: #F8FAFC;
    transition: border-color 0.2s;
}
.val-phone-row:focus-within { border-color: var(--primary); background: #fff; }

.val-phone-prefix {
    padding: 14px 16px;
    background: #F1F5F9;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    border-right: 1.5px solid #E2E8F0;
    display: flex; align-items: center;
}
.val-phone-row input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-size: 15px;
    background: transparent;
    outline: none;
    font-family: inherit;
    color: var(--text-main);
}

.val-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    font-size: 15px;
    background: #F8FAFC;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.val-input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(217, 116, 66, 0.1); }

/* Payment Summary Step */
.pay-summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 55vh;
    overflow-y: auto;
    padding: 4px 2px;
    -webkit-overflow-scrolling: touch;
}

.pay-summary-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-light);
    box-shadow: none;
}

.pay-summary-item-img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #F8FAFC;
    border: 1px solid var(--border-light);
}

.pay-summary-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pay-summary-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pay-summary-item-meta {
    font-size: 11px;
    color: #9CA3AF;
    margin-bottom: 8px;
}

.pay-summary-addons {
    display: flex;
    gap: 8px;
}

.pay-addon-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1.5px solid #E5E7EB;
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.pay-addon-toggle svg {
    flex-shrink: 0;
}

/* Home Payment Trust Section */
.m-payment-trust {
    padding: 24px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: transparent;
}

.m-payment-security {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.m-payment-security svg {
    color: #10B981;
}

.m-operator-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    flex-wrap: wrap;
    max-width: 280px;
}

.m-operator-row img {
    width: 28px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
    border: 1px solid var(--border-light);
    background: #fff;
}

.pay-addon-toggle.active {
    border-color: #D97442;
    background: #FFF7ED;
    color: #D97442;
}

.pay-addon-toggle .addon-price {
    font-size: 11px;
    opacity: 0.7;
}

.pay-summary-footer {
    padding-top: 16px;
    border-top: 1px solid #F3F4F6;
    margin-top: 8px;
}

/* Expedition Address Selector */
.exp-address-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 40vh;
    overflow-y: auto;
    margin-bottom: 12px;
}

.exp-address-loading {
    display: flex;
    justify-content: center;
    padding: 32px 0;
}

.loading-spinner-small {
    width: 28px;
    height: 28px;
    border: 3px solid #F3F4F6;
    border-top-color: #D97442;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.exp-address-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    border: 1.5px solid #E5E7EB;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.exp-address-card:active { transform: scale(0.98); }

.exp-address-card.selected {
    border-color: #D97442;
    background: #FFF7ED;
}

.exp-address-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #D1D5DB;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.exp-address-card.selected .exp-address-radio {
    border-color: #D97442;
}

.exp-address-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D97442;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.exp-address-card.selected .exp-address-radio::after {
    transform: scale(1);
}

.exp-address-details {
    flex: 1;
    min-width: 0;
}

.exp-address-name {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 2px;
}

.exp-address-meta {
    font-size: 12px;
    color: #9CA3AF;
    line-height: 1.4;
}

.exp-add-address-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: 1.5px dashed #D1D5DB;
    border-radius: 12px;
    background: none;
    color: #6B7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.exp-add-address-btn:hover { border-color: #D97442; color: #D97442; }

.exp-new-address-form {
    padding: 16px;
    background: #F9FAFB;
    border-radius: 12px;
    margin-top: 8px;
}

.exp-new-address-form .input-group { margin-bottom: 10px; }
.exp-new-address-form .input-group:last-of-type { margin-bottom: 14px; }

.exp-new-address-form label {
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
    margin-bottom: 4px;
    display: block;
}

.exp-new-address-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.exp-new-address-form input:focus { border-color: #D97442; }

.btn-secondary {
    background: #F3F4F6;
    color: #6B7280;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Expedition Shipping Method */
.exp-shipping-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exp-shipping-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    border: 1.5px solid #E5E7EB;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.exp-shipping-card:active { transform: scale(0.98); }

.exp-shipping-card.selected {
    border-color: #D97442;
    background: #FFF7ED;
}

.exp-shipping-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #6B7280;
    transition: all 0.2s ease;
}

.exp-shipping-card.selected .exp-shipping-icon {
    background: #FDBA7433;
    color: #D97442;
}

.exp-shipping-text {
    flex: 1;
}

.exp-shipping-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 2px;
}

.exp-shipping-text span {
    font-size: 12px;
    color: #9CA3AF;
}

.exp-shipping-check {
    opacity: 0;
    color: #D97442;
    transition: opacity 0.2s ease;
}

.exp-shipping-card.selected .exp-shipping-check { opacity: 1; }

.exp-forwarder-input {
    margin-top: 12px;
}

.exp-forwarder-input textarea {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.exp-forwarder-input textarea:focus { border-color: #D97442; }

.pay-summary-addons-total {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #9CA3AF;
    margin-bottom: 8px;
}

.pay-summary-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #1F2937;
    margin-bottom: 16px;
}

.pay-summary-grand-total strong {
    font-size: 18px;
    font-weight: 800;
    color: #D97442;
}

.pay-summary-info {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    background: #FFF7ED;
    border-radius: 10px;
    border: 1px solid #FDBA741A;
    margin-bottom: 14px;
}

.pay-summary-info svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.pay-summary-info p {
    font-size: 12px;
    font-weight: 400;
    color: #6B7280;
    line-height: 1.6;
    letter-spacing: 0.01em;
    margin: 0;
}

.pay-summary-info strong {
    color: #1F2937;
    font-weight: 600;
}

/* --- Desktop Block Overlay (Premium Design) --- */
@media (min-width: 1025px) {
    html {
        background: #F1F5F9;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
    
    body > * {
        display: none !important;
    }
    
    body {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 440px;
        height: 380px;
        margin: 0;
        background: #ffffff !important;
        border-radius: 32px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02);
        border: 1px solid #E2E8F0;
        position: relative;
    }

    body::before {
        content: "Mode Mobile Uniquement";
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" width="64" height="64" stroke="%23E67E22" stroke-width="1.5" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="5" y="2" width="14" height="20" rx="3" ry="3"></rect><circle cx="12" cy="18" r="1" fill="%23E67E22"></circle></svg>');
        background-repeat: no-repeat;
        background-position: center top;
        padding-top: 84px;
        font-size: 22px;
        font-weight: 800;
        color: #0F172A;
        margin-bottom: 16px;
        text-align: center;
    }

    body::after {
        content: "Blazzo est optimisé pour vous offrir une expérience fluide et sécurisée sur téléphone.\A\A Veuillez ouvrir l'application sur votre appareil mobile.";
        white-space: pre-wrap;
        text-align: center;
        font-size: 15px;
        color: #64748B;
        line-height: 1.6;
        max-width: 340px;
        padding: 0 20px;
    }
}
