/* ==========================================================================
   DJ SHOP INDO — Flagship 3D Spatial & Tactile Glass Design System (v3.0)
   Ultra-clean volumetric depth, frosted glassmorphism, perspective grid,
   specular lighting, and pressable 3D micro-interactions.
   ========================================================================== */

:root {
  --dj3d-font-display: 'Plus Jakarta Sans', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --dj3d-font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --dj3d-cyan: #00d4ff;
  --dj3d-blue: #0a7cff;
  --dj3d-indigo: #5b5cff;
  --dj3d-emerald: #00e599;
  --dj3d-gold: #f5b935;
  --dj3d-surface-3d: linear-gradient(165deg, #ffffff 0%, #f8fbff 100%);
  --dj3d-shadow-card:
    0 2px 4px rgba(6, 18, 38, .04),
    0 12px 28px -8px rgba(6, 18, 38, .09),
    0 24px 48px -18px rgba(10, 124, 255, .10),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  --dj3d-shadow-card-hover:
    0 4px 10px rgba(6, 18, 38, .06),
    0 22px 44px -12px rgba(6, 18, 38, .16),
    0 32px 64px -20px rgba(10, 124, 255, .20),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  --dj3d-shadow-dark-3d:
    0 24px 64px -16px rgba(2, 8, 22, .65),
    0 8px 24px -8px rgba(0, 212, 255, .16),
    inset 0 1px 0 rgba(255, 255, 255, .18);
  --dj3d-btn-3d:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    inset 0 -3px 0 rgba(4, 22, 54, .28),
    0 10px 24px -6px rgba(10, 124, 255, .44);
  --dj3d-btn-3d-hover:
    inset 0 1px 0 rgba(255, 255, 255, .52),
    inset 0 -3px 0 rgba(4, 22, 54, .32),
    0 16px 34px -6px rgba(0, 180, 255, .55);
}

/* Crisp typography upgrade */
h1, h2, h3, h4, .brand, .section-head h2 {
  font-family: var(--dj3d-font-display) !important;
  letter-spacing: -0.028em;
}

/* Soft atmospheric background depth on light pages */
body {
  background-attachment: fixed;
}

/* ---------- Floating 3D Ambient Orbs & Perspective Grid ---------- */
@keyframes dj3dFloatSlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -18px, 0) scale(1.04); }
}

@keyframes dj3dFloatAlt {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(14px, 14px, 0) rotate(6deg); }
}

@keyframes dj3dShimmer {
  0% { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(220%) skewX(-18deg); }
}

@keyframes dj3dPulseGlow {
  0%, 100% { opacity: .65; }
  50% { opacity: 1; }
}

.dj3d-ambient-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.dj3d-grid-plane {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -45%;
  height: 92%;
  background-image:
    linear-gradient(rgba(0, 212, 255, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, .11) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(680px) rotateX(64deg);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0, 0, 0, .75), transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0, 0, 0, .75), transparent 82%);
  opacity: .55;
}

.dj3d-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(54px);
  pointer-events: none;
}

.dj3d-orb-cyan {
  width: 340px;
  height: 340px;
  top: -80px;
  right: 8%;
  background: radial-gradient(circle, rgba(0, 212, 255, .36) 0%, rgba(10, 124, 255, .08) 60%, transparent 75%);
  animation: dj3dFloatSlow 9s ease-in-out infinite;
}

.dj3d-orb-violet {
  width: 300px;
  height: 300px;
  bottom: -90px;
  left: 6%;
  background: radial-gradient(circle, rgba(124, 92, 255, .32) 0%, rgba(10, 124, 255, .06) 60%, transparent 75%);
  animation: dj3dFloatAlt 12s ease-in-out infinite;
}

/* Ensure hero content always sits cleanly above 3D ambient plane */
.hero,
.catalog-hero,
.login-page {
  position: relative;
  overflow: hidden;
}

.hero,
.catalog-hero {
  box-shadow: var(--dj3d-shadow-dark-3d) !important;
}

.hero > *:not(.dj3d-ambient-layer),
.catalog-hero > *:not(.dj3d-ambient-layer),
.login-page > *:not(.dj3d-ambient-layer) {
  position: relative;
  z-index: 2;
}

