/* =====================================================================
   WEAPONS OF WAR — main stylesheet
   Self-hosted fonts (assets/fonts): gumagana offline. Kulay: palitan sa :root.
   ===================================================================== */
@font-face {
  font-family: "Cinzel"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/cinzel-600.woff2") format("woff2");
}
@font-face {
  font-family: "Cinzel"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/cinzel-700.woff2") format("woff2");
}

:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --panel: #161619;
  --panel-2: #1c1d20;
  --steel: #2b2d31;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #ebe6dc;
  --muted: #aaa398;
  --dim: #8a847a;
  --gold: #c9a45c;
  --gold-2: #e2c483;
  --ember: #c4442f;
  --ember-2: #e2674f;
  --ok: #78b872;
  --warn: #dba548;
  --gold-line: linear-gradient(90deg, transparent, rgba(201, 164, 92, .7), transparent);
  --glow: 0 0 0 1px rgba(201, 164, 92, .35), 0 18px 50px -12px rgba(0, 0, 0, .8), 0 0 40px -10px rgba(201, 164, 92, .25);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --display: "Cinzel", "Palatino Linotype", Palatino, Georgia, serif;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-2); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
[hidden] { display: none !important; }
main:focus { outline: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

.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;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: #141210; padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #141210; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  position: relative; min-height: 50px; padding: 0 28px; overflow: hidden;
  font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, box-shadow .25s var(--ease), transform .2s var(--ease);
}
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 12px; }
.btn-primary {
  background: linear-gradient(180deg, #d6b36d 0%, #a9843f 100%);
  border-color: #d9b874; color: #15120c;
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, .45), inset 0 -2px 0 rgba(90, 64, 20, .35);
}
/* Shine sweep sa hover */
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 250, 235, .45), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease); pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover { color: #15120c; background: linear-gradient(180deg, #e4c482 0%, #b8914a 100%); box-shadow: inset 0 1px 0 rgba(255, 244, 214, .5), 0 0 0 4px rgba(201, 164, 92, .15), 0 8px 30px rgba(201, 164, 92, .3); transform: translateY(-1px); }
.btn-ghost { background: rgba(10, 10, 11, .45); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { color: var(--text); border-color: var(--gold); background: rgba(201, 164, 92, .08); }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid; border-radius: 2px; white-space: nowrap;
}
.tag-demo { color: #eaa864; border-color: rgba(234, 168, 100, .4); background: rgba(234, 168, 100, .08); }
.tag-placeholder { color: var(--muted); border-color: var(--line-2); background: rgba(255, 255, 255, .03); }

/* ---------- Header ---------- */
.site-header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, .86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .25s;
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold-line); opacity: .45; pointer-events: none; }
.site-header.is-scrolled { background: rgba(10, 10, 11, .96); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.wordmark {
  display: inline-flex; align-items: center; gap: 12px; color: var(--text);
  font: 700 19px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.wordmark:hover { color: var(--text); }
.wordmark-mark {
  width: 14px; height: 14px; border: 2px solid var(--gold); transform: rotate(45deg);
  box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 7px var(--ember), 0 0 12px rgba(196, 68, 47, .45);
  flex: none; transition: transform .4s var(--ease);
}
.wordmark:hover .wordmark-mark { transform: rotate(225deg); }
.wordmark picture { display: block; flex: none; }
.brand-logo {
  display: block; width: auto; height: 58px;
  filter: drop-shadow(0 0 10px rgba(255, 110, 40, .35));
  transition: filter .3s var(--ease), transform .3s var(--ease);
}
.wordmark:hover .brand-logo { filter: drop-shadow(0 0 16px rgba(255, 130, 50, .6)); transform: scale(1.04); }
.wordmark-text span { color: var(--gold); font-size: .68em; margin: 0 .4em; letter-spacing: .2em; }

.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  position: relative; display: flex; align-items: center; min-height: 44px; padding: 10px 11px;
  color: var(--muted); font: 500 14px/1.2 var(--sans); letter-spacing: .03em;
}
.nav-link::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s;
}
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid var(--line-2); border-radius: 2px; cursor: pointer; color: var(--text);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto;
  transition: transform .25s, opacity .25s; content: "";
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle-bars::after { position: absolute; top: 6px; left: 0; }
.is-open .nav-toggle-bars { background: transparent; }
.is-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Sign Up sa header bar (mobile/tablet lang; sa desktop nasa nav na) */
.nav-cta-bar { display: none; }

@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .nav-cta-bar { display: inline-flex; margin-left: auto; }
  .nav-cta-bar + .nav-toggle { margin-left: 10px; }
  .site-nav .nav-cta-guest { display: none; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px 24px 24px; background: #0d0d0f; border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .is-open .site-nav { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-link { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--gold); }
  .nav-cta { min-height: 50px; }
  /* Kapag naka-off ang JavaScript, ipakita ang nav nang naka-stack */
  .no-js .nav-toggle { display: none; }
  .no-js .header-inner { flex-wrap: wrap; height: auto; padding-top: 16px; }
  .no-js .site-nav { display: flex; position: static; width: 100%; padding: 0 0 16px; border: 0; background: none; }
}
@media (max-width: 400px) {
  .header-inner { gap: 12px; }
  .nav-cta-bar { padding-left: 12px; padding-right: 12px; font-size: 12px; }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-alt {
  position: relative;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201, 164, 92, .07), transparent 70%), var(--bg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section-alt::before { content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px; background: var(--gold-line); opacity: .6; }
.section + .section-alt, .section-alt + .section { border-top-color: var(--line); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 44px; }
.section-head-row .section-head { margin-bottom: 0; }
.section-head-row > .tag { margin-bottom: 8px; }
.section-label {
  display: flex; align-items: center; gap: 12px;
  color: var(--gold); font: 600 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
}
.section-label::before { content: ""; width: 34px; height: 7px; flex: none;
  background: linear-gradient(currentColor, currentColor) left center / 26px 1px no-repeat,
              linear-gradient(45deg, transparent 35%, currentColor 35%, currentColor 65%, transparent 65%) right center / 7px 7px no-repeat; }
.center .section-label { justify-content: center; }
.section-title {
  margin-top: 16px; font: 700 clamp(28px, 3.8vw, 44px)/1.15 var(--display);
  letter-spacing: .02em; text-transform: uppercase; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .5);
}
.section-intro { margin-top: 16px; color: var(--muted); font-size: 17px; text-wrap: pretty; }
.section-foot { margin-top: 40px; display: flex; justify-content: center; }
.fine-print { margin-top: 16px; color: var(--dim); font-size: 13px; }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 24px; list-style: none; margin: 0; padding: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  color: var(--text);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 40%);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
/* Gold corner brackets: lumalabas sa hover */
a.card::before, .faction-card::before, .news-card::before {
  content: ""; position: absolute; top: 6px; right: 6px; bottom: 6px; left: 6px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 14px 1px, linear-gradient(var(--gold), var(--gold)) top left / 1px 14px,
    linear-gradient(var(--gold), var(--gold)) top right / 14px 1px, linear-gradient(var(--gold), var(--gold)) top right / 1px 14px,
    linear-gradient(var(--gold), var(--gold)) bottom left / 14px 1px, linear-gradient(var(--gold), var(--gold)) bottom left / 1px 14px,
    linear-gradient(var(--gold), var(--gold)) bottom right / 14px 1px, linear-gradient(var(--gold), var(--gold)) bottom right / 1px 14px;
  background-repeat: no-repeat; opacity: 0; transition: opacity .3s var(--ease);
}
a.card:hover, .faction-card:hover, .news-card:hover { border-color: rgba(201, 164, 92, .45); transform: translateY(-4px); box-shadow: var(--glow); color: var(--text); }
a.card:hover::before, .faction-card:hover::before, .news-card:hover::before,
a.card:focus-visible::before, .news-card:focus-within::before { opacity: 1; }
.card-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 24px 24px 28px; }
.card-kicker { color: var(--gold); font: italic 15px/1.3 var(--serif); }
.card-title { display: block; font: 700 21px/1.25 var(--serif); letter-spacing: .02em; color: var(--text); }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--gold-2); }
.card-text { display: block; color: var(--muted); font-size: 15px; line-height: 1.6; }

.media-ratio { position: relative; display: block; overflow: hidden; background: var(--steel); }
.media-ratio::before { content: ""; display: block; }
.ratio-16x9::before { padding-top: 56.25%; }
.ratio-16x10::before { padding-top: 62.5%; }
.media-ratio img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .7s var(--ease); filter: saturate(.85); }
.card:hover .media-ratio img { filter: saturate(1.05); }
.card:hover .media-ratio img { transform: scale(1.04); }
.media-ratio::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(0deg, rgba(10, 10, 11, .55), transparent); pointer-events: none; }

.read-more { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 44px; margin-top: auto; padding-top: 2px; color: var(--gold); font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; flex-direction: column; min-height: 640px; min-height: calc(100vh - var(--header-h)); overflow: hidden; }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-size: cover; background-position: center right; }
/* Background video: nasa likod ng overlay */
.hero-video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 65% center;
  filter: saturate(1.15) contrast(1.06) brightness(1.05);
}
.hero-overlay {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, .45) 0%, rgba(10, 10, 11, 0) 18%),
    radial-gradient(ellipse 50% 60% at 18% 74%, rgba(10, 10, 11, .7), rgba(10, 10, 11, 0) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 11, 0) 26%),
    linear-gradient(90deg, rgba(10, 10, 11, .7) 0%, rgba(10, 10, 11, .45) 32%, rgba(10, 10, 11, .1) 55%, rgba(10, 10, 11, 0) 100%);
}
/* Lumilipad na baga (CSS lang, naka-off sa reduced motion) */
.hero-embers { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; pointer-events: none; }
.hero-embers i {
  position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: #ffb36b; box-shadow: 0 0 6px 2px rgba(255, 120, 60, .7); opacity: 0;
  -webkit-animation: wow-ember 9s linear infinite; animation: wow-ember 9s linear infinite;
}
.hero-embers i:nth-child(1) { left: 52%; -webkit-animation-delay: 0s; animation-delay: 0s; }
.hero-embers i:nth-child(2) { left: 61%; -webkit-animation-delay: 1.4s; animation-delay: 1.4s; width: 3px; height: 3px; }
.hero-embers i:nth-child(3) { left: 70%; -webkit-animation-delay: 2.8s; animation-delay: 2.8s; }
.hero-embers i:nth-child(4) { left: 78%; -webkit-animation-delay: 0.7s; animation-delay: 0.7s; width: 2px; height: 2px; }
.hero-embers i:nth-child(5) { left: 86%; -webkit-animation-delay: 4.1s; animation-delay: 4.1s; }
.hero-embers i:nth-child(6) { left: 93%; -webkit-animation-delay: 5.5s; animation-delay: 5.5s; width: 3px; height: 3px; }
.hero-embers i:nth-child(7) { left: 57%; -webkit-animation-delay: 6.3s; animation-delay: 6.3s; width: 2px; height: 2px; }
.hero-embers i:nth-child(8) { left: 66%; -webkit-animation-delay: 3.5s; animation-delay: 3.5s; width: 3px; height: 3px; }
.hero-embers i:nth-child(9) { left: 74%; -webkit-animation-delay: 7.2s; animation-delay: 7.2s; }
.hero-embers i:nth-child(10) { left: 82%; -webkit-animation-delay: 2.1s; animation-delay: 2.1s; width: 2px; height: 2px; }
.hero-embers i:nth-child(11) { left: 40%; -webkit-animation-delay: 4.8s; animation-delay: 4.8s; width: 2px; height: 2px; }
.hero-embers i:nth-child(12) { left: 97%; -webkit-animation-delay: 8s; animation-delay: 8s; }
@-webkit-keyframes wow-ember {
  0% { opacity: 0; -webkit-transform: translate3d(0, 0, 0); }
  10% { opacity: .9; }
  70% { opacity: .5; }
  100% { opacity: 0; -webkit-transform: translate3d(-60px, -85vh, 0); }
}
@keyframes wow-ember {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  10% { opacity: .9; }
  70% { opacity: .5; }
  100% { opacity: 0; transform: translate3d(-60px, -85vh, 0); }
}
.hero-inner {
  position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 48px; align-items: end; padding-top: 64px; padding-bottom: 72px;
}
.eyebrow { display: inline-flex; align-items: center; gap: 14px; color: var(--gold); font: 600 13px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.hero-title {
  margin: 18px 0 24px; font: 700 clamp(40px, 6.2vw, 88px)/1 var(--display);
  letter-spacing: .01em; text-transform: uppercase; text-shadow: 0 4px 40px rgba(0, 0, 0, .6);
}
.hero-title span {
  display: block; color: var(--gold); text-shadow: none;
  background: linear-gradient(180deg, #f3dca2 10%, #c9a45c 55%, #8f6a2c 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 30px rgba(201, 164, 92, .25));
}
.hero-lead { max-width: 540px; margin-bottom: 36px; color: #e2dccf; font-size: 18px; line-height: 1.7; text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 2px 18px rgba(0, 0, 0, .7); }

.status-panel {
  position: relative; background: rgba(17, 17, 19, .8); border: 1px solid var(--line-2); border-radius: 3px; padding: 20px 22px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.status-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.status-title { font: 600 13px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--text); }
.status-list { list-style: none; margin: 0; padding: 0; }
.status-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.status-name { display: block; font: 600 17px/1.2 var(--serif); }
.status-region { display: block; color: var(--dim); font-size: 13px; }
.status-state { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255, 255, 255, .05), 0 0 10px currentColor; }
.status-online { color: var(--ok); }
.status-online .dot { -webkit-animation: wow-pulse 2.4s ease-in-out infinite; animation: wow-pulse 2.4s ease-in-out infinite; }
@-webkit-keyframes wow-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(120, 184, 114, .45), 0 0 10px currentColor; } 50% { box-shadow: 0 0 0 6px rgba(120, 184, 114, 0), 0 0 14px currentColor; } }
@keyframes wow-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(120, 184, 114, .45), 0 0 10px currentColor; } 50% { box-shadow: 0 0 0 6px rgba(120, 184, 114, 0), 0 0 14px currentColor; } }
.status-busy { color: var(--warn); }
.status-maintenance { color: var(--ember-2); }
.status-offline { color: var(--dim); }
.status-note { padding-top: 12px; color: var(--dim); font-size: 12px; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: 112px 0 72px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold-line); }
.page-hero-media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-size: cover; background-position: center; }
.page-hero-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(90deg, rgba(10, 10, 11, .95) 0%, rgba(10, 10, 11, .7) 55%, rgba(10, 10, 11, .4) 100%); }
.page-hero-inner { position: relative; }
.page-title { margin-top: 18px; font: 700 clamp(34px, 5.6vw, 64px)/1.08 var(--display); letter-spacing: .02em; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); text-transform: uppercase; }
.page-intro { max-width: 600px; margin-top: 18px; color: #d2ccc0; font-size: 18px; }

.subnav { position: -webkit-sticky; position: sticky; top: var(--header-h); z-index: 20; background: rgba(17, 17, 19, .95); border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; color: var(--muted); font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.subnav a:hover { color: var(--text); }

/* ---------- Filters / tabs ---------- */
.filter-bar, .rank-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-bar { margin-bottom: 32px; }
.filter-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: 2px; background: transparent; color: var(--muted);
  font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--gold); }
