/*
 * Morondartva-Store stylesheet
 * Implements a premium, modern, cinematic design system.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&family=Bebas+Neue&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
    --bg-main: #0a0a0c;
    --bg-card: #141418;
    --bg-darker: #070708;
    --bg-input: #1a1a20;
    
    --color-text: #f3f4f6;
    --color-text-muted: #9ca3af;
    
    --primary: #c90000;
    --primary-hover: #e60000;
    --primary-glow: rgba(201, 0, 0, 0.45);
    
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.45);
    --info: #0099ff;
    --success: #10b981;
    --warning: #f59e0b;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-logo: 'Bebas Neue', sans-serif;
    
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

/* --- BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

/* --- UTILITY CLASSES --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hidden {
    display: none !important;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-red { color: var(--primary) !important; }
.text-gold { color: var(--gold) !important; }
.text-info { color: var(--info) !important; }
.text-success { color: var(--success) !important; }
.text-muted { color: var(--color-text-muted) !important; }

.font-bold { font-weight: 600; }
.uppercase { text-transform: uppercase; }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }

.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pb-5 { padding-bottom: 3rem; }

.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }

.w-100 { width: 100%; }
.w-50 { width: 50%; }
.h-100 { height: 100%; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.flex-grow-1 { flex-grow: 1; }

.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 0.4rem; }

.text-danger { color: var(--primary) !important; }
.text-left { text-align: left; }

.form-control-sm { padding: 0.4rem 0.6rem; font-size: 0.8rem; }

.badge-gold { background-color: var(--gold); color: #000; }
.badge-info { background-color: rgba(0,153,255,0.2); color: var(--info); }
.badge-primary { background-color: rgba(0,123,255,0.2); color: #5aadff; }

.bg-red { background-color: var(--primary); }
.bg-gold { background-color: var(--gold); }

.border-info { border-color: var(--info) !important; }
.border-success { border-color: var(--success) !important; }
.border-danger { border-color: var(--primary) !important; }

.btn-info { background-color: var(--info); color: #fff; }
.btn-info:hover { background-color: #0088ee; }
.btn-primary { background-color: var(--primary); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-link { background: none; border: none; color: var(--color-text-muted); cursor: pointer; text-decoration: underline; padding: 0; font-size: inherit; }

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 0.75rem;
}

.col-md-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
    padding: 0 0.75rem;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 0.75rem;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 0.75rem;
}

.grid {
    display: grid;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1.5rem; }

.col-span-full { grid-column: 1 / -1; }

.border-bottom { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.border-left { border-left: 1px solid rgba(255, 255, 255, 0.08); }
.border { border: 1px solid rgba(255, 255, 255, 0.08) !important; }

.bg-dark-card { background-color: var(--bg-card); }
.rounded { border-radius: var(--border-radius); }

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

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

.anim-fade-in { animation: fadeIn 0.5s ease forwards; }
.anim-slide-up { animation: slideUp 0.5s ease forwards; }
.anim-slide-down { animation: slideDown 0.4s ease forwards; }
.anim-scale-in { animation: scaleIn 0.4s ease forwards; }
.anim-fade-in-up { animation: fadeInUp 0.6s ease forwards; }

.anim-delay-1 { animation-delay: 0.1s; opacity: 0; }
.anim-delay-2 { animation-delay: 0.2s; opacity: 0; }
.anim-delay-3 { animation-delay: 0.3s; opacity: 0; }
.anim-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* Shimmer loading skeleton */
.shimmer {
    background: linear-gradient(90deg, var(--bg-input) 25%, rgba(255,255,255,0.05) 50%, var(--bg-input) 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 6px;
}

/* Section entrance */
.section-entrance {
    animation: fadeInUp 0.6s ease forwards;
}

/* Grid items staggered entrance */
.grid-anim > * {
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
}

.grid-anim > *:nth-child(1) { animation-delay: 0.05s; }
.grid-anim > *:nth-child(2) { animation-delay: 0.1s; }
.grid-anim > *:nth-child(3) { animation-delay: 0.15s; }
.grid-anim > *:nth-child(4) { animation-delay: 0.2s; }
.grid-anim > *:nth-child(5) { animation-delay: 0.25s; }
.grid-anim > *:nth-child(6) { animation-delay: 0.3s; }
.grid-anim > *:nth-child(7) { animation-delay: 0.35s; }
.grid-anim > *:nth-child(8) { animation-delay: 0.4s; }
.grid-anim > *:nth-child(9) { animation-delay: 0.45s; }
.grid-anim > *:nth-child(10) { animation-delay: 0.5s; }

/* Cart drawer items staggered */
.cart-anim > * {
    opacity: 0;
    animation: slideUp 0.35s ease forwards;
}
.cart-anim > *:nth-child(1) { animation-delay: 0.05s; }
.cart-anim > *:nth-child(2) { animation-delay: 0.1s; }
.cart-anim > *:nth-child(3) { animation-delay: 0.15s; }
.cart-anim > *:nth-child(4) { animation-delay: 0.2s; }
.cart-anim > *:nth-child(5) { animation-delay: 0.25s; }

/* Cart badge pulse */
@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.cart-count-badge.pulse {
    animation: badgePulse 0.4s ease;
}

/* Cart icon bounce */
@keyframes cartBounce {
    0% { transform: translateX(0); }
    15% { transform: translateX(-6px) rotate(-5deg); }
    30% { transform: translateX(5px) rotate(4deg); }
    45% { transform: translateX(-4px) rotate(-3deg); }
    60% { transform: translateX(3px) rotate(2deg); }
    75% { transform: translateX(-2px) rotate(-1deg); }
    100% { transform: translateX(0) rotate(0); }
}

.btn-icon.cart-bounce {
    animation: cartBounce 0.6s ease;
}

/* Hero entrance */
.hero-content > * {
    opacity: 0;
    animation: slideUp 0.7s ease forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.4s; }

/* Modal / drawer entrance */
.modal-overlay:not(.hidden),
.cart-drawer-overlay:not(.hidden) {
    animation: fadeIn 0.25s ease;
}

.cart-drawer.open {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

[id^="checkout-step-"]:not(.hidden) {
    animation: slideUp 0.4s ease;
}

/* Admin tab content entrance */
.admin-tab-content:not(.hidden) {
    animation: fadeIn 0.35s ease;
}

/* Notification entrance */
.notify-overlay.visible {
    animation: fadeIn 0.25s ease;
}

/* Button icon spin for loading */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* --- PREMIUM GLOWS --- */
.text-glow {
    text-shadow: 0 0 12px var(--primary-glow);
}
.text-glow-gold {
    text-shadow: 0 0 12px var(--gold-glow);
}
.border-glow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-speed);
}
@media (hover: hover) {
    .border-glow:hover {
        border-color: var(--primary);
        box-shadow: 0 4px 25px var(--primary-glow);
    }
}
.border-glow-gold {
    border-color: var(--gold) !important;
    box-shadow: 0 4px 20px var(--gold-glow) !important;
}

