/* assets/css/app.css - Hepsikutunda Mobile PWA Native App & Device Shell Theme */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Quicksand:wght@500;600;700;800&display=swap');

:root {
    --bg-dark: #12091f;
    --bg-gradient: radial-gradient(circle at 50% 30%, #3b0764 0%, #1e0936 50%, #0d0417 100%);
    --purple-primary: #8b5cf6;
    --purple-light: #c4b5fd;
    --purple-deep: #581c87;
    --pink-accent: #f43f5e;
    --pink-soft: #fb7185;
    --gold-accent: #fbbf24;
    --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fef08a 100%);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-card: rgba(35, 15, 55, 0.75);
    --text-white: #ffffff;
    --text-muted: #cbd5e1;
    --font-heading: 'Fredoka', cursive, sans-serif;
    --font-body: 'Quicksand', sans-serif;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #090310;
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 7, 22, 0.9);
}
::-webkit-scrollbar-thumb {
    background: var(--pink-accent);
    border-radius: 4px;
}

/* ==========================================================================
   1. MOBILE APP SHELL FRAME (BILGISAYARDA TELEFON GÖRÜNÜMÜ, MOBİLDE FULL EKRAN)
   ========================================================================== */
.mobile-app-shell {
    width: 100%;
    max-width: 430px;
    height: 100vh;
    max-height: 900px;
    background: var(--bg-gradient);
    border-radius: 36px;
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.4), 0 25px 80px rgba(0, 0, 0, 0.9);
    border: 8px solid #1e112a;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (max-width: 480px) {
    .mobile-app-shell {
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
}

/* Phone Status Bar Notch */
.phone-notch {
    width: 110px;
    height: 20px;
    background: #1e112a;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

/* App Main Body Container */
.app-body-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 60px;
}

/* ==========================================================================
   2. FULL PAGE SCREEN VIEW TRANSITIONS (NO POPUP - PURE PAGE PUSH/POP)
   ========================================================================== */
.page-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    z-index: 1800;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
    padding-bottom: 70px;
}

.page-view.active {
    transform: translateX(0);
}

.page-view-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(18, 9, 31, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-back-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--glass-border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-back-nav:hover {
    background: rgba(244, 63, 94, 0.3);
}

.page-view-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--gold-accent);
}

/* ==========================================================================
   3. CONFETTI & ITEM RAIN SYSTEM (SPLASH-ONLY)
   ========================================================================== */
.rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.rain-drop {
    position: absolute;
    top: -60px;
    font-size: 1.8rem;
    user-select: none;
    animation: itemFall linear infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

@keyframes itemFall {
    0% { transform: translateY(0) rotate(0deg) scale(0.8); opacity: 1; }
    80% { opacity: 0.9; }
    100% { transform: translateY(105vh) rotate(360deg) scale(1.2); opacity: 0; }
}

/* ==========================================================================
   4. SPLASH SCREEN
   ========================================================================== */
#splash-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #581c87 0%, #12091f 100%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: splashBouncy 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.splash-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
}

.splash-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 24px;
    filter: drop-shadow(0 0 35px rgba(251, 191, 36, 0.7));
    animation: floatBouncy 2.5s infinite ease-in-out;
}

.splash-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fef08a 0%, #fbbf24 50%, #f43f5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.splash-subtitle {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--purple-light);
    letter-spacing: 2px;
}

.splash-loader {
    margin: 20px auto 0;
    width: 140px;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    display: block;
}

.splash-loader-bar {
    width: 0%;
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 10px;
    animation: loaderFill 1.8s ease-in-out forwards;
}

@keyframes splashBouncy {
    0% { transform: scale(0.3) rotate(-10deg); opacity: 0; }
    70% { transform: scale(1.08) rotate(3deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes floatBouncy {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

@keyframes loaderFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ==========================================================================
   5. APP HEADER & TOP NAVIGATION
   ========================================================================== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(18, 9, 31, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(251, 191, 36, 0.5));
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

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

.btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--pink-accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
}

.user-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-accent));
    border: none;
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==========================================================================
   6. FERRIS WHEEL HOME MENU
   ========================================================================== */
.radial-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 10px 10px;
    position: relative;
}

.radial-header {
    text-align: center;
    margin-bottom: 16px;
}

.radial-header h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 3px;
    background: linear-gradient(to right, #fff, var(--gold-accent), var(--pink-soft));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.radial-header p {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.radial-wheel {
    position: relative;
    width: 310px;
    height: 310px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ferrisOrbit 70s linear infinite;
    margin-top: 6px;
}

@keyframes ferrisOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.center-circle {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ec4899, #7c3aed);
    border: 3.5px solid var(--gold-accent);
    box-shadow: 0 0 35px rgba(251, 191, 36, 0.75), 0 0 60px rgba(236, 72, 153, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: pulseCenter 2.5s infinite ease-in-out, counterFerris 70s linear infinite;
}

.center-circle i {
    font-size: 1.9rem;
    color: var(--gold-accent);
    margin-bottom: 2px;
}

.center-circle span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    line-height: 1.1;
    text-transform: uppercase;
}

