/* ==============================================================================
   1. VARIABILE DE CULOARE & SETĂRI GLOBALE
   ============================================================================== */
:root {
    --bg-main: #f4f4f5;
    --bg-card: #ffffff;
    --text-main: #18181b;
    --text-muted: #71717a;
    --primary: #ef4444;
    --primary-glow: rgba(239, 68, 68, 0.4);
    --accent: #10b981;
    /* Navbar rămâne mereu întunecat pe ambele teme */
    --nav-bg: rgba(24, 24, 27, 0.95);
    --nav-text: #ffffff;
    --nav-border: rgba(255, 255, 255, 0.08);
    --btn-theme-bg: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] {
    --bg-main: #09090b;
    --bg-card: #18181b;
    --text-main: #fafafa;
    --text-muted: #a1a1aa;
    --primary: #f87171;
    --primary-glow: rgba(248, 113, 113, 0.3);
    --accent: #34d399;
    --nav-bg: rgba(24, 24, 27, 0.95);
    --nav-text: #ffffff;
    --nav-border: rgba(255, 255, 255, 0.08);
    --btn-theme-bg: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

h1, h2, h3, .logo span {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

/* ==============================================================================
   2. SCROLL PROGRESS BAR
   ============================================================================== */
#scroll-progress-container {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 4px;
    z-index: 1001; opacity: 0;
    transition: opacity 0.3s ease;
}
#scroll-progress-container.visible { opacity: 1; }
#scroll-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%; border-radius: 0 2px 2px 0;
}

/* ==============================================================================
   3. NAVBAR
   ============================================================================== */
.navbar {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1200px; height: 70px;
    background: var(--nav-bg);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--nav-border); border-radius: 16px;
    z-index: 1000; transition: all 0.3s ease;
}
.navbar.scrolled {
    top: 0; width: 100%; border-radius: 0; height: 65px;
    border-top: none; border-left: none; border-right: none;
    border-bottom: 1px solid var(--nav-border);
}

.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    height: 100%; padding: 0 24px; position: relative;
}

/* Logo */
.logo a { display: flex; flex-direction: column; text-decoration: none; }
.grande { color: var(--primary); font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; line-height: 1; letter-spacing: 1px; }
.subtext { color: #a1a1aa !important; font-size: 0.6rem; font-weight: 600; letter-spacing: 2px; }

/* Linkuri centrate */
.nav-menu { position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links { display: flex; list-style: none; gap: 32px; }
.nav-item {
    text-decoration: none; color: #ffffff !important;
    font-weight: 600; font-size: 0.85rem; letter-spacing: 1px; transition: color 0.3s;
}
.nav-item:hover, .nav-item.active { color: var(--primary) !important; }

/* Dreapta navbar */
.nav-actions { display: flex; align-items: center; gap: 15px; }

.theme-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    width: 38px; height: 38px; border-radius: 10px;
    cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.theme-btn:hover { background: rgba(255, 255, 255, 0.1); }

.cart-icon {
    position: relative; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px; color: #ffffff; transition: 0.2s;
}
.cart-icon:hover { background: rgba(150, 150, 150, 0.2); }

.cart-badge {
    position: absolute; top: -6px; right: -6px;
    background: var(--primary); color: #fff;
    font-size: 0.7rem; font-weight: 800;
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* Hamburger */
.mobile-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1002; }
.mobile-toggle span { display: block; width: 26px; height: 3px; background: #ffffff !important; transition: 0.3s; border-radius: 2px; }
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==============================================================================
   4. BUTOANE AUTENTIFICARE NAVBAR
   ============================================================================== */

/* Buton "CONTUL MEU" (neautentificat) */
.btn-login-premium {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
    border: 1px solid var(--primary);
    padding: 0 16px; height: 38px;
    font-size: 0.8rem; font-weight: 600; font-family: 'Inter', sans-serif;
    letter-spacing: 1px; border-radius: 10px; cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 0 10px var(--primary-glow);
}
.btn-login-premium:hover {
    background: rgba(248, 113, 113, 0.15);
    box-shadow: 0 0 18px var(--primary);
    transform: translateY(-2px);
}

/* Wrapper "SALUT, ANDREI + buton logout" */
.user-menu-container { position: relative; }

.btn-user-profile {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 8px 16px; border-radius: 10px;
    cursor: pointer; font-family: 'Inter'; font-weight: 600;
    font-size: 0.8rem; letter-spacing: 0.5px;
    transition: all 0.2s ease;
}
.btn-user-profile:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary) !important;
}

/* ==============================================================================
   5. DROPDOWN PROFIL
   ============================================================================== */
.user-dropdown {
    display: none;
    position: absolute; top: calc(100% + 6px); right: 0;
    background: var(--bg-card);
    border: 1px solid var(--nav-border);
    border-radius: 12px; padding: 8px 0; min-width: 220px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    z-index: 1000; overflow: hidden;
}
.user-dropdown.active { display: block; }

.user-dropdown a, .user-dropdown .logout-link {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px; color: var(--text-main);
    text-decoration: none; font-size: 0.95rem; cursor: pointer;
    border: none; background: none; width: 100%; text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}
.user-dropdown a:hover, .user-dropdown .logout-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}
.user-dropdown hr { border: 0; border-top: 1px solid var(--nav-border); margin: 0; }

