/* =====================================================
   FLINS STORE — style.css
   Theme: Hydro · Gold · Purple (Fontaine)
   ===================================================== */

/* ── VARIABLES ──────────────────────────────────────── */
:root {
  --gold:       #C8A84B;
  --gold2:      #F0D080;
  --hydro:      #5FD0E8;
  --hydro2:     #A8EEF8;
  --purple:     #8B5FCF;
  --purple2:    #B890E8;
  --purple-dark:#5B2FAA;
  --card-bg:    rgba(2, 10, 22, 0.85);
  --border:     rgba(62, 200, 232, 0.28);
  --btn-bg:     rgba(4, 18, 32, 0.70);
  --btn-hover:  rgba(8, 32, 52, 0.90);
  --pearl:      #DFF4FA;
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; overflow-x: hidden; }
body {
  min-height: 100vh;
  font-family: 'Raleway', sans-serif;
  color: var(--pearl);
  background: #020C16;
}

/* ══════════════════════════════════════════════════════
   SPLASH SCREEN
   ══════════════════════════════════════════════════════ */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 28px;
  background: #020C16;
  overflow: hidden;
  transition: opacity 0.9s ease, transform 0.9s ease;
}
#splash.sp-exit {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}

/* Splash background radial */
.splash-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(10,80,160,0.30) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(20,120,180,0.25) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(95,208,232,0.15) 0%, transparent 55%);
  animation: sp-bg-breathe 4s ease-in-out infinite alternate;
}
@keyframes sp-bg-breathe {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.04); }
}

/* Orbs behind portal */
.sp-orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px); pointer-events: none;
  animation: sp-orb-drift ease-in-out infinite alternate;
}
.sp-orb-1 { width: 360px; height: 360px; background: rgba(10,80,200,0.35);  left: -100px; top: -80px;  animation-duration: 8s; }
.sp-orb-2 { width: 280px; height: 280px; background: rgba(20,140,180,0.30);  right: -80px; bottom: -60px; animation-duration: 10s; animation-delay: 1.5s; }
.sp-orb-3 { width: 200px; height: 200px; background: rgba(95,208,232,0.20); left: 40%;   bottom: 5%;  animation-duration: 7s;  animation-delay: 0.8s; }
@keyframes sp-orb-drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(20px, 24px) scale(1.1); }
}

/* Particle canvas inside splash */

/* Portal rings */
.sp-portal {
  position: relative;
  width: 180px; height: 180px;
  display: flex; align-items: center; justify-content: center;
  animation: sp-portal-in 1s cubic-bezier(.16,1,.3,1) both;
}
@keyframes sp-portal-in {
  from { opacity: 0; transform: scale(0.3) rotate(-90deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

.sp-ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid transparent;
  will-change: transform;
}
.sp-ring-1 {
  inset: 0;
  border-top-color: var(--hydro);
  border-right-color: rgba(95,208,232,0.3);
  animation: sp-spin 3s linear infinite;
}
.sp-ring-2 {
  inset: 12px;
  border-bottom-color: var(--hydro2);
  border-left-color: rgba(168,238,248,0.3);
  animation: sp-spin 2s linear infinite reverse;
}
.sp-ring-3 {
  inset: 24px;
  border-top-color: var(--gold);
  border-right-color: rgba(200,168,75,0.3);
  animation: sp-spin 4s linear infinite;
}
.sp-ring-4 {
  inset: -14px;
  border: 1px dashed rgba(95,208,232,0.22);
  animation: sp-spin 18s linear infinite reverse;
}
@keyframes sp-spin { to { transform: rotate(360deg); } }

/* Portal center icon */
.sp-logo-wrap {
  position: relative; z-index: 2;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,80,200,0.45) 0%, rgba(2,12,22,0.9) 70%);
  border: 1px solid rgba(95,208,232,0.45);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px rgba(95,208,232,0.45), 0 0 60px rgba(95,208,232,0.18);
  animation: sp-icon-pulse 2.5s ease-in-out infinite;
}
@keyframes sp-icon-pulse {
  0%,100% { opacity: 0.85; transform: scale(1); }
  50%     { opacity: 1;    transform: scale(1.04); }
}

/* Splash text */
.sp-text {
  text-align: center;
  animation: sp-text-in 0.8s 0.5s cubic-bezier(.16,1,.3,1) both;
}
@keyframes sp-text-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sp-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--hydro2) 0%, var(--gold2) 35%, var(--hydro) 60%, var(--purple2) 100%);
  background-size: 250% 250%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: sp-title-shimmer 2.5s linear infinite;
}
@keyframes sp-title-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 250% 50%; }
}
.sp-sub {
  font-size: 11px; letter-spacing: 0.28em;
  color: rgba(95,208,232,0.80);
  text-transform: uppercase;
  margin-top: 8px; font-weight: 300;
  animation: sp-sub-blink 2s ease-in-out infinite;
}
@keyframes sp-sub-blink {
  0%,100% { opacity: 0.6; }
  50%     { opacity: 1; }
}

/* Loading bar */
.sp-bar-wrap {
  position: relative;
  width: clamp(180px, 50vw, 260px); height: 3px;
  background: rgba(180,120,255,0.12);
  border-radius: 99px; overflow: visible;
  animation: sp-text-in 0.8s 0.7s both;
}
.sp-bar {
  height: 100%;
  background: linear-gradient(90deg, #0A4A8A, var(--hydro), var(--hydro2), var(--gold));
  border-radius: 99px;
  width: 0%;
  animation: sp-load 2.2s cubic-bezier(.4,0,.2,1) 0.3s forwards;
}
@keyframes sp-load {
  0%   { width: 0%; }
  60%  { width: 75%; }
  100% { width: 100%; }
}
.sp-bar-glow {
  position: absolute; top: 50%; right: 0;
  transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--hydro);
  filter: blur(8px); opacity: 0.8;
  animation: sp-glow-slide 2.2s cubic-bezier(.4,0,.2,1) 0.3s forwards;
}
@keyframes sp-glow-slide {
  0%   { right: 100%; }
  100% { right: 0%; }
}

