/* PostererPictures — gaya utama (palet majlis.click: ungu lavender, Figtree + Cormorant Garamond) */
@font-face { font-family: 'Figtree'; src: url('fonts/figtree.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/cormorant.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/cormorant-italic.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
:root {
  --bg: #FAF7FC; --bg-2: #F3ECFA; --paper: #FFFFFF; --ink: #2A2233; --ink-2: #4A4157; --muted: #625A6E;
  --line: #E6DDF0; --line-2: #D5C8E6; --pri: #6D51A5; --pri-d: #5A418F; --pri-l: #8A69B8; --pri-xl: #B9A2DC; --tint: #EFE8F8;
  --plum: #5B3A5E; --plum-l: #8A5A74; --gold: #C9A86A;
  --ok: #2F6B4F; --ok-bg: #E4F2EA; --warn: #8A5A00; --warn-bg: #FBF0D9; --bad: #A23B4E; --bad-bg: #FBE6EA;
  --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --sh: 0 1px 2px rgba(42,34,51,.05), 0 8px 24px -10px rgba(109,81,165,.22);
  --sh-lg: 0 2px 4px rgba(42,34,51,.04), 0 28px 60px -24px rgba(91,58,94,.38);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1); --spring: cubic-bezier(.3,1.4,.5,1);
  /* nama lama (CSS lain masih guna) */
  --cream: var(--bg); --cream-2: var(--bg-2); --red: var(--pri); --red-d: var(--pri-d); --teal: var(--pri); --teal-l: var(--tint);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
code { background: var(--tint); color: var(--pri-d); padding: 2px 7px; border-radius: 6px; font-size: .86em; word-break: break-all; }
::selection { background: #DCCDF2; color: var(--ink); }
.display { font-size: clamp(2.8rem, 6.4vw, 5rem); line-height: 1; letter-spacing: -.015em; }
.display em { font-style: italic; color: var(--pri); font-weight: 500; }
.h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.h3 { font-size: 1.6rem; } .h4 { font-size: 1.32rem; }
.h5 { font-size: 1rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0; margin-bottom: .2em; }
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; }
.hint { font-size: .84rem; color: var(--muted); margin: .35em 0 0; line-height: 1.55; }
.kicker, .ed-label, .dash-kicker { font: 700 .76rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--pri); margin: 0 0 .9em; display: inline-flex; align-items: center; gap: 9px; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pri); box-shadow: 0 0 0 4px rgba(109,81,165,.18); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.narrow-wrap { max-width: 760px; }
.ico { flex: none; vertical-align: -.2em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.inline { display: inline; }

/* ---------- Logo ---------- */
.logo { --c: currentColor; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; padding: 7px 14px 6px; line-height: 1; color: var(--ink);
  background: linear-gradient(var(--c),var(--c)) top left/9px 1.5px, linear-gradient(var(--c),var(--c)) top left/1.5px 9px,
              linear-gradient(var(--c),var(--c)) top right/9px 1.5px, linear-gradient(var(--c),var(--c)) top right/1.5px 9px,
              linear-gradient(var(--c),var(--c)) bottom left/9px 1.5px, linear-gradient(var(--c),var(--c)) bottom left/1.5px 9px,
              linear-gradient(var(--c),var(--c)) bottom right/9px 1.5px, linear-gradient(var(--c),var(--c)) bottom right/1.5px 9px;
  background-repeat: no-repeat; }
.logo-word { font: 600 1.06rem/1 var(--serif); letter-spacing: .3em; margin-right: -.3em; text-transform: uppercase; }
.logo-sub { font: 600 .5rem/1 var(--sans); letter-spacing: .42em; margin: 4px -.42em 0 0; text-transform: uppercase; color: var(--pri); }
.logo-sm { padding: 6px 11px 5px; } .logo-sm .logo-word { font-size: .94rem; } .logo-sm .logo-sub { font-size: .46rem; }
.logo-img { display: block; height: 48px; width: auto; max-width: 190px; object-fit: contain; }
.brand { display: inline-flex; align-items: center; text-decoration: none; transition: transform .2s var(--ease); }
.brand:hover { transform: translateY(-1px); }

/* ---------- Butang ---------- */
.btn { --b: var(--pri); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--b) 88%, #fff), var(--b)); color: #fff; border: 1.5px solid var(--b);
  font: 650 .95rem/1.2 var(--sans); letter-spacing: .005em; text-decoration: none; cursor: pointer; white-space: nowrap; position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 18px -10px color-mix(in srgb, var(--b) 80%, transparent);
  transition: transform .18s var(--ease), box-shadow .18s, background .18s, border-color .18s, color .18s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 14px 26px -12px color-mix(in srgb, var(--b) 90%, transparent); }
.btn:active { transform: translateY(0) scale(.98); }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn:disabled, .btn[aria-disabled=true] { opacity: .6; cursor: not-allowed; transform: none; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid rgba(109,81,165,.45); outline-offset: 2px; }
.btn-accent { --b: var(--plum); }
.btn-dark { --b: var(--ink); }
.btn-line { background: var(--paper); color: var(--ink); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(42,34,51,.05); }
.btn-line:hover { border-color: var(--pri); color: var(--pri-d); box-shadow: 0 10px 22px -14px rgba(109,81,165,.5); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--tint); color: var(--pri-d); box-shadow: none; }
.btn-ghost::after, .btn-line::after, .btn-danger::after { display: none; }
.btn-danger { background: var(--paper); color: var(--bad); border-color: #EBC3CB; box-shadow: none; }
.btn-danger:hover { background: var(--bad); color: #fff; border-color: var(--bad); box-shadow: 0 10px 22px -14px rgba(162,59,78,.6); }
.btn-sm { min-height: 38px; padding: 7px 15px; font-size: .86rem; }
.btn-lg { min-height: 56px; padding: 15px 30px; font-size: 1.02rem; }
.btn-full { width: 100%; }
.btn.is-loading { pointer-events: none; color: transparent !important; }
.btn.is-loading::before { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-line.is-loading::before { border-color: var(--line); border-top-color: var(--pri); }
.pill-link { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 15px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem;
  border: 1.5px solid transparent; transition: background .18s, color .18s, border-color .18s, transform .18s var(--ease); }
.pill-link:hover { background: var(--tint); color: var(--pri-d); transform: translateY(-1px); }
.pill-link.is-on { background: var(--tint); color: var(--pri-d); border-color: var(--line); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--pri); cursor: pointer; font-weight: 600; }
.link-btn:hover { color: var(--pri-d); }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer; transition: .18s; }
.icon-btn:hover { border-color: var(--pri); color: var(--pri); background: var(--tint); transform: translateY(-1px); }
.icon-btn.danger:hover { border-color: var(--bad); color: var(--bad); background: var(--bad-bg); }

/* ---------- Pengepala & kaki ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(250,247,252,.82); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-head.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(91,58,94,.5); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }
.head-nav { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.head-nav .btn { margin-left: 4px; }
.site-foot { border-top: 1px solid var(--line); padding: 36px 0; font-size: .9rem; color: var(--muted); background: var(--paper); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.foot-in p { margin: 0; font-size: .82rem; }

/* ---------- Borang ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field > legend, .field > .label { font-weight: 650; font-size: .9rem; display: flex; justify-content: space-between; align-items: baseline; padding: 0; color: var(--ink); }
.label-link { font-weight: 600; font-size: .84rem; color: var(--pri); text-decoration: none; padding: 2px 10px; border-radius: 99px; background: var(--tint); transition: .18s; }
.label-link:hover { background: var(--pri); color: #fff; }
.opt { font-weight: 400; color: var(--muted); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { width: 100%; min-height: 48px; padding: 11px 15px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--paper); color: var(--ink); font: 16px/1.4 var(--sans); transition: border-color .18s, box-shadow .18s, background .18s; }
input::placeholder, textarea::placeholder { color: #A39BAE; }
input:focus, select, textarea:focus { outline: none; }
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus { border-color: var(--pri); box-shadow: 0 0 0 4px rgba(109,81,165,.15); background: #fff; }
input:disabled { background: var(--bg-2); color: var(--muted); }
input[type=file] { font: .9rem var(--sans); }
input[type=file]::file-selector-button { font: 650 .86rem var(--sans); border: 1.5px solid var(--line-2); background: var(--paper); color: var(--ink); border-radius: 99px; padding: 8px 14px; margin-right: 10px; cursor: pointer; transition: .18s; }
input[type=file]::file-selector-button:hover { border-color: var(--pri); color: var(--pri); }
.is-invalid input, .is-invalid select { border-color: var(--bad) !important; animation: shake .4s; }
.err { color: var(--bad); font-size: .86rem; margin: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .95rem; }
.check input { width: 20px; height: 20px; accent-color: var(--pri); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input, .swatch input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--line-2); border-radius: 999px; cursor: pointer; font-size: .9rem; font-weight: 600; background: var(--paper); transition: .18s var(--ease); }
.chip span:hover { border-color: var(--pri); color: var(--pri); }
.chip input:checked + span { background: var(--pri); color: #fff; border-color: var(--pri); box-shadow: 0 8px 18px -10px var(--pri); }
.chip input:focus-visible + span, .swatch input:focus-visible + .sw { outline: 3px solid rgba(109,81,165,.45); outline-offset: 2px; }
.swatches { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.swatch { cursor: pointer; text-align: center; }
.sw { display: block; aspect-ratio: 3/4; border-radius: 14px; background: var(--bg); border: 2px solid var(--line); position: relative; overflow: hidden; transition: .2s var(--ease); }
.swatch:hover .sw { transform: translateY(-3px); }
.sw i { position: absolute; left: 18%; right: 18%; top: 16%; height: 42%; background: var(--paper); border-radius: 3px; box-shadow: 0 4px 10px rgba(0,0,0,.12); transform: rotate(-3deg); }
.sw b { position: absolute; left: 28%; right: 28%; bottom: 15%; height: 9%; border-radius: 99px; background: var(--accent); }
.swatch input:checked + .sw { border-color: var(--pri); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--pri); }
.sw-name { display: block; font-size: .78rem; margin-top: 6px; color: var(--ink-2); font-weight: 600; }
.prefix-input { display: flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--paper); transition: .18s; }
.prefix-input span { display: flex; align-items: center; padding: 0 4px 0 14px; color: var(--muted); font-size: .9rem; background: var(--bg-2); white-space: nowrap; max-width: 60%; overflow: hidden; }
.prefix-input input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; min-width: 0; }
.prefix-input:focus-within { border-color: var(--pri); box-shadow: 0 0 0 4px rgba(109,81,165,.15); }
.cap-row { display: flex; align-items: center; gap: 10px; }
.cap-img { border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-2); }
.cap-new { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--paper); cursor: pointer; color: var(--ink-2); transition: .2s; }
.cap-new:hover { border-color: var(--pri); color: var(--pri); }
.cap-new:active svg { transform: rotate(-180deg); } .cap-new svg { transition: transform .4s var(--ease); }
.cap-field.is-invalid input { border-color: var(--bad); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 84px !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--tint); color: var(--pri-d); font: 650 .78rem var(--sans); padding: 7px 12px; border-radius: 99px; cursor: pointer; }
.pw-meter { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 2px; }
.pw-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--bad); transition: width .3s var(--ease), background .3s; }

/* ---------- Mesej & lencana ---------- */
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: 14px; margin: 0 0 18px; font-size: .94rem; border: 1px solid transparent; animation: flashIn .5s var(--spring) both; }
.flash .ico { margin-top: 1px; }
.flash-ok { background: var(--ok-bg); color: #1F5139; border-color: #C3E2CF; }
.flash-warn { background: var(--warn-bg); color: #684400; border-color: #EFD9A9; }
.flash-bad { background: var(--bad-bg); color: #84283A; border-color: #F0C3CD; animation: flashIn .5s var(--spring) both, shake .45s .15s; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--ok-bg); color: var(--ok); } .badge-ok::before { animation: blink 1.6s ease-in-out infinite; }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); } .badge-muted { background: var(--bg-2); color: var(--muted); }

/* ---------- Halaman akaun (log masuk, daftar, reset, bayaran) ---------- */
.auth-page { min-height: 100vh; background: radial-gradient(circle at 100% 0, #F1E6FA 0, transparent 40%), radial-gradient(circle at 50% 100%, #F6EAF0 0, transparent 45%), var(--bg); }
.auth-story { position: fixed; inset: 0 52% 0 0; color: #F7F1FB; padding: 54px clamp(32px,5vw,80px); display: flex; flex-direction: column; justify-content: center; gap: 22px; overflow: hidden;
  background: radial-gradient(circle at 15% 15%, rgba(185,162,220,.35), transparent 40%), radial-gradient(circle at 85% 90%, rgba(138,90,116,.6), transparent 45%), linear-gradient(160deg, #3A2B52, #2A2233 55%, #3B2540); }
.auth-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -140px; top: -120px; background: radial-gradient(circle, rgba(201,168,106,.28), transparent 65%); animation: float 9s ease-in-out infinite; }
.auth-story .ed-label { color: #D9C9F0; }
.auth-story h2 { font: 500 clamp(2.4rem, 4.2vw, 4rem)/1.02 var(--serif); margin: 0; position: relative; }
.auth-story h2 em { color: #D9C2F5; font-weight: 500; }
.auth-photo { position: relative; margin: 6px 0; transform: rotate(-3deg); background: #fff; padding: 9px 9px 0; max-width: 360px; border-radius: 4px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); animation: polaroidIn 1s var(--spring) .2s both; }
.auth-photo img { display: block; aspect-ratio: 1.55; object-fit: cover; width: 100%; filter: saturate(.85); }
.auth-photo figcaption { font: italic 500 1.05rem var(--serif); color: var(--ink-2); padding: 10px 6px 12px; text-align: center; }
.auth-story > p { font-size: .9rem; color: #CFC2DF; max-width: 330px; margin: 0; position: relative; }
.auth { margin: 0 0 0 48%; min-height: 100vh; padding: 48px clamp(22px,5vw,88px); display: grid; align-content: center; justify-items: center; gap: 26px; }
.auth > .brand { animation: fadeUp .6s var(--ease) both; }
.auth-card { width: 100%; max-width: 450px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 36px; box-shadow: var(--sh-lg); animation: cardIn .7s var(--spring) .08s both; position: relative; }
.auth-card .h2 { margin-bottom: .25em; }
.auth-card > .muted { margin-bottom: 22px; }
.auth-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; text-align: center; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.result-ico { width: 84px; height: 84px; margin: 4px auto 18px; display: block; }
.result-ico circle { fill: none; stroke-width: 3; stroke-dasharray: 240; stroke-dashoffset: 240; animation: draw .8s var(--ease) .2s forwards; }
.result-ico path { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s var(--ease) .85s forwards; }
.result-ok circle, .result-ok path { stroke: var(--ok); } .result-ok { filter: drop-shadow(0 10px 18px rgba(47,107,79,.25)); }
.result-bad circle, .result-bad path { stroke: var(--bad); }
.result-wait { width: 72px; height: 72px; margin: 4px auto 18px; border-radius: 50%; border: 4px solid var(--tint); border-top-color: var(--pri); animation: spin 1s linear infinite; }
.auth-card.is-fail { animation: cardIn .7s var(--spring) .08s both, shake .5s 1s; }
.page-center { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.lost { display: grid; gap: 14px; justify-items: center; max-width: 520px; }
.lost-stack { position: relative; width: 170px; height: 130px; margin-bottom: 6px; }
.lost-stack span { position: absolute; left: 50%; top: 10px; width: 92px; height: 110px; margin-left: -46px; background: #fff; border-radius: 4px; box-shadow: var(--sh-lg); padding: 7px 7px 24px; }
.lost-stack span::after { content: ''; display: block; height: 100%; border-radius: 2px; background: linear-gradient(150deg, #E7DDF5, #CDB8EC); }
.lost-stack span:nth-child(1) { transform: rotate(-16deg) translateX(-40px); animation: float 6s ease-in-out infinite; }
.lost-stack span:nth-child(2) { transform: rotate(13deg) translateX(40px); animation: float 7s ease-in-out -2s infinite; }
.lost-stack span:nth-child(2)::after { background: linear-gradient(150deg, #F3DCE6, #D9A9BF); }
.lost-stack span:nth-child(3) { animation: float 5s ease-in-out -1s infinite; } .lost-stack span:nth-child(3)::after { background: linear-gradient(150deg, #F7EBD6, #E2C48F); }

/* ---------- Papan pemuka ---------- */
.dash { background: radial-gradient(circle at 100% 0, #F2E9FB, transparent 35%), var(--bg); padding-left: 240px; }
.dash .dash-head { position: fixed; inset: 0 auto 0 0; width: 240px; background: var(--paper); border-right: 1px solid var(--line); border-bottom: 0; z-index: 40; }
.dash-head .head-in { display: flex; flex-direction: column; align-items: stretch; padding: 30px 18px 22px; height: 100%; gap: 34px; max-width: none; }
.dash-head .brand { align-self: flex-start; }
.dash-head .head-nav { flex-direction: column; align-items: stretch; gap: 6px; white-space: normal; }
.dash-head .head-nav > a, .nav-out { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 14px; border-radius: 14px; text-decoration: none; color: var(--ink-2); font: 650 .92rem var(--sans); border: 1.5px solid transparent; background: none; cursor: pointer; width: 100%; transition: .18s var(--ease); }
.dash-head .head-nav > a:hover, .nav-out:hover { background: var(--tint); color: var(--pri-d); transform: translateX(3px); }
.dash-head .head-nav > a.is-on { background: linear-gradient(135deg, var(--pri-l), var(--pri)); color: #fff; box-shadow: 0 12px 24px -14px var(--pri); }
.dash-head .inline { display: block; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.nav-out { color: var(--muted); }
.dash-identity { margin-top: auto; display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 18px; min-width: 0; }
.identity-avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--pri-xl), var(--pri)); color: #fff; font-weight: 700; }
.dash-identity > span:last-child { min-width: 0; display: grid; }
.dash-identity b { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-identity small { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-main { padding-top: 38px; padding-bottom: 70px; max-width: 1200px; }
.dash-main.narrow-wrap { max-width: 820px; }
.dash-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.dash-top h1 { margin: 0 0 6px; }
.dash-top p { margin: 0; }
.title-dot { color: var(--pri); }
.back { margin: 0 0 16px -10px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; margin-bottom: 18px; box-shadow: var(--sh); }
.overview { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 0 0 30px; }
.overview-card { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--sh); position: relative; overflow: hidden; }
.overview-card::after { content: ''; position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--tint); opacity: .7; }
.overview-card span { font-size: .84rem; color: var(--muted); font-weight: 600; }
.overview-card > * { position: relative; z-index: 1; }
.overview-card strong { font: 600 2.6rem/1 var(--serif); grid-row: 2; font-variant-numeric: tabular-nums; }
.overview-card .ico { grid-column: 2; grid-row: 1 / 3; width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: var(--tint); color: var(--pri); position: relative; z-index: 1; }
.collection-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.collection-heading h2 { font-size: 1.5rem; margin: 0; }
.collection-heading > span { font-size: .84rem; color: var(--muted); }
.empty-state { text-align: center; background: var(--paper); border: 2px dashed var(--line-2); border-radius: var(--r-xl); padding: 56px 24px; }
.empty-state p { max-width: 440px; margin: 0 auto 22px; }
.polaroid-stack { position: relative; width: 130px; height: 110px; margin: 0 auto 18px; }
.polaroid-stack span { position: absolute; left: 33px; top: 6px; width: 64px; height: 78px; background: #fff; border-radius: 3px; box-shadow: 0 10px 20px -8px rgba(91,58,94,.4); }
.polaroid-stack span::after { content: ''; position: absolute; inset: 6px 6px 18px; border-radius: 1px; background: linear-gradient(150deg, #E7DDF5, #CDB8EC); }
.polaroid-stack span:nth-child(1) { transform: rotate(-14deg) translateX(-24px); animation: float 6s ease-in-out infinite; }
.polaroid-stack span:nth-child(2) { transform: rotate(10deg) translateX(24px); animation: float 7s ease-in-out -2s infinite; } .polaroid-stack span:nth-child(2)::after { background: linear-gradient(150deg, #F3DCE6, #D9A9BF); }
.polaroid-stack span:nth-child(3) { animation: float 5s ease-in-out -1s infinite; } .polaroid-stack span:nth-child(3)::after { background: linear-gradient(150deg, #F7EBD6, #E2C48F); }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.ev-card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; box-shadow: var(--sh); transition: transform .25s var(--ease), box-shadow .25s; }
.ev-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.ev-swatch { position: relative; height: 150px; background: radial-gradient(circle at 80% 20%, var(--soft), transparent 60%), var(--bg); overflow: hidden; }
.ev-cover { position: absolute; display: flex; gap: 0; left: 50%; top: 22px; transform: translateX(-50%); }
.ev-cover i { display: block; width: 74px; height: 88px; background: #fff; padding: 5px 5px 16px; border-radius: 3px; box-shadow: 0 10px 20px -10px rgba(0,0,0,.45); margin: 0 -12px; transition: transform .35s var(--spring); }
.ev-cover i span { display: block; width: 100%; height: 100%; background: var(--soft) center/cover; border-radius: 1px; }
.ev-cover i:nth-child(1) { transform: rotate(-9deg); } .ev-cover i:nth-child(2) { transform: translateY(-6px); z-index: 1; } .ev-cover i:nth-child(3) { transform: rotate(8deg); }
.ev-card:hover .ev-cover i:nth-child(1) { transform: rotate(-14deg) translateX(-8px); } .ev-card:hover .ev-cover i:nth-child(3) { transform: rotate(13deg) translateX(8px); } .ev-card:hover .ev-cover i:nth-child(2) { transform: translateY(-10px) scale(1.04); }
.ev-type { position: absolute; left: 14px; bottom: 12px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #2A2233; background: rgba(255,255,255,.88); padding: 4px 10px; border-radius: 999px; }
.ev-cover-date { position: absolute; right: 14px; bottom: 12px; font-size: .72rem; font-weight: 700; color: #2A2233; background: rgba(255,255,255,.88); padding: 4px 10px; border-radius: 999px; }
.ev-body { padding: 18px 20px 20px; position: relative; }
.ev-body h2 { margin-bottom: 2px; overflow-wrap: anywhere; font-size: 1.5rem; }
.ev-body p { margin: 0 0 14px; }
.ev-open { position: absolute; right: 16px; top: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--pri); transition: .25s var(--ease); }
.ev-card:hover .ev-open { background: var(--pri); color: #fff; transform: rotate(-45deg); }
.ev-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.ev-meta .small { display: inline-flex; align-items: center; gap: 5px; }
.ev-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.ev-head-swatch { width: 62px; height: 72px; border-radius: 4px; flex: none; background: #fff; padding: 5px 5px 14px; box-shadow: 0 10px 22px -12px rgba(0,0,0,.45); transform: rotate(-5deg); }
.ev-head-swatch::after { content: ''; display: block; width: 100%; height: 100%; border-radius: 1px; background: radial-gradient(circle at 70% 30%, var(--accent) 0 8px, transparent 9px), var(--soft); }
.ev-head-text { flex: 1; min-width: 0; } .ev-head-text h1 { margin: 4px 0 0; overflow-wrap: anywhere; }
.ev-head-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.activate { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; color: #F5EEFB; border-radius: var(--r-xl); padding: 32px; margin-bottom: 18px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 90% 10%, rgba(201,168,106,.3), transparent 40%), radial-gradient(circle at 0 100%, rgba(138,90,116,.55), transparent 50%), linear-gradient(135deg, #3A2B52, #2A2233); box-shadow: var(--sh-lg); }
.activate p { color: #D6CBE3; } .activate .ticks { margin: 0; } .activate .ticks li::before { background-color: rgba(255,255,255,.12); }
.activate-cta { display: grid; gap: 10px; align-content: center; }
.activate-cta .btn-line { color: #fff; background: transparent; border-color: rgba(255,255,255,.35); } .activate-cta .btn-line:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.activate .btn-accent { --b: #C9A86A; color: #2A2233; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.price s { color: #A898BC; } .price b { font: 600 3rem/1 var(--serif); } .price span { font-size: .86rem; color: #D6CBE3; }
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.tools .tool-link { grid-column: span 2; }
.ev-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tool { display: flex; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; text-decoration: none; transition: .25s var(--ease); min-width: 0; box-shadow: var(--sh); }
a.tool:hover { border-color: var(--pri-xl); transform: translateY(-3px); box-shadow: var(--sh-lg); }
.tool.is-locked { opacity: .55; cursor: not-allowed; } a.tool.is-locked:hover { transform: none; border-color: var(--line); box-shadow: var(--sh); }
.tool-ico { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--pri); transition: .3s var(--spring); }
a.tool:hover .tool-ico { transform: rotate(-8deg) scale(1.08); background: var(--pri); color: #fff; }
.tool-main { min-width: 0; flex: 1; } .tool-main p { margin: 0; }
.copy-row { display: flex; gap: 8px; margin: 8px 0 10px; }
.copy-row input { min-height: 40px !important; font-size: .86rem !important; padding: 6px 12px !important; background: var(--bg) !important; }
.tool-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 26px; box-shadow: var(--sh); }
.stats div { padding: 18px 22px; display: grid; } .stats div + div { border-left: 1px solid var(--line); }
.stats b { font: 600 1.9rem/1.1 var(--serif); } .stats span { font-size: .84rem; color: var(--muted); }
.tabs { display: flex; gap: 6px; margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; padding: 5px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%; box-shadow: var(--sh); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; text-decoration: none; color: var(--muted); font-weight: 650; font-size: .9rem; border-radius: 999px; white-space: nowrap; transition: .2s var(--ease); }
.tabs a:hover { color: var(--pri-d); background: var(--tint); }
.tabs a.is-on { color: #fff; background: linear-gradient(135deg, var(--pri-l), var(--pri)); box-shadow: 0 8px 18px -10px var(--pri); }
.tabs a span { font-size: .74rem; background: rgba(109,81,165,.12); padding: 1px 8px; border-radius: 99px; }
.tabs a.is-on span { background: rgba(255,255,255,.25); }
.empty-note { color: var(--muted); padding: 34px 0; text-align: center; }
.mod-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.mod-photo { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; position: relative; transition: opacity .2s, transform .25s var(--ease), box-shadow .25s; box-shadow: var(--sh); }
.mod-photo:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.mod-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-2); }
.mod-photo figcaption { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 9px 9px 9px 12px; }
.mod-who { display: grid; min-width: 0; line-height: 1.3; } .mod-who b, .mod-who i { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mod-who i { font-style: normal; color: var(--muted); font-size: .78rem; }
.mod-actions { display: flex; gap: 6px; flex: none; }
.love-tag { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.92); color: #C2416B; font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; box-shadow: 0 4px 10px -4px rgba(0,0,0,.3); }
.hidden-tag { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; display: none; }
.mod-photo.is-hidden img { opacity: .35; } .mod-photo.is-hidden .hidden-tag { display: block; }
.hidden-tag-inline { display: none; } .is-hidden .hidden-tag-inline { display: inline; }
.vis-btn .i-show { display: none; } .is-hidden .vis-btn .i-show { display: inline; } .is-hidden .vis-btn .i-hide { display: none; }
.wish-list { display: grid; gap: 10px; }
.wish-row { display: flex; justify-content: space-between; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; transition: opacity .2s; box-shadow: var(--sh); border-left: 4px solid var(--pri-xl); }
.wish-row.is-hidden { opacity: .55; }
.wish-msg { margin: 0 0 6px; white-space: pre-line; overflow-wrap: anywhere; font: 500 1.15rem/1.45 var(--serif); } .wish-row .small { margin: 0; }
.removing { opacity: 0 !important; transform: scale(.94) !important; transition: .28s var(--ease) !important; }
.settings-list { display: grid; gap: 10px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--sh); }
.set-row p { margin: 0; }
label.set-row { cursor: pointer; box-shadow: none; background: var(--bg); }
label.set-row > span:first-child { display: grid; gap: 3px; }
label.set-row .h5 { margin: 0; }
.danger-zone { border-color: #F0C3CD; }
.confirm-input { margin-top: 10px; max-width: 220px; min-height: 40px !important; }
.switch { position: relative; flex: none; width: 52px; height: 30px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span:not(.sr) { position: absolute; inset: 0; background: var(--line-2); border-radius: 99px; transition: .25s; }
.switch span:not(.sr)::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: .3s var(--spring); }
.switch input:checked + span { background: linear-gradient(135deg, var(--pri-l), var(--pri)); } .switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid rgba(109,81,165,.45); outline-offset: 2px; }
.checkout { display: grid; gap: 0; }
.co-line { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line-2); }
.co-line p { margin: 0; } .co-promo { color: var(--ok); }
.co-total { border-bottom: 0; font-size: 1.1rem; align-items: center; } .co-total b { font: 600 2.4rem/1 var(--serif); color: var(--pri-d); }
.promo-box { margin: 4px 0 16px; } .promo-box summary { cursor: pointer; color: var(--pri); font-weight: 650; font-size: .92rem; display: inline-flex; padding: 6px 14px; border-radius: 99px; background: var(--tint); list-style: none; }
.promo-box summary::-webkit-details-marker { display: none; }
.promo-form { display: flex; gap: 8px; margin-top: 10px; } .promo-form input { text-transform: uppercase; }
.co-pay { margin-top: 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; box-shadow: var(--sh); }
.stat span { font-size: .8rem; color: var(--muted); font-weight: 600; } .stat b { font: 600 1.8rem/1.1 var(--serif); }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 20px; box-shadow: var(--sh); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 13px 14px; border-bottom: 1px solid var(--line); background: #FBF8FD; white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; } .table tbody tr:hover { background: #FBF8FE; }
.table a { color: var(--ink); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.row-actions form { display: flex; gap: 6px; flex-wrap: wrap; }
.pop { position: relative; } .pop summary { list-style: none; } .pop summary::-webkit-details-marker { display: none; }
.pop-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; width: 250px; display: grid; gap: 10px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 16px; padding: 14px; box-shadow: var(--sh-lg); animation: popIn .25s var(--spring); }
.pop-body label, .promo-add label { display: grid; gap: 4px; font-size: .84rem; font-weight: 650; }
.search { display: flex; gap: 8px; margin-bottom: 16px; max-width: 480px; }
.promo-add { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 12px; align-items: end; }
.tp-test { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.settings-form .panel { display: grid; gap: 16px; margin: 0; }
.settings-form .panel h2 { margin: 0; }
.cms-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.cms-top p { margin: 0; max-width: 720px; }
.cms-top code { word-break: normal; white-space: nowrap; }
.cms textarea { resize: vertical; }
.cms-row { display: flex; gap: 12px; align-items: flex-start; }
.cms-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--pri); display: grid; place-items: center; font-size: .8rem; font-weight: 700; margin-top: 10px; }
.cms-fields { flex: 1; display: grid; gap: 8px; min-width: 0; }
.cms-fields input { font-weight: 600; }
.cms-actions { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 35%); z-index: 5; }
.img-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.img-slot { min-width: 0; display: grid; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px; align-content: start; }
.img-slot h3 { font: 700 .92rem var(--sans); margin: 0; }
.img-prev { position: relative; width: 100%; aspect-ratio: 16/10; border-radius: 12px; background: #fff; border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.img-prev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img-prev.is-logo img { object-fit: contain; padding: 14px; }
.img-slots { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.img-slot input[type=file] { width: 100%; max-width: 100%; font-size: .82rem; }
.img-slot .hint { margin: 0; }
.img-slot-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.img-slot form { display: grid; gap: 8px; }


/* ---------- Senarai bertanda ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .18em; width: 21px; height: 21px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236D51A5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center/13px no-repeat; }
.ticks.light li::before, .activate .ticks li::before { background-color: rgba(255,255,255,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E3D2FA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E"); }

/* ---------- Toast & confetti (app.js) ---------- */
.toast-stack { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: #2A2233; color: #fff; border: 1px solid rgba(255,255,255,.14); padding: 13px 16px; border-radius: 16px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); font-weight: 600; font-size: .92rem; animation: toastIn .45s var(--spring) both; pointer-events: auto; }
.toast.is-out { animation: toastOut .35s var(--ease) forwards; }
.toast .ico { color: #C9B3EE; }
.fx-confetti { position: fixed; inset: 0; z-index: 300; pointer-events: none; }

/* ---------- Animasi asas ---------- */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .7s var(--ease) var(--d, 0s), translate .8s var(--ease) var(--d, 0s); }
.reveal.is-in { opacity: 1; translate: 0 0; }
.reveal.reveal { transition: opacity .7s var(--ease) var(--d, 0s), translate .8s var(--ease) var(--d, 0s), transform .3s var(--ease), box-shadow .3s, border-color .3s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.97); } }
@keyframes flashIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes float { 50% { translate: 0 -10px; } }
@keyframes polaroidIn { from { opacity: 0; transform: rotate(-12deg) translateY(30px) scale(.9); } }
.stagger > * { animation: fadeUp .6s var(--ease) both; }
.stagger > :nth-child(2) { animation-delay: .06s; } .stagger > :nth-child(3) { animation-delay: .12s; } .stagger > :nth-child(4) { animation-delay: .18s; }
.stagger > :nth-child(5) { animation-delay: .24s; } .stagger > :nth-child(6) { animation-delay: .3s; } .stagger > :nth-child(n+7) { animation-delay: .34s; }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
  .tools { grid-template-columns: 1fr 1fr; } .tools .tool-link { grid-column: 1 / -1; }
  .promo-add { grid-template-columns: 1fr 1fr; }
  .swatches { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .auth-story { display: none; }
  .auth { margin: 0; padding: 30px 18px 50px; align-content: start; }
  .dash { padding-left: 0; padding-bottom: 84px; }
  .dash .dash-head { position: sticky; inset: auto; top: 0; width: auto; border-right: 0; border-bottom: 1px solid var(--line); background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .dash-head .head-in { flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 18px; gap: 12px; height: auto; min-height: 64px; }
  .dash-head .head-nav { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 50; flex-direction: row; gap: 4px; padding: 6px; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 16px 40px -16px rgba(42,34,51,.45); padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .dash-head .head-nav > a, .nav-out { flex: 1; flex-direction: column; gap: 3px; min-height: 54px; padding: 6px 4px; font-size: .7rem; justify-content: center; border-radius: 16px; }
  .dash-head .head-nav > a:hover, .nav-out:hover { transform: none; }
  .dash-head .inline { flex: 1; display: flex; margin: 0; padding: 0; border: 0; }
  .dash-identity { margin: 0; padding: 0; border: 0; }
  .dash-identity > span:last-child { display: none; }
  .dash-main { padding-top: 24px; }
  .overview { gap: 10px; } .overview-card { padding: 14px; align-content: start; } .overview-card::after { display: none; } .overview-card strong { font-size: 2.1rem; } .overview-card .ico { display: none; } .overview-card span { line-height: 1.3; }
}
@media (max-width: 720px) {
  .hide-sm { display: none !important; }
  .head-in { min-height: 64px; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(4, 1fr); }
  .activate { grid-template-columns: 1fr; padding: 24px; }
  .tools { grid-template-columns: 1fr; } .tools .tool-link { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr; } .stats div:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .ev-head { flex-wrap: wrap; align-items: flex-start; } .ev-head-text { flex: 1 1 calc(100% - 80px); } .ev-head-actions { flex: 1 1 100%; } .ev-head-actions .btn { flex: 1; justify-content: center; }
  .set-row { align-items: flex-start; }
  .danger-zone { flex-direction: column; }
  .wish-row { padding: 14px; gap: 10px; } .wish-row .mod-actions { flex-direction: column; }
  .mod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .auth-card, .panel { padding: 22px; }
  .promo-add { grid-template-columns: 1fr; }
  .cms-top { flex-direction: column; }
  .overview-card span { font-size: .72rem; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) { .hide-xs { display: none !important; } .wrap { padding: 0 16px; } .logo-word { font-size: .92rem; } .logo-sub { font-size: .44rem; } .ev-swatch { height: 140px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; translate: none; }
}

/* ---------- Sahkan emel (PIN) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.verify-card { text-align: center; }
.verify-card .form { text-align: left; }
.verify-ico { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 24px; display: grid; place-items: center; background: var(--tint); color: var(--pri); animation: verifyBob 2.6s ease-in-out infinite; }
@keyframes verifyBob { 50% { transform: translateY(-5px) rotate(-4deg); } }
.verify-mail { color: var(--ink); overflow-wrap: anywhere; }
.pin-boxes { border: 0; padding: 0; margin: 22px 0 18px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; min-width: 0; }
#pin-form .pin-box { width: 100%; min-width: 0; height: 62px; padding: 0; text-align: center; font: 700 1.7rem/1 var(--sans); color: var(--ink); background: var(--bg); border: 2px solid var(--line-2); border-radius: 14px; caret-color: var(--pri); transition: border-color .15s, box-shadow .15s, transform .2s var(--spring); }
#pin-form .pin-box:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 4px rgba(109,81,165,.16); background: var(--paper); transform: translateY(-2px); }
#pin-form .pin-boxes.is-invalid .pin-box { border-color: #D9718A; }
.pin-boxes[disabled] .pin-box { opacity: .5; }
.verify-more { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.verify-more .hint { margin: 0; }
.verify-change { margin-top: 18px; text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.verify-change summary { cursor: pointer; font-weight: 650; color: var(--pri); }
.verify-change .form { margin-top: 12px; }
@media (max-width: 380px) { .pin-boxes { gap: 6px; } #pin-form .pin-box { height: 54px; font-size: 1.4rem; } }

/* ---------- Dialog padam: taip DELETE ---------- */
.tc-dialog { border: 0; padding: 0; border-radius: 22px; width: min(420px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(30,15,50,.55); }
.tc-dialog::backdrop { background: rgba(42,34,51,.45); backdrop-filter: blur(3px); }
.tc-dialog[open] { animation: cardIn .35s var(--spring) both; }
.tc-box { padding: 26px; display: grid; gap: 10px; }
.tc-ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--bad-bg); color: #A12C45; font: 800 1.5rem/1 var(--sans); }
.tc-title { margin: 4px 0 0; font: 600 1.6rem/1.15 var(--serif); overflow-wrap: anywhere; }
.tc-detail { margin: 0; color: var(--ink-2); font-size: .94rem; overflow-wrap: anywhere; }
.tc-label { margin-top: 6px; font-weight: 650; font-size: .9rem; }
.tc-dialog .tc-input { font-weight: 700; letter-spacing: .12em; text-transform: none; }
.tc-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.spam-note { display: flex; gap: 10px; align-items: flex-start; text-align: left; margin: 16px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--warn-bg); border: 1px solid #EFD9A9; color: #5C3D00; font-size: .9rem; line-height: 1.45; }
.spam-ico { flex: none; margin-top: 1px; color: #9A6A00; }
.tc-ok:not(:disabled) { background: #C2384F; border-color: #C2384F; color: #fff; }
.tc-ok:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Admin → System ---------- */
.sys-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.sys-card { padding: 22px; min-width: 0; margin-bottom: 0; }
.sys-card .h3 { margin: 0 0 12px; }
.sys-big { font: 600 1.6rem/1.2 var(--serif); margin: 0 0 12px; display: flex; gap: 10px; align-items: center; }
.sys-list { list-style: none; margin: 0; padding: 0; display: grid; }
.sys-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.sys-list li:first-child { border-top: 0; }
.sys-list li > span:first-child { display: grid; min-width: 0; }
.sys-list .badge { flex: none; }
.sys-list small { color: var(--muted); font-size: .8rem; }
.sys-log { margin: 0 0 12px; padding: 14px; border-radius: 12px; background: #1E1A26; color: #E9E2F2; font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace; max-height: 360px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 720px) { .sys-grid { grid-template-columns: 1fr; } }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cron-steps { margin: 6px 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); border: 1px solid #EFD9A9; color: #5C3D00; font-size: .9rem; }
.cron-steps p { margin: 0; }
#cron .field { margin: 10px 0 12px; }
#cron code { overflow-wrap: anywhere; }
.tg-steps { margin: 0 0 14px 18px; padding: 0; line-height: 1.7; font-size: .92rem; }
.tg-kinds { margin: 8px 0 14px; }
.sys-mails td, .sys-mails th { white-space: nowrap; }
#mail .table-wrap { margin: 10px 0; }
/* ---------- Padam akaun ---------- */
.danger-panel { border-color: #F0C3CD; }
.danger-panel .h4 { color: #A12C45; }
.danger-details { margin-top: 10px; border: 1px solid #F0C3CD; border-radius: 14px; padding: 12px 16px; background: #FFF8F9; }
.danger-details summary { cursor: pointer; font-weight: 650; color: #A12C45; }
.danger-details .form { margin-top: 12px; }
.danger-details .btn-danger, .verify-card .btn-danger.tc-ok { background: #C2384F; border-color: #C2384F; color: #fff; }

/* ---------- Co-host ---------- */
.cohosts { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--sh); display: grid; gap: 14px; }
.cohosts-head { display: flex; gap: 14px; align-items: flex-start; }
.cohosts-head .h5 { margin: 0 0 4px; }
.cohosts-head p { margin: 0; }
.cohost-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cohost-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg); }
.cohost-who { flex: 1; min-width: 0; display: grid; }
.cohost-who b, .cohost-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cohost-who small { color: var(--muted); font-size: .8rem; }
.cohost-act { display: flex; gap: 6px; align-items: center; flex: none; }
.cohost-invite { display: flex; gap: 8px; }
.cohost-invite input { flex: 1; min-width: 0; }
.cohost-leave { display: flex; }
.cohost-ticks { text-align: left; margin: 6px 0 20px; }
.stat b.stat-sm { font-size: 1.35rem; padding-top: 4px; }
.restore-h { margin: 22px 0 8px; }
.restore-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 720px) {
  .cohost-invite { flex-direction: column; }
  .cohost-resend span { display: none; }
  .cohost-resend { width: 38px; min-height: 38px; padding: 0; }
  .cohost-invite .btn { width: 100%; }
}
.bk-table td { vertical-align: middle; }
.bk-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bk-meta { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.bk-act { justify-content: flex-end; flex-wrap: nowrap; margin: 0; }
@media (max-width: 720px) { .bk-act .btn span, .bk-act .btn { font-size: 0; gap: 0; } .bk-act .btn { width: 38px; min-height: 38px; padding: 0; } .bk-act .btn .ico { width: 16px; height: 16px; } }