/* FIX LIGHT THEME — dropdown pe fundal alb */
[data-theme="light"] .user-dropdown {
    background: #ffffff !important;
    border: 1px solid #e4e4e7 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}
[data-theme="light"] .user-dropdown a,
[data-theme="light"] .user-dropdown .logout-link {
    color: #18181b !important;
}
[data-theme="light"] .user-dropdown a:hover,
[data-theme="light"] .user-dropdown .logout-link:hover {
    background: #f4f4f5 !important;
    color: var(--primary) !important;
}
[data-theme="light"] .user-dropdown hr {
    border-top: 1px solid #e4e4e7 !important;
}

/* Wrapper user logat (pentru mobil) */
.user-logged-wrapper {
    display: flex; align-items: center; gap: 10px;
    background: var(--btn-theme-bg); border: 1px solid var(--nav-border);
    padding-left: 14px; padding-right: 4px; height: 38px; border-radius: 10px;
}
/* FIX: era "var(#fffff)" — sintaxă invalidă */
.user-welcome-text {
    color: #ffffff !important;
    font-size: 0.8rem; font-weight: 800;
    font-family: 'Inter', sans-serif; letter-spacing: 1px;
}
.btn-logout-premium {
    background: rgba(239, 68, 68, 0.15); color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    width: 28px; height: 28px; border-radius: 6px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; transition: all 0.2s ease;
}
.btn-logout-premium:hover { background: #ef4444; color: #ffffff; }

/* ==============================================================================
   6. MENIU MOBIL
   ============================================================================== */
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(24, 24, 27, 0.98) !important;
    display: flex; flex-direction: column; align-items: center;
    justify-content: flex-start; padding-top: 150px; gap: 40px;
    z-index: 999; opacity: 0; pointer-events: none;
    transform: translateY(-20px); transition: all 0.4s ease;
}
.mobile-menu-overlay.active {
    opacity: 1; transform: translateY(0); pointer-events: all;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.mobile-links { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 20px; width: 100%; }
.mobile-links a {
    text-decoration: none; color: #ffffff !important;
    font-size: 1.3rem; font-weight: 700; letter-spacing: 2px;
    transition: color 0.3s; display: block; padding: 10px;
}
.mobile-links a:hover { color: var(--primary) !important; }

.mobile-contact { text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; width: 100%; }
.mobile-contact p { color: #a1a1aa !important; font-size: 0.85rem; margin-bottom: 10px; }
.phone-link { color: var(--primary) !important; font-size: 1.4rem; font-weight: 800; text-decoration: none; }

#mobile-auth-zone .btn-login-premium {
    width: 100% !important; justify-content: center !important;
    height: 50px !important; background: var(--primary) !important;
    color: #fff !important; border: none !important;
    border-radius: 50px !important; font-size: 1rem !important;
    margin-top: 10px; box-shadow: none !important;
}
#mobile-auth-zone .btn-login-premium:hover { filter: brightness(1.2); }

/* ==============================================================================
   7. HERO
   ============================================================================== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: space-between; padding: 0 10%;
    position: relative; overflow: hidden;
}
[data-theme="dark"] .hero::before {
    content: ''; position: absolute; top: 20%; left: 30%;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1; filter: blur(80px);
}

.hero-text { flex: 1; max-width: 600px; z-index: 2; }
.hero-text h1 { font-size: 5.5rem; line-height: 0.9; margin-bottom: 1.5rem; text-transform: uppercase; }
.text-gradient { background: linear-gradient(90deg, var(--primary), #fb923c); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2.5rem; line-height: 1.6; }

.btn-glow {
    display: inline-block; padding: 1rem 2.5rem;
    background: var(--primary); color: #fff; text-decoration: none;
    font-weight: 800; text-transform: uppercase; border-radius: 50px;
    box-shadow: 0 10px 25px var(--primary-glow); transition: all 0.3s ease;
}
.btn-glow:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 35px var(--primary-glow); }

.hero-visual { flex: 1; display: flex; justify-content: center; align-items: center; }
.floating-pizza {
    width: 100%; max-width: 650px; border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.4));
}
@keyframes float {
    0%   { transform: translateY(0px) rotate(0deg); }
    50%  { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* ==============================================================================
   8. REVEAL ON SCROLL
   ============================================================================== */
.reveal-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* ==============================================================================
   9. MENU SECTION & CARDURI PRODUSE
   ============================================================================== */
.menu-section { padding: 8rem 5%; }
.section-header { text-align: center; margin-bottom: 6rem; }
.section-header h2 { font-size: 3.5rem; color: var(--text-main); }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 4rem 2rem; max-width: 1200px; margin: 0 auto;
}

.premium-card {
    background: var(--bg-card); border-radius: 24px;
    padding: 0 1.5rem 1.5rem; text-align: center; position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.premium-card:hover { transform: translateY(-10px); border-color: var(--primary); }

.card-image-wrapper { width: 200px; height: 200px; margin: -80px auto 1rem; border-radius: 50%; position: relative; }
.spin-pizza {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.premium-card:hover .spin-pizza { transform: rotate(15deg) scale(1.1); }

.card-info h3 { font-size: 2rem; margin-bottom: 0.5rem; }
.ingredients { font-size: 0.85rem; color: var(--text-muted); min-height: 40px; margin-bottom: 1.5rem; }
.card-action { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid rgba(150, 150, 150, 0.1); }
.price { font-size: 1.5rem; font-weight: 800; color: var(--text-main); }
.btn-add {
    background: var(--text-main); color: var(--bg-main); border: none;
    width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem;
    cursor: pointer; transition: background 0.3s, transform 0.3s;
}
.btn-add:hover { background: var(--primary); color: #fff; transform: scale(1.1) rotate(90deg); }

/* ==============================================================================
   10. CHECKOUT
   ============================================================================== */
.checkout-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 5% 100px; }
.checkout-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }

.checkout-form { display: flex; flex-direction: column; gap: 20px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.input-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 15px; }
.input-group label { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }
.input-group input, .input-group textarea {
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--nav-border);
    color: var(--text-main); padding: 14px 18px; border-radius: 12px;
    font-family: inherit; font-size: 1rem; transition: all 0.3s ease;
}
.input-group input:focus, .input-group textarea:focus {
    outline: none; border-color: var(--primary); background: rgba(255, 255, 255, 0.06);
}

.payment-methods { display: flex; flex-direction: column; gap: 12px; }
.radio-label {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    background: rgba(255, 255, 255, 0.03); padding: 15px; border-radius: 12px; border: 1px solid var(--nav-border);
}
.radio-label:hover { border-color: rgba(255, 255, 255, 0.2); }

.checkout-items-list { display: flex; flex-direction: column; gap: 15px; max-height: 40vh; overflow-y: auto; padding-right: 10px; }
.checkout-item { display: flex; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid rgba(150, 150, 150, 0.1); }
.checkout-item-name { font-weight: 700; color: var(--text-main); display: block; }
.checkout-item-price { font-weight: 800; color: var(--text-main); }

.checkout-totals-box { margin-top: 25px; background: rgba(0, 0, 0, 0.2); padding: 20px; border-radius: 16px; border: 1px solid var(--nav-border); }
.total-row { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--text-muted); font-size: 1.1rem; }
.grand-total { margin-top: 15px; padding-top: 15px; border-top: 1px dashed rgba(150, 150, 150, 0.2); color: var(--text-main); font-weight: 800; font-size: 1.5rem; margin-bottom: 0; }

