/* Anx Phone - Apple Store Luxury Dark Theme & Animations */

:root {
    --apple-bg: #000000;
    --apple-card: #121214;
    --apple-card-hover: #1c1c1e;
    --apple-titanium: #c8a58c;
    --apple-blue: #2997ff;
    --apple-gray: #86868b;
    --apple-gold: #f5d061;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #000000;
    color: #f5f5f7;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism */
.glass-panel {
    background: rgba(18, 18, 20, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: linear-gradient(135deg, rgba(28, 28, 30, 0.6) 0%, rgba(18, 18, 20, 0.8) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 30px -10px rgba(200, 165, 140, 0.15);
}

/* Titanium Gradient Text */
.text-titanium {
    background: linear-gradient(135deg, #ffffff 0%, #e6d7cc 40%, #c8a58c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-silver {
    background: linear-gradient(135deg, #ffffff 0%, #d8d9dc 50%, #8e9095 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gold {
    background: linear-gradient(135deg, #fff3c4 0%, #f5d061 50%, #d4a017 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Ambient Glow Orbs */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    transition: all 0.8s ease;
}

/* Animations */
@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(0.8deg);
    }
}

.animate-float {
    animation: floatSlow 6s ease-in-out infinite;
}

@keyframes pulseHalo {
    0%, 100% {
        opacity: 0.35;
        transform: scale(1);
    }
    50% {
        opacity: 0.55;
        transform: scale(1.08);
    }
}

.animate-halo {
    animation: pulseHalo 4s ease-in-out infinite;
}

/* Unboxing Box 3D perspective & Luxury Apple Packaging */
.unboxing-box-container {
    perspective: 1200px;
}

.unboxing-box {
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    background: radial-gradient(circle at 50% 20%, #1c1d24 0%, #0d0e12 100%);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.95), 0 0 40px -10px rgba(245, 208, 97, 0.15);
}

.unboxing-box:hover {
    box-shadow: 0 35px 90px -15px rgba(0, 0, 0, 0.98), 0 0 60px -5px rgba(245, 208, 97, 0.28);
}

.box-lid {
    transform-origin: top center;
    transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.box-opened .box-lid {
    transform: translateY(-140px) rotateX(40deg) scale(0.92);
    opacity: 0;
    pointer-events: none;
}

/* Authentic Holographic Apple Security Seal Badge */
.hologram-seal {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(56, 189, 248, 0.4), rgba(244, 114, 182, 0.35), rgba(250, 204, 21, 0.45));
    background-size: 300% 300%;
    animation: holoShine 4s ease infinite;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

@keyframes holoShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Authentic Apple Paper Pull Tab Seal Strip */
.apple-seal-strip {
    position: relative;
    background: #14161d;
    border-top: 1.5px dashed rgba(255, 255, 255, 0.25);
    border-bottom: 1.5px dashed rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.apple-seal-strip::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: repeating-linear-gradient(to bottom, #22c55e 0px, #22c55e 4px, transparent 4px, transparent 8px);
}

.pull-tab {
    position: relative;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pull-tab:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.4);
}

.pull-tab::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: tabShimmer 2.2s infinite;
}

@keyframes tabShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Luxury Gold VIP Card */
.luxury-vip-card {
    background: radial-gradient(circle at 10% 10%, rgba(35, 30, 20, 0.95) 0%, rgba(15, 15, 18, 0.98) 100%);
    border: 1.5px solid rgba(245, 208, 97, 0.5);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 0 50px rgba(234, 179, 8, 0.25);
    position: relative;
    overflow: hidden;
}

.luxury-vip-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(245, 208, 97, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.gold-foil-text {
    background: linear-gradient(135deg, #ffffff 0%, #fff3c4 30%, #f5d061 60%, #d4a017 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #09090b;
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

/* Badge Glow */
.badge-hot {
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    color: white;
    box-shadow: 0 0 15px rgba(255, 75, 43, 0.4);
}

.badge-pro {
    background: linear-gradient(90deg, #c8a58c, #a87e60);
    color: #121214;
    box-shadow: 0 0 15px rgba(200, 165, 140, 0.4);
}

/* Hide scrollbar for category tabs */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 3D Product Cards */
.product-3d-card {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.25s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
}
.product-3d-card .product-3d-img-box {
    transform-style: preserve-3d;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-3d-card:hover .product-3d-img-box img {
    transform: translateZ(40px) scale(1.08);
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.85));
}
.product-3d-card .glare-reflection {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 1.5rem;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.product-3d-card:hover .glare-reflection {
    opacity: 1;
}

/* 3D Canvas Container */
#hero-3d-canvas-container canvas {
    outline: none;
    cursor: grab;
}
#hero-3d-canvas-container canvas:active {
    cursor: grabbing;
}

/* Custom Dark Dropdowns & Option Selectors */
select {
    color-scheme: dark !important;
    background-color: #18181b !important;
    color: #ffffff !important;
}

select option {
    background-color: #18181b !important;
    color: #ffffff !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
}

select option:hover,
select option:focus,
select option:active,
select option:checked {
    background-color: #27272a !important;
    color: #ffffff !important;
}

/* Dynamic Hero Background Styles */
.hero-aurora-bg {
    background: radial-gradient(circle at 20% 30%, rgba(94, 32, 43, 0.75) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(41, 151, 255, 0.6) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(200, 165, 140, 0.45) 0%, transparent 60%);
    filter: blur(65px);
    animation: auroraMove 14s ease-in-out infinite alternate;
}
@keyframes auroraMove {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.18) rotate(5deg); }
    100% { transform: scale(1) rotate(-4deg); }
}

/* Luxury Typography & Floating Buyer Badge */
.font-luxury-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-luxury-cinzel {
    font-family: 'Cinzel', serif;
}

.text-glow-gold {
    text-shadow: 0 0 10px rgba(245, 197, 66, 0.65), 0 0 20px rgba(245, 197, 66, 0.35);
}

.luxury-buyer-card {
    background: linear-gradient(135deg, rgba(14, 14, 16, 0.82) 0%, rgba(8, 8, 10, 0.88) 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7), 0 0 10px rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.luxury-buyer-card:hover {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.85), 0 0 16px rgba(245, 158, 11, 0.22);
}

/* Optical Illusion & Splash Screen Animations */
@keyframes vortexSpin {
    0% { transform: rotate(0deg) scale(0.95); opacity: 0.75; }
    50% { transform: rotate(180deg) scale(1.08); opacity: 0.95; }
    100% { transform: rotate(360deg) scale(0.95); opacity: 0.75; }
}

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

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

@keyframes laserSweep {
    0% { top: -10%; opacity: 0; }
    30% { opacity: 0.9; }
    70% { opacity: 0.9; }
    100% { top: 110%; opacity: 0; }
}

@keyframes floatGentle {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-8px) scale(1.02); }
}

.animate-vortex-spin {
    animation: vortexSpin 9s ease-in-out infinite alternate;
}

.animate-spin-slow {
    animation: spinSlow 14s linear infinite;
}

.animate-spin-reverse {
    animation: spinReverse 10s linear infinite;
}

.animate-laser-sweep {
    animation: laserSweep 2.4s ease-in-out infinite;
}

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

/* Mobile & iPad Drawer Active State */
#mobile-nav-drawer.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#mobile-nav-drawer.active #mobile-nav-content {
    transform: translateX(0) !important;
}

/* =====================================================================
   LUXURY RUNNING LED NEON BORDER (HIỆU ỨNG ĐÈN LED CHẠY VIỀN SIÊU MỎNG)
   ===================================================================== */
.led-border-glow,
.product-3d-card,
.led-card {
    position: relative;
    border-radius: 1.5rem !important;
    background: #0d0d10 !important;
    overflow: hidden;
    z-index: 1;
    isolation: isolate;
    border: none !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

/* Moving LED light beam rotating endlessly around the card */
.led-border-glow::before,
.product-3d-card::before,
.led-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 65deg,
        rgba(245, 158, 11, 0.8) 82deg,     /* Amber gold laser */
        #ffffff 90deg,                      /* Ultra intense LED tip */
        rgba(56, 189, 248, 0.9) 98deg,      /* Cyan electric flare */
        transparent 118deg,
        transparent 245deg,
        rgba(245, 158, 11, 0.6) 262deg,     /* Secondary golden pulse */
        #ffffff 270deg,
        rgba(168, 85, 247, 0.8) 278deg,     /* Purple cyber tip */
        transparent 298deg,
        transparent 360deg
    );
    animation: ledTraceSpin 4.5s linear infinite;
    z-index: 0;
    pointer-events: none;
}

/* Inner dark luxury surface leaving a crisp 1.5px LED border track */
.led-border-glow::after,
.product-3d-card::after,
.led-card::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    background: linear-gradient(160deg, #16161a 0%, #0c0c0e 100%);
    border-radius: calc(1.5rem - 1.5px);
    z-index: 1;
    pointer-events: none;
}

.led-border-glow > *,
.product-3d-card > *,
.led-card > * {
    position: relative;
    z-index: 2;
}

@keyframes ledTraceSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Hover glow reflection */
.led-border-glow:hover,
.product-3d-card:hover,
.led-card:hover {
    box-shadow: 0 12px 40px -8px rgba(245, 158, 11, 0.3), 0 0 25px -4px rgba(56, 189, 248, 0.25) !important;
}