/* ---------- 3D Glassmorphic Topbar & Brand Logo Cube ---------- */
.topbar {
  backdrop-filter: blur(22px) saturate(175%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(175%) !important;
  box-shadow:
    0 12px 32px -10px rgba(6, 18, 38, .12),
    inset 0 1px 0 rgba(255, 255, 255, .45) !important;
  transition: box-shadow .25s ease, transform .25s ease;
}

.brand-logo-wrap {
  box-shadow:
    0 8px 20px rgba(0, 212, 255, .24),
    inset 0 1px 1px rgba(255, 255, 255, .45),
    inset 0 -2px 0 rgba(0, 0, 0, .25) !important;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
}

.brand:hover .brand-logo-wrap {
  transform: translateY(-2px) rotate(-4deg) scale(1.05);
  box-shadow:
    0 12px 26px rgba(0, 212, 255, .42),
    inset 0 1px 1px rgba(255, 255, 255, .6) !important;
}

/* ---------- 3D Hero Glass Feature Pills ---------- */
.hero-point {
  background: linear-gradient(155deg, rgba(18, 44, 78, .78) 0%, rgba(8, 22, 42, .68) 100%) !important;
  border: 1px solid rgba(135, 205, 255, .24) !important;
  box-shadow:
    0 14px 30px -12px rgba(2, 8, 20, .6),
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -2px 0 rgba(0, 0, 0, .3) !important;
  backdrop-filter: blur(14px);
  transition: transform .26s cubic-bezier(.22, 1, .36, 1), border-color .26s ease, box-shadow .26s ease;
}

.hero-point:hover {
  transform: translateY(-4px) translateZ(8px);
  border-color: rgba(0, 212, 255, .52) !important;
  box-shadow:
    0 20px 36px -12px rgba(0, 212, 255, .28),
    inset 0 1px 0 rgba(255, 255, 255, .26) !important;
}

.hero-point-icon {
  box-shadow:
    0 8px 18px rgba(0, 212, 255, .22),
    inset 0 1px 1px rgba(255, 255, 255, .32) !important;
}

/* ---------- Volumetric 3D Porcelain Cards (Light Surface) ---------- */
.feat-card,
.step,
.faq-item,
.stat,
.product,
.product-card,
.catalog-card,
.card,
.filter-panel,
.member-card,
.free-card,
.read-first,
.policy-box,
.checkout-card,
.summary-card,
.order-card,
.profile-card,
.success-card,
.panel:not(.panel-dark) {
  position: relative;
  background: var(--dj3d-surface-3d);
  border-bottom-width: 3px !important;
  border-bottom-color: rgba(15, 42, 78, .12) !important;
  box-shadow: var(--dj3d-shadow-card) !important;
  transform-style: preserve-3d;
  transition:
    transform .32s cubic-bezier(.22, 1, .36, 1),
    box-shadow .32s cubic-bezier(.22, 1, .36, 1),
    border-color .28s ease !important;
}

.panel-dark {
  position: relative;
  box-shadow: var(--dj3d-shadow-dark-3d) !important;
  border-bottom: 3px solid rgba(0, 212, 255, .28) !important;
}

.feat-card:hover,
.step:hover,
.faq-item:hover,
.stat:hover,
.product-card:hover,
.catalog-card:hover,
.card:hover,
.free-card:hover {
  box-shadow: var(--dj3d-shadow-card-hover) !important;
  border-color: rgba(10, 124, 255, .36) !important;
  border-bottom-color: rgba(10, 124, 255, .42) !important;
}

/* Dynamic Cursor Specular Glare Layer (activated by djshop-3d.js) */
.dj3d-tilt {
  position: relative;
  will-change: transform;
}

.dj3d-tilt::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity .3s ease;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 35%),
    rgba(255, 255, 255, .28),
    rgba(0, 212, 255, .07) 35%,
    transparent 65%
  );
}

.dj3d-tilt.dj3d-active::before {
  opacity: 1;
}