/* --- HEADER / NAVIGATION --- */
header {
    background-color: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    font-family: var(--font-logo);
    font-weight: 400;
    font-size: 1.75rem;
    letter-spacing: 0.08em;
    flex-shrink: 0;
    min-width: 0;
    overflow: hidden;
    text-transform: uppercase;
    color: #ffffff;
    transition: letter-spacing 0.3s ease;
}

@media (hover: hover) {
    .logo-container:hover {
        letter-spacing: 0.12em;
    }
}

.logo-container .logo-text {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    filter: drop-shadow(0 0 6px rgba(199,44,44,0.15));
    transition: filter 0.3s ease;
}

@media (hover: hover) {
    .logo-container:hover .logo-text {
        filter: drop-shadow(0 0 12px rgba(199,44,44,0.35));
    }
}

.logo-container .logo-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 1px;
    transition: transform 0.3s ease;
    transform-origin: left;
}

@media (hover: hover) {
    .logo-container:hover .logo-text::after {
        transform: scaleX(1.3);
    }

    .logo-container:hover .logo-img {
        filter: drop-shadow(0 0 10px var(--primary-glow));
    }
}

.logo-dot {
    font-size: 0.45em;
    vertical-align: middle;
    margin-left: 0.1em;
    -webkit-text-fill-color: var(--primary);
    color: var(--primary);
    display: inline-block;
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.logo-img {
    height: 42px;
    width: auto;
    margin-right: 12px;
    border-radius: 6px;
    filter: drop-shadow(0 0 6px var(--primary-glow));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    transition: var(--transition-speed);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-speed);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

/* --- NOTIFICATION BUBBLE --- */
.notify-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.notify-overlay.visible {
    opacity: 1;
}

.notify-bubble {
    background-color: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    max-width: 420px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.notify-bubble.visible {
    transform: scale(1) translateY(0);
}

.notify-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    line-height: 1;
}

.notify-success .notify-icon { color: var(--success); }
.notify-error .notify-icon { color: var(--primary); }
.notify-warning .notify-icon { color: var(--warning); }
.notify-info .notify-icon { color: var(--info); }

.notify-success { border-color: rgba(16, 185, 129, 0.3); }
.notify-error { border-color: rgba(201, 0, 0, 0.3); }
.notify-warning { border-color: rgba(245, 158, 11, 0.3); }
.notify-info { border-color: rgba(0, 153, 255, 0.3); }

.notify-body {
    flex: 1;
    min-width: 0;
}

.notify-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.notify-msg {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    word-break: break-word;
}

.notify-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    transition: var(--transition-speed);
    background: none;
    border: none;
    padding: 0.25rem;
}

