/* =====================================================================
   VCC Premium layer — depth, lighting and 3D finish.
   Loaded after app.css. Pure CSS; motion respects prefers-reduced-motion.
   ===================================================================== */
:root{
  --rim:linear-gradient(135deg,rgba(255,244,214,.95),rgba(217,180,94,.55) 30%,rgba(255,255,255,.15) 55%,rgba(217,180,94,.7) 80%,rgba(255,244,214,.9));
  --depth-1:0 1px 0 rgba(255,255,255,.9) inset,0 -1px 0 rgba(42,16,64,.04) inset,0 1px 2px rgba(42,16,64,.06),0 6px 16px -6px rgba(42,16,64,.12);
  --depth-2:0 1px 0 rgba(255,255,255,.95) inset,0 2px 4px rgba(42,16,64,.05),0 14px 30px -10px rgba(42,16,64,.22),0 30px 60px -30px rgba(75,29,122,.25);
  --depth-hero:0 1px 0 rgba(255,255,255,.28) inset,0 -18px 40px -20px rgba(0,0,0,.45) inset,0 22px 40px -16px rgba(42,16,64,.55),0 46px 80px -40px rgba(75,29,122,.55);
}

/* ---------- Ambient backdrop ---------- */
body:not(.admin){
  background:
    radial-gradient(900px 520px at 85% -10%,rgba(217,180,94,.16),transparent 60%),
    radial-gradient(800px 600px at -10% 10%,rgba(116,64,176,.16),transparent 60%),
    radial-gradient(700px 500px at 50% 110%,rgba(194,105,62,.08),transparent 60%),
    linear-gradient(180deg,#FCF8F1 0%,#F7F0E6 100%);
  background-attachment:fixed;
}
.topbar{background:linear-gradient(rgba(252,248,241,.92) 65%,rgba(252,248,241,0));backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.brand img{box-shadow:0 1px 0 rgba(255,255,255,.6) inset,0 6px 14px -4px rgba(75,29,122,.5);transform:translateZ(0)}
.icon-btn{background:linear-gradient(180deg,#fff,#F7F2FC);box-shadow:var(--depth-1);border-color:#EDE4F6}

/* ---------- Hero: layered glass with gold rim + 3D tilt ---------- */
.hero{
  background:
    radial-gradient(120% 90% at 100% 0%,rgba(243,213,140,.28),transparent 45%),
    radial-gradient(90% 80% at 0% 100%,rgba(148,104,204,.45),transparent 55%),
    linear-gradient(150deg,#7B45BA 0%,#56228C 38%,#3A1564 70%,#24093D 100%);
  box-shadow:var(--depth-hero);
  border:1px solid transparent;
  background-clip:padding-box;
  transform-style:preserve-3d;
  transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s;
  will-change:transform;
}
.hero > *:not(.art):not(.sheen){position:relative;z-index:1}
/* gold rim */
.hero::before{
  content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1.2px;z-index:0;pointer-events:none;
  background:var(--rim);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;
}
/* glossy specular sheen */
.hero .sheen{position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;overflow:hidden}
.hero .sheen::before{content:"";position:absolute;left:-30%;top:-60%;width:120%;height:90%;background:radial-gradient(closest-side,rgba(255,255,255,.22),rgba(255,255,255,0));transform:rotate(-12deg)}
.hero .sheen::after{content:"";position:absolute;top:0;bottom:0;width:40%;left:-60%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.14),transparent);animation:sweep 6.5s ease-in-out infinite 1.5s}
@keyframes sweep{0%,70%{left:-60%}100%{left:130%}}
.hero .art{transform:translateZ(40px);filter:drop-shadow(0 18px 18px rgba(10,0,25,.45)) drop-shadow(0 2px 2px rgba(0,0,0,.25));animation:hover3d 5s ease-in-out infinite}
@keyframes hover3d{0%,100%{transform:translate3d(0,0,40px) rotate(-2deg)}50%{transform:translate3d(0,-7px,40px) rotate(2deg)}}
.hero .amount{text-shadow:0 2px 0 rgba(0,0,0,.18),0 10px 24px rgba(0,0,0,.25);background:linear-gradient(180deg,#fff 30%,#F6E7C2);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero .label{color:#F3D98F;text-shadow:0 1px 0 rgba(0,0,0,.25)}
.hero .gold-line{height:1.5px;background:linear-gradient(90deg,rgba(243,213,140,0),rgba(243,213,140,.9),rgba(243,213,140,0));box-shadow:0 0 10px rgba(243,213,140,.45)}
.pill{background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,.08));border:1px solid rgba(255,255,255,.3);box-shadow:0 1px 0 rgba(255,255,255,.35) inset,0 6px 14px -6px rgba(0,0,0,.4)}

/* ---------- Cards: soft glass with top light ---------- */
.card,.announcement,.tier-card,.quick a,.promo,.wa-row{box-shadow:var(--depth-1)}
.card{background:linear-gradient(180deg,#FFFFFF 0%,#FDFBFF 100%);border-color:#EEE6F6}
.card.gold-trim{border:1px solid transparent;background:linear-gradient(#fff,#FFFDF8) padding-box,linear-gradient(135deg,#F3DFA8,#E9DDF6 40%,#F1DDA3 100%) border-box;box-shadow:var(--depth-2)}
.card.gold-trim::before{height:3px;inset:0 28px auto;border-radius:0 0 3px 3px;background:var(--grad-gold);box-shadow:0 2px 10px rgba(217,180,94,.55)}
a.card,.task,.tier-card,.quick a,.promo,.announcement{transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s}
@media (hover:hover){
  a.card:hover,.tier-card:hover,.quick a:hover,.promo:hover{transform:translateY(-3px);box-shadow:var(--depth-2)}
}
a.card:active,.quick a:active,.promo:active{transform:translateY(1px) scale(.99)}

/* ---------- Quick actions: 3D squircle tiles ---------- */
.quick a{background:linear-gradient(180deg,#fff,#FBF8FE);border-color:#EEE6F6;border-radius:20px}
.quick a span.q{
  width:44px;height:44px;border-radius:15px;position:relative;
  background:linear-gradient(145deg,#B48BE6,#6A34A8);color:#fff;
  box-shadow:0 1px 0 rgba(255,255,255,.55) inset,0 -3px 6px rgba(42,16,64,.35) inset,0 8px 14px -6px rgba(75,29,122,.65);
}
.quick a span.q::after{content:"";position:absolute;left:6px;right:6px;top:3px;height:40%;border-radius:12px 12px 20px 20px;background:linear-gradient(rgba(255,255,255,.45),rgba(255,255,255,0))}
.quick a span.q .i{position:relative;z-index:1;filter:drop-shadow(0 1px 1px rgba(0,0,0,.25))}
.quick a:nth-child(2) span.q{background:linear-gradient(145deg,#F8E2A6,#C08F33);color:#4A2E05;box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 -3px 6px rgba(120,80,10,.35) inset,0 8px 14px -6px rgba(165,122,44,.7)}
.quick a:nth-child(3) span.q{background:linear-gradient(145deg,#A9C98E,#4E6E3B);box-shadow:0 1px 0 rgba(255,255,255,.55) inset,0 -3px 6px rgba(30,50,20,.35) inset,0 8px 14px -6px rgba(78,110,59,.65)}
.quick a:nth-child(4) span.q{background:linear-gradient(145deg,#F2AE86,#B9552C);box-shadow:0 1px 0 rgba(255,255,255,.55) inset,0 -3px 6px rgba(90,30,10,.35) inset,0 8px 14px -6px rgba(185,85,44,.65)}

/* generic icon chips get the same lighting */
.tx-icon,.menu-row .ic,.announcement .ic{box-shadow:0 1px 0 rgba(255,255,255,.85) inset,0 -2px 4px rgba(42,16,64,.08) inset,0 4px 10px -4px rgba(42,16,64,.18)}
.tx-icon.in{background:linear-gradient(145deg,#ECF8F1,#CFEBDD)}
.tx-icon.out{background:linear-gradient(145deg,#FDF0E8,#F6D3BF)}

/* ---------- Buttons: embossed & pressable ---------- */
.btn{position:relative;overflow:hidden;isolation:isolate}
.btn-primary{
  background:linear-gradient(180deg,#8250C4 0%,#5A2694 55%,#45197A 100%);
  box-shadow:0 1px 0 rgba(255,255,255,.35) inset,0 -2px 0 rgba(0,0,0,.18) inset,0 3px 0 #2E0F52,0 10px 20px -6px rgba(75,29,122,.55);
  text-shadow:0 1px 0 rgba(0,0,0,.25);
}
.btn-gold{
  background:linear-gradient(180deg,#FBEBC0 0%,#E3BE6A 45%,#B98A35 100%);
  box-shadow:0 1px 0 rgba(255,255,255,.8) inset,0 -2px 0 rgba(120,80,10,.22) inset,0 3px 0 #8A6424,0 10px 22px -6px rgba(165,122,44,.6);
  text-shadow:0 1px 0 rgba(255,255,255,.45);
}
.btn-primary:active,.btn-gold:active{transform:translateY(3px);box-shadow:0 1px 0 rgba(255,255,255,.3) inset,0 0 0 transparent,0 4px 10px -4px rgba(42,16,64,.4)}
.btn-gold::after,.btn-primary::after{content:"";position:absolute;top:0;bottom:0;width:36%;left:-50%;z-index:-1;background:linear-gradient(100deg,transparent,rgba(255,255,255,.38),transparent);transform:skewX(-18deg);transition:left .7s}
@media (hover:hover){.btn-gold:hover::after,.btn-primary:hover::after{left:120%}}
.btn-gold{animation:goldPulse 4s ease-in-out infinite}
@keyframes goldPulse{0%,100%{filter:none}50%{filter:brightness(1.05) saturate(1.08)}}
.btn-ghost,.btn-soft{box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 2px 0 #E6DCF0,0 6px 14px -8px rgba(42,16,64,.25)}
.btn-ghost:active,.btn-soft:active{transform:translateY(2px);box-shadow:0 1px 0 rgba(255,255,255,.9) inset}
.btn-glass{box-shadow:0 1px 0 rgba(255,255,255,.35) inset,0 8px 18px -10px rgba(0,0,0,.5)}
.btn[disabled]{animation:none;filter:grayscale(.35)}

/* ---------- Inputs: inset well ---------- */
.input,.input-group{background:linear-gradient(180deg,#FBF9FD,#fff);box-shadow:0 2px 3px rgba(42,16,64,.06) inset,0 1px 0 rgba(255,255,255,.9)}
.input-group .input{background:transparent}
.input:focus,.input-group:focus-within{box-shadow:0 2px 3px rgba(42,16,64,.05) inset,0 0 0 4px rgba(148,104,204,.18)}
.choice input:checked + .opt{background:linear-gradient(180deg,#FBF7FF,#F2EAFC);box-shadow:0 0 0 3px rgba(148,104,204,.18),0 10px 20px -10px rgba(75,29,122,.45);transform:translateY(-1px)}
.coin-badge{box-shadow:0 1px 0 rgba(255,255,255,.6) inset,0 -3px 5px rgba(0,0,0,.25) inset,0 6px 12px -4px rgba(0,0,0,.35);text-shadow:0 1px 0 rgba(0,0,0,.25)}

/* ---------- Progress: glossy tube ---------- */
.progress{height:12px;background:linear-gradient(180deg,#E9DFF5,#F4EEFB);box-shadow:0 2px 4px rgba(42,16,64,.15) inset}
.hero .progress{background:linear-gradient(180deg,rgba(0,0,0,.28),rgba(255,255,255,.08));box-shadow:0 2px 4px rgba(0,0,0,.35) inset}
.progress > span{position:relative;background:linear-gradient(180deg,#FFF1C6 0%,#E2BC62 45%,#B48632 100%);box-shadow:0 0 14px rgba(243,213,140,.65)}
.progress > span::after{content:"";position:absolute;left:4px;right:4px;top:2px;height:35%;border-radius:999px;background:rgba(255,255,255,.55)}
.ring{width:70px;height:70px;background:conic-gradient(from -90deg,#F3D58C,#C9A24A calc(var(--p)*1%),#ECE3F7 0);box-shadow:0 8px 18px -8px rgba(165,122,44,.6),0 1px 0 rgba(255,255,255,.8) inset}
.ring::before{width:54px;height:54px;background:linear-gradient(180deg,#fff,#F8F3FD);box-shadow:0 2px 4px rgba(42,16,64,.12) inset}

/* ---------- Product shots: 3D podium ---------- */
.task .shot,.shot3d{
  position:relative;overflow:visible;border:0;
  background:radial-gradient(120% 90% at 50% 15%,#FFFFFF 0%,#F3ECFB 55%,#E6DAF5 100%);
  box-shadow:0 1px 0 #fff inset,0 -10px 18px -10px rgba(75,29,122,.25) inset,0 12px 22px -12px rgba(42,16,64,.35);
}
.task .shot::after,.shot3d::after{content:"";position:absolute;left:14%;right:14%;bottom:9%;height:12%;border-radius:50%;background:radial-gradient(closest-side,rgba(42,16,64,.32),transparent);z-index:0}
.task .shot img,.shot3d img{position:relative;z-index:1;transform:translateY(-4px);filter:drop-shadow(0 8px 8px rgba(42,16,64,.25));transition:transform .4s cubic-bezier(.2,.8,.2,1)}
@media (hover:hover){.task:hover .shot img,a.card:hover .shot3d img{transform:translateY(-9px) scale(1.04) rotate(-2deg)}}
.task.done .shot img{filter:drop-shadow(0 8px 8px rgba(42,16,64,.2)) saturate(.85)}

/* ---------- Stars: gold 3D ---------- */
.stars label{background:linear-gradient(180deg,#FBF8FE,#F1EAFB);box-shadow:0 1px 0 #fff inset,0 3px 0 #E4D9F1,0 6px 10px -6px rgba(42,16,64,.25)}
.stars label:hover,.stars label:hover ~ label,.stars input:checked ~ label{
  color:#E7B94F;background:linear-gradient(180deg,#FFF7DE,#F8E4AE);
  box-shadow:0 1px 0 #fff inset,0 3px 0 #D9B45E,0 8px 14px -6px rgba(165,122,44,.55)}
.stars label svg{filter:drop-shadow(0 1px 0 rgba(120,80,10,.35))}
.stars input:checked + label{animation:starPop .35s cubic-bezier(.2,.9,.25,1.6)}
@keyframes starPop{0%{transform:scale(.8)}100%{transform:scale(1)}}

/* ---------- Tier badges & medals ---------- */
.tier-badge{filter:drop-shadow(0 6px 8px rgba(42,16,64,.35)) drop-shadow(0 1px 0 rgba(255,255,255,.4));transition:transform .5s cubic-bezier(.2,.8,.2,1)}
@media (hover:hover){.tier-card:hover .tier-badge,.hero:hover .tier-badge{transform:rotateY(18deg) scale(1.06)}}
.tier-card.current{background:linear-gradient(#FFFCF3,#FBF0D2) padding-box,linear-gradient(135deg,#F6E3A8,#D9B45E,#F6E3A8) border-box;border:1px solid transparent;box-shadow:0 1px 0 #fff inset,0 14px 28px -12px rgba(165,122,44,.55)}
.avatar{background:linear-gradient(145deg,#FFF1C6,#D9B45E 55%,#9A6E25);box-shadow:0 1px 0 rgba(255,255,255,.8) inset,0 -4px 8px rgba(90,60,10,.35) inset,0 14px 26px -10px rgba(0,0,0,.5);text-shadow:0 1px 0 rgba(255,255,255,.5)}
.lb-rank{box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 4px 8px -3px rgba(42,16,64,.3)}
.award .prize{background:linear-gradient(145deg,#FFF6DD,#F0D592);box-shadow:0 1px 0 #fff inset,0 -3px 6px rgba(165,122,44,.25) inset,0 10px 18px -8px rgba(165,122,44,.5)}

/* ---------- Badges ---------- */
.badge{box-shadow:0 1px 0 rgba(255,255,255,.7) inset}
.badge-gold{background:linear-gradient(180deg,#FFF6DA,#F2DDA0);box-shadow:0 1px 0 #fff inset,0 2px 6px -2px rgba(165,122,44,.45)}

/* ---------- Promo banners ---------- */
.promo{background:linear-gradient(120deg,#FFF9EA,#F7E7BF 60%,#F1D99B) padding-box,linear-gradient(135deg,#F6E3A8,#E3C77A,#F6E3A8) border-box;border:1px solid transparent;box-shadow:var(--depth-2)}
.promo img{filter:drop-shadow(0 10px 10px rgba(120,80,10,.3));animation:hover3dSmall 4.5s ease-in-out infinite}
.promo.lav{background:linear-gradient(120deg,#F8F2FF,#EADFF9) padding-box,linear-gradient(135deg,#E4D4F7,#C8B2EC,#E4D4F7) border-box}
@keyframes hover3dSmall{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-4px) rotate(3deg)}}

/* ---------- Bottom navigation: floating glass dock ---------- */
.bottom-nav .bar{
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(250,246,253,.9));
  border:1px solid rgba(255,255,255,.9);
  box-shadow:0 1px 0 #fff inset,0 -1px 0 rgba(42,16,64,.04) inset,0 18px 40px -12px rgba(42,16,64,.35),0 2px 8px rgba(42,16,64,.08);
  border-radius:26px;
}
.bottom-nav a.active .i{filter:drop-shadow(0 4px 6px rgba(75,29,122,.35));transform:translateY(-1px)}
.bottom-nav a.center .fab{
  width:64px;height:64px;position:relative;
  background:radial-gradient(70% 60% at 35% 25%,#A574E0 0%,#5E2A96 45%,#2E0F52 100%);
  box-shadow:0 0 0 4px #fff,0 0 0 6px #E9CE87,0 16px 26px -8px rgba(75,29,122,.7),0 -3px 8px rgba(0,0,0,.35) inset,0 2px 0 rgba(255,255,255,.35) inset;
  transition:transform .25s cubic-bezier(.2,.8,.2,1);
}
.bottom-nav a.center .fab::after{content:"";position:absolute;left:12px;right:12px;top:6px;height:38%;border-radius:50% 50% 45% 45%;background:linear-gradient(rgba(255,255,255,.45),rgba(255,255,255,0))}
.bottom-nav a.center .fab .i{color:#F6E3A8;filter:drop-shadow(0 2px 2px rgba(0,0,0,.4));position:relative;z-index:1}
.bottom-nav a.center:active .fab{transform:translateY(2px) scale(.96)}
@media (hover:hover){.bottom-nav a.center:hover .fab{transform:translateY(-3px)}}

/* ---------- Floating buttons ---------- */
.fab-btn{box-shadow:0 1px 0 rgba(255,255,255,.5) inset,0 -3px 6px rgba(0,0,0,.2) inset,0 14px 24px -8px rgba(42,16,64,.5)}
.fab-btn.wa{background:radial-gradient(80% 70% at 35% 25%,#5FE08F,#1EA457 55%,#0E7A3E)}
.fab-btn.chest{background:radial-gradient(80% 70% at 35% 25%,#FFF1C6,#DDB45A 55%,#A2752A)}
.fab-btn.chest img{filter:drop-shadow(0 3px 3px rgba(60,30,0,.4));animation:chestWiggle 5s ease-in-out infinite}
@keyframes chestWiggle{0%,86%,100%{transform:rotate(0)}89%{transform:rotate(-10deg)}92%{transform:rotate(9deg)}95%{transform:rotate(-5deg)}}

/* ---------- Sheets & dialogs ---------- */
.sheet .sheet-body{background:linear-gradient(180deg,#FFFFFF 0%,#FBF7FF 100%);box-shadow:0 1px 0 #fff inset,0 -20px 60px rgba(22,8,34,.4)}
.sheet .sheet-art{filter:drop-shadow(0 18px 16px rgba(42,16,64,.3))}
.modal .modal-body{background:linear-gradient(180deg,#fff,#FCF9FF);box-shadow:0 1px 0 #fff inset,0 30px 70px -20px rgba(22,8,34,.55)}
.toast{background:linear-gradient(180deg,#2E1446,#1E0B2E);box-shadow:0 1px 0 rgba(255,255,255,.12) inset,0 20px 40px -12px rgba(0,0,0,.5)}

/* ---------- Auth ---------- */
.auth-hero{background:
    radial-gradient(120% 90% at 100% 0%,rgba(243,213,140,.3),transparent 45%),
    linear-gradient(150deg,#7B45BA 0%,#56228C 38%,#3A1564 70%,#24093D 100%);box-shadow:var(--depth-hero)}
.auth-hero img.art{animation:hover3d 5s ease-in-out infinite;filter:drop-shadow(0 18px 18px rgba(10,0,25,.45))}
.auth-card{box-shadow:var(--depth-2)}

/* ---------- Status visuals ---------- */
.status-hero img{filter:drop-shadow(0 16px 16px rgba(42,16,64,.25))}
.empty img{filter:drop-shadow(0 14px 14px rgba(42,16,64,.18));animation:hover3dSmall 6s ease-in-out infinite}

/* ---------- Admin console depth ---------- */
body.admin{background:radial-gradient(900px 500px at 100% -10%,rgba(217,180,94,.10),transparent 60%),linear-gradient(180deg,#F8F4FC,#F3EEF8)}
.admin .sidebar{background:radial-gradient(120% 50% at 0% 0%,rgba(148,104,204,.25),transparent 60%),linear-gradient(180deg,#2E1146,#1A0828);box-shadow:inset -1px 0 0 rgba(255,255,255,.06),8px 0 30px -12px rgba(22,8,34,.5)}
.admin .kpi,.admin .panel{box-shadow:var(--depth-1);border-color:#ECE3F5}
.admin .kpi{background:linear-gradient(180deg,#fff,#FCFAFE)}
.admin .kpi .v{background:linear-gradient(180deg,#2A1040,#5E2A96);-webkit-background-clip:text;background-clip:text;color:transparent}
.admin .kpi.warn .v{background:none;color:var(--warn)}
@media (hover:hover){.admin .kpi:hover{transform:translateY(-2px);box-shadow:var(--depth-2)}}
.admin .kpi{transition:transform .25s,box-shadow .25s}
.admin .chart .bar span{background:linear-gradient(90deg,#5E2A96,#9468CC 45%,#6A34A8);box-shadow:0 1px 0 rgba(255,255,255,.4) inset,0 6px 10px -6px rgba(75,29,122,.6)}
.admin .chart .bar:last-child span{background:linear-gradient(90deg,#B48632,#F3D58C 45%,#C9A24A)}

@media (prefers-reduced-motion:reduce){.hero,.hero .art,.promo img,.empty img,.fab-btn.chest img,.btn-gold{animation:none!important;transform:none!important}}