/* Exit veil flash */
.sp-veil {
  position: absolute; inset: 0;
  background: white; opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.sp-veil.flash { opacity: 0.12; }


/* ══════════════════════════════════════════════════════
   BACKGROUND
   ══════════════════════════════════════════════════════ */
#bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%,   rgba(10,60,140,0.55)  0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 10% 50%,  rgba(8,80,160,0.40)   0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 90% 55%,  rgba(20,120,180,0.35) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 50% 100%, rgba(5,30,80,0.55)    0%, transparent 55%),
    linear-gradient(170deg, #020C16 0%, #031428 45%, #020A14 100%);
}
#bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(120deg, transparent 30%, rgba(95,208,232,0.06) 50%, transparent 70%),
    linear-gradient(240deg, transparent 30%, rgba(139,95,207,0.04) 50%, transparent 70%);
  animation: aurora 12s ease-in-out infinite alternate;
}
#bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(2,12,22,0.3) 0%, rgba(2,12,22,0.72) 100%);
}
@keyframes aurora {
  0%   { transform: skewY(-2deg) scaleX(1.1); opacity: 0.6; }
  50%  { transform: skewY(2deg)  scaleX(0.95); opacity: 1; }
  100% { transform: skewY(-1deg) scaleX(1.05); opacity: 0.7; }
}

/* ── LIGHT RAYS ─────────────────────────────────────── */
.rays { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.ray {
  position: absolute; width: 2px;
  animation: ray-move linear infinite;
  will-change: transform, opacity;
}
.ray:nth-child(1){ left:10%; height:65vh; animation-duration:5s;   background:linear-gradient(to bottom,transparent,rgba(95,208,232,0.22),transparent); opacity:.55; }
.ray:nth-child(2){ left:28%; height:50vh; animation-duration:7s;   animation-delay:1.8s; background:linear-gradient(to bottom,transparent,rgba(139,95,207,0.14),transparent); opacity:.4; }
.ray:nth-child(3){ left:52%; height:80vh; animation-duration:6s;   animation-delay:0.6s; background:linear-gradient(to bottom,transparent,rgba(200,168,75,0.12),transparent); opacity:.45; }
.ray:nth-child(4){ left:72%; height:55vh; animation-duration:8s;   animation-delay:2.5s; background:linear-gradient(to bottom,transparent,rgba(95,208,232,0.18),transparent); opacity:.4; }
.ray:nth-child(5){ left:90%; height:45vh; animation-duration:5.5s; animation-delay:3.2s; background:linear-gradient(to bottom,transparent,rgba(95,208,232,0.12),transparent); opacity:.3; }
@keyframes ray-move {
  0%  { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 1; } 90% { opacity: 1; }
  100%{ transform: translateY(120vh); opacity: 0; }
}

/* ── AMBIENT ORBS ───────────────────────────────────── */
.orbs { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(40px); animation: orb-float ease-in-out infinite alternate; will-change: transform; }
.orb-1 { width:400px; height:400px; left:-100px; top:5%;    background:rgba(10,60,180,0.40);   animation-duration:9s; }
.orb-2 { width:300px; height:300px; right:-70px; top:25%;   background:rgba(10,100,180,0.35);  animation-duration:11s; animation-delay:2s; }
.orb-3 { width:260px; height:260px; left:15%;   bottom:10%; background:rgba(8,80,160,0.30);    animation-duration:8s;  animation-delay:1s; }
.orb-4 { width:210px; height:210px; right:18%;  bottom:20%; background:rgba(95,208,232,0.14);  animation-duration:13s; animation-delay:3s; }
.orb-5 { width:180px; height:180px; left:43%;   top:58%;    background:rgba(95,208,232,0.10); animation-duration:10s; animation-delay:4s; }
@keyframes orb-float {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(18px, 28px) scale(1.08); }
}

/* ── PARTICLES CANVAS ──────────────────────────────── */
#ptx { position: fixed; inset: 0; z-index: 2; pointer-events: none; contain: strict; }
#sp-canvas { position: absolute; inset: 0; pointer-events: none; contain: strict; }

/* ── WATER RIPPLES ──────────────────────────────────── */
.ripple-wrap { position:fixed; bottom:0; left:0; right:0; height:160px; z-index:2; pointer-events:none; overflow:hidden; }
.ripple {
  position: absolute; bottom: 0; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(95,208,232,0.14);
  animation: rpl ease-out infinite;
  transform: translateX(-50%);
}
.ripple:nth-child(1){ width:300px;  height:70px;  animation-duration:4s;  animation-delay:0s; }
.ripple:nth-child(2){ width:520px;  height:110px; animation-duration:4s;  animation-delay:1.35s; }
.ripple:nth-child(3){ width:740px;  height:160px; animation-duration:4s;  animation-delay:2.7s; }
@keyframes rpl {
  0%  { opacity:.5; transform: translateX(-50%) scaleX(.5); }
  100%{ opacity:0;  transform: translateX(-50%) scaleX(1.45); }
}

/* ── CORNER ORNAMENTS ──────────────────────────────── */
.corner { position:fixed; z-index:4; pointer-events:none; width:50px; height:50px; opacity:0; animation:deco-appear 1.2s 1.2s ease forwards; }
.corner svg { width:100%; height:100%; }
.corner.tl { top:20px;    left:20px; }
.corner.tr { top:20px;    right:20px;  transform: scaleX(-1); }
.corner.bl { bottom:20px; left:20px;   transform: scaleY(-1); }
.corner.br { bottom:20px; right:20px;  transform: scale(-1); }

/* ── SIDE DECORATIONS ──────────────────────────────── */
.side-deco {
  position:fixed; top:50%; transform:translateY(-50%);
  display:flex; flex-direction:column; align-items:center; gap:18px;
  z-index:5; pointer-events:none;
  opacity:0; animation:deco-appear 1.2s 1s ease forwards;
}
.side-deco.left  { left:  clamp(8px,3vw,40px); }
.side-deco.right { right: clamp(8px,3vw,40px); }
@keyframes deco-appear { to { opacity: 1; } }

