/* ============================================ */
/* GETWEED - L₀-ABSOLUTE DESIGN SYSTEM         */
/* Version: 7.0 - Complete Fixed                */
/* ============================================ */

/* CSS Variables */
:root {
    --primary: #00A86B;
    --primary-dark: #008F5F;
    --primary-glow: #00E5A0;
    --bg: #F5FFF9;
    --card: #FFFFFF;
    --text: #1A1A1A;
    --text-light: #6C757D;
    --border: #E0F0E8;
    --accent: #FFD700;
    --shadow: 0 4px 20px rgba(0,168,107,0.1);
    --shadow-glow: 0 0 30px rgba(0,168,107,0.2);
    --error: #DC3545;
    --success: #28A745;
}

body.dark-mode {
    --primary: #00C48C;
    --primary-dark: #00A86B;
    --primary-glow: #00FFAA;
    --bg: #0A1A0F;
    --card: #0D2A15;
    --text: #FFFFFF;
    --text-light: #A0C0A8;
    --border: #1A4A2A;
    --shadow: 0 4px 20px rgba(0,196,140,0.15);
    --shadow-glow: 0 0 40px rgba(0,196,140,0.3);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Assistant', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
    font-size: 16px;
}

.container {
    max-width: 550px;
    margin: 0 auto;
    padding: 16px 16px 100px;
}

/* Header */
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
}

.theme-toggle {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s;
    color: var(--text);
    box-shadow: var(--shadow);
}

.theme-toggle:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

/* Logo - NO BORDER FIX */
.logo {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #00A86B, #00C48C);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    display: inline-block;
    background-color: transparent !important;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.logo:focus, .logo:active, .logo:hover {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.lang-selector-btn, .currency-btn {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-weight: 600;
    transition: 0.2s;
    box-shadow: var(--shadow);
}

.lang-selector-btn:hover, .currency-btn:hover {
    border-color: var(--primary);
}

.lang-wrapper, .currency-wrapper {
    position: relative;
}

.lang-dropdown, .currency-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px;
    display: none;
    z-index: 9999;
    box-shadow: var(--shadow-glow);
    max-height: 350px;
    overflow-y: auto;
    min-width: 160px;
}

.lang-dropdown {
    right: 0;
}

.currency-dropdown {
    left: 50%;
    transform: translateX(-50%);
    min-width: 120px;
}

.lang-dropdown.show, .currency-dropdown.show {
    display: block;
}

.lang-option, .currency-option {
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    transition: 0.2s;
    font-size: 15px;
}

.lang-option:hover, .currency-option:hover {
    background: rgba(0,168,107,0.1);
}

.currency-top {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.telegram-support {
    background: linear-gradient(135deg, #0088cc, #006699);
    border-radius: 40px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    margin: 8px auto;
    font-size: 14px;
    color: white;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0,136,204,0.3);
}

.telegram-support:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,136,204,0.4);
}

/* Badges & Promo */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.badge {
    background: var(--card);
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    transition: 0.2s;
    box-shadow: var(--shadow);
    font-weight: 500;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.promo-banner {
    background: linear-gradient(135deg, #00A86B, #008F5F);
    color: white;
    padding: 18px 20px;
    border-radius: 20px;
    text-align: center;
    margin: 16px 0;
    box-shadow: var(--shadow-glow);
}

.promo-banner div:first-child {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.promo-highlight {
    color: #FFD700;
    font-weight: 800;
}

/* Breadcrumb - RTL Fixed */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    position: relative;
}

.back-btn {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 30px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
    position: absolute;
    left: 0;
    box-shadow: var(--shadow);
}

[dir="rtl"] .back-btn {
    left: auto;
    right: 0;
}

[dir="ltr"] .back-btn {
    left: 0;
    right: auto;
}

.back-btn:hover {
    background: rgba(0,168,107,0.05);
    border-color: var(--primary);
}

.breadcrumb-path {
    text-align: center;
    font-size: 15px;
    color: var(--text);
    padding: 10px 24px;
    background: var(--card);
    border-radius: 30px;
    cursor: pointer;
    border: 1px solid var(--border);
    font-weight: 600;
    display: inline-block;
    box-shadow: var(--shadow);
}

/* Step Views */
.step-view {
    display: none;
}

.step-view.active {
    display: block;
}

h2 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text);
}