@keyframes pulseCenter {
    0%, 100% { box-shadow: 0 0 25px rgba(251, 191, 36, 0.5), 0 0 40px rgba(236, 72, 153, 0.5); }
    50% { box-shadow: 0 0 45px rgba(251, 191, 36, 0.8), 0 0 70px rgba(236, 72, 153, 0.8); }
}

.radial-item {
    position: absolute;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--glass-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.radial-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: counterFerris 70s linear infinite;
}

@keyframes counterFerris {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.radial-item i {
    font-size: 1.35rem;
    margin-bottom: 3px;
}

.radial-item span {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}

.radial-item.top { top: -2px; left: 50%; transform: translateX(-50%); }
.radial-item.right { top: 50%; right: -2px; transform: translateY(-50%); }
.radial-item.bottom { bottom: -2px; left: 50%; transform: translateX(-50%); }
.radial-item.left { top: 50%; left: -2px; transform: translateY(-50%); }

.radial-item.love i { color: #f43f5e; }
.radial-item.game i { color: #3b82f6; }
.radial-item.sorry i { color: #a855f7; }
.radial-item.toy i { color: #10b981; }

/* ==========================================================================
   7. SPECIAL CAMPAIGN BANNER
   ========================================================================== */
.campaign-banner {
    margin: 20px 14px 16px;
    background: linear-gradient(135deg, #4c1d95 0%, #831843 50%, #1e1b4b 100%);
    border: 2px solid rgba(251, 191, 36, 0.7);
    border-radius: var(--radius-lg);
    padding: 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.4), 0 8px 30px rgba(244, 63, 94, 0.5);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    animation: campaignGlow 3s infinite ease-in-out;
}

@keyframes campaignGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.4), 0 8px 25px rgba(244, 63, 94, 0.4); border-color: rgba(251, 191, 36, 0.8); }
    50% { box-shadow: 0 0 35px rgba(251, 191, 36, 0.8), 0 10px 35px rgba(244, 63, 94, 0.8); border-color: rgba(244, 63, 94, 0.9); }
}

.campaign-badge {
    position: absolute;
    top: 8px;
    right: 12px;
    background: var(--gold-gradient);
    color: #0f0716;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.campaign-info h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 4px;
    padding-right: 70px;
}

.campaign-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.campaign-delivery-badge {
    margin-top: 8px;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(147, 197, 253, 0.4);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.76rem;
    color: #93c5fd;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.campaign-timer-box {
    margin-top: 8px;
    background: rgba(15, 7, 22, 0.75);
    border: 1px solid rgba(251, 191, 36, 0.5);
    border-radius: 10px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
}

.timer-label {
    font-size: 0.74rem;
    color: #fef08a;
    font-weight: 700;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 5px;
}

.timer-digits {
    font-family: 'Courier New', Courier, monospace, var(--font-heading);
    font-size: 0.88rem;
    font-weight: 800;
    color: #fbbf24;
    background: rgba(0, 0, 0, 0.6);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.timer-digits small {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 3px;
    font-weight: 600;
}

.campaign-price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-accent);
}

.btn-campaign-buy {
    background: var(--gold-gradient);
    color: #0f0716;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.4);
    transition: transform 0.2s ease;
}

.btn-campaign-buy:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   8. 3-SLIDE INSTAGRAM STORY ONBOARDING SLIDER
   ========================================================================== */
.story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f0716;
    z-index: 99990;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.story-overlay.active {
    opacity: 1;
    visibility: visible;
}

.story-progress-bars {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.story-progress-step {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--gold-accent);
    transition: width 0.1s linear;
}

.story-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.story-skip-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    cursor: pointer;
}

.story-slide-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 8px;
}

.story-icon-large {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: floatBouncy 2s infinite ease-in-out;
}

.story-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: var(--gold-accent);
    margin-bottom: 10px;
}

.story-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 300px;
}

.story-footer-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

/* ==========================================================================
   9. SEPARATED DUAL SUPPORT PILLS (WHATSAPP LEFT & CUSTOMER SERVICE RIGHT)
   ========================================================================== */
.fab-support-pill {
    position: absolute;
    bottom: 16px;
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 30px;
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}

.fab-whatsapp-left {
    left: 12px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.95), rgba(18, 140, 126, 0.95));
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4), 0 3px 10px rgba(0, 0, 0, 0.5);
}

.fab-call-right {
    right: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(236, 72, 153, 0.95));
    box-shadow: 0 8px 22px rgba(236, 72, 153, 0.4), 0 3px 10px rgba(0, 0, 0, 0.5);
}