.filter-btn.is-active, .filter-btn[aria-selected="true"] { background: linear-gradient(180deg, #d6b36d, #a9843f); border-color: var(--gold); color: #15120c; box-shadow: 0 4px 18px -6px rgba(201, 164, 92, .5); }

/* ---------- News ---------- */
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--dim); font-size: 13px; }
.cat { padding: 4px 8px; border: 1px solid currentColor; border-radius: 2px; font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.cat-announcement { color: var(--gold); }
.cat-patch { color: #9fb0c2; }
.cat-event { color: var(--ember-2); }
.cat-maintenance { color: #c9b28a; }
a.cat { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; }
a.cat:hover { color: var(--text); }

.empty-state { padding: 56px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 3px; }
.empty-state.empty-inset { margin: 20px; }
.empty-title { margin-bottom: 6px; color: var(--text); font: 600 20px/1.3 var(--serif); }

/* ---------- Article ---------- */
.article { padding: 72px 0 24px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; margin-bottom: 16px; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.article-title { margin-top: 18px; font: 700 clamp(30px, 4.6vw, 48px)/1.15 var(--display); letter-spacing: .01em; text-wrap: balance; }
.article-lead { margin-top: 18px; color: var(--muted); font-size: 19px; }
.article-media { margin: 36px 0; border: 1px solid var(--line); }
.prose p { margin-bottom: 1.2em; color: #d8d2c6; font-size: 17px; line-height: 1.8; }
.prose h2 { margin: 1.6em 0 .6em; font: 600 24px/1.3 var(--serif); }
.prose h3 { margin: 1.3em 0 .5em; font: 600 19px/1.35 var(--serif); }
.prose ul { margin: 0 0 1.2em; padding-left: 1.3em; color: #d8d2c6; font-size: 17px; line-height: 1.8; }
.prose li { margin-bottom: .35em; }
.prose .legal-meta { color: var(--muted); font-size: 15px; }
.legal-todo { padding: 1px 6px; color: #15151a; background: #f0c060; border-radius: 3px; font-size: .85em; font-weight: 700; }
.legal-table { width: 100%; margin: 0 0 1.4em; border-collapse: collapse; font-size: 15px; }
.legal-table th, .legal-table td { padding: 10px 12px; border: 1px solid var(--line-2); text-align: left; vertical-align: top; color: #d8d2c6; }
.legal-table th { color: var(--text); background: rgba(255, 255, 255, .03); }
.legal-toc { columns: 2; column-gap: 32px; }
@media (max-width: 680px) { .legal-toc { columns: 1; } .legal-table { font-size: 14px; } }

/* ---------- Classes ---------- */
.class-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.class-tab {
  display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; color: var(--text);
  transition: border-color .2s, background .2s;
}
.class-tab:hover { color: var(--text); border-color: rgba(201, 164, 92, .45); }
.class-tab[aria-selected="true"] { background: linear-gradient(180deg, rgba(201, 164, 92, .1), var(--panel-2)); border-color: var(--gold); box-shadow: inset 0 -3px 0 var(--gold), 0 10px 30px -12px rgba(201, 164, 92, .45); }
.class-thumb { width: 60px; height: 60px; object-fit: cover; object-position: center 25%; border-radius: 2px; filter: grayscale(.5); transition: filter .2s; }
.class-tab[aria-selected="true"] .class-thumb, .class-tab:hover .class-thumb { filter: none; }
.class-tab-text { min-width: 0; }
.class-tab-name { display: block; font: 700 16px/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.class-tab-role { display: block; margin-top: 4px; color: var(--dim); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

.class-panel {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  -webkit-animation: wow-fade .4s var(--ease); animation: wow-fade .4s var(--ease);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
}
.class-art { position: relative; min-height: 560px; overflow: hidden; background: var(--steel); }
.class-art img, .class-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.class-art::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 30%; background: linear-gradient(90deg, transparent, var(--panel)); }
.class-info { padding: 48px 48px 44px; }
.class-name { margin-top: 14px; font: 700 clamp(32px, 3.8vw, 46px)/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.class-desc { margin-top: 16px; color: #d2ccc0; font-size: 17px; max-width: 560px; }
.class-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 28px 0 0; background: var(--line); border: 1px solid var(--line); }
.class-stats div { padding: 14px 16px; background: var(--panel); }
.class-stats dt { color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.class-stats dd { margin: 4px 0 0; font: 600 16px/1.3 var(--serif); }
.class-sub { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--gold); font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.class-sub .tag { padding: 3px 7px; font-size: 10px; }
.ability-list { list-style: none; margin: 14px 0 0; padding: 0; }
.ability-list li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ability-list strong { font: 600 16px/1.4 var(--serif); }
.ability-list span { color: var(--muted); font-size: 15px; }

@-webkit-keyframes wow-fade { from { opacity: 0; -webkit-transform: translateY(8px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes wow-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Rankings / tables ---------- */
.rankings, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; }
.rank-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.rank-filter { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.rank-filter label { color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.rank-filter select {
  min-height: 44px; padding: 0 36px 0 12px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 2px; font: 14px var(--sans); cursor: pointer;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat;
}
.rank-filter select:hover { border-color: var(--gold); }
.rankings { box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); }
.js .rank-apply { display: none; }

.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  /* Lumalabas lang ang shadow sa gilid kapag may natatagong column */
  background:
    linear-gradient(90deg, var(--panel) 30%, rgba(22, 22, 25, 0)) left center / 32px 100% no-repeat local,
    linear-gradient(270deg, var(--panel) 30%, rgba(22, 22, 25, 0)) right center / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .7), transparent) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .7), transparent) right center / 14px 100% no-repeat scroll var(--panel);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th, .data-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table thead th { color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; background: rgba(255, 255, 255, .015); }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: rgba(201, 164, 92, .05); }
.data-table td { color: var(--muted); }
.data-table .cell-strong { color: var(--text); font-weight: 600; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rank-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; font: 700 16px/1 var(--serif); color: var(--muted); border: 1px solid var(--line); border-radius: 2px; }
.rank-1 { color: #15120c; background: linear-gradient(180deg, #f0d495, #b8914a); border-color: var(--gold); box-shadow: 0 0 14px rgba(201, 164, 92, .45); }
.rank-2 { color: #15120c; background: linear-gradient(180deg, #e3e6ea, #a7abb1); border-color: #c3c6cb; }
.rank-3 { color: #15120c; background: linear-gradient(180deg, #d79d69, #9c6739); border-color: #b9804f; }
.data-table tbody tr:has(.rank-1) { background: linear-gradient(90deg, rgba(201, 164, 92, .1), transparent 60%); }
.rank-note { padding: 14px 20px; color: var(--dim); font-size: 13px; }

/* ---------- Community ---------- */
.community-banner { position: relative; padding: 80px 56px; border: 1px solid rgba(201, 164, 92, .25); border-radius: 3px; overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); }
.community-media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-size: cover; background-position: center; }
.community-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(90deg, rgba(10, 10, 11, .95) 0%, rgba(10, 10, 11, .75) 50%, rgba(10, 10, 11, .3) 100%); }
.community-content { position: relative; max-width: 560px; }
.community-content .btn-row { margin-top: 32px; }
.social-grid { margin-top: 24px; }
.social-card { gap: 8px; padding: 26px 24px; }
.social-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 10px;
  border: 1px solid rgba(201, 164, 92, .5); color: var(--gold); font: 700 18px/1 var(--serif); border-radius: 2px;
  background: rgba(201, 164, 92, .06); transition: background .3s var(--ease), color .3s var(--ease);
}
.social-mark .icon { width: 22px; height: 22px; }
.social-card:hover .social-mark { background: var(--gold); color: #15120c; }
.social-name { font: 600 21px/1.2 var(--serif); }
.social-handle { color: var(--dim); font-size: 13px; }
.social-card .tag { align-self: flex-start; margin-top: 10px; }

/* ---------- Guide ---------- */
.guide-card { gap: 10px; padding: 28px 22px; }
.guide-num, .step-num { color: var(--gold); font: 700 26px/1 var(--display); letter-spacing: .04em; opacity: .85; }
.guide-card .read-more { padding-top: 14px; }
.steps { counter-reset: none; }
.step { gap: 12px; padding: 28px 24px; }
.rule { flex-direction: row; gap: 20px; padding: 24px; }
.rule .card-text { margin-top: 6px; }

.rarity { gap: 8px; padding: 24px 20px; border-top: 3px solid; }
.rarity-common { border-top-color: #9b9b9b; }
.rarity-uncommon { border-top-color: #73b46d; }
.rarity-rare { border-top-color: #5f93d4; }
.rarity-epic { border-top-color: #a074d6; }
.rarity-legendary { border-top-color: var(--gold); }
.rarity-common .card-title { color: #c4c4c4; }
.rarity-uncommon .card-title { color: #8fcb88; }
.rarity-rare .card-title { color: #86b0e6; }
.rarity-epic .card-title { color: #bb98e6; }
.rarity-legendary .card-title { color: var(--gold-2); }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 40px; background: radial-gradient(ellipse 60% 120% at 0% 50%, rgba(201, 164, 92, .1), transparent 70%), var(--panel); border: 1px solid rgba(201, 164, 92, .25); border-radius: 3px; }
.cta-title { margin-bottom: 6px; font: 700 24px/1.25 var(--display); text-transform: uppercase; letter-spacing: .03em; }

/* Homepage: Start playing in 3 steps */
.start-steps { padding-top: 0; }
.start-band { display: grid; gap: 28px; padding: 40px; background: radial-gradient(ellipse 60% 120% at 0% 50%, rgba(201, 164, 92, .12), transparent 70%), var(--panel); border: 1px solid rgba(201, 164, 92, .3); border-radius: 3px; }
.start-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.start-step { position: relative; padding: 20px 20px 20px 64px; background: rgba(255, 255, 255, .02); border: 1px solid var(--line); border-radius: 3px; counter-increment: step; }
.start-step::before { content: counter(step); position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 32px; height: 32px; color: #15151a; background: var(--gold); border-radius: 50%; font: 700 16px/1 var(--display); }
.start-step h3 { margin: 0 0 4px; font: 700 17px/1.3 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.start-step p { margin: 0; color: var(--muted); font-size: 14px; }
.start-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.start-actions .text-link { font-size: 14px; }
@media (max-width: 860px) { .start-list { grid-template-columns: 1fr; } .start-band { padding: 28px 22px; } }

/* ---------- Support ---------- */
.download-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.download-card { padding: 36px; gap: 0; }
.download-card .dl-cta { margin-top: 20px; align-self: flex-start; }
/* Download mirrors */
.dl-heading { margin: 30px 0 12px; color: var(--dim); font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.dl-mirrors { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dl-mirror {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  color: var(--text); background: rgba(255, 255, 255, .025); border: 1px solid var(--line-2); border-radius: 3px;
  transition: border-color .2s, background .2s, transform .2s;
}
.dl-mirror:hover, .dl-mirror:focus-visible { color: var(--text); border-color: var(--gold); background: rgba(201, 164, 92, .07); transform: translateY(-1px); }
.dl-mirror.is-main { border-color: rgba(201, 164, 92, .55); background: linear-gradient(90deg, rgba(201, 164, 92, .12), rgba(201, 164, 92, .02)); }
.dl-badge {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px;
  color: #fff; background: var(--dl-c, #c9a45c); font: 800 14px/1 var(--sans); letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.dl-mirror-text { display: grid; gap: 3px; min-width: 0; flex: 1; }
.dl-mirror-name { font-weight: 700; font-size: 16px; }
.dl-mirror-host { color: var(--dim); font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dl-tag { display: inline-block; margin-left: 6px; padding: 3px 7px; color: #15151a; background: var(--gold); border-radius: 999px; font: 700 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; }
.dl-go { flex: none; display: grid; place-items: center; width: 34px; height: 34px; color: var(--gold); border: 1px solid rgba(201, 164, 92, .4); border-radius: 50%; transition: background .2s, color .2s; }
.dl-mirror:hover .dl-go, .dl-mirror.is-main .dl-go { color: #15151a; background: var(--gold); }
.dl-hint { margin: 10px 0 0; color: var(--dim); font-size: 13px; }
.dl-steps { margin: 24px 0 0; padding: 18px 18px 18px 38px; color: var(--muted); background: rgba(255, 255, 255, .02); border: 1px dashed var(--line-2); border-radius: 3px; font-size: 14px; line-height: 1.6; }
.dl-steps li { margin-bottom: 4px; }
.dl-steps li::marker { color: var(--gold); font-weight: 700; }
.dl-steps strong { color: var(--text); }
.dl-note { margin-top: 14px; }
.dl-soon { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; padding: 18px; background: rgba(201, 164, 92, .06); border: 1px solid rgba(201, 164, 92, .3); border-radius: 3px; }
.dl-soon-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; color: var(--gold); border: 1px solid rgba(201, 164, 92, .45); border-radius: 50%; }
.dl-soon-title { margin: 0 0 4px; color: var(--text); font-weight: 700; }
.dl-soon-text { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
/* System requirements: hindi lumalagpas (nagwa-wrap ang text imbes na mag-scroll) */
.req-table th, .req-table td { white-space: normal; }
.req-table thead th:first-child, .req-table tbody th { width: 26%; }
.kv { margin: 28px 0 0; border-top: 1px solid var(--line); }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--dim); font-size: 14px; }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.sub-title { margin-bottom: 16px; font: 700 20px/1.25 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.data-table tbody th { font-weight: 600; }

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0;
  font: 600 19px/1.4 var(--serif); cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font: 400 26px/1 var(--sans); flex: none; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--gold-2); }
.faq-item p { padding: 0 0 24px; color: var(--muted); max-width: 680px; }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-code { color: var(--gold); font: 700 clamp(100px, 17vw, 190px)/1 var(--display); letter-spacing: .04em; text-shadow: 0 0 60px rgba(196, 68, 47, .35); }
.error-page .btn-row { margin-top: 36px; }
.error-page .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: 80px 0 32px; background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(201, 164, 92, .05), transparent 70%), #070708; border-top: 1px solid var(--line); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--gold-line); opacity: .6; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(2, minmax(0, 1fr)); gap: 48px; }
.footer-brand .brand-logo { height: 120px; }
.footer-brand .wordmark-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.footer-desc { max-width: 380px; margin-top: 20px; color: var(--dim); font-size: 14px; }
.footer-social { display: flex; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--line-2); border-radius: 2px; color: var(--muted); font: 700 15px/1 var(--serif);
  transition: color .2s, border-color .2s, background .2s;
}
.footer-social a:hover { color: var(--gold); border-color: var(--gold); background: rgba(201, 164, 92, .08); }
.footer-heading { margin-bottom: 18px; color: var(--text); font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 2px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--dim); font-size: 14px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--dim); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .class-info { padding: 36px; }
  .ability-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 960px) {
  /* Sub-menu: fade sa kanan para makitang may susunod pa */
  .subnav-inner { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 56px; }
  .section { padding: 80px 0; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 96px; padding-bottom: 56px; }
  .status-panel { max-width: 420px; }
  /* 3 + 2 na nakagitna */
  .class-tabs { display: flex; flex-wrap: wrap; justify-content: center; }
  .class-tab { flex: 0 0 calc((100% - 24px) / 3); min-width: 0; }
  .class-panel { grid-template-columns: minmax(0, 1fr); }
  .class-art { min-height: 0; }
  .class-art::before { content: ""; display: block; padding-top: 110%; }
  .class-art::after { top: auto; left: 0; width: auto; height: 40%; background: linear-gradient(0deg, var(--panel), transparent); }
  .download-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .rank-filter { margin-left: 0; }
}
/* Tablet: kapag odd ang bilang ng cards sa 2-column grid, igitna ang huli */
@media (min-width: 681px) and (max-width: 960px) {
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); }
}
@media (max-width: 680px) {
  /* Class tabs: naka-stack (larawan sa itaas, pangalan sa ilalim) para kasya ang mahahabang pangalan */
  .class-tabs { gap: 8px; }
  .class-tab { flex-basis: calc((100% - 16px) / 3); }
  .class-tab { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 8px; padding: 12px 8px; text-align: center; }
  .class-thumb { width: 48px; height: 48px; }
  .class-tab-name { font-size: 14px; letter-spacing: .02em; overflow-wrap: normal; }
  .class-tab-role { font-size: 10px; letter-spacing: .08em; }

  /* Filters: isang row na pwedeng i-swipe, imbes na tatlong row */
  .filter-bar {
    flex-wrap: nowrap; overflow-x: auto; margin-right: -18px; padding-right: 56px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex: none; }

  /* Events at System Requirements: bawat row ay nagiging card (label sa kaliwa, value sa kanan) */
  .stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack-table, .stack-table tbody, .stack-table tr { display: block; width: 100%; }
  .stack-table tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .stack-table tr:last-child { border-bottom: 0; }
  .stack-table td, .stack-table tbody th {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 3px 0; border: 0; white-space: normal; text-align: right; line-height: 1.45;
  }
  .stack-table td::before { content: attr(data-label); flex: none; color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-align: left; }
  .stack-table tr > :first-child { display: block; padding: 0 0 8px; color: var(--text); font: 700 17px/1.3 var(--serif); text-align: left; }
  .stack-table tr > :first-child::before { content: none; }
  .stack-table tbody tr:hover { background: none; }

  /* Community banner: mas madilim sa likod ng text */
  .community-overlay { background: linear-gradient(180deg, rgba(10, 10, 11, .82), rgba(10, 10, 11, .92)); }

  .site-footer { padding: 40px 0 16px; }
  .footer-brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
  .footer-brand .brand-logo { height: 64px; }
  .footer-desc { display: none; }
  .footer-social { margin: 0; }
  .footer-heading { margin-bottom: 6px; }
  .footer-col a { min-height: 40px; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 0; margin-top: 28px; padding-top: 12px; }
  .footer-bottom p { padding: 8px 0 4px; font-size: 12px; }
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .section-head, .section-head-row { margin-bottom: 32px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Mobile hero: video sa itaas, text + CTA sa ibaba na may mas madilim na shade */
  .hero { min-height: 600px; min-height: 86svh; }
  .hero-inner { padding-top: 160px; padding-bottom: 40px; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(10, 10, 11, .4) 0%, rgba(10, 10, 11, 0) 22%, rgba(10, 10, 11, .55) 48%, rgba(10, 10, 11, .9) 78%, var(--bg) 100%);
  }
  .hero-video { object-position: 70% center; }
  .hero-lead { font-size: 16px; }
  .btn-row .btn { flex: 1 1 auto; }
  .class-info { padding: 28px 22px; }
  .class-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-banner { padding: 48px 24px; }
  .page-hero { padding: 72px 0 48px; }
  .rank-toolbar { padding: 16px; }
  .rank-filter { width: 100%; }
  .rank-filter select { flex: 1; min-width: 0; }
  .data-table th, .data-table td { padding: 12px 14px; }
  .cta-band { padding: 28px 22px; }
  .download-card { padding: 26px 22px; }
  .dl-mirror { padding: 12px; gap: 12px; }
  .dl-badge { width: 38px; height: 38px; font-size: 13px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
}
/* ---------- Homepage sa phone: mas maikling scroll ----------
 * Swipe carousel para sa Realms, News, at Guide; top 5 lang sa rankings;
 * compact na class details at social links. Hindi apektado ang ibang pages.
 */
@media (max-width: 680px) {
  .page-home .section { padding: 48px 0; }
  .page-home .section-head, .page-home .section-head-row { margin-bottom: 20px; }
  .page-home .section-intro { font-size: 15px; }

  /* Swipe carousel: kita ang gilid ng susunod na card bilang palatandaan */
  .page-home #realms .grid-3, .page-home .news-grid, .page-home .guide-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
    gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-right: -18px; padding: 4px 18px 8px 0;
  }
  .page-home #realms .grid-3::-webkit-scrollbar, .page-home .news-grid::-webkit-scrollbar, .page-home .guide-grid::-webkit-scrollbar { display: none; }
  .page-home #realms .grid-3 > *, .page-home .news-grid > *, .page-home .guide-grid > * { scroll-snap-align: start; }
  .page-home .guide-grid { grid-auto-columns: 62%; }
  .page-home .card-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

  /* Classes: mas maliit na artwork, walang ability list (nasa Game Guide ang buong detalye) */
  .page-home .class-art::before { padding-top: 95%; }
  .page-home .class-sub, .page-home .ability-list { display: none; }
  .page-home .class-info { padding: 22px 20px 24px; }
  .page-home .class-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .class-stats div { padding: 10px; }
  .page-home .class-stats dd { font-size: 14px; }
  .page-home .section-foot { margin-top: 24px; }

  /* Rankings: top 5 lang; nasa Rankings page ang buong listahan */
  .page-home .rank-table tbody tr:nth-child(n+6) { display: none; }
  .page-home .rank-note { display: none; }

  /* Community: 2x2 na icon + pangalan lang */
  .page-home .community-banner { padding: 36px 22px; }
  .page-home .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
  .page-home .social-card { flex-direction: row; align-items: center; gap: 10px; padding: 12px; }
  .page-home .social-mark { width: 36px; height: 36px; margin: 0; flex: none; }
  .page-home .social-name { font-size: 16px; }
  .page-home .social-handle, .page-home .social-card .card-text, .page-home .social-card .tag { display: none; }
  .page-home #community .fine-print { display: none; }
}

@media (max-width: 420px) {
  .class-tab-name { font-size: 12.5px; letter-spacing: 0; }
  .hero-title { font-size: 38px; }
  .section-title { font-size: 26px; }
  .page-title { font-size: 32px; }
  .grid-5 { grid-template-columns: minmax(0, 1fr); }
  .wordmark { font-size: 14px; letter-spacing: .06em; gap: 8px; }
  .site-header .brand-logo { height: 48px; }
}

/* ---------- Character select (kamukha ng laro) ---------- */
.cs { position: relative; container-type: inline-size; }
.cs-stage { position: relative; overflow: hidden; background: #000; border: 1px solid rgba(201, 164, 92, .35); border-bottom: 0; border-radius: 3px 3px 0 0; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.cs-media { position: relative; aspect-ratio: 1280 / 690; background: #0b0b0d center / cover no-repeat; }
.cs-media video, .cs-still { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-clip, .cs-still { opacity: 0; transition: opacity .16s linear; z-index: 1; }
.cs-clip.is-on, .cs-still.is-on { opacity: 1; z-index: 2; }
/* Banayad na vignette para bumagay sa site */
.cs-media::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 3; pointer-events: none; box-shadow: inset 0 0 80px rgba(0, 0, 0, .55); }

/* Clickable na characters sa idle scene */
.cs-spots { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 4; }
.cs[data-state="zoom"] .cs-spots { display: none; }
.cs-spot { position: absolute; display: block; cursor: pointer; }
.cs-spot::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -3%; height: 9%;
  border: 2px solid rgba(255, 214, 120, .95); border-radius: 50%;
  box-shadow: 0 0 14px rgba(255, 190, 80, .8), inset 0 0 10px rgba(255, 190, 80, .5);
  opacity: 0; transform: scale(.7); transition: opacity .2s, transform .25s var(--ease);
}
.cs-spot-name {
  position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%); white-space: nowrap;
  padding: 5px 10px; color: #15120c; background: linear-gradient(180deg, #f0d495, #b8914a); border-radius: 2px;
  font: 700 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.cs-spot:hover::after, .cs-spot.is-hover::after { opacity: 1; transform: scale(1); }
.cs-spot:hover .cs-spot-name, .cs-spot.is-hover .cs-spot-name { opacity: 1; }

.cs-hint {
  position: absolute; left: 50%; bottom: 4%; z-index: 5; transform: translateX(-50%);
  padding: 7px 14px; color: var(--text); background: rgba(10, 10, 11, .6); border: 1px solid var(--line-2); border-radius: 999px;
  font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; pointer-events: none;
  transition: opacity .3s;
}
.cs-hint-touch { display: none; }
.cs[data-state="zoom"] .cs-hint { opacity: 0; }

/* Back button (kahawig ng orange na Back sa laro) */
.cs-back {
  position: absolute; top: 3.5%; right: 2%; z-index: 6; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 96px; min-height: 40px; padding: 0 18px; color: #1b1206;
  background: linear-gradient(180deg, #f1b866, #b8752a); border: 1px solid #ffd48a; border-radius: 2px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 240, 210, .6);
  font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .25s .2s, transform .25s .2s var(--ease);
}
.cs-back::before { content: "\2190"; font-size: 14px; }
.cs-back:hover { color: #1b1206; background: linear-gradient(180deg, #ffc879, #c9853a); }
.cs[data-state="zoom"] .cs-back { opacity: 1; pointer-events: auto; transform: none; }

/* Button bar sa ibaba (gaya ng sa laro) */
.cs-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 14px;
  background: linear-gradient(180deg, #121215, #09090b); border: 1px solid rgba(201, 164, 92, .35); border-top: 1px solid rgba(201, 164, 92, .5);
  border-radius: 0 0 3px 3px;
}
.cs-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-width: 132px; min-height: 56px; padding: 8px 14px; color: var(--text);
  background: linear-gradient(180deg, #2a2a2f, #141417); border: 1px solid #5d5a55; border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px #000;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
a.cs-btn:hover, .cs-btn-group:hover { color: var(--text); border-color: var(--gold); }
.cs-btn.is-active { border-color: var(--gold-2); background: linear-gradient(180deg, #3a3122, #18140d); box-shadow: inset 0 1px 0 rgba(255, 230, 170, .15), 0 0 0 1px #000, 0 0 18px rgba(201, 164, 92, .45); }
.cs-btn-name { font: 700 14px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
/* Class icon + text magkatabi */
.cs-btn { flex-direction: row; gap: 10px; }
.cs-btn-text { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.cs-btn-icon { flex: none; width: 36px; height: 36px; opacity: .8; filter: saturate(.85); transition: opacity .2s, filter .2s, transform .25s var(--ease); }
a.cs-btn:hover .cs-btn-icon, .cs-btn-group:hover .cs-btn-icon { opacity: 1; filter: none; }
.cs-btn.is-active .cs-btn-icon { opacity: 1; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .25)); transform: scale(1.08); }
.cs-btn-gender { color: var(--muted); font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.cs-btn-variants { display: flex; gap: 4px; }
.cs-btn-variants a {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; color: var(--muted);
  border: 1px solid #45423e; border-radius: 2px; font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
}
.cs-btn-variants a:hover { color: var(--text); border-color: var(--gold); }
.cs-btn-variants a[aria-pressed="true"] { color: #15120c; background: linear-gradient(180deg, #f0d495, #b8914a); border-color: var(--gold-2); }

/* Info panel: sa desktop nakapatong sa kaliwang itaas (tinatakpan ang panel ng laro sa video) */
.cs-info {
  position: absolute; z-index: 6; left: 1.2cqw; top: 1.1cqw; width: 22.4cqw; min-height: 30cqw;
  padding: 18px 18px 16px; background: rgba(12, 12, 14, .9); border: 1px solid rgba(201, 164, 92, .6); border-radius: 3px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translateX(-12px); pointer-events: none; transition: opacity .3s .2s, transform .35s .2s var(--ease);
}
.cs[data-state="zoom"] .cs-info { opacity: 1; transform: none; pointer-events: auto; }
.cs-info-gender { color: var(--gold); font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.cs-info-name { margin-top: 8px; font: 700 26px/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.cs-info-lore { margin-top: 10px; color: #d6d0c4; font-size: 13.5px; line-height: 1.6; }
.cs-info-stats { margin: 14px 0 0; border-top: 1px solid var(--line); }
.cs-info-stats div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.cs-info-stats dt { color: var(--dim); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.cs-info-stats dd { margin: 3px 0 0; font: 700 14px/1.3 var(--serif); }

/* Phone badge (nakatago sa desktop) */
.cs-badge { display: none; }

/* Mas makitid na screens: info panel sa ilalim, maliit na badge sa eksena */
@media (max-width: 900px) {
  .cs-info { position: static; width: auto; min-height: 0; margin-top: 12px; transform: none; display: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .cs[data-state="zoom"] .cs-info { display: block; }
  .cs-badge {
    position: absolute; z-index: 5; left: 1.2cqw; top: 1.1cqw; width: 22.4cqw; min-height: 30cqw;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; text-align: center;
    background: rgba(12, 12, 14, .92); border: 1px solid rgba(201, 164, 92, .6); border-radius: 2px;
    opacity: 0; transition: opacity .25s .15s;
  }
  .cs[data-state="zoom"] .cs-badge { opacity: 1; }
  .cs-badge-name { font: 700 13px/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
  .cs-badge-gender { color: var(--gold); font: 600 9px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
  .cs-back { min-width: 0; min-height: 36px; padding: 0 12px; font-size: 11px; }
}
@media (max-width: 680px) {
  .cs-section .container { padding-left: 0; padding-right: 0; }
  .cs-section .section-head, .cs-section .section-foot { padding-left: 18px; padding-right: 18px; }
  .cs-stage, .cs-bar { border-left: 0; border-right: 0; border-radius: 0; }
  .cs-info { margin: 12px 18px 0; }
  .cs-bar { gap: 8px; padding: 12px; }
  .cs-btn { flex: 0 0 calc((100% - 16px) / 3); min-width: 0; min-height: 52px; padding: 8px 6px; }
  .cs-btn-name { font-size: 12.5px; letter-spacing: .03em; }
  .cs-btn { flex-direction: column; gap: 5px; }
  .cs-btn-text { align-items: center; }
  .cs-btn-icon { width: 26px; height: 26px; }
  .cs-btn-variants a { padding: 0 6px; font-size: 10px; letter-spacing: .04em; }
  .cs-hint { bottom: 5%; padding: 6px 10px; font-size: 9px; }
  .cs-spot-name { font-size: 10px; padding: 4px 7px; }
}
@media (hover: none) {
  .cs-hint-pointer { display: none; }
  .cs-hint-touch { display: inline; }
}

/* ---------- Rankings: podium + contenders ---------- */
.rk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-2); }
.rk-types { display: flex; gap: 4px; }
.rk-type {
  position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px;
  color: var(--muted); font: 600 15px/1 var(--sans);
}
.rk-type::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); }
.rk-type:hover { color: var(--text); }
.rk-type.is-active { color: var(--text); }
.rk-type.is-active::after { transform: scaleX(1); }

.rk-panel { margin-top: 36px; }
.rk-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.rk-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; list-style: none; margin: 0; padding: 0; }

/* Card: may kulay na frame (silver / gold / bronze) at putol na mga sulok */
.rk-card {
  --frame: linear-gradient(160deg, #e9edf2, #8d939b 45%, #d5d9de);
  --accent: #c9ced5;
  padding: 3px; background: var(--frame);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55));
  transition: transform .3s var(--ease);
}
.rk-card:hover { transform: translateY(-4px); }
.rk-place-1 { --frame: linear-gradient(160deg, #fff0c2, #c9a45c 40%, #8f6a2c 75%, #f0d495); --accent: #e2c483; }
.rk-place-3 { --frame: linear-gradient(160deg, #f1c9a0, #9c6739 45%, #d79d69); --accent: #d69a62; }
.rk-card-inner {
  position: relative; aspect-ratio: 3 / 4.15; overflow: hidden;
  background: radial-gradient(ellipse 90% 60% at 50% 25%, #253250, #0d1422 70%);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}
.rk-place-1 .rk-card-inner { aspect-ratio: 3 / 4.5; }
/* Banayad na diagonal na guhit gaya ng sa reference */
.rk-card-inner::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(120deg, transparent 0 60px, rgba(255, 255, 255, .025) 60px 61px); }
.rk-card-art { position: absolute; top: 0; right: 0; left: 0; height: 74%; }
.rk-card-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.rk-card-art::before { content: ""; position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 42%; background: linear-gradient(180deg, rgba(8, 12, 22, .9), rgba(8, 12, 22, 0)); }
.rk-card-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 55%; background: linear-gradient(0deg, #0d1422 10%, rgba(13, 20, 34, 0)); }
.rk-card-crest { position: absolute; left: 50%; top: 16%; width: 46%; transform: translateX(-50%); filter: drop-shadow(0 8px 24px rgba(201, 164, 92, .35)); }
.rk-card-rank {
  position: absolute; z-index: 2; top: 10px; left: 16px; display: flex; flex-direction: column; align-items: flex-start;
  color: var(--accent); font: 700 clamp(40px, 4.4vw, 64px)/.9 var(--display); text-shadow: 0 4px 18px rgba(0, 0, 0, .6);
}
.rk-crown { width: 30px; height: 20px; margin-bottom: 2px; color: var(--accent); }
.rk-card-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 18px 16px; }
.rk-card-name { overflow: hidden; color: #fff; font: 700 clamp(18px, 1.9vw, 26px)/1.1 var(--display); letter-spacing: .02em; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.rk-card-sub { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: #b9c1cf; font: 600 10.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.rk-card-stat { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--accent); }
.rk-card-emblem { flex: none; width: 34px; height: 39px; }
.rk-card-num { color: var(--gold-2); font: 700 clamp(20px, 2.2vw, 30px)/1 var(--display); }
.rk-card-num span { margin-left: 4px; color: var(--gold); font: 600 10px/1 var(--sans); letter-spacing: .06em; vertical-align: middle; }
.rk-card-meta { margin-top: 5px; overflow: hidden; color: #9aa3b2; font: 600 10px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.rk-place-1 { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)) drop-shadow(0 0 22px rgba(201, 164, 92, .35)); }

/* The Contenders (homepage) */
.rk-contenders-title { font: 700 clamp(26px, 2.6vw, 34px)/1.05 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.rk-contenders-sub { margin-top: 6px; color: var(--dim); font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.rk-list { list-style: none; margin: 18px 0 0; padding: 0; }
.rk-list-head, .rk-list-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.rk-list-head { padding: 0 6px 8px; border-bottom: 2px solid var(--line-2); color: var(--dim); font: 600 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.rk-list-head span:last-child { text-align: right; }
.rk-list-row { padding: 9px 6px; border-bottom: 1px solid var(--line); transition: background .2s; }
.rk-list-row:hover { background: rgba(201, 164, 92, .05); }
.rk-list-rank { text-align: center; color: var(--muted); font: 700 18px/1 var(--display); }
.rk-list-who { min-width: 0; }
.rk-list-who strong { display: block; overflow: hidden; color: var(--text); font: 700 17px/1.2 var(--display); white-space: nowrap; text-overflow: ellipsis; }
.rk-list-who small { display: flex; align-items: center; gap: 5px; margin-top: 2px; color: var(--dim); font-size: 11px; letter-spacing: .06em; }
.rk-class-icon { flex: none; width: 20px; height: 20px; }
.rk-list-who .rk-class-icon { width: 16px; height: 16px; }
.rk-class-cell { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
/* Guild logo (approved upload) o gold crest */
.guild-logo { object-fit: contain; border-radius: 8px; }
.rk-card-crest.guild-logo { height: auto; aspect-ratio: 1; }
.rk-card-emblem.guild-logo { height: 34px; }
.rk-mini-crest { flex: none; display: inline-block; width: 20px; height: 23px; margin-right: 6px; vertical-align: -5px; }
.rk-class-cell .rk-mini-crest { margin-right: 0; }
.rk-mini-crest.guild-logo { height: 20px; border-radius: 4px; vertical-align: -4px; }
/* My Account > Guild Logo */
.gl-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.gl-pics { display: flex; gap: 16px; }
.gl-pic { margin: 0; text-align: center; }
.gl-pic figcaption { margin-top: 8px; color: var(--dim); font-size: 12px; }
.gl-img { display: block; width: 112px; height: 112px; margin: 0 auto; }
svg.gl-img { width: 98px; height: 112px; }
.gl-form { flex: 1 1 260px; min-width: 0; display: grid; gap: 12px; }
/* Admin > Guild Logos */
.gl-adm { flex-wrap: wrap; }
.gl-adm-pics { display: flex; align-items: flex-end; gap: 8px; flex: none; }
.gl-adm-img { display: block; width: 72px; height: 72px; }
svg.gl-adm-img { width: 63px; }
.gl-adm-old .gl-adm-img { width: 36px; height: 36px; opacity: .7; }
.gl-adm-old svg.gl-adm-img { width: 31px; }
.gl-adm-actions { flex-wrap: wrap; }
.field.gl-adm-reject { flex-direction: row; gap: 8px; align-items: center; }
.field.gl-adm-reject input[type="text"] { width: 190px; min-height: 36px; font-size: 14px; }
.rk-list-num { color: var(--gold-2); font: 700 20px/1 var(--display); text-align: right; font-variant-numeric: tabular-nums; }

.rk-table-wrap { margin-top: 36px; border: 1px solid var(--line); border-radius: 3px; }
.rk-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 24px; }
.rk-foot .rank-note { padding: 0; }

/* Rankings page: nakagitnang podium */
#rankings:not(.section-rank-home) .rk-layout { grid-template-columns: minmax(0, 1fr); }
#rankings:not(.section-rank-home) .rk-podium { max-width: 960px; margin: 0 auto; width: 100%; }

@media (max-width: 1100px) {
  .rk-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .rk-podium { max-width: 820px; width: 100%; margin: 0 auto; }
}
@media (max-width: 680px) {
      .rk-type { padding: 0 12px; font-size: 14px; }
  .rk-panel { margin-top: 24px; }
  .rk-podium { gap: 8px; }
  .rk-card { padding: 2px; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
  .rk-card-inner { aspect-ratio: 3 / 4.6; clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px); }
  .rk-place-1 .rk-card-inner { aspect-ratio: 3 / 5.1; }
  .rk-card-rank { top: 6px; left: 9px; font-size: 30px; }
  .rk-crown { width: 18px; height: 12px; }
  .rk-card-body { padding: 0 9px 10px; }
  .rk-card-name { font-size: 12.5px; letter-spacing: 0; white-space: normal; overflow-wrap: anywhere; }
  .rk-card-sub { margin-top: 3px; font-size: 8px; letter-spacing: .06em; }
  .rk-card-sub { gap: 3px; }
  .rk-card-sub .rk-class-icon { width: 12px; height: 12px; }
  .rk-card-stat { gap: 6px; margin-top: 7px; padding-top: 7px; }
  .rk-card-emblem { display: none; }
  .rk-card-num { font-size: 16px; }
  .rk-card-num span, .rk-card-meta { display: none; }
  .rk-list-head, .rk-list-row { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; }
  .rk-list-who strong { font-size: 15px; }
  .rk-list-num { font-size: 17px; }
}

/* ---------- Scroll reveal (idinadagdag ng main.js ang .reveal) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-embers, .hero-video { display: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { -webkit-animation: none !important; animation: none !important; transition: none !important; }
}

/* ---------- Header: Sign In / account ---------- */
.nav-account {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 180px; padding: 0 14px;
  color: var(--text); border: 1px solid var(--line-2); border-radius: 2px; font: 600 13px/1 var(--sans); letter-spacing: .04em;
  transition: color .2s, border-color .2s, background .2s;
}
.nav-account span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-account svg { flex: none; color: var(--gold); }
.nav-account:hover, .nav-account.is-active { color: var(--text); border-color: var(--gold); background: rgba(201, 164, 92, .08); }
@media (max-width: 1140px) {
  .site-nav { gap: 12px; }
  .nav-account { justify-content: center; min-height: 50px; max-width: none; font-size: 14px; }
}

/* ---------- Sign In / Sign Up / My Account ---------- */
.auth-section {
  padding: 72px 0 104px;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201, 164, 92, .08), transparent 70%);
}
.auth-card {
  width: 100%; max-width: 460px; margin: 0 auto; padding: 36px 36px 32px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-top: 2px solid var(--gold);
  border-radius: 3px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
}
.auth-title { margin-top: 6px; font: 700 clamp(28px, 4vw, 36px)/1.1 var(--display); letter-spacing: .02em; overflow-wrap: anywhere; }
.auth-subtitle { font: 700 22px/1.2 var(--display); letter-spacing: .02em; }
.auth-intro { margin-top: 8px; color: var(--muted); font-size: 15px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.auth-submit { width: 100%; margin-top: 6px; }
.auth-switch { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; text-align: center; }
.auth-switch a { font-weight: 600; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { color: var(--text); font: 600 13px/1.2 var(--sans); letter-spacing: .06em; }
.field input[type="text"], .field input[type="password"] {
  width: 100%; min-height: 48px; padding: 0 14px; color: var(--text);
  background: #0c0c0e; border: 1px solid var(--line-2); border-radius: 2px;
  font: 16px/1.2 var(--sans); transition: border-color .2s, box-shadow .2s;
}
.field input:hover { border-color: rgba(255, 255, 255, .28); }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, .2); }
.field-hint { color: var(--dim); font-size: 13px; line-height: 1.45; }
.field-error { color: #f08a7a; font-size: 13px; font-weight: 600; line-height: 1.45; }
.field-error::before { content: "! "; }
.has-error input[type="text"], .has-error input[type="password"] { border-color: #d0614f; }
.field-check { gap: 6px; }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font: 400 14px/1.5 var(--sans); letter-spacing: 0; cursor: pointer; }
.field .check { font-weight: 400; letter-spacing: 0; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { margin-top: 18px; padding: 12px 14px; border: 1px solid; border-left-width: 3px; border-radius: 2px; font-size: 14px; line-height: 1.5; }
.notice-error   { color: #f6c2b8; background: rgba(208, 97, 79, .1);  border-color: rgba(208, 97, 79, .5); }
.notice-success { color: #cfe8c4; background: rgba(110, 170, 90, .1); border-color: rgba(110, 170, 90, .5); }
.notice-info    { color: var(--text); background: rgba(201, 164, 92, .08); border-color: rgba(201, 164, 92, .45); }

/* ---------- Player Portal (account.php) ---------- */
.portal-section { padding: 48px 0 96px; background: radial-gradient(ellipse 60% 40% at 70% 0%, rgba(201, 164, 92, .07), transparent 70%); }
.portal {
  display: grid; grid-template-columns: 264px minmax(0, 1fr); overflow: hidden;
  background: linear-gradient(180deg, #121316, #0d0e10); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
}

/* Sidebar */
.portal-side { padding: 24px 18px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent); }
.portal-brand { display: flex; align-items: center; gap: 12px; padding: 0 6px 22px; border-bottom: 1px solid var(--line); }
.portal-avatar, .pwelcome-avatar {
  flex: none; display: grid; place-items: center; color: var(--gold-2); font: 700 22px/1 var(--display);
  background: radial-gradient(circle at 35% 30%, #2a2416, #0d0d0f 75%); border: 1px solid rgba(201, 164, 92, .7);
  box-shadow: inset 0 0 0 3px #0d0d0f, inset 0 0 0 4px rgba(201, 164, 92, .35), 0 8px 24px rgba(201, 164, 92, .15);
}
.portal-avatar { width: 48px; height: 48px; border-radius: 12px; }
.portal-brand-kicker { color: var(--gold); font: 700 10px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.portal-brand-title { margin-top: 3px; font: 700 18px/1.1 var(--display); letter-spacing: .02em; }
.portal-nav-head { margin: 24px 8px 10px; color: var(--dim); font: 700 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.portal-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.portal-link {
  display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 12px; color: var(--muted);
  border: 1px solid transparent; border-radius: 8px; font: 600 14.5px/1.2 var(--sans);
  transition: color .2s, background .2s, border-color .2s;
}
.portal-link-num { width: 18px; color: var(--dim); font: 700 11px/1 var(--sans); letter-spacing: .06em; }
.portal-link-label { flex: 1; }
a.portal-link:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.portal-link.is-active {
  color: var(--text); border-color: rgba(201, 164, 92, .55); border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(201, 164, 92, .16), rgba(201, 164, 92, .03));
}
.portal-link.is-active .portal-link-num { color: var(--gold); }
.portal-link.is-disabled { cursor: default; opacity: .7; }
.portal-count { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; color: var(--text); border: 1px solid var(--line-2); border-radius: 11px; font: 700 11px/1 var(--sans); }
.portal-soon { padding: 4px 8px; color: var(--gold); border: 1px solid rgba(201, 164, 92, .5); border-radius: 10px; font: 700 9.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }

/* Main */
.portal-main { min-width: 0; padding: 36px 40px 40px; }
.portal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.portal-title { margin-top: 6px; font: 700 clamp(30px, 4vw, 48px)/1.05 var(--display); letter-spacing: .01em; }
.portal-intro { margin-top: 10px; color: var(--muted); font-size: 15px; }
.portal-logout {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; flex: none;
  color: #fff; background: linear-gradient(180deg, #b44a3e, #8c3328); border: 1px solid #c65a4d; border-radius: 6px;
  font: 700 13px/1 var(--sans); letter-spacing: .04em; cursor: pointer; box-shadow: 0 8px 24px -8px rgba(180, 74, 62, .6);
  transition: filter .2s, transform .2s;
}
.portal-logout:hover { filter: brightness(1.12); transform: translateY(-1px); }

.portal-stats { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 12px; margin-top: 26px; padding-bottom: 24px; border-bottom: 1px solid rgba(201, 164, 92, .35); }
.pstat {
  position: relative; overflow: hidden; padding: 18px 18px 16px; min-height: 104px;
  background: linear-gradient(180deg, #181a1f, #121317); border: 1px solid var(--line-2); border-radius: 10px;
}
.pstat::after { content: ""; position: absolute; right: -20%; bottom: -60%; width: 90%; height: 120%; pointer-events: none; background: radial-gradient(ellipse at center, var(--glow), transparent 65%); opacity: .55; }
.pstat-gold { --glow: rgba(201, 164, 92, .55); border-color: rgba(201, 164, 92, .6); }
.pstat-green { --glow: rgba(70, 180, 130, .45); }
.pstat-violet { --glow: rgba(130, 100, 220, .45); }
.pstat-blue { --glow: rgba(80, 130, 220, .4); }
.pstat-label { position: relative; z-index: 1; color: var(--text); font: 700 11px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.pstat-num { position: relative; z-index: 1; margin-top: 8px; color: var(--gold-2); font: 700 30px/1 var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pstat-green .pstat-num { color: #7fd6ac; }
.pstat-violet .pstat-num { color: #b9a6f2; }
.pstat-blue .pstat-num { color: var(--text); }
.pstat-sub { position: relative; z-index: 1; margin-top: 8px; color: var(--dim); font-size: 12px; }

.portal-flash .notice { margin-top: 20px; }

.pcard {
  margin-top: 22px; padding: 26px 28px; background: linear-gradient(180deg, #16181d, #111216);
  border: 1px solid var(--line-2); border-radius: 12px;
}
.pcard-narrow { max-width: 560px; }
.pcard-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 16px; margin-bottom: 8px; }
.pcard-kicker { color: var(--gold); font: 700 11px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.pcard-title { margin-top: 6px; font: 700 clamp(22px, 2.6vw, 30px)/1.1 var(--display); letter-spacing: .02em; }
.pcard-shield { flex: none; width: 36px; height: 42px; }

.pcard-welcome {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-color: rgba(201, 164, 92, .5); border-left: 3px solid var(--gold);
  background: radial-gradient(ellipse 60% 120% at 0% 50%, rgba(201, 164, 92, .12), transparent 70%), linear-gradient(180deg, #1a1c22, #131418);
}
.pwelcome-id { display: flex; align-items: center; gap: 22px; min-width: 0; }
.pwelcome-avatar { width: 80px; height: 80px; border-radius: 16px; font-size: 32px; }
.pwelcome-text { min-width: 0; }
.pwelcome-name { margin-top: 6px; font: 700 clamp(26px, 3.2vw, 36px)/1.05 var(--display); letter-spacing: .02em; overflow-wrap: anywhere; }
.pwelcome-sub { margin-top: 6px; color: var(--muted); font-size: 14px; }
.pwelcome-facts { display: flex; margin: 0; }
.pwelcome-facts div { min-width: 170px; padding: 4px 22px; border-left: 1px solid var(--line-2); }
.pwelcome-facts dt { color: var(--dim); font: 700 10.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.pwelcome-facts dd { margin: 10px 0 0; font: 600 15px/1.3 var(--sans); }
.pdim { color: var(--dim); font-weight: 500; }

.pdetails { margin: 14px 0 0; }
.pdetails div { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; border-top: 1px solid var(--line); }
.pdetails dt { color: var(--muted); font-size: 14px; }
.pdetails dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }

.ptable { min-width: 560px; }
.pcard .table-wrap { margin-top: 12px; }
.pneg { color: #f0a090; font-weight: 700; }
.ppos { color: #7fd6ac; font-weight: 700; }
.pempty { padding: 36px 12px 12px; text-align: center; color: var(--muted); }
.pempty-title { color: var(--text); font: 700 20px/1.2 var(--display); margin-bottom: 6px; }
.pempty .btn { margin-top: 18px; }

@media (max-width: 1100px) {
  .portal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pwelcome-facts { width: 100%; }
  .pwelcome-facts div:first-child { padding-left: 0; border-left: 0; }
}
@media (max-width: 900px) {
  .portal { grid-template-columns: minmax(0, 1fr); }
  .portal-side { padding: 16px 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .portal-brand { padding: 0 0 14px; border-bottom: 0; }
  .portal-nav-head { display: none; }
  .portal-nav { display: flex; gap: 4px; margin: 0 -16px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; }
  .portal-nav::-webkit-scrollbar { display: none; }
  .portal-nav ul { flex-direction: row; gap: 4px; }
  .portal-link { min-height: 44px; padding: 0 12px; gap: 8px; white-space: nowrap; font-size: 14px; }
  .portal-link.is-active { border-left-width: 1px; }
  .portal-link-num { display: none; }
  .portal-main { padding: 28px 20px 28px; }
}
@media (max-width: 560px) {
  .portal { border-radius: 10px; }
  .portal-section { padding: 24px 0 64px; }
  .portal-head { flex-direction: column; }
  .portal-head form, .portal-logout { width: 100%; justify-content: center; }
  .pstat { min-height: 0; padding: 14px; }
  .pstat-num { font-size: 24px; }
  .pcard { padding: 22px 18px; }
  .pwelcome-id { gap: 16px; }
  .pwelcome-avatar { width: 60px; height: 60px; font-size: 24px; }
  .pwelcome-facts { flex-direction: column; gap: 14px; }
  .pwelcome-facts div { padding: 0; border-left: 0; }
  .pdetails div { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 10px 0; }
  .pdetails dd { text-align: left; }
}
@media (max-width: 520px) {
  .auth-section { padding: 40px 0 72px; }
  .auth-card { padding: 28px 20px 24px; }
}

/* ---------- Top Up + invoices ---------- */
.ptag { flex: none; padding: 6px 10px; color: var(--gold-2); border: 1px solid rgba(201, 164, 92, .45); border-radius: 999px; font: 700 11px/1 var(--sans); letter-spacing: .08em; }
.topup-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; margin-top: 22px; }
.pkg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pkg { position: relative; display: block; cursor: pointer; }
.pkg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pkg-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: 20px 18px 16px;
  background: linear-gradient(180deg, #1b1d22, #131418); border: 1px solid var(--line-2); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}
.pkg:hover .pkg-card { border-color: rgba(201, 164, 92, .55); transform: translateY(-2px); }
.pkg input:checked + .pkg-card {
  border-color: var(--gold); background: radial-gradient(ellipse 90% 70% at 30% 0%, rgba(201, 164, 92, .2), transparent 70%), linear-gradient(180deg, #1f1c16, #141310);
  box-shadow: 0 0 0 1px var(--gold), 0 12px 30px -12px rgba(201, 164, 92, .45);
}
.pkg input:checked + .pkg-card::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%2315120c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.pkg input:focus-visible + .pkg-card { outline: 2px solid var(--gold); outline-offset: 3px; }
.pkg-tags { position: absolute; top: -1px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 4px; transform: translateY(-50%); pointer-events: none; }
.pkg-tags .pkg-tag { position: static; transform: none; }
.pkg-tag-promo { color: #fff !important; background: linear-gradient(180deg, #ff6a5f, #b3261e) !important; box-shadow: 0 4px 12px -4px rgba(229, 72, 77, .7); }
.pkg-tag { position: absolute; top: -1px; left: 18px; transform: translateY(-50%); padding: 4px 10px; color: #15120c; background: linear-gradient(180deg, #f0d495, #b8914a); border-radius: 999px; font: 800 9.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.pkg-amount { color: var(--gold-2); font: 700 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.pkg-unit { margin-top: 6px; color: var(--text); font: 700 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.pkg-price { margin-top: 16px; color: var(--text); font: 700 16px/1 var(--sans); }
.pkg-bonus { margin-top: 6px; color: var(--dim); font-size: 12px; }
.pkg input[data-bonus]:not([data-bonus=""]) + .pkg-card .pkg-bonus { color: #e2c483; font-weight: 600; }

.topup-summary {
  position: sticky; top: calc(var(--header-h, 72px) + 16px); padding: 22px 20px;
  background: linear-gradient(180deg, #1c1e24, #131418); border: 1px solid var(--line-2); border-top: 3px solid var(--gold); border-radius: 12px;
}
.topup-summary-title { font: 700 20px/1.1 var(--display); letter-spacing: .02em; }
.topup-summary dl { margin: 16px 0 0; }
.topup-summary dl div { padding: 10px 0; border-top: 1px solid var(--line); }
.topup-summary dt { color: var(--dim); font-size: 12.5px; }
.topup-summary dd { margin: 4px 0 0; }
.topup-sum-ecoin { color: var(--text); font: 700 24px/1.1 var(--display); }
.topup-sum-bonus dd { color: #e2c483; font-weight: 600; font-size: 14px; }
.topup-sum-price { color: var(--gold-2); font: 700 28px/1.1 var(--display); }
.topup-go { width: 100%; margin-top: 14px; }
.topup-go:disabled { opacity: .7; cursor: progress; }
.topup-summary-note { margin-top: 12px; color: var(--dim); font-size: 12.5px; line-height: 1.5; }

/* QR checkout */
.qr-card { border-color: rgba(201, 164, 92, .55); }
.qr-badge { flex: none; }
.qr-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 28px; margin-top: 18px; }
.qr-side { text-align: center; }
.qr-box { padding: 12px; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .8), 0 0 0 1px rgba(201, 164, 92, .4); }
.qr-box img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.qr-brand { margin-top: 14px; color: var(--text); font: 800 18px/1 var(--sans); letter-spacing: .02em; }
.qr-brand span { color: #e5484d; margin-right: 1px; }
.qr-apps { margin-top: 6px; color: var(--dim); font-size: 12.5px; }
.qr-receive {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px;
  background: linear-gradient(90deg, rgba(201, 164, 92, .16), rgba(201, 164, 92, .04)); border: 1px solid rgba(201, 164, 92, .5); border-radius: 10px;
}
.qr-receive span { color: var(--gold-2); font: 700 13px/1 var(--sans); }
.qr-receive strong { color: var(--gold-2); font: 700 clamp(20px, 2.4vw, 28px)/1.1 var(--display); text-align: right; }
.qr-rows { margin-top: 6px; }
.qr-rows div { min-height: 46px; }
.qr-pay { font-size: 18px; }
.qr-code { color: var(--gold-2); letter-spacing: .04em; }
.qr-timer { font: 700 18px/1 Consolas, "Courier New", monospace !important; font-variant-numeric: tabular-nums; }
.qr-timer.is-low { color: #f0a090; }
.qr-note { margin-top: 16px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.qr-note strong { color: var(--text); }
.qr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.qr-hint { margin-top: 8px; color: var(--dim); font-size: 12.5px; }
.qr-live { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); font: 600 12.5px/1 var(--sans); }
.qr-dot { width: 8px; height: 8px; border-radius: 50%; background: #7fd6ac; box-shadow: 0 0 0 0 rgba(127, 214, 172, .6); animation: qr-pulse 1.6s infinite; }
.qr-live-credited { color: #7fd6ac; }
@keyframes qr-pulse { 0% { box-shadow: 0 0 0 0 rgba(127, 214, 172, .55); } 70% { box-shadow: 0 0 0 8px rgba(127, 214, 172, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 214, 172, 0); } }
@media (prefers-reduced-motion: reduce) { .qr-dot { animation: none; } }
.qr-expired { padding: 28px 8px 8px; text-align: center; color: var(--muted); }
.qr-expired form { margin-top: 16px; }

.pstatus { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid; border-radius: 999px; font: 700 11px/1 var(--sans); letter-spacing: .06em; white-space: nowrap; }
.pstatus::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pstatus-credited { color: #7fd6ac; border-color: rgba(127, 214, 172, .45); background: rgba(127, 214, 172, .08); }
.pstatus-pending { color: var(--gold-2); border-color: rgba(201, 164, 92, .5); background: rgba(201, 164, 92, .08); }
.pstatus-cancelled, .pstatus-expired { color: var(--muted); border-color: var(--line-2); }
.pstatus-review { color: #8fb8ff; border-color: rgba(143, 184, 255, .45); background: rgba(143, 184, 255, .08); }
.pstatus-rejected { color: #f0a090; border-color: rgba(240, 160, 144, .45); background: rgba(240, 160, 144, .08); }

/* Top up: manual GCash */
.gcash-brand { color: #3b8bff; }
.copy-row { display: flex; align-items: center; gap: 8px; }
.copy-input { min-width: 0; width: 100%; max-width: 220px; padding: 6px 10px; color: var(--text); background: #0c0c0e; border: 1px solid var(--line-2); border-radius: 2px; font-size: 15px; }
.copy-input:focus { outline: none; border-color: var(--gold); }
.gc-steps { margin: 18px 0 0; padding-left: 1.3em; color: var(--muted); font-size: 14px; line-height: 1.6; }
.gc-steps li { margin-bottom: 6px; }
.gc-steps strong { color: var(--text); }
.gc-proof { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.gc-qr-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; margin-top: 8px; }
.gc-qr-row .field { flex: 1 1 260px; }
.gc-qr-preview { display: block; width: 120px; height: 120px; object-fit: contain; background: #fff; border-radius: 4px; }

/* Admin > Payments */
.pay-row { flex-wrap: wrap; align-items: flex-start; }
.pay-proof { flex: none; display: block; width: 72px; height: 128px; overflow: hidden; background: #fff; border: 1px solid var(--line-2); border-radius: 3px; }
.pay-proof img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pay-proof-none { display: grid; place-items: center; color: var(--dim); background: rgba(255, 255, 255, .03); font-size: 11px; text-align: center; }
.pay-note { color: #f0a090; }
.pstatus-failed { color: #f0a090; border-color: rgba(240, 160, 144, .45); background: rgba(240, 160, 144, .08); }

.invoice { max-width: 720px; }
.invoice-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.invoice-total { border-top: 2px solid rgba(201, 164, 92, .5) !important; }
.invoice-total dt { color: var(--text) !important; font-weight: 700; }
.invoice-total dd { color: var(--gold-2); font: 700 24px/1 var(--display) !important; }
.invoice-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.mono { font-family: Consolas, "Courier New", monospace !important; font-size: 13px; }

@media (max-width: 1180px) {
  .topup-layout { grid-template-columns: minmax(0, 1fr); }
  .topup-summary { position: static; }
}
@media (max-width: 860px) {
  .qr-layout { grid-template-columns: minmax(0, 1fr); }
  .qr-side { max-width: 280px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
  .pkg-amount { font-size: 24px; }
  .qr-actions .btn, .qr-actions form { width: 100%; }
}
@media print {
  .site-header, .site-footer, .portal-side, .portal-head form, .portal-stats, .portal-flash, .invoice-actions, .skip-link { display: none !important; }
  body, .portal, .pcard, .portal-section { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  .portal { display: block; border: 0; }
  .pcard { border: 1px solid #999 !important; }
  .pdetails dt, .pdetails dd, .pcard-title, .portal-title, .invoice-total dd { color: #000 !important; }
}
@media (max-width: 560px) {
  /* Top Up sa phone: eCoin lang ang stat para makita agad ang QR */
  .portal-stats.is-compact { grid-template-columns: minmax(0, 1fr); padding-bottom: 16px; }
  .portal-stats.is-compact .pstat:not(.pstat-gold) { display: none; }
  .qr-layout { margin-top: 12px; gap: 20px; }
}

/* ---------- Referrals ---------- */
.ref-hero { border-color: rgba(201, 164, 92, .55); background: radial-gradient(ellipse 70% 90% at 100% 0%, rgba(201, 164, 92, .12), transparent 65%), linear-gradient(180deg, #1a1c22, #121317); }
.ref-lead { max-width: 680px; margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.ref-lead strong { color: var(--text); }
.ref-share { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; margin-top: 22px; }
.ref-field label { display: block; margin-bottom: 7px; color: var(--text); font: 600 13px/1.2 var(--sans); letter-spacing: .06em; }
.ref-copy { display: flex; gap: 8px; }
.ref-copy input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; color: var(--text);
  background: #0c0c0e; border: 1px solid var(--line-2); border-radius: 6px; font: 14px/1 var(--sans);
}
.ref-copy input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, .2); }
.ref-copy .btn { flex: none; }
.ref-code { color: var(--gold-2) !important; font: 700 17px/1 Consolas, "Courier New", monospace !important; letter-spacing: .14em; text-align: center; }
.ref-copied { min-height: 20px; margin-top: 8px; color: #7fd6ac; font-size: 13px; font-weight: 600; }
.ref-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 10px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.ref-steps li { display: flex; gap: 12px; align-items: flex-start; }
.ref-steps li > span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; color: #15120c; background: linear-gradient(180deg, #f0d495, #b8914a); border-radius: 50%; font: 800 13px/1 var(--sans); }
.ref-steps strong { display: block; color: var(--text); font-size: 14.5px; }
.ref-steps p { margin-top: 3px; color: var(--dim); font-size: 13px; line-height: 1.5; }
.ref-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.ref-invited p:not(.pcard-kicker) { margin-top: 8px; color: var(--muted); line-height: 1.6; }
.ref-invited strong { color: var(--text); }
@media (max-width: 900px) {
  .ref-share { grid-template-columns: minmax(0, 1fr); }
  .ref-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ref-stats { grid-template-columns: minmax(0, 1fr); }
  .ref-copy { flex-direction: column; }
  .ref-copy .btn { width: 100%; }
}
.locked-input { position: relative; }
.locked-input input[readonly] {
  width: 100%; min-height: 48px; padding: 0 42px 0 14px; color: var(--gold-2); cursor: not-allowed;
  background: rgba(201, 164, 92, .06); border: 1px dashed rgba(201, 164, 92, .5); border-radius: 2px;
  font: 700 16px/1.2 Consolas, "Courier New", monospace; letter-spacing: .12em;
}
.locked-input input[readonly]:focus { outline: none; box-shadow: 0 0 0 3px rgba(201, 164, 92, .2); }
.locked-input svg { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--gold); pointer-events: none; }

/* ---------- Session timeout warning ---------- */
.session-warn { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(5, 5, 7, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.session-warn[hidden] { display: none; }
.session-warn-box {
  width: 100%; max-width: 420px; padding: 28px 26px 24px; text-align: left;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-top: 2px solid var(--gold); border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
}
.session-warn-title { margin-top: 6px; font: 700 26px/1.1 var(--display); letter-spacing: .02em; }
.session-warn-text { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.session-warn-text strong { color: var(--gold-2); font-variant-numeric: tabular-nums; }
.session-warn-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.session-warn-actions form { display: contents; }
@media (max-width: 420px) { .session-warn-actions .btn { flex: 1 1 100%; } }
.qr-check-msg { margin-top: 12px; padding: 10px 12px; color: var(--text); background: rgba(201, 164, 92, .08); border: 1px solid rgba(201, 164, 92, .4); border-left-width: 3px; border-radius: 4px; font-size: 13.5px; line-height: 1.5; }
.qr-check-msg.is-ok { color: #cfe8c4; background: rgba(110, 170, 90, .1); border-color: rgba(110, 170, 90, .5); }
.qr-check-msg.is-error { color: #f6c2b8; background: rgba(208, 97, 79, .1); border-color: rgba(208, 97, 79, .5); }
.invoice-note { margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- eCoin card (invoice + print) ---------- */
.ecard {
  --band-a: #e53935; --band-b: #8e0000; --ink: #fff; --frame: #0a0a0a;
  position: relative; width: 100%; max-width: 640px; margin: 22px 0 0; overflow: hidden;
  aspect-ratio: 1.72 / 1; display: grid; grid-template-rows: 19% 1fr auto;
  background: var(--frame); border: 6px solid var(--frame); border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 26px 60px -24px rgba(0, 0, 0, .9);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.ecard-red    { --band-a: #ff5a4f; --band-b: #a10f0f; }
.ecard-gold   { --band-a: #ffe57a; --band-b: #d29b08; --ink: #1d1400; }
.ecard-purple { --band-a: #a874ff; --band-b: #4b1694; }
.ecard-green  { --band-a: #4fd16f; --band-b: #0d6a26; }
.ecard-orange { --band-a: #ffa04a; --band-b: #c25200; }
.ecard-black  { --band-a: #ffffff; --band-b: #cfd2d6; --ink: #111; --frame: #000; }

.ecard-band {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 18px; color: var(--ink);
  background: linear-gradient(180deg, var(--band-a), var(--band-b));
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35), inset 0 2px 0 rgba(255, 255, 255, .35);
}
.ecard-band::after { /* kislap gaya ng sa physical card */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, .08) 22px 24px);
}
.ecard-amount { position: relative; z-index: 1; font: italic 800 clamp(13px, 2.6vw, 18px)/1 var(--sans); letter-spacing: .02em; }
.ecard-amount span { font: italic 900 clamp(24px, 6vw, 40px)/1 var(--sans); letter-spacing: -.01em; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.ecard-gold .ecard-amount span, .ecard-black .ecard-amount span { text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.ecard-brand { position: relative; z-index: 1; font: 700 clamp(8px, 1.6vw, 11px)/1.2 var(--display); letter-spacing: .18em; text-transform: uppercase; text-align: right; opacity: .9; }

.ecard-art { position: relative; overflow: hidden; background: #120a08; }
.ecard-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.ecard-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .25) 38%, rgba(0, 0, 0, 0) 60%), linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 40%); }
.ecard-logo { position: absolute; z-index: 1; left: 4%; top: 50%; width: 36%; height: auto; transform: translateY(-50%); filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .8)); }
.ecard-stamp {
  position: absolute; z-index: 1; right: 5%; top: 12%; padding: 4px 12px; color: #7fe0a8;
  border: 2px solid #7fe0a8; border-radius: 6px; transform: rotate(-8deg);
  font: 900 clamp(12px, 2.6vw, 18px)/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  background: rgba(0, 0, 0, .45); box-shadow: 0 0 18px rgba(127, 224, 168, .35);
}
.ecard-bonus { position: absolute; z-index: 1; left: 4%; bottom: 8%; padding: 4px 9px; color: #15120c; background: linear-gradient(180deg, #f0d495, #b8914a); border-radius: 999px; font: 800 clamp(8px, 1.5vw, 10.5px)/1 var(--sans); letter-spacing: .06em; }

.ecard-strip {
  display: grid; grid-template-columns: 1.3fr 1fr 1.2fr .9fr; gap: 8px; padding: 9px 14px 8px;
  color: #e9e5dc; background: linear-gradient(180deg, #151515, #050505); border-top: 3px solid var(--band-b);
}
.ecard-strip div { min-width: 0; }
.ecard-strip span { display: block; color: #8f8a80; font: 700 clamp(6.5px, 1.2vw, 8.5px)/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.ecard-strip strong { display: block; margin-top: 3px; overflow: hidden; font: 700 clamp(8px, 1.6vw, 11.5px)/1.2 var(--sans); white-space: nowrap; text-overflow: ellipsis; }
.ecard-strip div:first-child strong { font-family: Consolas, "Courier New", monospace; letter-spacing: .03em; }

@media print {
  @page { margin: 14mm; }
  .portal-head, .notice, .session-warn, .invoice-note, .fine-print { display: none !important; }
  .portal-main { padding: 0 !important; }
  .ecard { max-width: 120mm; margin: 0 0 8mm; box-shadow: none; break-inside: avoid; }
  .invoice { max-width: 120mm; }
}

/* ---------- Admin panel ---------- */
.nav-admin {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: #f0a090;
  border: 1px solid rgba(240, 160, 144, .45); border-radius: 2px; font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.nav-admin:hover, .nav-admin.is-active { color: #fff; background: rgba(208, 97, 79, .18); border-color: #d0614f; }
@media (max-width: 1140px) { .nav-admin { justify-content: center; min-height: 50px; } }
.adm-avatar { color: #f0a090 !important; }
.adm-who { margin: 0 8px; color: var(--text); font-weight: 600; }
.adm-who span { margin-left: 6px; padding: 3px 8px; color: #f0a090; border: 1px solid rgba(240, 160, 144, .45); border-radius: 10px; font: 700 9.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.adm-form { display: block; }
.adm-form > .pcard + .pcard, .adm-form .pcard { margin-top: 22px; }
.adm-help { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.adm-help code, .adm-errors code { padding: 1px 6px; color: var(--gold-2); background: rgba(201, 164, 92, .1); border-radius: 4px; font: 13px Consolas, monospace; }
.adm-errors { margin: 6px 0 0; padding-left: 18px; }
.adm-head-row, .adm-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; }
.adm-head-row { margin-top: 16px; color: var(--dim); font: 700 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.adm-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.adm-row input, .adm-form input[type="text"], .adm-form input[type="url"], .adm-form input[type="number"], .adm-form textarea {
  width: 100%; min-height: 44px; padding: 0 12px; color: var(--text); background: #0c0c0e;
  border: 1px solid var(--line-2); border-radius: 4px; font: 15px/1.3 var(--sans);
}
.adm-form textarea { padding: 10px 12px; min-height: 90px; resize: vertical; line-height: 1.5; }
.adm-row input:focus, .adm-form input:focus, .adm-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, .2); }
.adm-row-tools { display: flex; gap: 4px; }
.adm-icon { width: 38px; height: 44px; color: var(--muted); background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); border-radius: 4px; font: 700 16px/1 var(--sans); cursor: pointer; }
.adm-icon:hover:not(:disabled) { color: var(--text); border-color: var(--gold); }
.adm-icon:disabled { opacity: .35; cursor: default; }
.adm-icon-del:hover:not(:disabled) { color: #f0a090; border-color: #d0614f; }
.adm-add { margin-top: 12px; }
.adm-add:disabled { opacity: .5; cursor: default; }
.adm-divider { height: 1px; margin: 26px 0 20px; background: var(--line); }
.adm-sub { font: 700 18px/1.2 var(--display); letter-spacing: .02em; }
.adm-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.adm-actions-sticky { position: sticky; bottom: 0; z-index: 5; margin-top: 22px; padding: 14px 0; background: linear-gradient(0deg, #0d0e10 70%, rgba(13, 14, 16, 0)); }
.adm-reset { margin-top: 14px; }
.adm-link-btn { padding: 0; color: var(--dim); background: none; border: 0; font: 600 13px/1.4 var(--sans); text-decoration: underline; cursor: pointer; }
.adm-link-btn:hover { color: #f0a090; }
.adm-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.adm-col { min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(255, 255, 255, .015); }
.adm-col legend { padding: 0 6px; color: var(--gold); font: 700 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.adm-col .adm-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; }
.adm-col .adm-icon { width: 32px; }
.adm-social { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.adm-social-row { display: grid; grid-template-columns: 40px 140px minmax(0, 1fr); gap: 10px; align-items: center; }
.adm-social-icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--gold-2); border: 1px solid var(--line-2); border-radius: 50%; }
.adm-social-show { font-weight: 600 !important; color: var(--text) !important; }
.adm-logo-preview { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-top: 16px; }
.adm-logo-stage { display: grid; place-items: center; padding: 22px; min-width: 220px; background: radial-gradient(ellipse at center, #1f1a12, #0a0a0b 70%); border: 1px solid var(--line-2); border-radius: 8px; }
.adm-logo-stage .adm-logo-img { max-width: 320px; max-height: 160px; width: auto; height: auto; }
.adm-logo-stage-sm { position: relative; padding: 14px 18px 26px; min-width: 0; }
.adm-logo-stage-sm .adm-logo-img { max-height: 48px; }
.adm-logo-stage-sm span { position: absolute; bottom: 6px; left: 0; right: 0; color: var(--dim); font-size: 11px; text-align: center; }
.adm-file { width: 100%; padding: 10px; color: var(--muted); background: #0c0c0e; border: 1px dashed var(--line-2); border-radius: 6px; }
.adm-logo-new { margin-top: 14px; }
@media (max-width: 900px) {
  .adm-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .adm-head-row { display: none; }
  .adm-row, .adm-col .adm-row { grid-template-columns: minmax(0, 1fr) auto; }
  .adm-row input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .adm-row-tools { grid-column: 2; grid-row: 1; }
  .adm-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .adm-social-row { grid-template-columns: 40px minmax(0, 1fr); }
  .adm-social-row input[type="url"] { grid-column: 1 / -1; }
}
.dl-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.download-card .dl-links .btn { margin-top: 0; }
/* Admin: content */
.adm-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.adm-form .field + .field, .adm-form .adm-grid-3 + .field, .adm-form .field + .adm-grid-3 { margin-top: 14px; }
.adm-select, .adm-form input[type="date"], .adm-form input[type="datetime-local"] {
  width: 100%; min-height: 44px; padding: 0 12px; color: var(--text); background: #0c0c0e;
  border: 1px solid var(--line-2); border-radius: 4px; font: 15px/1.3 var(--sans); color-scheme: dark;
}
.adm-select:focus, .adm-form input[type="date"]:focus, .adm-form input[type="datetime-local"]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, .2); }
.adm-body { min-height: 280px !important; font: 15px/1.65 var(--sans) !important; }
.adm-back { display: inline-flex; margin-top: 18px; }
.adm-news-img { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 12px; }
.adm-news-img .media-ratio { border-radius: 6px; overflow: hidden; border: 1px solid var(--line-2); }
.adm-news-img .check { margin-top: 12px; }
.adm-cell-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.adm-cell-actions form { display: inline; }
.adm-cell-actions .btn { min-height: 36px; padding: 0 12px; font-size: 11px; }
.adm-danger:hover { color: #f0a090 !important; border-color: #d0614f !important; }
.adm-news-table td { vertical-align: middle; }
.adm-req-row { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1.2fr) auto !important; }
@media (max-width: 900px) {
  .adm-grid-3, .adm-news-img { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .adm-req-row { grid-template-columns: minmax(0, 1fr) auto !important; }
  .adm-req-row input:nth-child(2), .adm-req-row input:nth-child(3) { grid-column: 1 / -1; }
  .adm-req-row input:nth-child(2) { grid-row: 2; }
  .adm-req-row input:nth-child(3) { grid-row: 3; }
}
.adm-grid-2 > .field, .adm-grid-3 > .field { margin-top: 0 !important; }
.adm-posts { list-style: none; margin: 14px 0 0; padding: 0; }
.adm-post { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.adm-post-thumb { width: 96px; height: 54px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line-2); }
.adm-post-title { display: block; color: var(--text); font: 600 16px/1.35 var(--sans); }
.adm-post-title:hover { color: var(--gold-2); }
.adm-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 6px; color: var(--dim); font-size: 13px; }
.adm-post-actions { display: flex; gap: 6px; }
.adm-post-actions form { display: inline; }
.adm-post-actions .btn { min-height: 36px; padding: 0 12px; font-size: 11px; }
@media (max-width: 700px) {
  .adm-post { grid-template-columns: 72px minmax(0, 1fr); }
  .adm-post-thumb { width: 72px; height: 41px; }
  .adm-post-actions { grid-column: 1 / -1; }
  .adm-post-actions .btn { flex: 1; }
  .adm-post-actions form { display: flex; flex: 1; }
}
/* Promos (Top Up) */
.promo-banner {
  display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 16px;
  background: linear-gradient(90deg, rgba(229, 72, 77, .18), rgba(201, 164, 92, .08)); border: 1px solid rgba(229, 72, 77, .5); border-radius: 10px;
}
.promo-pct { flex: none; display: grid; place-items: center; min-width: 64px; height: 44px; padding: 0 10px; color: #fff; background: linear-gradient(180deg, #ff6a5f, #b3261e); border-radius: 8px; font: 900 20px/1 var(--sans); box-shadow: 0 6px 18px -6px rgba(229, 72, 77, .7); }
.promo-name { color: var(--text); font: 700 16px/1.3 var(--sans); }
.promo-meta { margin-top: 3px; color: var(--muted); font-size: 13px; }
.pkg-promo { margin-top: 6px; padding: 3px 8px; white-space: nowrap; color: #fff; background: linear-gradient(180deg, #ff6a5f, #b3261e); border-radius: 999px; font: 800 11px/1 var(--sans); letter-spacing: .04em; }
.topup-sum-promo dd { color: #ff8a80; font-weight: 700; font-size: 14px; }
.qr-promo { margin-top: 10px; color: #ffb4ab; font-size: 13.5px; }
.qr-promo strong { color: #fff; }
/* Admin: top up, promos, referrals */
.adm-stats { margin-top: 22px; }
.adm-pkg-row { grid-template-columns: 90px 100px 90px minmax(0, 1fr) 120px 100px auto !important; }
.adm-pkg-row input[type="number"] { -moz-appearance: textfield; }
.adm-toggle { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(255, 255, 255, .02); }
.adm-toggle strong { color: var(--text); }
.adm-pk-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 12px; }
.adm-pk-picks.is-off { opacity: .45; pointer-events: none; }
.adm-pk-pick { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 6px; }
.adm-promo { grid-template-columns: 72px minmax(0, 1fr) auto; }
@media (max-width: 1100px) {
  .adm-pkg-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .adm-pkg-row .adm-row-tools { grid-column: 1 / -1; justify-content: flex-end; }
  .adm-head-row.adm-pkg-row { display: none; }
  .adm-pkg-row { padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
}
@media (max-width: 640px) {
  .adm-pkg-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .adm-pkg-row input:nth-child(2), .adm-pkg-row input:nth-child(3) { grid-column: auto; grid-row: auto; }
  .adm-promo { grid-template-columns: 64px minmax(0, 1fr); }
}
/* Promo total sa package card at summary */
.pkg-was { color: var(--dim); font: 600 13px/1 var(--sans); text-decoration: line-through; margin-bottom: 4px; }
.pkg-card.has-promo .pkg-amount { color: #ffd27a; text-shadow: 0 0 18px rgba(255, 106, 95, .45); }
.pkg-card.has-promo { border-color: rgba(229, 72, 77, .45); }
.topup-sum-get { margin-top: 4px; padding: 12px 14px !important; border: 1px solid rgba(201, 164, 92, .55) !important; border-radius: 8px; background: linear-gradient(90deg, rgba(201, 164, 92, .16), rgba(201, 164, 92, .04)); }
.topup-sum-get dt { color: var(--gold-2) !important; font-weight: 700; }
.topup-sum-get dd { color: #ffd27a; font: 700 30px/1.1 var(--display) !important; text-shadow: 0 0 16px rgba(201, 164, 92, .35); }
.topup-sum-get small { color: var(--muted); font: 700 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-shadow: none; }
/* Admin: hero, FAQ, events, classes */
.adm-hero-preview { margin: 14px 0 6px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 8px; background: radial-gradient(ellipse 80% 120% at 0% 0%, rgba(201, 164, 92, .12), transparent 70%), #0c0c0e; }
.adm-hero-title { margin-top: 6px; font: 700 clamp(24px, 3vw, 36px)/1.05 var(--display); text-transform: uppercase; }
.adm-hero-title span { color: var(--gold-2); }
.adm-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.adm-choice .adm-toggle { margin-top: 0; }
.adm-media { margin-top: 18px; }
.adm-media-box { margin: 8px 0 12px; overflow: hidden; border: 1px solid var(--line-2); border-radius: 6px; background: #000; }
.adm-media-box img, .adm-media-box video { width: 100%; height: 100%; object-fit: cover; }
.adm-sub-label { margin-top: 18px; color: var(--gold); font: 700 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.adm-media .adm-sub-label { margin-top: 0; }
.adm-warn { color: #f0b090 !important; }
.adm-warn code { color: var(--gold-2); }
.adm-qa-row { grid-template-columns: minmax(0, 1fr) auto !important; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.adm-qa-fields { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.adm-qa-fields input { font-weight: 600 !important; }
.adm-qa-fields textarea { width: 100%; min-height: 64px; padding: 10px 12px; color: var(--text); background: #0c0c0e; border: 1px solid var(--line-2); border-radius: 4px; font: 14.5px/1.5 var(--sans); resize: vertical; }
.adm-qa-fields textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, .2); }
.adm-ev-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, 1.2fr) auto !important; }
.adm-ab-row { grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr) auto !important; }
.adm-class-head { display: flex; align-items: center; gap: 14px; }
.adm-class-icon { width: 44px; height: 44px; }
.adm-class .field { margin-top: 14px; }
@media (max-width: 900px) {
  .adm-choice { grid-template-columns: minmax(0, 1fr); }
  .adm-ev-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .adm-ev-row .adm-row-tools { grid-column: 1 / -1; justify-content: flex-end; }
  .adm-head-row.adm-ev-row { display: none; }
}
@media (max-width: 640px) {
  .adm-ab-row { grid-template-columns: minmax(0, 1fr) auto !important; }
  .adm-ab-row input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}
/* Admin: page banners */
.adm-banner-prev { aspect-ratio: 16 / 5; overflow: hidden; border: 1px solid var(--line-2); border-radius: 6px; background: #000; }
.adm-banner-prev img { width: 100%; height: 100%; object-fit: cover; }
.adm-page-card { padding-top: 0; overflow: hidden; }
.adm-page-banner { position: relative; margin: 0 -28px 6px; padding: 26px 28px 22px; background: #0c0c0e center / cover no-repeat; border-bottom: 1px solid var(--line-2); }
.adm-page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 11, .92) 30%, rgba(10, 10, 11, .55)); }
.adm-page-banner-in { position: relative; max-width: 620px; }
.adm-page-title { margin-top: 6px; font: 700 clamp(22px, 2.6vw, 30px)/1.1 var(--display); text-transform: uppercase; }
.adm-page-intro { margin-top: 6px; color: var(--muted); font-size: 14px; }
.adm-page-link { position: absolute; top: 14px; right: 16px; padding: 6px 10px; color: var(--gold-2); background: rgba(0, 0, 0, .5); border: 1px solid var(--line-2); border-radius: 4px; font: 700 11px/1 var(--sans); letter-spacing: .08em; }
.adm-page-img-state { display: flex; align-items: flex-end; padding-bottom: 4px; }
@media (max-width: 560px) { .adm-page-banner { margin: 0 -18px 6px; padding: 40px 18px 18px; } }
/* Admin: Banners (hero + page banners sa iisang page) */
.adm-jump { position: sticky; top: calc(var(--header-h, 72px) + 8px); z-index: 6; display: flex; gap: 6px; margin-top: 22px; padding: 6px; width: max-content; max-width: 100%; background: rgba(13, 14, 16, .92); border: 1px solid var(--line-2); border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.adm-jump a { padding: 8px 16px; color: var(--muted); border-radius: 999px; font: 700 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.adm-jump a:hover { color: var(--text); background: rgba(201, 164, 92, .12); }
.adm-part { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(201, 164, 92, .35); color: var(--gold-2); font: 700 22px/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; scroll-margin-top: calc(var(--header-h, 72px) + 70px); }
.adm-part:first-of-type { border-top: 0; padding-top: 0; }
#hero-form { border-top: 0; padding-top: 0; }
/* Admin sidebar: show/hide ng grupo */
.adm-group-head { margin-bottom: 6px !important; }
.adm-group-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 32px; padding: 0 10px 0 0;
  color: var(--dim); background: none; border: 0; border-radius: 4px; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer;
}
.adm-group-btn:hover { color: var(--text); }
.adm-group-btn svg { flex: none; transition: transform .2s; }
.adm-group-btn[aria-expanded="false"] svg { transform: rotate(-90deg); }
.adm-group-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 900px) {
  .portal-nav ul[id^="adm-grp-"][hidden] { display: flex !important; } /* sa phone: tabs, laging kita */
}
@media (prefers-reduced-motion: reduce) { .adm-group-btn svg { transition: none; } }

/* ---------- Avatar + Profile ---------- */
.field input[type="email"] {
  width: 100%; min-height: 48px; padding: 0 14px; color: var(--text); background: #0c0c0e;
  border: 1px solid var(--line-2); border-radius: 2px; font: 16px/1.2 var(--sans);
}
.field input[type="email"]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, .2); }
.has-error input[type="email"] { border-color: #d0614f; }
.avatar-class, .avatar-photo { padding: 0; overflow: hidden; }
.avatar-class .avatar-img { width: 78%; height: 78%; }
.avatar-photo .avatar-img { width: 100%; height: 100%; object-fit: cover; }
.portal-avatar.avatar-class, .portal-avatar.avatar-photo, .pwelcome-avatar.avatar-class, .pwelcome-avatar.avatar-photo { display: grid; place-items: center; }
.nav-avatar { flex: none; display: grid; place-items: center; width: 24px; height: 24px; overflow: hidden; color: #15120c; background: linear-gradient(180deg, #f0d495, #b8914a); border-radius: 50%; font: 800 12px/1 var(--sans); }
.nav-avatar.avatar-class { background: #0c0c0e; box-shadow: inset 0 0 0 1px rgba(201, 164, 92, .6); }
.nav-avatar .avatar-img { width: 100%; height: 100%; object-fit: cover; }
.nav-avatar.avatar-class .avatar-img { width: 80%; height: 80%; }
.pwelcome-bio { margin-top: 6px; color: var(--text); font-size: 14.5px; font-style: italic; }
.pwelcome-sub { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.pwelcome-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.pwelcome-tag svg, .pwelcome-tag-icon { width: 16px; height: 16px; color: #8ea1ff; }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
.av-opt { position: relative; cursor: pointer; }
.av-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.av-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: linear-gradient(180deg, #1b1d22, #131418); transition: border-color .2s, box-shadow .2s, transform .2s; }
.av-opt:hover .av-card { border-color: rgba(201, 164, 92, .55); transform: translateY(-2px); }
.av-opt input:checked + .av-card { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 10px 24px -12px rgba(201, 164, 92, .5); background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(201, 164, 92, .18), transparent 70%), #17150f; }
.av-opt input:focus-visible + .av-card { outline: 2px solid var(--gold); outline-offset: 3px; }
.av-pic { display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; background: #0c0c0e; box-shadow: inset 0 0 0 1px rgba(201, 164, 92, .5); }
.av-letter { color: #15120c; background: linear-gradient(180deg, #f0d495, #b8914a); font: 700 24px/1 var(--display); }
.av-icon { width: 44px; height: 44px; }
.av-photo img, .av-up img { width: 100%; height: 100%; object-fit: cover; }
.av-up { color: var(--gold); border: 1px dashed rgba(201, 164, 92, .6); box-shadow: none; }
.av-name { color: var(--muted); font: 600 12.5px/1 var(--sans); }
.av-opt input:checked + .av-card .av-name { color: var(--text); }
.av-file { margin-top: 14px; }
@media (max-width: 560px) {
  .av-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .av-card { padding: 10px 4px; }
  .av-pic { width: 46px; height: 46px; }
  .av-icon { width: 36px; height: 36px; }
}

/* ---------- Support tickets ---------- */
.tk-text { width: 100%; min-height: 110px; padding: 12px 14px; color: var(--text); background: #0c0c0e; border: 1px solid var(--line-2); border-radius: 4px; font: 15px/1.6 var(--sans); resize: vertical; }
.tk-text:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, .2); }
.has-error .tk-text { border-color: #d0614f; }
.tk-head .pcard-head { margin-bottom: 0; }
.tk-meta { margin-top: 8px; color: var(--dim); font-size: 13.5px; }
.tk-thread { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tk-msg { max-width: 88%; padding: 14px 16px; background: linear-gradient(180deg, #17191e, #121317); border: 1px solid var(--line-2); border-radius: 12px; }
.tk-msg.is-mine { align-self: flex-end; border-color: rgba(201, 164, 92, .35); background: linear-gradient(180deg, #1d1a13, #14120d); border-bottom-right-radius: 4px; }
.tk-msg.is-staff, .tk-msg.is-player { align-self: flex-start; border-bottom-left-radius: 4px; }
.tk-msg.is-staff { border-color: rgba(127, 214, 172, .35); }
.tk-msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.tk-msg-head strong { color: var(--text); font-size: 14px; }
.tk-msg-head time { margin-left: auto; color: var(--dim); font-size: 12px; }
.tk-badge { padding: 2px 7px; color: #7fd6ac; border: 1px solid rgba(127, 214, 172, .45); border-radius: 999px; font: 700 10px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.tk-badge-player { color: var(--gold-2); border-color: rgba(201, 164, 92, .45); }
.tk-body { margin-top: 8px; color: var(--text); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.tk-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tk-files a { display: block; width: 120px; height: 80px; overflow: hidden; border: 1px solid var(--line-2); border-radius: 6px; }
.tk-files img { width: 100%; height: 100%; object-fit: cover; }
.tk-sys { align-self: center; padding: 4px 12px; color: var(--dim); background: rgba(255, 255, 255, .03); border-radius: 999px; font-size: 12.5px; }
.tk-sys span { margin-left: 6px; opacity: .7; }
.tk-reply { margin-top: 18px; scroll-margin-top: calc(var(--header-h, 72px) + 20px); }
.tk-row { grid-template-columns: 12px minmax(0, 1fr) auto !important; }
.tk-dot { width: 9px; height: 9px; border-radius: 50%; background: transparent; }
.tk-row.is-unread .tk-dot { background: #ff6a5f; box-shadow: 0 0 0 3px rgba(255, 106, 95, .2); }
.tk-row.is-unread .adm-post-title { font-weight: 800; }
.tk-count { color: #fff !important; background: #d0614f; border-color: #d0614f !important; }
.tk-high { color: #ff8a80; font-weight: 700; }
.tk-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tk-filter .filter-bar { margin: 0; }
.tk-search { display: flex; gap: 8px; flex: 1; max-width: 360px; }
.tk-search input { flex: 1; min-width: 0; min-height: 40px; padding: 0 12px; color: var(--text); background: #0c0c0e; border: 1px solid var(--line-2); border-radius: 4px; font: 14px var(--sans); }
.tk-search input:focus { outline: none; border-color: var(--gold); }
.tk-staff-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.tk-side { display: flex; flex-direction: column; gap: 0; }
.tk-side .pcard { padding: 20px; }
.tk-facts div { min-height: 40px; }
.tk-facts dt { font-size: 13px; }
.tk-facts dd { font-size: 13.5px; }
.tk-side-form { margin-top: 12px; }
@media (max-width: 1100px) { .tk-staff-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .tk-msg { max-width: 100%; } .tk-search { max-width: none; } }
.adm-form .adm-grid-2 + .field, .adm-form .adm-grid-2 + .field + .field { margin-top: 14px; }

/* Admin > Referrals > Partners */
.ref-partner-add { align-items: end; margin-bottom: 18px; }
.ref-partner-add .adm-actions { grid-column: 1 / -1; margin: 0; }
.pay-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 14px; }
.pay-mail .adm-help { margin: 0; }