.deco-line {
  width:1px; height:120px;
  background:linear-gradient(to bottom,transparent,rgba(95,208,232,0.55),rgba(139,95,207,0.35),transparent);
  animation:deco-line-pulse 3s ease-in-out infinite;
  will-change: opacity, transform;
}
@keyframes deco-line-pulse {
  0%,100%{ opacity:.4; transform:scaleY(.95); }
  50%    { opacity:.9; transform:scaleY(1.05); }
}

.deco-rune {
  width:10px; height:10px;
  background:var(--hydro);
  transform:rotate(45deg);
  box-shadow:0 0 10px rgba(95,208,232,.8);
  animation:rune-spin 6s linear infinite;
  flex-shrink:0;
}
.side-deco.right .deco-rune { background:var(--gold); box-shadow:0 0 10px rgba(200,168,75,.8); animation-direction:reverse; }
@keyframes rune-spin { to { transform: rotate(405deg); } }

.deco-dots { display:flex; flex-direction:column; gap:10px; align-items:center; }
.deco-dot {
  width:4px; height:4px; border-radius:50%;
  background:rgba(95,208,232,0.70);
  animation:dot-blink 2s ease-in-out infinite;
  will-change: opacity, transform;
}
.side-deco.right .deco-dot { background:rgba(200,168,75,0.65); }
.deco-dot:nth-child(1){ animation-delay:0s; }
.deco-dot:nth-child(2){ animation-delay:.3s; }
.deco-dot:nth-child(3){ animation-delay:.6s; }
.deco-dot:nth-child(4){ animation-delay:.9s; }
.deco-dot:nth-child(5){ animation-delay:1.2s; }
@keyframes dot-blink {
  0%,100%{ opacity:.25; transform:scale(.8); }
  50%    { opacity:1;   transform:scale(1.3); }
}

.deco-sym {
  font-family:'Cinzel',serif; font-size:11px;
  color:rgba(95,208,232,0.60);
  animation:sym-float 5s ease-in-out infinite alternate;
  letter-spacing:.1em; writing-mode:vertical-rl;
}
.side-deco.right .deco-sym { color:rgba(200,168,75,0.55); }
@keyframes sym-float {
  from { transform:translateY(-6px); opacity:.4; }
  to   { transform:translateY(6px);  opacity:.85; }
}

/* ── PAGE LAYOUT ────────────────────────────────────── */
.page {
  position:relative; z-index:10;
  min-height:100vh;
  display:flex; align-items:center; justify-content:center;
  padding:50px 20px 70px;
}

/* ══════════════════════════════════════════════════════
   CARD
   ══════════════════════════════════════════════════════ */
