/* =========================================================
   LUDOPANDA PUBLIC-SITE STYLE MATCH V5.1
   Source reference: current ludopanda.com public/index.php.
   Uses the same visual constants, typography scale, radii,
   button hover behavior, card hover behavior and reveal timing.
   Loaded LAST to override earlier AAA experimentation.
   ========================================================= */

:root{
  --yellow:#FFD400;
  --yellow-2:#FFEA70;
  --gold:#D6A620;
  --ink:#070707;
  --ink-2:#101010;
  --ink-3:#171717;
  --line:rgba(255,255,255,.10);
  --muted:#A9A9A9;
  --white:#FFFFFF;
  --green:#69E38F;
  --red:#FF6B68;
  --radius-xl:34px;
  --radius-lg:25px;
  --radius-md:18px;
  --shadow:0 25px 80px rgba(0,0,0,.38);
}

/* Reset the previous experimental 3D look so the centers match the website. */
:is(.hero,.panel,.form-card,.content-card,.auth-card,.usage-card,.info-strip,.authority,
    .action-card,.service-card,.topic-card,.ticket-row,.order-card,
    .primary,.primary-btn,.secondary,.secondary-btn,.ghost,.ghost-btn,
    .back,.support-link,.back-page,.nav-btn,.balance-card){
  text-shadow:none !important;
}

html{scroll-behavior:smooth;background:var(--ink)!important}
body{
  margin:0;
  color:var(--white)!important;
  background:
    radial-gradient(circle at 14% 5%, rgba(255,212,0,.16), transparent 28%),
    radial-gradient(circle at 90% 28%, rgba(255,212,0,.08), transparent 22%),
    var(--ink)!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  line-height:1.5!important;
  overflow-x:hidden;
}
a{color:inherit}
button{font:inherit}

/* Website eyebrow */
.eyebrow{
  display:inline-flex!important;
  align-items:center!important;
  gap:9px!important;
  padding:8px 13px!important;
  border:1px solid rgba(255,212,0,.28)!important;
  border-radius:999px!important;
  background:rgba(255,212,0,.08)!important;
  color:var(--yellow)!important;
  font-size:.75rem!important;
  font-weight:900!important;
  letter-spacing:.11em!important;
  text-transform:uppercase!important;
  line-height:1!important;
}
.eyebrow::before{
  content:""!important;
  width:7px!important;
  height:7px!important;
  border-radius:50%!important;
  background:var(--yellow)!important;
  box-shadow:0 0 16px var(--yellow)!important;
  flex:0 0 auto;
}

/* Typography follows the public site, rather than the small utility-page scale. */
.hero h1,
.hero-copy h1,
.auth-card h1{
  font-size:clamp(3.5rem,7vw,7.25rem)!important;
  line-height:.87!important;
  margin:22px 0!important;
  letter-spacing:-.075em!important;
  font-weight:900!important;
}
.panel-head h2,
.section-head h2,
.page-title h2,
.content-card h2{
  font-size:clamp(2rem,4vw,3.5rem)!important;
  line-height:.98!important;
  letter-spacing:-.055em!important;
  font-weight:900!important;
}
.hero p,
.hero-copy>p,
.panel-subtitle,
.muted,
.content-card p{
  color:#BEBEBE!important;
  font-size:1rem!important;
  line-height:1.55!important;
}
.action-card strong,
.service-card strong,
.topic-card strong,
.ticket-row strong,
.order-card h3{
  font-size:1.15rem!important;
  line-height:1.05!important;
  letter-spacing:-.035em!important;
  font-weight:900!important;
}

/* Header copied to the website's glass/nav language. */
.topbar{
  min-height:76px!important;
  backdrop-filter:blur(22px)!important;
  -webkit-backdrop-filter:blur(22px)!important;
  background:rgba(7,7,7,.76)!important;
  border-bottom:1px solid rgba(255,255,255,.07)!important;
  box-shadow:none!important;
}
.brand{font-weight:1000!important;letter-spacing:-.03em!important;font-size:1.1rem!important}
.brand-mark,.mark{
  width:43px!important;
  height:43px!important;
  border-radius:14px!important;
  background:var(--yellow)!important;
  box-shadow:0 10px 30px rgba(255,212,0,.19)!important;
  border:0!important;
}