/* Step Number 3D Cube */
.step-number {
  background: linear-gradient(145deg, #0b2444 0%, #051022 100%) !important;
  box-shadow:
    0 12px 24px -6px rgba(6, 20, 42, .42),
    inset 0 1px 1px rgba(0, 212, 255, .45),
    inset 0 -3px 0 rgba(0, 0, 0, .4) !important;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}

.step:hover .step-number {
  transform: translateY(-3px) scale(1.07) rotate(-4deg);
}

/* Featured & Catalog Thumbnails 3D Depth */
.feat-thumb,
.card-thumb,
.card-img,
.product-thumb {
  position: relative;
  overflow: hidden;
}

.feat-thumb img,
.card-thumb img,
.card-img img,
.product-thumb img {
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

.feat-card:hover .feat-thumb img,
.product-card:hover .card-thumb img,
.catalog-card:hover .card-thumb img,
.card:hover .card-img img {
  transform: scale(1.06);
}

.feat-badge,
.card-badge,
.price-badge {
  backdrop-filter: blur(12px);
  box-shadow:
    0 6px 18px rgba(4, 12, 24, .36),
    inset 0 1px 0 rgba(255, 255, 255, .28) !important;
}

/* ---------- 3D Floating Auth Cards (Homepage Login, Login, Register, Verify, Error) ---------- */
.login-card,
.login-box,
.reg-box,
.status-box,
.err-card,
.nf-card {
  position: relative;
  background: linear-gradient(165deg, rgba(255, 255, 255, .98) 0%, rgba(244, 249, 255, .96) 100%) !important;
  border: 1px solid rgba(190, 218, 248, .92) !important;
  border-bottom: 4px solid rgba(10, 124, 255, .24) !important;
  box-shadow:
    0 34px 80px -18px rgba(3, 10, 24, .52),
    0 12px 30px -10px rgba(0, 212, 255, .18),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;
  backdrop-filter: blur(22px);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}

/* ---------- 3D Recessed Inputs with Spatial Focus Halo ---------- */
.field input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="search"],
select,
textarea {
  box-shadow: inset 0 2px 5px rgba(8, 22, 42, .05);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}

.field input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
  border-color: var(--dj3d-blue) !important;
  box-shadow:
    0 0 0 4px rgba(10, 124, 255, .15),
    0 8px 20px -8px rgba(10, 124, 255, .24),
    inset 0 1px 2px rgba(10, 124, 255, .05) !important;
  outline: none;
}

/* ---------- Tactile 3D Pressable Buttons + Specular Sheen Sweep ---------- */
.btn-primary,
.login-btn,
.login-page .btn:not(.btn-google):not(.btn-secondary),
.feat-cta,
.download:not(.locked),
.vip-coupon-btn,
.vip-gate-submit,
.bonus-tut-trigger-btn,
.winrar-btn,
.btn-buy,
.btn-free,
.btn-coupon,
.coupon-apply-btn,
.btn-submit,
.submit-btn,
.cta-primary {
  position: relative;
  overflow: hidden;
  box-shadow: var(--dj3d-btn-3d) !important;
  transition:
    transform .22s cubic-bezier(.22, 1, .36, 1),
    box-shadow .22s ease,
    filter .22s ease !important;
}

.btn-primary::after,
.login-btn::after,
.login-page .btn:not(.btn-google):not(.btn-secondary)::after,
.feat-cta::after,
.download:not(.locked)::after,
.vip-coupon-btn::after,
.bonus-tut-trigger-btn::after,
.btn-buy::after,
.btn-free::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .36), transparent);
  transform: translateX(-140%) skewX(-20deg);
  pointer-events: none;
}

.btn-primary:hover::after,
.login-btn:hover::after,
.login-page .btn:not(.btn-google):not(.btn-secondary):hover::after,
.feat-cta:hover::after,
.download:not(.locked):hover::after,
.vip-coupon-btn:hover::after,
.bonus-tut-trigger-btn:hover::after,
.btn-buy:hover::after,
.btn-free:hover::after {
  animation: dj3dShimmer .75s ease forwards;
}

.btn-primary:hover,
.login-btn:hover,
.login-page .btn:not(.btn-google):not(.btn-secondary):hover,
.feat-cta:hover,
.download:not(.locked):hover,
.vip-coupon-btn:hover,
.vip-gate-submit:hover,
.bonus-tut-trigger-btn:hover,
.winrar-btn:hover,
.btn-buy:hover,
.btn-free:hover,
.btn-coupon:hover,
.coupon-apply-btn:hover,
.btn-submit:hover {
  transform: translateY(-2.5px) !important;
  box-shadow: var(--dj3d-btn-3d-hover) !important;
  filter: brightness(1.04);
}