.notify-close:hover {
    color: #ffffff;
}

.notify-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: flex-end;
    flex-shrink: 0;
}

.notify-actions .btn {
    min-width: 100px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color var(--transition-speed), box-shadow var(--transition-speed);
    will-change: transform;
}

@media (hover: hover) {
    .btn:hover {
        transform: translateY(-1px);
    }
    .btn:active {
        transform: translateY(0);
    }
}

.btn:active {
    transform: scale(0.98);
}

.btn-red {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-red:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-success {
    background-color: #28a745;
    color: #fff;
}
.btn-success:hover {
    background-color: #218838;
}

.btn-gold {
    background-color: var(--gold);
    color: #000000;
}

.btn-gold:hover {
    background-color: #f7d35c;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-outline-info {
    border: 1px solid var(--info);
    color: var(--info);
}
.btn-outline-info:hover {
    background-color: var(--info);
    color: #ffffff;
}

.btn-outline-danger {
    border: 1px solid var(--primary);
    color: var(--primary);
}
.btn-outline-danger:hover {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: var(--transition-speed);
    position: relative;
}

.btn-icon:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* --- BADGES & TAGS --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}

.badge-free {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.badge-exclusive {
    background-color: var(--gold);
    color: #000000;
}

.badge-premium {
    background-color: var(--gold);
    color: #000000;
}

.badge-admin {
    background-color: var(--info);
    color: #ffffff;
}

.badge-scanner {
    background-color: var(--info);
    color: #ffffff;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.badge-danger {
    background-color: rgba(201, 0, 0, 0.2);
    color: var(--primary);
}

.badge-out-of-stock {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #000000;
    color: #ffffff;
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* --- HERO BANNER --- */
.hero-banner {
    position: relative;
    height: 60vh;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--primary);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10,10,12,0.95) 35%, rgba(10,10,12,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* --- CATALOG PAGES (GRID / CARDS) --- */
.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn-group {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color var(--transition-speed), border-color var(--transition-speed), color var(--transition-speed), transform 0.2s ease;
}

@media (hover: hover) {
    .filter-btn:hover {
        transform: translateY(-1px);
    }
}

.filter-btn:active {
    transform: scale(0.96);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.search-wrapper {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.search-input {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: var(--transition-speed);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

/* --- CARDS (PRODUCTS / VIDEOS) --- */
.card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-5px);
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
}

.card-body {
    padding: 1.25rem;
}

/* Product Specifics */
.product-img-container {
    position: relative;
    padding-top: 100%; /* square ratio */
    overflow: hidden;
    background-color: #1a1a22;
}

.product-card {
    width: 100%;
    min-width: 0;
    transition: transform 0.3s ease;
}

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

.product-card .product-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

@media (hover: hover) {
    .card:hover .product-img {
        transform: scale(1.05);
    }
}

.fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-speed);
}

.fav-btn:hover {
    background-color: #000000;
}

.fav-btn.active {
    color: var(--primary);
}

/* Video Specifics */
.video-thumb-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 ratio */
    overflow: hidden;
    background-color: #000000;
}