.fab-support-pill:hover, .fab-support-pill:active {
    transform: translateY(-3px) scale(1.04);
}

.fab-support-pill:active {
    transform: translateY(0) scale(0.96);
}

.fab-icon-bubble {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    box-shadow: inset 0 1px 3px rgba(255,255,255,0.4);
    flex-shrink: 0;
}

.fab-whatsapp-left .fab-icon-bubble i {
    font-size: 1.15rem;
}

.fab-call-right .fab-icon-bubble i {
    font-size: 1rem;
}

.fab-pill-label {
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.2px;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ==========================================================================
   10. BUILDER WINDOW & PRODUCT GRID
   ========================================================================== */
.modal-overlay {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    min-height: 100%;
    box-sizing: border-box;
    background: #0a0310;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: max(12px, env(safe-area-inset-top, 0px)) 0 max(12px, env(safe-area-inset-bottom, 0px));
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modals are mounted directly in the phone shell. Keep the page underneath
   fixed while the dialog itself remains reachable on short screens. */
.mobile-app-shell:has(.modal-overlay.active) .app-body-container {
    overflow: hidden;
}

.builder-window {
    width: 100%;
    height: 100%;
    background: rgba(26, 12, 42, 0.98);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.builder-header {
    padding: 12px 14px;
    background: rgba(15, 7, 22, 0.85);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.builder-title h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--gold-accent);
}

.builder-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.products-panel {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.category-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.tab-btn {
    padding: 6px 12px;
    border-radius: 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}

.tab-btn.active, .tab-btn:hover {
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-accent));
    color: #fff;
    border-color: var(--pink-soft);
}

.products-grid {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 12px 8px;
    padding: 6px 2px;
}

.product-card {
    text-align: center;
    cursor: grab;
    user-select: none;
}

.product-img-wrapper {
    width: 65px;
    height: 65px;
    margin: 0 auto 4px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid transparent;
}

.product-card:hover .product-img {
    transform: scale(1.08);
    border-color: var(--gold-accent);
}

.product-name {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    color: #fff;
    line-height: 1.1;
}

.product-price-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid var(--gold-accent);
    color: var(--gold-accent);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    margin-top: 2px;
}

.box-preview-panel {
    background: rgba(15, 7, 22, 0.95);
    border-top: 1px solid var(--glass-border);
    padding: 12px;
}

.box-types-row {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.box-type-thumb {
    flex: 1;
    height: 34px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    color: #fff;
}

.box-type-thumb.active {
    border-color: var(--gold-accent);
    transform: scale(1.04);
}

.box-drop-area {
    min-height: 100px;
    border: 2px dashed var(--pink-soft);
    border-radius: var(--radius-md);
    background: rgba(244, 63, 94, 0.05);
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.selected-items-list {
    width: 100%;
    max-height: 150px;
    overflow-y: auto;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.selected-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--glass-border);
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.78rem;
    gap: 8px;
}

.selected-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.selected-item-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.selected-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.selected-item-title {
    color: #fff;
    font-weight: 600;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected-item-unit-price {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.selected-item-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.qty-control-btn {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--glass-border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-control-btn:hover {
    background: var(--purple-primary);
}

.item-qty-text {
    font-size: 0.74rem;
    font-weight: 700;
    color: #fbbf24;
    padding: 0 4px;
    min-width: 44px;
    text-align: center;
}

.item-subtotal-price {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold-accent);
    min-width: 55px;
    text-align: right;
}

.item-remove-btn {
    color: #f43f5e;
    cursor: pointer;
    padding: 4px;
    font-size: 0.8rem;
    margin-left: 2px;
    transition: transform 0.2s;
}

.item-remove-btn:hover {
    transform: scale(1.2);
}

.btn-card-add {
    margin-top: 3px;
    padding: 2px 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-accent));
    border: none;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: transform 0.15s;
}

.btn-card-add:hover {
    transform: scale(1.06);
}

.builder-footer {
    padding-top: 8px;
}

.price-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.total-amount {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold-accent);
}

.builder-actions {
    display: flex;
    gap: 8px;
}

.btn-reset {
    padding: 8px 12px;
    border-radius: var(--radius-md);
    background: rgba(244, 63, 94, 0.18);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #f43f5e;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-order-now {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-md);
    background: var(--gold-gradient);
    border: none;
    color: #0f0716;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}

/* Standard Modal Box */
.modal-box {
    width: 92%;
    max-width: 360px;
    background: rgba(26, 12, 42, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    flex: 0 0 auto;
    margin-block: auto;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--purple-light);
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 0.9rem;
    outline: none;
}

.social-btns {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.btn-social {
    flex: 1;
    padding: 8px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--glass-border);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.toast-container {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: 90%;
}

.toast {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--purple-deep);
    border: 1px solid var(--pink-soft);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    animation: toastIn 0.3s ease forwards;
}

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