/* ==============================================================================
   11. COȘ LATERAL
   ============================================================================== */
.cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
    z-index: 10005; opacity: 0; pointer-events: none; transition: 0.4s ease;
}
.cart-overlay.active { opacity: 1; pointer-events: all; }

.cart-sidebar {
    position: fixed; top: 0; right: -450px; width: 100%; max-width: 420px; height: 100vh;
    background: var(--bg-card); z-index: 10006; display: flex; flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}
.cart-sidebar.active { right: 0; }

.cart-header { padding: 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--nav-border); }
.cart-header h3 { font-size: 2rem; color: var(--text-main); margin: 0; }
.close-cart { background: none; border: none; font-size: 1.8rem; color: var(--text-muted); cursor: pointer; transition: 0.3s; }
.close-cart:hover { color: var(--primary); transform: rotate(90deg); }

.cart-items { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid rgba(150, 150, 150, 0.1); }
.cart-item-info { color: var(--text-main); display: flex; flex-direction: column; gap: 5px; }
.cart-item-title { font-weight: 700; font-size: 1.1rem; }
.cart-item-price { color: var(--text-muted); font-size: 0.9rem; }
.cart-item-actions { display: flex; align-items: center; gap: 15px; }
.cart-item-total { font-weight: 800; color: var(--primary); font-size: 1.1rem; }
.remove-btn { color: #ef4444; background: none; border: none; cursor: pointer; font-size: 1.2rem; transition: 0.2s; }
.remove-btn:hover { transform: scale(1.2); }

.cart-footer { padding: 24px; border-top: 1px solid var(--nav-border); background: var(--bg-main); }
.cart-total { font-size: 1.5rem; color: var(--text-main); margin-bottom: 20px; display: flex; justify-content: space-between; }

/* ==============================================================================
   12. MODAL PERSONALIZARE PIZZA
   ============================================================================== */
.custom-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px);
    z-index: 10010; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: 0.3s ease;
}
.custom-modal-overlay.active { opacity: 1; pointer-events: all; }