.video-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

@media (hover: hover) {
    .card:hover .video-thumb {
        transform: scale(1.05);
    }
}

.video-card {
    cursor: pointer;
    width: 100%;
    min-width: 0;
    transition: transform 0.3s ease;
}

@media (hover: hover) {
    .video-card:hover {
        transform: translateY(-3px);
    }
}

.video-card:active {
    transform: scale(0.99);
}

.video-card .video-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.play-overlay, .lock-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.lock-overlay {
    opacity: 1;
    background-color: rgba(0,0,0,0.7);
}

.play-overlay i, .lock-overlay i {
    font-size: 2.5rem;
    color: #ffffff;
    transition: transform 0.3s;
}

@media (hover: hover) {
    .card:hover .play-overlay {
        opacity: 1;
    }

    .card:hover .play-overlay i {
        transform: scale(1.1);
    }
}

.video-card .badge-exclusive {
    position: absolute;
    top: 10px;
    left: 10px;
}
.video-card .badge-free {
    position: absolute;
    top: 10px;
    left: 10px;
}

/* --- FORMS --- */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.form-control {
    background-color: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition-speed);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-control::placeholder {
    color: rgba(255,255,255,0.25);
}

.form-control option {
    background-color: #1a1a2e;
    color: #fff;
}

/* Input with suffix (e.g. Ar) */
.input-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-suffix .form-control {
    padding-right: 2.8rem;
    flex: 1;
    min-width: 0;
}

.input-suffix-text {
    position: absolute;
    right: 0.9rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
    pointer-events: none;
    font-weight: 500;
}

/* Password toggle */
.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrap .form-control {
    padding-right: 2.8rem;
    flex: 1;
    min-width: 0;
}

.password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    padding: 0.4rem;
    font-size: 1rem;
    line-height: 1;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: rgba(255,255,255,0.7);
}

/* Admin form card header */
.admin-form-header {
    background: linear-gradient(135deg, rgba(199,44,44,0.15), rgba(199,44,44,0.05));
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 1.1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--primary);
}

.admin-form-header i {
    font-size: 1.1rem;
}

/* Contact info card header */
.contact-info-header {
    background: linear-gradient(135deg, rgba(199,44,44,0.12), rgba(199,44,44,0.03));
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 1.1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--primary);
}

.contact-info-header i {
    font-size: 1.1rem;
}

/* Contact method rows */
.contact-methods-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Big action cards (WhatsApp, Telegram) */
.contact-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
    cursor: pointer;
}

.contact-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: inherit;
}

.contact-action-card:active {
    transform: translateY(0) scale(0.99);
}

.contact-action-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.contact-action-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.contact-action-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.contact-action-desc {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}

.contact-action-link {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 0.1rem;
    transition: letter-spacing 0.2s;
}

.contact-action-card:hover .contact-action-link {
    letter-spacing: 0.03em;
}

/* Compact method row (Email) */
.contact-method {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    text-decoration: none;
    color: inherit;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.contact-method:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
    transform: translateX(3px);
    color: inherit;
}

.contact-method:active {
    transform: scale(0.99);
}

.contact-method-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-method-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
    min-width: 0;
}

.contact-method-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.35);
    font-weight: 600;
}

.contact-method-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-method-arrow {
    color: rgba(255,255,255,0.12);
    font-size: 0.7rem;
    transition: color 0.25s, transform 0.2s;
}

.contact-method:hover .contact-method-arrow {
    color: var(--primary);
    transform: translateX(2px);
}