.card {
  width:100%; max-width:420px;
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:24px;
  padding:38px 30px 86px;
  backdrop-filter:blur(28px);
  -webkit-backdrop-filter:blur(28px);
  box-shadow:
    0 0 0 1px rgba(95,208,232,0.08),
    0 35px 90px rgba(0,0,0,0.7),
    0 0 60px rgba(10,80,200,0.10),
    inset 0 1px 0 rgba(95,208,232,0.15);
  text-align:center; position:relative; overflow:hidden;
  animation:card-enter 1s cubic-bezier(.16,1,.3,1) both;
}
.card::before {
  content:''; position:absolute; top:0; height:1.5px;
  left:-200%; width:200%;
  background:linear-gradient(90deg,transparent,var(--hydro),var(--gold2),var(--purple2),var(--hydro),transparent);
  animation:sweep 3.5s ease-in-out infinite;
}
@keyframes sweep {
  0%  { left:-200%; }
  50% { left:200%; }
  100%{ left:200%; }
}
.card::after {
  content:''; position:absolute; top:0; left:0; right:0; height:140px;
  background:radial-gradient(ellipse at 50% -10%, rgba(10,80,200,0.14) 0%, transparent 70%);
  pointer-events:none;
}
@keyframes card-enter {
  from { opacity:0; transform:translateY(44px) scale(.96); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

/* ── AVATAR ─────────────────────────────────────────── */
.avatar-wrap {
  position:relative; width:120px; height:120px;
  margin:0 auto 22px;
}
.av-glow {
  position:absolute; inset:-18px; border-radius:50%;
  background:radial-gradient(circle,rgba(10,100,220,0.30) 0%,rgba(95,208,232,0.12) 50%,transparent 75%);
  animation:glow-pulse 2.8s ease-in-out infinite;
  will-change: opacity;
}
@keyframes glow-pulse {
  0%,100%{ opacity: 0.5; }
  50%    { opacity: 1; }
}
.av-halo {
  position:absolute; inset:-16px; border-radius:50%;
  border:1px dashed rgba(200,168,75,0.28);
  animation:sp-spin 18s linear infinite;
}
.av-halo::before { content:'✦'; position:absolute; top:-5px; left:50%; transform:translateX(-50%); font-size:8px; color:var(--gold); }
.av-halo::after  { content:'✦'; position:absolute; bottom:-5px; left:50%; transform:translateX(-50%); font-size:8px; color:var(--gold); }
.av-hex {
  position:absolute; inset:-20px;
  animation:sp-spin 20s linear infinite reverse;
  opacity:0.2;
}
.av-hex svg { width:100%; height:100%; }
.av-orbit {
  position:absolute; inset:-14px; border-radius:50%;
  animation:sp-spin var(--ospeed,5s) linear infinite var(--odir,normal);
  will-change: transform;
}
.av-orbit::before {
  content:''; position:absolute;
  width:5px; height:5px; border-radius:50%;
  background:var(--ocol,var(--purple));
  box-shadow:0 0 7px 2px var(--ocol,var(--purple));
  top:0; left:50%; transform:translateX(-50%);
}
.orb-a { --ospeed:3.5s; --ocol:var(--purple);  --odir:normal; }
.orb-b { --ospeed:5s;   --ocol:var(--gold);    --odir:reverse; inset:-10px; }
.orb-c { --ospeed:7s;   --ocol:var(--hydro2);  --odir:normal;  inset:-18px; }
.av-ring-mid {
  position:absolute; inset:-8px; border-radius:50%;
  border:1.5px solid transparent;
  border-top-color:var(--hydro);
  border-right-color:rgba(95,208,232,0.35);
  animation:sp-spin 4s linear infinite;
  will-change: transform;
}
.av-ring-in {
  position:absolute; inset:-2px; border-radius:50%;
  border:1.5px solid transparent;
  border-bottom-color:var(--hydro2);
  border-left-color:rgba(168,238,248,0.4);
  animation:sp-spin 2.5s linear infinite reverse;
  will-change: transform;
}
@keyframes sp-spin { to { transform:rotate(360deg); } }

.av-img {
  position:relative; z-index:2;
  width:120px; height:120px; border-radius:50%;
  background:linear-gradient(145deg,#061828,#0E2A44);
  border:2px solid rgba(95,208,232,0.65);
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  font-family:'Cinzel',serif; font-size:28px; color:var(--hydro2); font-weight:700;
  box-shadow:0 0 24px rgba(95,208,232,0.42),0 0 48px rgba(95,208,232,0.16),inset 0 0 20px rgba(10,80,200,0.12);
  animation:img-glow 3s ease-in-out infinite;
  will-change: opacity;
}
.av-img img { width:100%; height:100%; object-fit:cover; display:block; }
@keyframes img-glow {
  0%,100%{ opacity: 0.9; }
  50%    { opacity: 1; }
}

/* ── NAME ───────────────────────────────────────────── */
.name {
  font-family:'Cinzel',serif; font-size:26px; font-weight:700;
  color:#fff; letter-spacing:.06em;
  text-shadow:0 0 28px rgba(95,208,232,.60),0 0 56px rgba(95,208,232,.22);
  animation:name-glow 3s ease-in-out infinite;
  will-change: opacity;
}
@keyframes name-glow {
  0%,100%{ opacity: 0.88; }
  50%    { opacity: 1; }
}
.subtitle {
  font-size:11px; letter-spacing:.22em;
  color:var(--hydro2); opacity:.85;
  margin-top:5px; text-transform:uppercase; font-weight:300;
}

/* ── DIVIDER ────────────────────────────────────────── */
.divider { display:flex; align-items:center; gap:10px; margin:18px 0 22px; }
.divider i { flex:1; height:1px; background:linear-gradient(90deg,transparent,rgba(95,208,232,0.40)); }
.divider i.r { background:linear-gradient(90deg,rgba(95,208,232,0.40),transparent); }
.gem {
  width:6px; height:6px; background:var(--gold);
  transform:rotate(45deg);
  box-shadow:0 0 8px rgba(200,168,75,.6);
  animation:gem-pulse 2s ease-in-out infinite;
  will-change: transform, opacity;
}
.gem-hydro  { background:var(--hydro);  box-shadow:0 0 8px rgba(95,208,232,.7); }
.gem-purple { background:var(--purple); box-shadow:0 0 8px rgba(180,120,255,.8); animation-delay:.5s; }
@keyframes gem-pulse {
  0%,100%{ opacity: 0.65; transform: rotate(45deg) scale(0.9); }
  50%    { opacity: 1;    transform: rotate(45deg) scale(1.2); }
}

/* ── CATEGORY LABEL ─────────────────────────────────── */
.cat-label {
  font-size:9px; letter-spacing:.25em; text-transform:uppercase;
  color:rgba(95,208,232,.60); font-family:'Cinzel',serif;
  margin:16px 0 8px; text-align:left; padding-left:4px;
}

/* ── LINKS ──────────────────────────────────────────── */
.links { display:flex; flex-direction:column; gap:9px; width:100%; }
.lbtn {
  position:relative;
  display:flex; align-items:center; gap:12px;
  width: 100%;
  padding:13px 18px; border-radius:13px;
  background:var(--btn-bg);
  border:1px solid rgba(95,208,232,0.18);
  color:var(--pearl); text-decoration:none;
  font-family: inherit;
  font-size:13.5px; font-weight:500; letter-spacing:.06em;
  text-align: left;
  cursor:pointer;
  transition:transform .22s ease,border-color .22s ease,background .22s ease,box-shadow .22s ease;
  opacity:0; animation:btn-enter .5s ease forwards;
  /* overflow visible so .lbtn-ping can expand outside */
  overflow: visible;
}
/* Clip only the shimmer pseudo using a nested span approach via clip on ::before */
.lbtn::before {
  content:''; position:absolute;
  top:0; left:-120%; width:60%; height:100%;
  background:linear-gradient(90deg,transparent,rgba(95,208,232,.08),transparent);
  transition:left .5s ease;
  border-radius: inherit;
  /* clip shimmer to button bounds */
  clip-path: inset(0 round 13px);
}
.lbtn:hover {
  transform:translateY(-2px) scale(1.013);
  border-color:rgba(95,208,232,.55);
  background:var(--btn-hover);
  box-shadow:0 8px 24px rgba(0,0,0,.4),0 0 16px rgba(10,100,220,.14);
}
.lbtn:hover::before { left:170%; }
.lbtn:active { transform:scale(.985); }
.lbtn::after {
  content:''; position:absolute;
  left:0; top:18%; bottom:18%; width:0;
  background:linear-gradient(to bottom,var(--hydro),var(--purple2));
  border-radius:2px; transition:width .2s ease;
}
.lbtn:hover::after { width:2.5px; }
.lbtn-icon  { font-size:17px; flex-shrink:0; width:26px; text-align:center; }
.lbtn-text  { flex:1; text-align:left; }
.lbtn-arrow { font-size:15px; color:var(--hydro2); opacity:0; transform:translateX(-8px); transition:opacity .2s,transform .2s; }
.lbtn:hover .lbtn-arrow { opacity:1; transform:translateX(0); }

.lbtn-d1 { animation-delay:.65s; }
.lbtn-d2 { animation-delay:.78s; }
.lbtn-d3 { animation-delay:.91s; }
.lbtn-d4 { animation-delay:1.04s; }
.lbtn-d5 { animation-delay:1.17s; }
.lbtn-d6 { animation-delay:1.30s; }
.lbtn-d7 { animation-delay:1.43s; }
.lbtn-d8 { animation-delay:1.56s; }
@keyframes btn-enter {
  from { opacity:0; transform:translateY(12px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── BADGES ─────────────────────────────────────────── */
.badge {
  font-size:9px; font-weight:700; letter-spacing:.12em;
  padding:2px 8px; border-radius:20px;
  text-transform:uppercase; flex-shrink:0;
  animation:badge-blink 2.2s ease-in-out infinite;
  will-change: opacity;
}
.badge-gold   { background:rgba(200,168,75,.15); color:var(--gold);    border:1px solid rgba(200,168,75,.4); }
.badge-hydro  { background:rgba(95,208,232,.14); color:var(--hydro2);  border:1px solid rgba(95,208,232,.40); animation-delay:.3s; }
.badge-purple { background:rgba(139,95,207,.14); color:var(--purple2); border:1px solid rgba(139,95,207,.4); animation-delay:.6s; }
@keyframes badge-blink {
  0%,100%{ opacity: 0.7; }
  50%    { opacity: 1; }
}

/* ── FOOTER ─────────────────────────────────────────── */
.footer {
  margin-top:24px; font-family:'Cinzel',serif;
  font-size:9px; letter-spacing:.28em;
  color:rgba(95,208,232,.35); text-transform:uppercase;
  opacity:0; animation:fade-in 1.2s 1.8s ease forwards;
  position: relative; z-index: 2;
}
@keyframes fade-in { to { opacity:1; } }

/* ── BUG REPORT — link kecil di bawah footer, subtle & tidak mengganggu CTA utama ── */
.bug-report {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: 'Raleway', sans-serif;
  font-size: 10.5px; font-weight: 700;
  color: rgba(223,244,250,0.6);
  text-decoration: none;
  border: 1px solid rgba(95,208,232,0.14);
  background: rgba(95,208,232,0.04);
  position: relative; z-index: 2;
  opacity: 0; animation: fade-in 1.2s 2.1s ease forwards;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}
.bug-report:hover {
  border-color: rgba(95,208,232,0.4);
  background: rgba(95,208,232,0.08);
  color: rgba(223,244,250,0.95);
}
.bug-report-text { font-weight: 700; }
.bug-report-icon { font-size: 12px; line-height: 1; }
.bug-report-arrow {
  color: rgba(95,208,232,0.5);
  font-size: 13px; line-height: 1;
  transition: transform .25s ease;
}
.bug-report:hover .bug-report-arrow { transform: translateX(2px); }

/* ── CLICK PARTICLES ────────────────────────────────── */
.cp {
  position:fixed; pointer-events:none; z-index:9999; font-size:15px;
  animation:cp-fly .85s ease-out forwards;
}
@keyframes cp-fly {
  0%  { opacity:1;  transform:scale(1) translate(0,0); }
  100%{ opacity:0;  transform:scale(.2) translate(var(--dx),var(--dy)); }
}

/* ── HYDRO WAVE ──────────────────────────────────────── */
.hydro-wave-wrap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 72px;
  pointer-events: none;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
}
.hydro-wave {
  position: absolute;
  bottom: 0; left: 0;
  width: 200%;        /* 2x lebar untuk seamless loop */
  height: 72px;
  will-change: transform;
}
.hydro-wave svg { width: 100%; height: 100%; display: block; }

/* 3 layer, speed beda → kesan kedalaman */
.wave-back  { animation: wave-scroll 14s linear infinite; }
.wave-mid   { animation: wave-scroll 10s linear infinite reverse; }
.wave-front { animation: wave-scroll 7s  linear infinite; }

@keyframes wave-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Mobile: perlambat semua layer, cukup 2 layer */
@media (max-width: 768px) {
  .wave-mid   { display: none; }
  .wave-back  { animation-duration: 18s; }
  .wave-front { animation-duration: 12s; }
}

/* ── JAPANESE DECORATIVE TEXT ────────────────────────── */

/* Large watermark 水 — static, zero animation cost */
.card-kj-bg {
  position: absolute;
  bottom: 30px;
  right: -24px;
  font-family: 'Hiragino Mincho ProN','Yu Mincho','Noto Serif JP',serif;
  font-size: 220px;
  font-weight: 900;
  line-height: 1;
  color: var(--hydro);
  opacity: 0.06;
  transform: rotate(-12deg);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Vertical side text — left & right edges of card */
.card-jp {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: 'Hiragino Mincho ProN','Yu Mincho','Noto Serif JP',serif;
  font-size: 9.5px;
  letter-spacing: 0.25em;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  opacity: 0;
  animation: fade-in 1.2s 1.5s ease forwards;
}
.card-jp-left {
  left: 9px;
  color: var(--hydro);
  opacity: 0;
  text-shadow: 0 0 12px rgba(95,208,232,0.55);
  animation: jp-appear 1.2s 1.5s ease forwards;
}
.card-jp-right {
  right: 9px;
  color: var(--purple2);
  text-shadow: 0 0 12px rgba(139,95,207,0.45);
  animation: jp-appear 1.2s 1.8s ease forwards;
}
@keyframes jp-appear {
  from { opacity: 0; transform: translateY(-46%) scaleY(0.9); }
  to   { opacity: 0.3; transform: translateY(-50%) scaleY(1); }
}

/* Mobile: sembunyikan watermark besar, teks sisi tetap */
@media (max-width: 430px) {
  .card-kj-bg { display: none; }
  .card-jp    { font-size: 8.5px; opacity: 0; }
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media(max-width:430px){
  .card { padding:28px 18px 86px; border-radius:20px; }
  .name { font-size:22px; }
  .side-deco, .corner { display:none; }
}

/* ══════════════════════════════════════════════════════
   MOBILE PERFORMANCE — kurangi animasi berat
   ══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Matikan aurora & filter blur berat */
  #bg::before       { animation: none; }
  .bg-layer--glow   { display: none; }

  /* Kurangi blur orb — filter:blur mahal di GPU mobile */
  .orb { filter: blur(40px); }
  .orb-4, .orb-5 { display: none; }

  /* Matikan ray */
  .ray:nth-child(2),
  .ray:nth-child(4),
  .ray:nth-child(5) { display: none; }

  /* Matikan side deco & corner (tidak kelihatan di layar kecil) */
  .side-deco, .corner { display: none; }

  /* Splash — matikan ring yang banyak */
  .sp-ring-3, .sp-ring-4 { display: none; }
  .sp-orb-3 { display: none; }

  /* Avatar — kurangi ring animasi */
  .av-halo, .av-hex, .orb-c { display: none; }

  /* Ripple bawah — ringankan */
  .ripple:nth-child(3) { display: none; }

  /* Backdrop blur ringan */
  .card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* Untuk HP yang benar-benar low-end */
@media (max-width: 480px) {
  .orb-3 { display: none; }
  .rays  { display: none; }
  .ripple-wrap { display: none; }
}

/* ══════════════════════════════════════════════════════
   KATEGORI LAYOUT — Tata letak unik per kategori
   ══════════════════════════════════════════════════════ */

/* ── CATEGORY SECTION WRAPPER ──────────────────────── */
.cat-section {
  width: 100%;
  margin-bottom: 4px;
}

/* ── CATEGORY HEADER ────────────────────────────────── */
.cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 10px;
}
.cat-header-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(95,208,232,0.42));
}
.cat-header-line.r {
  background: linear-gradient(90deg, rgba(95,208,232,0.42), transparent);
}
.cat-header-title {
  font-family: 'Cinzel', serif;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hydro2);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cat-header-icon {
  font-size: 13px;
  filter: drop-shadow(0 0 4px currentColor);
}

/* ── CONTACT — tombol besar full width dengan glow ── */
.cat-contact .lbtn {
  padding: 16px 20px;
  border-radius: 16px;
  border-color: rgba(37,211,102,0.3);
  background: linear-gradient(135deg, rgba(10,30,18,0.8), rgba(6,20,12,0.9));
  box-shadow: 0 0 20px rgba(37,211,102,0.08), inset 0 1px 0 rgba(37,211,102,0.12);
}
.cat-contact .lbtn:hover {
  border-color: rgba(37,211,102,0.6);
  box-shadow: 0 8px 28px rgba(37,211,102,0.2), 0 0 40px rgba(37,211,102,0.08);
}
.cat-contact .lbtn::after {
  background: linear-gradient(to bottom, #25D366, #128C7E);
}
.cat-contact .lbtn-text {
  font-size: 14px;
  font-weight: 600;
}
.cat-contact .lbtn-icon img,
.cat-contact .lbtn-icon {
  font-size: 22px;
  width: 32px;
}

/* ── CTA PRIMARY — ping ring & online indicator ──────── */
.lbtn-cta {
  border-color: rgba(37,211,102,0.45) !important;
  box-shadow:
    0 0 0 1px rgba(37,211,102,0.15),
    0 0 28px rgba(37,211,102,0.12),
    inset 0 1px 0 rgba(37,211,102,0.18) !important;
}

/* Ping ring — transform+opacity only, fully GPU composited */
.lbtn-ping {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1.5px solid rgba(37,211,102,0.55);
  animation: cta-ping 2.2s ease-out infinite;
  pointer-events: none;
  will-change: transform, opacity;
}
@keyframes cta-ping {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.06); opacity: 0; }
  100% { transform: scale(1.06); opacity: 0; }
}

/* Online status indicator */
.lbtn-online {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: rgba(37,211,102,0.7);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 6px rgba(37,211,102,0.8);
  flex-shrink: 0;
  animation: dot-live 1.8s ease-in-out infinite;
  will-change: opacity, transform;
}
@keyframes dot-live {
  0%,100% { opacity: 1;    transform: scale(1); }
  50%     { opacity: 0.45; transform: scale(0.7); }
}

/* ── COMMUNITY & SOCIAL — semua item full-width, layout konsisten ── */
.cat-community .community-grid {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* WA Group — full width dengan subtext */
.lbtn-wa-group {
  border-color: rgba(37,211,102,0.22) !important;
  background: linear-gradient(135deg, rgba(5,16,9,0.85), rgba(3,10,6,0.92)) !important;
  box-shadow: 0 0 16px rgba(37,211,102,0.05), inset 0 1px 0 rgba(37,211,102,0.08) !important;
}
.lbtn-wa-group:hover {
  border-color: rgba(37,211,102,0.5) !important;
  box-shadow: 0 8px 24px rgba(37,211,102,0.16) !important;
}
.lbtn-wa-group::after {
  background: linear-gradient(to bottom, #25D366, #128C7E) !important;
}

/* TikTok — full width dengan subtext, selaras dengan item lain di section ini */
.lbtn-tiktok-full {
  border-color: rgba(255,255,255,0.14) !important;
  background: linear-gradient(135deg, rgba(15,10,20,0.85), rgba(8,5,15,0.92)) !important;
  box-shadow: 0 0 16px rgba(255,255,255,0.04), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}
.lbtn-tiktok-full:hover {
  border-color: rgba(255,255,255,0.35) !important;
  box-shadow: 0 8px 24px rgba(255,255,255,0.10) !important;
}
.lbtn-tiktok-full::after {
  background: linear-gradient(to bottom, #ffffff, #9c9c9c) !important;
}
.lbtn-tiktok-full .lbtn-arrow { color: rgba(255,255,255,0.7); }

/* Instagram — full width dengan subtext, selaras dengan item lain di section ini */
.lbtn-instagram-full {
  border-color: rgba(225,48,108,0.22) !important;
  background: linear-gradient(135deg, rgba(30,5,20,0.85), rgba(15,5,25,0.92)) !important;
  box-shadow: 0 0 16px rgba(225,48,108,0.05), inset 0 1px 0 rgba(225,48,108,0.08) !important;
}
.lbtn-instagram-full:hover {
  border-color: rgba(225,48,108,0.5) !important;
  box-shadow: 0 8px 24px rgba(225,48,108,0.16) !important;
}
.lbtn-instagram-full::after {
  background: linear-gradient(to bottom, #E1306C, #C13584) !important;
}
.lbtn-instagram-full .lbtn-arrow { color: #E1306C; }

/* Badges */
.badge-wa-group {
  font-size: 9px; font-weight: 700; letter-spacing: .12em;
  padding: 2px 8px; border-radius: 20px;
  text-transform: uppercase; flex-shrink: 0;
  background: rgba(37,211,102,0.15);
  color: #25D366;
  border: 1px solid rgba(37,211,102,0.4);
  animation: badge-blink 2.2s ease-in-out infinite;
  will-change: opacity;
}
.badge-tiktok {
  font-size: 9px; font-weight: 700; letter-spacing: .12em;
  padding: 2px 8px; border-radius: 20px;
  text-transform: uppercase; flex-shrink: 0;
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
  animation: badge-blink 2.2s 0.3s ease-in-out infinite;
  will-change: opacity;
}
.badge-instagram {
  font-size: 9px; font-weight: 700; letter-spacing: .12em;
  padding: 2px 8px; border-radius: 20px;
  text-transform: uppercase; flex-shrink: 0;
  background: rgba(225,48,108,0.15);
  color: #E1306C;
  border: 1px solid rgba(225,48,108,0.4);
  animation: badge-blink 2.2s 0.6s ease-in-out infinite;
  will-change: opacity;
}

/* ── TESTIMONI — card dengan bintang ────────────────── */
.cat-testi .lbtn {
  border-radius: 14px;
  border-color: rgba(200,168,75,0.3);
  background: linear-gradient(135deg, rgba(28,20,5,0.85), rgba(15,10,3,0.9));
  padding: 15px 18px;
  box-shadow: 0 0 20px rgba(200,168,75,0.06), inset 0 1px 0 rgba(200,168,75,0.1);
}
.cat-testi .lbtn:hover {
  border-color: rgba(200,168,75,0.55);
  box-shadow: 0 8px 28px rgba(200,168,75,0.18);
}
.cat-testi .lbtn::after {
  background: linear-gradient(to bottom, var(--gold), var(--gold2));
}
.cat-testi .lbtn-arrow { color: var(--gold2); }
.testi-stars {
  display: flex;
  gap: 2px;
  margin-top: 2px;
}
.testi-stars span {
  font-size: 9px;
  color: var(--gold);
  filter: drop-shadow(0 0 3px rgba(200,168,75,0.8));
}
.lbtn-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  text-align: left;
}
.lbtn-sub-desc {
  font-size: 10px;
  color: var(--gold);
  opacity: 0.7;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* ── PRICELIST — kartu dengan aksen warna game ──────── */
.cat-price .price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;   /* kedua kartu selalu sama tinggi, tidak goyang saat hover */
  gap: 9px;
}
.lbtn-genshin,
.lbtn-hsr {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 6px;
  padding: 14px 14px !important;
  border-radius: 14px !important;
  box-sizing: border-box;
  overflow: hidden;        /* cegah konten/gambar besar mendorong ukuran kartu */
  will-change: border-color, box-shadow; /* hover hanya animasikan ini, bukan layout */
}
.lbtn-genshin {
  border-color: rgba(95,208,232,0.25) !important;
  background: linear-gradient(145deg, rgba(5,20,35,0.9), rgba(3,15,28,0.95)) !important;
  box-shadow: 0 0 16px rgba(95,208,232,0.06), inset 0 1px 0 rgba(95,208,232,0.1) !important;
}
.lbtn-genshin:hover {
  border-color: rgba(95,208,232,0.5) !important;
  box-shadow: 0 8px 24px rgba(95,208,232,0.18) !important;
}
.lbtn-hsr {
  border-color: rgba(180,120,255,0.25) !important;
  background: linear-gradient(145deg, rgba(15,5,32,0.9), rgba(10,3,22,0.95)) !important;
  box-shadow: 0 0 16px rgba(180,120,255,0.06), inset 0 1px 0 rgba(180,120,255,0.1) !important;
}
.lbtn-hsr:hover {
  border-color: rgba(180,120,255,0.5) !important;
  box-shadow: 0 8px 24px rgba(180,120,255,0.18) !important;
}
.lbtn-genshin .lbtn-arrow,
.lbtn-hsr .lbtn-arrow { display: none; }
.lbtn-game-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.lbtn-game-sub {
  font-size: 9.5px;
  opacity: 0.6;
  font-weight: 300;
  letter-spacing: 0.06em;
}
.lbtn-game-icon {
  font-size: 24px;
  line-height: 1;
}
.lbtn-game-icon img {
  width: 28px;
  height: 28px;
}
/* Override eksplisit untuk <img> ikon game (genshin.png/hsr.png) —
   mengabaikan attribute HTML width/height="80" yang dipakai di markup,
   supaya ukuran render konsisten & tidak overflow memicu reflow/getar */
.lbtn-genshin .lbtn-icon,
.lbtn-hsr .lbtn-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.lbtn-genshin .lbtn-icon img,
.lbtn-hsr .lbtn-icon img {
  width: 56px !important;
  height: 56px !important;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}
.lbtn-game-arrow {
  font-size: 11px;
  color: var(--hydro);
  opacity: 0.6;
  margin-top: 2px;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.1em;
}
.lbtn-hsr .lbtn-game-arrow { color: var(--purple2); }

/* ── SUPPORT/SAWERIA — banner lebar ─────────────────── */
.cat-support .lbtn {
  padding: 14px 18px;
  border-radius: 14px;
  border-color: rgba(249,115,22,0.3);
  background: linear-gradient(135deg, rgba(28,12,3,0.85), rgba(18,8,2,0.9));
  box-shadow: 0 0 18px rgba(249,115,22,0.07), inset 0 1px 0 rgba(249,115,22,0.1);
}
.cat-support .lbtn:hover {
  border-color: rgba(249,115,22,0.55);
  box-shadow: 0 8px 28px rgba(249,115,22,0.2);
}
.cat-support .lbtn::after {
  background: linear-gradient(to bottom, #F97316, #EA580C);
}
.cat-support .lbtn-arrow { color: #F97316; }
.saweria-note {
  font-size: 9.5px;
  color: rgba(249,115,22,0.65);
  font-weight: 300;
  margin-top: 2px;
  letter-spacing: 0.04em;
}
/* ══════════════════════════════════════════════════════
   TYPEWRITER BADGE
   ══════════════════════════════════════════════════════ */
#typewriter { display: none; }

.typewriter-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 30px;
  margin-top: 8px;
  margin-bottom: 2px;
}

.tw-prefix {
  font-size: 10px;
  color: var(--hydro2);
  opacity: 0.55;
  font-family: 'Cinzel', serif;
  flex-shrink: 0;
}

.tw-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 16px;
  border-radius: 99px;
  border: 1px solid rgba(95,208,232,0.35);
  background: rgba(10,60,90,0.22);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--hydro2);
  min-width: 190px;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, background 0.4s ease;
}

/* Shimmer sweep */
.tw-badge::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: translateX(-100%);
  animation: tw-sweep 2.8s ease-in-out infinite;
}
@keyframes tw-sweep {
  0%,40% { transform: translateX(-100%); }
  60%    { transform: translateX(100%); }
  100%   { transform: translateX(100%); }
}

/* Warna per teks */
.tw-badge.color-0 {
  border-color: rgba(95,208,232,0.38);
  background: rgba(10,60,90,0.22);
  color: var(--hydro2);
}
.tw-badge.color-1 {
  border-color: rgba(139,95,207,0.38);
  background: rgba(40,10,90,0.20);
  color: var(--purple2);
}
.tw-badge.color-2 {
  border-color: rgba(200,168,75,0.38);
  background: rgba(70,45,5,0.22);
  color: var(--gold2);
}

/* Dot berdenyut */
.tw-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--hydro);
  box-shadow: 0 0 5px rgba(95,208,232,0.9);
  animation: tw-dot-pulse 1.4s ease-in-out infinite;
}
.tw-badge.color-1 .tw-dot { background: var(--purple);  box-shadow: 0 0 5px rgba(139,95,207,0.9); }
.tw-badge.color-2 .tw-dot { background: var(--gold);    box-shadow: 0 0 5px rgba(200,168,75,0.9); }
@keyframes tw-dot-pulse {
  0%,100% { transform: scale(1);   opacity: 0.6; }
  50%     { transform: scale(1.6); opacity: 1; }
}

/* Animasi teks masuk / keluar */
.tw-text { display: inline-block; }
.tw-text.entering {
  animation: tw-in 0.32s cubic-bezier(.16,1,.3,1) forwards;
}
.tw-text.leaving {
  animation: tw-out 0.22s ease-in forwards;
}
@keyframes tw-in {
  from { opacity: 0; transform: translateY(7px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
@keyframes tw-out {
  from { opacity: 1; transform: translateY(0)    scale(1); }
  to   { opacity: 0; transform: translateY(-7px) scale(0.96); }
}
/* ══════════════════════════════════════════════════════
   PRICELIST MODAL — carousel popup untuk gambar JPG
   ══════════════════════════════════════════════════════ */
.pl-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.pl-modal.is-open {
  opacity: 1; visibility: visible;
}
.pl-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(2,6,12,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pl-modal-box {
  position: relative;
  width: 100%; max-width: 480px;
  max-height: 88vh;
  background: linear-gradient(165deg, rgba(6,14,24,0.97), rgba(4,10,18,0.98));
  border: 1px solid rgba(95,208,232,0.22);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 40px rgba(95,208,232,0.08);
  padding: 18px 18px 20px;
  display: flex; flex-direction: column;
  transform: scale(0.94) translateY(10px);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.pl-modal.is-open .pl-modal-box {
  transform: scale(1) translateY(0);
}
.pl-modal-close {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(95,208,232,0.1);
  border: 1px solid rgba(95,208,232,0.25);
  color: var(--pearl); font-size: 14px; line-height: 1;
  cursor: pointer; z-index: 2;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.pl-modal-close:hover {
  background: rgba(95,208,232,0.22);
  border-color: rgba(95,208,232,0.5);
  transform: rotate(90deg);
}
.pl-modal-title {
  font-family: 'Cinzel', serif;
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--pearl);
  text-align: center;
  margin: 2px 0 14px;
  padding-right: 28px;
}

/* Carousel */
.pl-carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
}
.pl-carousel-track {
  display: flex;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  touch-action: pan-y;
}
.pl-carousel-track img {
  width: 100%; flex: 0 0 100%;
  max-height: 65vh;
  object-fit: contain;
  display: block;
  user-select: none; -webkit-user-drag: none;
}
.pl-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4,10,18,0.6);
  border: 1px solid rgba(95,208,232,0.3);
  color: var(--pearl); font-size: 20px; line-height: 1;
  cursor: pointer; z-index: 2;
  transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}
.pl-nav:hover { background: rgba(95,208,232,0.25); border-color: rgba(95,208,232,0.6); }
.pl-nav-prev { left: 10px; }
.pl-nav-next { right: 10px; }
/* Sembunyikan nav kalau cuma 1 gambar (class ditambahkan via JS) */
.pl-carousel.is-single .pl-nav { display: none; }

.pl-dots {
  display: flex; justify-content: center; gap: 7px;
  margin-top: 14px;
}
.pl-dots.is-single { display: none; }
.pl-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(95,208,232,0.25);
  border: none; cursor: pointer; padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.pl-dot.is-active {
  background: var(--hydro);
  transform: scale(1.3);
}

/* Body lock saat modal terbuka */
body.pl-no-scroll { overflow: hidden; }

@media (max-width: 480px) {
  .pl-modal-box { padding: 14px 14px 16px; }
  .pl-nav { width: 32px; height: 32px; font-size: 17px; }
}