.custom-modal-box {
    width: 90%; max-width: 500px; background: var(--bg-card);
    padding: 30px; border-radius: 20px; position: relative;
    max-height: 90vh; display: flex; flex-direction: column;
    transform: translateY(30px); transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5); border: 1px solid var(--nav-border);
}
.custom-modal-overlay.active .custom-modal-box { transform: translateY(0); }

.close-custom-modal { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; transition: 0.2s; }
.close-custom-modal:hover { color: var(--primary); transform: rotate(90deg); }

.custom-options-container { overflow-y: auto; padding-right: 10px; flex: 1; }
.custom-options-container::-webkit-scrollbar { width: 6px; }
.custom-options-container::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

.custom-section { margin-bottom: 25px; text-align: left; }
.custom-section h4 { border-bottom: 1px solid var(--nav-border); padding-bottom: 10px; margin-bottom: 15px; color: var(--text-main); font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 1px; }

#modal-pizza-name { color: var(--text-main); text-align: center; }

.custom-label {
    display: flex; align-items: center; padding: 12px; margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--nav-border);
    border-radius: 10px; cursor: pointer; transition: 0.2s;
}
.custom-label:hover { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); }
.custom-label input { margin-right: 15px; accent-color: var(--primary); width: 18px; height: 18px; cursor: pointer; }
.custom-label span { flex: 1; color: var(--text-main); font-weight: 600; font-size: 0.95rem; }
.custom-label .cost { text-align: right; color: var(--primary); font-weight: 800; font-size: 0.9rem; }

/* ==============================================================================
   13. MODAL AUTENTIFICARE
   ============================================================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    z-index: 10020; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-content {
    background: var(--bg-card); padding: 40px; border-radius: 20px;
    border: 1px solid var(--nav-border); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    width: 90%; max-width: 500px; position: relative; box-sizing: border-box;
    transform: translateY(-20px); transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-close-btn { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 1.8rem; color: var(--text-muted); cursor: pointer; transition: 0.2s; }
.modal-close-btn:hover { color: var(--primary); transform: rotate(90deg); }

.modal-tab-buttons { display: flex; justify-content: center; margin-bottom: 25px; border-bottom: 1px solid var(--nav-border); }
.modal-tab-btn { padding: 12px 24px; background: none; border: none; font-size: 0.95rem; font-family: 'Inter', sans-serif; cursor: pointer; color: var(--text-muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: 0.2s; }
.modal-tab-btn.active { color: var(--primary); border-bottom: 2px solid var(--primary); }

.modal-row { display: flex; gap: 14px; margin-bottom: 14px; }
.modal-form-group { flex: 1; text-align: left; display: flex; flex-direction: column; }
.modal-form-group.full-width { width: 100%; }

.modal-form-group input {
    width: 100%; padding: 14px; background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--nav-border); border-radius: 12px;
    font-size: 1rem; color: var(--text-main); outline: none;
    transition: 0.2s; font-family: inherit;
}
.modal-form-group input:focus { border-color: var(--primary); background: rgba(255, 255, 255, 0.05); }

.modal-phone-container { display: flex; border: 1px solid var(--nav-border); border-radius: 12px; background: rgba(255, 255, 255, 0.02); overflow: hidden; }
.modal-phone-prefix { display: flex; align-items: center; gap: 6px; padding: 0 14px; background: rgba(255, 255, 255, 0.01); border-right: 1px solid var(--nav-border); font-size: 0.95rem; color: var(--text-muted); font-weight: 600; }
.modal-phone-container input { border: none !important; background: transparent !important; }

.modal-btn-auth {
    width: 100%; padding: 15px; background: var(--primary); color: white; border: none;
    font-size: 1.1rem; font-weight: 800; font-family: 'Bebas Neue', sans-serif;
    text-transform: uppercase; border-radius: 50px; cursor: pointer;
    letter-spacing: 1px; box-shadow: 0 10px 25px var(--primary-glow); transition: 0.2s;
}
.modal-btn-auth:hover { transform: translateY(-2px); box-shadow: 0 15px 35px var(--primary-glow); }

.modal-mesaj { margin-top: 15px; padding: 12px; border-radius: 12px; display: none; text-align: center; font-weight: 600; font-size: 0.9rem; }
.modal-mesaj.eroare { background: rgba(239, 68, 68, 0.1); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }
.modal-mesaj.succes { background: rgba(16, 185, 129, 0.1); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.modal-hidden { display: none !important; }

/* ==============================================================================
   14. CÂMPURI PAROLĂ CU OCHI
   ============================================================================== */