/* Social links in contact */
.contact-social {
    display: flex;
    flex-direction: column;
}

.section-title {
    position: relative;
    display: inline-block;
}

/* Form section dividers */
.form-section {
    padding: 0 1.5rem;
}

.form-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.3);
    margin: 1.25rem 0 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.form-section-title i {
    font-size: 0.8rem;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

.form-divider span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Image preview area */
.admin-preview-wrap {
    position: relative;
    margin: 1.5rem 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.15);
    padding: 1.5rem;
}

.admin-preview-placeholder i {
    font-size: 2.2rem;
}

.admin-preview-placeholder span {
    font-size: 0.8rem;
}

.admin-preview-img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    display: block;
    animation: fadeIn 0.4s ease;
}

.admin-preview-clear {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: background 0.2s;
}

.admin-preview-clear:hover {
    background: var(--primary);
}

/* Upload zone */
.upload-zone {
    border: 2px dashed rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: rgba(199,44,44,0.04);
}

.upload-zone-icon {
    font-size: 1.6rem;
    color: rgba(255,255,255,0.2);
    transition: color 0.3s, transform 0.3s;
}

.upload-zone.drag-over {
    border-color: var(--primary);
    background: rgba(199,44,44,0.08);
}

.upload-zone:hover .upload-zone-icon,
.upload-zone.drag-over .upload-zone-icon {
    color: var(--primary);
    transform: translateY(-3px);
}

.upload-zone-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.upload-zone-hint {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.2);
}

/* Admin form actions */
.admin-form-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 0.5rem;
}

.admin-form-actions .btn {
    flex: 1;
    padding: 0.7rem 1.25rem;
}

/* Admin checkbox */
.admin-checkbox {
    width: 18px !important;
    height: 18px !important;
    accent-color: var(--primary);
    cursor: pointer;
}

/* --- CART DRAWER --- */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 1000;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background-color: var(--bg-main);
    z-index: 1001;
    box-shadow: -5px 0 25px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease-out;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background-color: var(--bg-card);
}

.cart-item-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.quantity-controls {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: inline-flex;
}

.qty-btn {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
}

.qty-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- MODALS --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2rem;
}

.modal-content {
    background-color: var(--bg-main);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--border-radius);
    padding: 2.25rem;
    width: 100%;
    max-width: 550px;
    position: relative;
}

.modal-content-lg {
    max-width: 800px;
}

.modal-header h4 {
    font-size: 1.5rem;
}

.btn-close {
    cursor: pointer;
    font-size: 1.25rem;
    background: none;
    border: none;
}

/* Auth Modal specifics */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
}

.auth-tab-btn {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: var(--transition-speed);
}

.auth-tab-btn.active {
    color: #ffffff;
    border-bottom: 2px solid var(--primary);
}

/* --- PROFILE SCREEN --- */
.profile-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.profile-tab-btn {
    font-weight: 600;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: var(--color-text-muted);
}

.profile-tab-btn.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.order-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: var(--bg-card);
}

.order-card .card-header {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-promo-card {
    background: linear-gradient(135deg, #1e1b10 0%, #110e05 100%);
    border: 1px solid var(--gold);
}

.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); box-shadow: 0 0 15px var(--gold-glow); }
    100% { transform: scale(1); }
}

/* --- VIDEO PLAYER MODAL --- */
.ratio-16x9 {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.ratio-16x9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.custom-video-wrapper video {
    outline: none;
    max-height: 70vh;
}

/* --- BACK OFFICE --- */
.admin-tab-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.admin-tab-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    font-weight: 500;
}