/* Website buttons: simple, bold, yellow/black, -2px hover. */
.primary,.primary-btn,.sticky-return,.link-card a{
  border:0!important;
  border-radius:14px!important;
  padding:13px 18px!important;
  min-height:48px!important;
  font-weight:900!important;
  font-size:.9rem!important;
  cursor:pointer;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  background:var(--yellow)!important;
  color:#111!important;
  box-shadow:0 15px 32px rgba(255,212,0,.18)!important;
  transform:none!important;
  transition:.2s ease!important;
  animation:none!important;
}
.secondary,.secondary-btn,.ghost,.ghost-btn,.back,.support-link,.back-page,.nav-btn{
  border-radius:14px!important;
  padding:12px 16px!important;
  min-height:44px!important;
  font-weight:850!important;
  font-size:.84rem!important;
  cursor:pointer;
  background:#171717!important;
  color:white!important;
  border:1px solid rgba(255,255,255,.10)!important;
  box-shadow:none!important;
  transform:none!important;
  transition:.2s ease!important;
}
@media(hover:hover) and (pointer:fine){
  .primary:hover,.primary-btn:hover,.sticky-return:hover,.link-card a:hover,
  .secondary:hover,.secondary-btn:hover,.ghost:hover,.ghost-btn:hover,
  .back:hover,.support-link:hover,.back-page:hover,.nav-btn:hover{
    transform:translateY(-2px)!important;
  }
}
.primary:active,.primary-btn:active,.sticky-return:active,.link-card a:active,
.secondary:active,.secondary-btn:active,.ghost:active,.ghost-btn:active,
.back:active,.support-link:active,.back-page:active,.nav-btn:active{
  transform:translateY(0) scale(.985)!important;
}

/* Website card language: #111, 28px, thin line, clean lift. */
.action-card,.service-card,.topic-card,.ticket-row,.order-card{
  min-height:150px!important;
  border:1px solid rgba(255,255,255,.09)!important;
  border-radius:28px!important;
  padding:22px!important;
  background:#111!important;
  position:relative;
  overflow:hidden!important;
  box-shadow:none!important;
  transform:none!important;
  transition:.25s ease!important;
}
.action-card::after,.service-card::after,.topic-card::after,
.ticket-row::after,.order-card::after{
  content:""!important;
  position:absolute!important;
  width:100px!important;
  height:100px!important;
  border-radius:50%!important;
  right:-33px!important;
  bottom:-38px!important;
  background:rgba(255,255,255,.055)!important;
  filter:none!important;
  opacity:1!important;
  z-index:0!important;
  pointer-events:none!important;
}
.action-card>*,
.service-card>*,
.topic-card>*,
.ticket-row>*,
.order-card>*{
  position:relative;
  z-index:1;
}
@media(hover:hover) and (pointer:fine){
  .action-card:hover,.service-card:hover,.topic-card:hover,.ticket-row:hover,.order-card:hover{
    transform:translateY(-7px)!important;
    border-color:rgba(255,212,0,.38)!important;
    box-shadow:none!important;
    filter:none!important;
  }
}