.btn-primary:active,
.login-btn:active,
.login-page .btn:not(.btn-google):not(.btn-secondary):active,
.feat-cta:active,
.download:not(.locked):active,
.vip-coupon-btn:active,
.vip-gate-submit:active,
.bonus-tut-trigger-btn:active,
.btn-buy:active,
.btn-free:active {
  transform: translateY(1px) scale(.985) !important;
  box-shadow:
    inset 0 2px 6px rgba(4, 22, 54, .34),
    0 4px 12px rgba(10, 124, 255, .28) !important;
}

.btn-google-auth,
.btn-outline,
.watch-guide-btn,
.free-btn,
.nav-btn.ghost {
  box-shadow:
    0 4px 12px -4px rgba(6, 18, 38, .12),
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 -2px 0 rgba(10, 32, 62, .08) !important;
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease, border-color .22s ease !important;
}

.btn-google-auth:hover,
.btn-outline:hover,
.watch-guide-btn:hover,
.free-btn:hover,
.nav-btn.ghost:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 24px -8px rgba(10, 124, 255, .22),
    inset 0 1px 0 rgba(255, 255, 255, .95) !important;
}

/* ---------- Holographic 3D VIP Coupon Tickets & Cinema Stage ---------- */
.vip-coupon-card {
  box-shadow:
    0 28px 60px -16px rgba(4, 14, 30, .46),
    0 0 0 1px rgba(0, 229, 153, .22),
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -4px 0 rgba(0, 0, 0, .35) !important;
  overflow: hidden;
}

.vip-coupon-card.follow-theme {
  box-shadow:
    0 28px 60px -16px rgba(18, 12, 56, .52),
    0 0 0 1px rgba(167, 139, 250, .28),
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -4px 0 rgba(0, 0, 0, .38) !important;
}

.vip-coupon-ticket,
.vip-gate-box {
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 2px 12px rgba(0, 0, 0, .42),
    0 12px 28px -10px rgba(0, 0, 0, .35) !important;
}

.vip-code-val {
  text-shadow: 0 0 18px rgba(0, 229, 153, .45);
}

.vip-coupon-card.follow-theme .vip-code-val {
  text-shadow: 0 0 18px rgba(196, 181, 253, .48);
}

.cinema-guide-stage,
.attention-modal-dialog {
  box-shadow:
    0 30px 70px -15px rgba(2, 8, 22, .62),
    0 0 40px -12px rgba(0, 200, 248, .28),
    inset 0 1px 0 rgba(255, 255, 255, .18) !important;
}

.cinema-video-frame,
.attention-video-box {
  box-shadow:
    0 18px 42px rgba(0, 0, 0, .58),
    0 0 0 1px rgba(0, 212, 255, .3) !important;
}

.cinema-step-chip {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 4px 12px rgba(0, 0, 0, .25);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.cinema-step-chip:hover {
  transform: translateY(-2px);
}

/* ---------- 3D Meta Pills & Countdown ---------- */
.meta-item {
  background: linear-gradient(160deg, #ffffff 0%, #f1f7fd 100%) !important;
  box-shadow:
    0 4px 12px -4px rgba(8, 24, 48, .06),
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -2px 0 rgba(15, 42, 78, .06) !important;
}

.countdown {
  box-shadow:
    0 8px 20px -8px rgba(6, 116, 161, .16),
    inset 0 1px 0 rgba(255, 255, 255, .9) !important;
}

/* ---------- Progressive 3D Scroll Reveal (Never hides without JS) ---------- */
.dj3d-reveal-ready {
  opacity: 0;
  transform: translateY(20px) scale(.985);
  transition: opacity .55s cubic-bezier(.22, 1, .36, 1), transform .55s cubic-bezier(.22, 1, .36, 1);
}

.dj3d-reveal-ready.dj3d-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- Mobile & Reduced-Motion Safety ---------- */
@media (max-width: 760px) {
  .dj3d-grid-plane { opacity: .28; }
  .dj3d-orb { filter: blur(42px); opacity: .65; }
  .feat-card:hover,
  .step:hover,
  .stat:hover,
  .product-card:hover,
  .catalog-card:hover {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dj3d-orb,
  .dj3d-reveal-ready,
  .btn-primary::after,
  .feat-cta::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