.admin-tab-btn.active {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table th, .table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table th {
    font-family: var(--font-heading);
    color: var(--color-text-muted);
    font-weight: 600;
}

.inline-select {
    background-color: var(--bg-input);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* --- FOOTER --- */
footer {
    background-color: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem 0;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h5 {
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    color: #ffffff;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text-muted);
    transition: var(--transition-speed);
}

.footer-links a:hover {
    color: #ffffff;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* --- FLOATING CONTACT SUPPORT --- */
.floating-support-bubble {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99;
}

.support-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366; /* WhatsApp Green */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
}

.support-trigger:hover {
    transform: scale(1.08);
}

.support-menu {
    position: absolute;
    bottom: 75px;
    right: 0;
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    width: 260px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.support-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #ffffff;
    transition: var(--transition-speed);
}

.support-item i {
    width: 25px;
    font-size: 1.125rem;
}

.support-item-wa { background-color: #25d366; }
.support-item-wa:hover { background-color: #20ba59; }

.support-item-tg { background-color: #0088cc; }
.support-item-tg:hover { background-color: #0077b5; }

.support-item-mail { background-color: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); }
.support-item-mail:hover { background-color: rgba(255, 255, 255, 0.15); }

/* --- CHECKOUT MODAL WIZARD --- */
.checkout-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.checkout-progress::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: rgba(255,255,255,0.05);
    z-index: 1;
}

.checkout-progress-step {
    position: relative;
    z-index: 2;
    background-color: var(--bg-main);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.checkout-progress-step.active {
    border-color: var(--primary);
    color: #ffffff;
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.delivery-progress {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
    position: relative;
}
.delivery-progress::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: rgba(255,255,255,0.08);
    z-index: 1;
}
.delivery-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}
.delivery-step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.4rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}
.delivery-step.completed .delivery-step-circle {
    border-color: #28a745;
    background: #28a745;
    color: #fff;
}
.delivery-step.active .delivery-step-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 10px var(--primary-glow);
}
.delivery-step-label {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}
.delivery-step.active .delivery-step-label {
    color: #fff;
    font-weight: 600;
}
.delivery-step.completed .delivery-step-label {
    color: #4ade80;
}

/* Alert */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.08);
}

.alert-info {
    background-color: rgba(0, 153, 255, 0.1);
    border-color: rgba(0, 153, 255, 0.3);
    color: var(--info);
}

.text-glow-success {
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.order-item-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Loader Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

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

/* --- MOBILE NAV --- */
.mobile-menu-trigger {
    display: none;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 200;
}

.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 100%;
    max-width: 300px;
    height: 100%;
    background-color: var(--bg-main);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease-out;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: -5px 0 25px rgba(0,0,0,0.8);
}

.mobile-nav-overlay:not(.hidden) .mobile-nav-panel {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.mobile-nav-link {
    padding: 1rem 1.5rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: var(--transition-speed);
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #ffffff;
    background-color: rgba(255,255,255,0.03);
    border-left-color: var(--primary);
}

.mobile-nav-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

/* --- SCANNER MODE: hide everything but scanner section --- */
body.scanner-mode main > section:not(#section-scanner) {
    display: none !important;
}
body.scanner-mode main > section#section-scanner {
    display: block !important;
}
body.scanner-mode #mobile-nav-links a:not(#mobile-nav-scanner) {
    display: none !important;
}
body.scanner-mode #mobile-nav-links #mobile-nav-scanner {
    display: block !important;
}

/* --- SCANNER --- */
.scanner-video {
    width: 100%;
    max-width: 400px;
    height: auto;
    border: 2px solid #333;
    border-radius: 8px;
    background: #000;
}
#scanner-result {
    min-height: 100px;
}
.scanner-history-item {
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border-left-width: 3px;
    border-left-style: solid;
}
.scanner-history-item:last-child {
    margin-bottom: 0;
}
#scanner-history-list {
    max-height: 400px;
    overflow-y: auto;
}

/* --- RESPONSIVE BREAKPOINTS --- */
html { overflow-x: hidden; }
body { overflow-x: hidden; width: 100%; }

@media (max-width: 991px) {
    .col-md-4, .col-md-5, .col-md-6, .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 2.5rem; }
    .hero-banner { min-height: 350px; height: 50vh; }
    .hero-content { max-width: 100%; }
    .hero-subtitle { font-size: 1rem; }
    .admin-tab-btn-group { flex-direction: column; }
    .admin-tab-btn { width: 100%; text-align: left; }
    .table-responsive table { min-width: 600px; }
    .modal-content { margin: 0 1rem; padding: 1.5rem; }
    .modal-content-lg { max-width: 100%; }
    .cart-drawer { max-width: 100%; }
    .checkout-progress::after { left: 5%; right: 5%; }
    .filter-btn-group { flex-wrap: wrap; }
    .catalog-controls { flex-direction: column; align-items: stretch; }
    .search-wrapper { max-width: 100%; }
}