.selection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.select-card {
    background: var(--card);
    border: 2px solid var(--border);
    padding: 24px 20px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.select-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.select-card.selected {
    border-color: var(--primary);
    background: rgba(0,168,107,0.05);
}

.select-card .card-emoji {
    font-size: 42px;
    margin-bottom: 10px;
}

.select-card h3 {
    font-size: 20px;
    margin-bottom: 6px;
    color: var(--text);
    font-weight: 700;
}

.select-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* Products & Cart */
.product-row {
    background: var(--card);
    padding: 16px 18px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    transition: 0.2s;
    box-shadow: var(--shadow);
}

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

.product-info {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    flex: 1;
}

.product-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 18px;
    margin: 0 12px;
}

.add-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.add-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

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

.invoice-box {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.invoice-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text);
    padding: 4px 0;
}

.total-line {
    border-top: 2px solid var(--border);
    margin-top: 12px;
    padding-top: 14px;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    justify-content: space-between;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    margin-left: 8px;
    transition: 0.2s;
}

.remove-btn:hover {
    color: #ff0000;
    transform: scale(1.2);
}

.delivery-info {
    background: var(--card);
    border-radius: 18px;
    padding: 16px;
    margin: 16px 0;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.delivery-info div:first-child {
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
}

/* Forms */
.field-label {
    font-size: 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--text);
}

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 2px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: 15px;
    margin-bottom: 16px;
    transition: 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,168,107,0.1);
}

input.error {
    border-color: var(--error) !important;
}

.phone-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.phone-prefix-select {
    width: 130px;
}

/* Payment & Crypto */
.payment-options {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.payment-card {
    flex: 1;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    color: var(--text);
    font-weight: 600;
    transition: 0.2s;
    font-size: 16px;
}

.payment-card.selected {
    border-color: var(--primary);
    background: rgba(0,168,107,0.05);
}

.crypto-options {
    display: flex;
    gap: 10px;
    margin: 16px 0;
}

.crypto-option {
    flex: 1;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    color: var(--text);
}

.crypto-option.selected {
    border-color: var(--accent);
    background: rgba(255,215,0,0.05);
}

.usdt-logo-correct {
    width: 32px;
    height: 32px;
    margin: 0 auto 6px;
}

.qr-container {
    text-align: center;
    margin: 18px 0;
    padding: 18px;
    background: var(--card);
    border-radius: 18px;
    border: 1px solid var(--border);
}

.qr-code {
    background: white;
    padding: 16px;
    border-radius: 16px;
    display: inline-block;
    margin-bottom: 14px;
    min-height: 162px;
    min-width: 162px;
}

.qr-code canvas {
    display: block !important;
    margin: 0 auto !important;
}

.address-block {
    background: rgba(0,168,107,0.05);
    border-radius: 14px;
    padding: 14px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    word-break: break-all;
    color: var(--text);
    border: 1px solid var(--border);
}

.copy-btn {
    background: rgba(0,168,107,0.1);
    border: 1px solid var(--primary);
    border-radius: 30px;
    padding: 10px 18px;
    font-size: 13px;
    cursor: pointer;
    margin: 6px 4px;
    color: var(--primary);
    font-weight: bold;
    transition: 0.2s;
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
}

.timer {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    margin-top: 12px;
    color: var(--text);
}

/* Map & Delivery - Circle Fixed */
.map-circle-wrapper {
    margin: 18px 0;
}

.map-circle-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 280px;
    margin: 0 auto;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 3px solid var(--primary) !important;
    box-shadow: 0 0 30px rgba(0,168,107,0.3), 0 4px 20px rgba(0,0,0,0.1) !important;
    position: relative;
    background: #e8f5e9 !important;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

#neighborhood-map {
    width: 100% !important;
    height: 100% !important;
    min-height: 280px;
    background: #e8f5e9 !important;
    border-radius: 50% !important;
}

body.dark-mode .map-circle-container,
body.dark-mode #neighborhood-map {
    background: #1a3a2a !important;
}

.leaflet-container {
    background: #e8f5e9 !important;
    border-radius: 50% !important;
}

body.dark-mode .leaflet-container {
    background: #1a3a2a !important;
}

.leaflet-tile-pane {
    opacity: 0.7 !important;
}

.leaflet-control-container {
    display: none !important;
}

.leaflet-map-pane {
    border-radius: 50% !important;
    overflow: hidden !important;
}

@keyframes markerPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.custom-map-marker {
    animation: markerPulse 2s infinite !important;
}

.estimated-delivery {
    margin-top: 16px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(0,168,107,0.05), rgba(0,168,107,0.1));
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(0,168,107,0.1);
}

.delivery-icon {
    font-size: 24px;
}