/* The same bold colored artwork feel used in website game cards. */
.action-card .icon,.service-icon,.topic-icon{
  width:54px!important;
  height:54px!important;
  border-radius:16px!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(145deg,#342900,#D4A900)!important;
  border:0!important;
  box-shadow:none!important;
  color:white!important;
  font-size:1.6rem!important;
}
.actions-grid>*:nth-child(2) .icon,
.service-grid>*:nth-child(2) .service-icon,
.card-grid>*:nth-child(2) .topic-icon{
  background:linear-gradient(145deg,#5A3000,#D57600)!important;
}
.actions-grid>*:nth-child(3) .icon,
.service-grid>*:nth-child(3) .service-icon,
.card-grid>*:nth-child(3) .topic-icon{
  background:linear-gradient(145deg,#052D34,#087B88)!important;
}
.actions-grid>*:nth-child(4) .icon,
.service-grid>*:nth-child(4) .service-icon,
.card-grid>*:nth-child(4) .topic-icon{
  background:linear-gradient(145deg,#35102F,#901B77)!important;
}

/* Panels match website leaderboard / winners shells. */
.panel,.form-card,.content-card,.auth-card,.usage-card,.info-strip,.authority{
  background:#111!important;
  border:1px solid rgba(255,255,255,.09)!important;
  border-radius:28px!important;
  box-shadow:var(--shadow)!important;
  transform:none!important;
}
.panel{padding:24px!important}

/* Hero: website-like dark hero, not utility yellow box. */
.hero{
  background:
    radial-gradient(circle at 80% 16%,rgba(255,212,0,.18),transparent 28%),
    linear-gradient(145deg,#151515,#0b0b0b)!important;
  color:white!important;
  border:1px solid rgba(255,255,255,.09)!important;
  border-radius:34px!important;
  padding:34px!important;
  box-shadow:var(--shadow)!important;
  transform:none!important;
}
.hero .eyebrow{color:var(--yellow)!important}
.hero p{color:#C6C6C6!important}

/* Public-site style yellow feature block for wallet/balance. */
.balance-card{
  background:linear-gradient(145deg,#FFE568,#F9B900)!important;
  color:#111!important;
  border:0!important;
  border-radius:28px!important;
  transform:rotate(2deg)!important;
  box-shadow:0 35px 70px rgba(0,0,0,.42)!important;
  animation:none!important;
}
.balance-card strong{
  font-size:clamp(1.8rem,5vw,3rem)!important;
  letter-spacing:-.06em!important;
}

/* Website active/filter tabs. */
.nav-btn.active,.choice-row button.active{
  background:var(--yellow)!important;
  color:#111!important;
  border-color:transparent!important;
  box-shadow:0 10px 22px rgba(255,212,0,.14)!important;
}

/* Website form density. */
input,select,textarea{
  min-height:50px!important;
  border-radius:14px!important;
  background:#171717!important;
  color:white!important;
  border:1px solid rgba(255,255,255,.10)!important;
  box-shadow:none!important;
  font-size:.9rem!important;
}
input:focus,select:focus,textarea:focus{
  border-color:rgba(255,212,0,.45)!important;
  box-shadow:0 0 0 3px rgba(255,212,0,.08)!important;
}

/* PandaBot follows the public website chat palette. */
.pandabot-card{
  background:#121212!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:22px!important;
  box-shadow:var(--shadow)!important;
  animation:none!important;
}
.panda-avatar{
  background:var(--yellow)!important;
  color:#111!important;
  border-radius:14px!important;
}

/* Website reveal system. */
.lp-site-reveal{
  opacity:0!important;
  transform:translateY(20px)!important;
  transition:
    opacity .65s ease var(--lp-reveal-delay,0ms),
    transform .65s ease var(--lp-reveal-delay,0ms)!important;
}
.lp-site-reveal.lp-site-visible{
  opacity:1!important;
  transform:none!important;
}

/* Pointer-local aura copied from the website's card-local-light concept. */
.lp-site-card-aura{
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  pointer-events:none!important;
  border-radius:inherit!important;
  background:
    radial-gradient(
      circle 190px at var(--lp-card-x,50%) var(--lp-card-y,50%),
      rgba(255,212,0,.10),
      transparent 68%
    )!important;
  opacity:.0!important;
  transition:opacity .25s ease!important;
}
@media(hover:hover) and (pointer:fine){
  .action-card:hover>.lp-site-card-aura,
  .service-card:hover>.lp-site-card-aura,
  .topic-card:hover>.lp-site-card-aura,
  .ticket-row:hover>.lp-site-card-aura,
  .order-card:hover>.lp-site-card-aura{
    opacity:1!important;
  }
}

/* Website PandaPay premium motion, mapped to the center balance card. */
.balance-card.lp-site-wallet-motion{
  --lp-pp-rx:0deg;
  --lp-pp-ry:0deg;
  --lp-pp-scale:1;
  transform-style:preserve-3d!important;
  transform:
    perspective(1200px)
    rotateX(var(--lp-pp-rx))
    rotateY(var(--lp-pp-ry))
    rotateZ(2deg)
    scale(var(--lp-pp-scale))!important;
  transition:
    transform .18s ease-out,
    box-shadow .3s ease!important;
  will-change:transform;
}
.balance-card.lp-site-wallet-motion.lp-site-pointer-active{
  --lp-pp-scale:1.012;
  box-shadow:
    0 34px 78px rgba(0,0,0,.4),
    0 10px 38px rgba(255,205,0,.075)!important;
}
.lp-site-card-reflection{
  position:absolute!important;
  z-index:20!important;
  inset:0!important;
  pointer-events:none!important;
  opacity:var(--lp-pp-reflection-opacity,.18)!important;
  border-radius:inherit!important;
  background:
    radial-gradient(
      circle at var(--lp-pp-shine-x,72%) var(--lp-pp-shine-y,28%),
      rgba(255,255,255,.43) 0%,
      rgba(255,247,176,.17) 12%,
      transparent 37%
    )!important;
  mix-blend-mode:soft-light!important;
  transition:opacity .28s ease!important;
}
.lp-site-card-sweep{
  position:absolute!important;
  z-index:21!important;
  top:-80%!important;
  bottom:-80%!important;
  left:-38%!important;
  width:19%!important;
  pointer-events:none!important;
  opacity:0;
  transform:skewX(-17deg) translateX(-280%);
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.06),
      rgba(255,251,211,.35),
      rgba(255,255,255,.06),
      transparent
    )!important;
  filter:blur(1px);
  animation:lpSitePandaPaySweep 6.8s ease-in-out infinite;
}
@keyframes lpSitePandaPaySweep{
  0%,28%{opacity:0;transform:skewX(-17deg) translateX(-280%)}
  38%{opacity:.86}
  62%{opacity:.45}
  76%,100%{opacity:0;transform:skewX(-17deg) translateX(920%)}
}

/* Mobile values copied from the website's <=720px behavior. */
@media(max-width:720px){
  .topbar{min-height:68px!important}
  .hero h1,.hero-copy h1,.auth-card h1{
    font-size:clamp(3.3rem,17vw,5.2rem)!important;
  }
  .panel-head h2,.section-head h2,.page-title h2,.content-card h2{
    font-size:clamp(2rem,10vw,3.1rem)!important;
  }
  .hero{padding:26px 22px!important}
  .panel{padding:20px!important}
  .action-card,.service-card,.topic-card{
    min-height:138px!important;
    padding:18px!important;
  }
  .balance-card{
    transform:none!important;
  }
  .balance-card.lp-site-wallet-motion{
    transform:
      perspective(1200px)
      rotateX(var(--lp-pp-rx))
      rotateY(var(--lp-pp-ry))
      scale(var(--lp-pp-scale))!important;
  }
}

/* Disable older experimental constant movement so V5 feels like the website. */
.pandabot-card{animation:none!important}
.hero::after{animation:none!important}
.primary,.primary-btn,.sticky-return{animation:none!important}

@media(prefers-reduced-motion:reduce){
  .lp-site-reveal{
    opacity:1!important;
    transform:none!important;
    transition:none!important;
  }
  .lp-site-card-sweep{display:none!important}
}
/* END LUDOPANDA PUBLIC-SITE STYLE MATCH V5 */

/* V5.1 current-source merge: legacy Motion/Depth/V3 layers are intentionally unlinked. */