@media (max-width: 768px) {
    .header-container { height: 60px; }
    .header-container .logo-container { font-size: 1.4rem; min-width: 0; }
    .header-container .logo-img { height: 30px; margin-right: 8px; }
    .header-container .logo-container .logo-text { font-size: 1.4rem; }
    .nav-links { display: none; }
    .mobile-menu-trigger { display: flex; }
    .nav-actions { gap: 0.5rem; flex-wrap: nowrap; }
    .hero-title { font-size: 2rem; }
    .hero-banner { min-height: 300px; height: 45vh; }
    .hero-overlay { background: linear-gradient(to top, rgba(10,10,12,0.95) 30%, rgba(10,10,12,0.3) 100%); }
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .gap-3 { gap: 0.75rem; }
    .container { padding: 0 1rem; }
    .modal-content { padding: 1.25rem; }
    .modal-content-lg { padding: 1.25rem; }
    .support-menu { right: 0; left: auto; }
    .cart-drawer-header { padding: 1rem; }
    .cart-drawer-body { padding: 1rem; }
    .cart-drawer-footer { padding: 1rem; }
    .btn { padding: 0.5rem 1rem; font-size: 0.85rem; }
    .btn-sm { padding: 0.35rem 0.7rem; font-size: 0.78rem; }
    .btn-xs { padding: 0.2rem 0.35rem; font-size: 0.65rem; }
    .table th, .table td { padding: 0.5rem; font-size: 0.78rem; }
    .nav-actions .btn-red.btn-sm span { display: none; }
    .nav-actions .btn-red.btn-sm i { margin-right: 0; }
    #nav-user-menu .text-sm.font-bold { display: none; }
    #nav-user-menu .badge { font-size: 0.6rem; padding: 0.15rem 0.35rem; }
    #nav-user-menu .btn-secondary.btn-sm { font-size: 0.7rem; padding: 0.25rem 0.5rem; }
    .product-card .product-price { font-size: 0.9rem; }
    .video-card .video-title { font-size: 0.95rem; }
}

@media (max-width: 600px) {
    .header-container { height: 56px; }
    .header-container .logo-container { font-size: 1.25rem; }
    .header-container .logo-img { height: 26px; }
    .header-container .logo-container .logo-text { font-size: 1.25rem; }
    .nav-actions .btn-icon { width: 34px; height: 34px; font-size: 0.85rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.6rem; }
    .hero-banner { min-height: 260px; height: 35vh; }
    .hero-subtitle { font-size: 0.85rem; }
    .hero-content .d-flex { flex-direction: column; gap: 0.75rem; }
    .hero-content .btn { width: 100%; }
    .row { margin: 0 -0.4rem; }
    .col-md-4, .col-md-5, .col-md-6, .col-md-8 { padding: 0 0.4rem; }
    .mb-4 { margin-bottom: 1rem; }
    .mb-5 { margin-bottom: 1.5rem; }
    .py-5 { padding-top: 2rem; padding-bottom: 2rem; }
    .checkout-progress-step { width: 26px; height: 26px; font-size: 0.7rem; }
    .floating-support-bubble { bottom: 12px; right: 12px; }
    .support-trigger { width: 48px; height: 48px; font-size: 1.35rem; }
    .support-menu { width: 200px; }
    .order-card .card-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .order-card .col-md-4.border-left { border-left: none; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 0.75rem; margin-top: 0.5rem; }
    .premium-promo-card .btn-gold { font-size: 0.75rem; }
    .product-card .product-footer { flex-direction: column; align-items: stretch; gap: 0.5rem; }
    .product-card .btn { width: 100%; }
    .product-card .product-price { font-size: 0.85rem; }
    .video-card .video-title { font-size: 0.9rem; }
    .cart-item-card { flex-wrap: wrap; gap: 0.5rem; }
    .cart-item-card .flex-grow-1 { min-width: 120px; }
    .profile-tabs { flex-direction: column; gap: 0; }
    .profile-tab-btn { padding: 0.5rem 0.75rem; }
    .nav-actions .btn-secondary.btn-sm span { display: none; }
    .nav-actions .btn-secondary.btn-sm i { margin-right: 0; }
    .cart-drawer { max-width: 80%; }
}