.estimated-delivery .delivery-time-value {
    font-weight: 800;
    font-size: 16px;
    color: var(--text);
}

.free-shipping-badge {
    margin-top: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(0,168,107,0.1), rgba(0,168,107,0.05));
    border-radius: 40px;
    text-align: center;
    border: 1px solid rgba(0,168,107,0.2);
}

/* International */
.international-simple {
    margin: 16px 0;
    text-align: center;
}

.international-btn {
    background: transparent;
    border: 2px dashed var(--primary);
    color: var(--text);
    border-radius: 40px;
    padding: 14px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

/* Suggestions */
.suggestions-list {
    background: var(--card);
    border-radius: 14px;
    max-height: 200px;
    overflow-y: auto;
    margin-top: -12px;
    margin-bottom: 16px;
    border: 2px solid var(--primary);
    display: none;
    position: absolute;
    width: calc(100% - 32px);
    z-index: 1000;
    box-shadow: var(--shadow-glow);
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.suggestion-item:hover {
    background: rgba(0,168,107,0.1);
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 16px 20px;
    border-top: 2px solid var(--border);
    display: flex;
    z-index: 100;
    transition: background 0.3s;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.next-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.next-btn:hover:not(:disabled) {
    transform: scale(1.01);
    box-shadow: var(--shadow-glow);
}

.next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.next-btn span:last-child {
    direction: ltr;
    unicode-bidi: embed;
    font-size: 18px;
}

.footer-copyright {
    text-align: center;
    padding: 16px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 80px;
}

/* WhatsApp Float - RTL Fixed */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    transition: 0.2s;
}

[dir="ltr"] .whatsapp-float {
    right: auto;
    left: 20px;
}

[dir="rtl"] .whatsapp-float {
    right: 20px;
    left: auto;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37,211,102,0.7);
}

/* Loading & Splash */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.cannabis-spinner {
    width: 80px;
    height: 80px;
    position: relative;
}

.cannabis-spinner svg {
    width: 100%;
    height: 100%;
    animation: spin 2s linear infinite;
}

.loading-text {
    position: absolute;
    bottom: -50px;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0A2A15 0%, #0D3A1A 50%, #0A2A15 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.cannabis-leaf-splash {
    width: 140px;
    height: 140px;
    filter: drop-shadow(0 0 40px rgba(0,200,100,0.6));
}

.splash-title {
    font-size: 52px;
    font-weight: 800;
    color: transparent;
    background: linear-gradient(135deg, #00E5A0, #00C48C);
    -webkit-background-clip: text;
    background-clip: text;
    letter-spacing: 10px;
    margin-top: 24px;
}

.splash-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    letter-spacing: 6px;
    margin-top: 8px;
}

.growth-stages {
    display: flex;
    gap: 14px;
    margin-top: 36px;
}

.growth-stage {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: all 0.2s;
}

.growth-stage.active {
    background: #00E5A0;
    box-shadow: 0 0 20px #00E5A0;
    transform: scale(1.4);
}

#splash-fallback {
    color: rgba(255,255,255,0.5);
    margin-top: 20px;
    font-size: 12px;
    cursor: pointer;
}

/* Animations */
@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(15px); } 
    to { opacity: 1; transform: translateY(0); } 
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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

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

.logo {
    animation: float 3s ease-in-out infinite;
}

.step-view.active {
    animation: fadeInScale 0.3s ease-out;
}

/* SweetAlert2 */
.swal2-popup {
    border-radius: 24px !important;
    background: var(--card) !important;
    color: var(--text) !important;
}

.swal2-title {
    color: var(--primary) !important;
}

.swal2-confirm {
    background: var(--primary) !important;
    border-radius: 40px !important;
}

.swal2-toast {
    background: var(--card) !important;
    color: var(--text) !important;
    border-radius: 50px !important;
}

/* Responsive */
@media (max-width: 550px) {
    .container {
        padding: 12px 12px 90px;
    }
    
    .logo {
        font-size: 36px;
    }
    
    .badge {
        font-size: 12px;
        padding: 7px 12px;
    }
    
    .select-card {
        padding: 20px 16px;
    }
    
    .select-card .card-emoji {
        font-size: 36px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .next-btn {
        padding: 16px 20px;
        font-size: 16px;
    }
}

/* Error States */
.error-message {
    color: var(--error);
    font-size: 12px;
    margin-top: -12px;
    margin-bottom: 12px;
    font-weight: 500;
}

input.error, select.error, textarea.error {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

/* Utility */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.font-bold { font-weight: 700; }