.password-wrapper { position: relative; display: flex; align-items: center; width: 100%; }
.password-wrapper input { width: 100%; padding-right: 45px !important; box-sizing: border-box; }
.modal-form-group input[type="password"],
.modal-form-group input[type="text"] { padding-right: 45px !important; }

.toggle-password {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    cursor: pointer; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    padding: 5px; transition: color 0.2s; z-index: 10;
}
.toggle-password:hover { color: var(--primary); }

.modal-field-info { font-size: 0.75rem; color: var(--text-muted); margin-top: 5px; padding-left: 5px; display: block; }

/* ==============================================================================
   15. ALERTE CUSTOM
   ============================================================================== */
.custom-alert-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px);
    z-index: 100000; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: 0.3s ease;
}
.custom-alert-overlay.active { opacity: 1; pointer-events: all; }
.custom-alert-box { width: 90%; max-width: 400px; text-align: center; transform: scale(0.8); transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.custom-alert-overlay.active .custom-alert-box { transform: scale(1); }

/* ==============================================================================
   16. MODAL SUCCES COMANDĂ
   ============================================================================== */
.success-modal-overlay {
    position: fixed !important; top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important;
    z-index: 999999 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.success-modal-overlay.active { opacity: 1 !important; pointer-events: all !important; }

.success-modal-box {
    background: #18181b !important; width: 90% !important; max-width: 420px !important;
    padding: 40px 30px !important; border-radius: 24px !important; text-align: center !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7) !important;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.success-modal-overlay.active .success-modal-box { transform: scale(1) translateY(0) !important; }

.success-icon {
    width: 70px !important; height: 70px !important;
    background: rgba(16, 185, 129, 0.1) !important; color: #34d399 !important;
    font-size: 2.5rem !important; border-radius: 50% !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    margin: 0 auto 20px !important; border: 2px solid #34d399 !important;
}
.success-modal-box h2 { font-size: 2.5rem !important; margin-bottom: 10px !important; color: #fafafa !important; font-family: 'Bebas Neue', sans-serif !important; letter-spacing: 1px !important; }
.success-modal-box p { color: #a1a1aa !important; font-size: 1.05rem !important; line-height: 1.6 !important; margin-bottom: 25px !important; }

/* ==============================================================================
   17. PAGINA PROFIL & ISTORIC
   ============================================================================== */
.profile-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; }
.profile-box { width: 100%; max-width: 500px; padding: 40px !important; }

.history-table { width: 100%; border-collapse: collapse; margin-top: 20px; text-align: left; }
.history-table th { padding: 15px; border-bottom: 2px solid var(--primary); color: var(--text-main); font-weight: 800; }
.history-table td { padding: 15px; border-bottom: 1px solid var(--nav-border); color: var(--text-muted); font-size: 0.95rem; }
.status-badge { background: rgba(16, 185, 129, 0.1); color: #10b981; padding: 5px 10px; border-radius: 5px; font-size: 0.8rem; font-weight: bold; }

hr { margin: 25px 0 !important; }

/* ==============================================================================
   18. RESPONSIVITATE
   ============================================================================== */
@media (max-width: 900px) {
    .nav-container { padding: 0 16px; }
    .nav-menu { display: none; }
    .mobile-toggle { display: flex; }
    #nav-auth-zone { display: none !important; }

    .hero { flex-direction: column; text-align: center; justify-content: center; gap: 3rem; padding-top: 6rem; }
    .hero-text h1 { font-size: 4rem; }

    .checkout-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .checkout-wrapper { padding-top: 20px; }
}