@media (max-width: 480px) {
    .header-container { height: 50px; }
    .header-container .logo-img { height: 24px; }
    .header-container .logo-container .logo-text { font-size: 1.1rem; }
    .nav-actions { gap: 0.35rem; }
    .nav-actions .btn-icon { width: 30px; height: 30px; font-size: 0.75rem; }
    .nav-actions .btn-red.btn-sm { font-size: 0; }
    .nav-actions .btn-red.btn-sm i { font-size: 0.85rem; margin-right: 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .gap-3 { gap: 0.5rem; }
    .hero-title { font-size: 1.4rem; }
    .hero-banner { min-height: 220px; height: 30vh; }
    .hero-subtitle { font-size: 0.75rem; line-height: 1.4; }
    .container { padding: 0 0.75rem; }
    body { font-size: 14px; }
    .btn { padding: 0.45rem 0.85rem; font-size: 0.8rem; }
    .btn-sm { padding: 0.3rem 0.6rem; font-size: 0.72rem; }
    .btn-xs { padding: 0.15rem 0.3rem; font-size: 0.6rem; }
    .form-control { padding: 0.55rem 0.7rem; font-size: 0.85rem; }
    .modal-content { padding: 0.85rem; margin: 0 0.5rem; }
    .modal-content-lg { padding: 0.85rem; margin: 0; max-width: 100%; border-radius: 0; min-height: 100vh; }
    .modal-header h4 { font-size: 1.1rem; }
    .product-card .product-name { white-space: normal; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
    .video-card .video-title { white-space: normal; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
    .product-card .btn { font-size: 0.7rem; padding: 0.3rem 0.5rem; }
    .table th, .table td { padding: 0.35rem 0.4rem; font-size: 0.7rem; }
    .badge { font-size: 0.6rem; padding: 0.15rem 0.35rem; }
    #scanner-camera { width: 100% !important; height: auto; }
    #ticket-modal .modal-content,
    #ticket-confirm-modal .modal-content { max-width: 100% !important; }
    .order-item-thumb { width: 36px; height: 36px; }
    .cart-item-thumb { width: 44px; height: 44px; }
    .filter-btn { padding: 0.35rem 0.8rem; font-size: 0.75rem; }
    .admin-tab-btn { font-size: 0.8rem; }
    .checkout-progress-step { width: 24px; height: 24px; font-size: 0.65rem; }
    #nav-user-menu .btn-icon { width: 28px; height: 28px; font-size: 0.7rem; }
    #checkout-map { height: 150px !important; }
    .modal-overlay { padding: 0; align-items: flex-start; }
    .modal-overlay .modal-content { margin-top: 0; }
    input.form-control, textarea.form-control, select.form-control { font-size: 16px !important; }
    .cart-drawer { max-width: 85%; }
}

@media (max-width: 420px) {
    .header-container .logo-container .logo-text { display: none; }
    .container { padding: 0 0.5rem; }
    .nav-actions .badge { display: none; }
    .cart-drawer { max-width: 90%; }
}

@media (max-width: 360px) {
    .header-container .logo-container .logo-text { display: none; }
    .nav-actions .badge { display: none; }
    #nav-user-menu .btn-icon { width: 26px; height: 26px; font-size: 0.65rem; }
    .product-card .product-name { font-size: 0.8rem; }
    .video-card .video-title { font-size: 0.8rem; }
    .hero-title { font-size: 1.15rem; }
    .support-menu { width: 180px; }
    .support-item { padding: 0.4rem 0.6rem; font-size: 0.75rem; }
    .cart-drawer { max-width: 95%; }
}
