:root {
  --portal-panel: rgba(8, 12, 25, .92);
  --portal-line: rgba(125, 151, 238, .22);
  --portal-soft: #929db6;
  --portal-blue: #6f8dff;
  --portal-green: #69e5ac;
  --portal-red: #ff7e95;
  --portal-gold: #ebc06c;
}

.portal-page,
.portal-auth-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 76% 4%, rgba(45, 67, 156, .25), transparent 31rem),
    radial-gradient(circle at 12% 46%, rgba(84, 47, 170, .16), transparent 35rem),
    #03050b;
}

.portal-auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(87, 111, 185, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(87, 111, 185, .05) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.portal-auth-shell {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 116px 24px 42px;
}

.portal-auth-panel {
  width: min(980px, 100%);
  min-height: 610px;
  display: grid;
  grid-template-columns: 1fr minmax(390px, .88fr);
  overflow: hidden;
  border: 1px solid var(--portal-line);
  background: rgba(5, 8, 17, .96);
  box-shadow: 0 45px 130px rgba(0, 0, 0, .62), inset 0 1px rgba(255, 255, 255, .025);
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}

.portal-auth-art {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: radial-gradient(circle at 42% 50%, rgba(49, 85, 236, .35), transparent 42%), linear-gradient(145deg, #071020, #03050b 74%);
}

.portal-auth-art::before {
  content: "";
  position: absolute;
  width: 510px;
  aspect-ratio: 1;
  left: -8%;
  top: 11%;
  border: 1px solid rgba(114, 143, 255, .22);
  transform: rotate(45deg);
  box-shadow: 0 0 0 54px rgba(83, 108, 215, .035), 0 0 0 108px rgba(83, 108, 215, .02);
}

.portal-auth-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(transparent, #050811 92%);
}

.portal-auth-art img {
  position: absolute;
  z-index: 1;
  left: -21%;
  bottom: -3%;
  width: 132%;
  height: 108%;
  object-fit: contain;
  filter: drop-shadow(0 30px 38px rgba(0, 0, 0, .9)) drop-shadow(0 0 32px rgba(74, 104, 255, .38));
}

.portal-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px;
  background: linear-gradient(160deg, rgba(11, 15, 30, .98), rgba(5, 7, 15, .98));
}

.portal-eyebrow {
  margin: 0 0 10px;
  color: #8197df;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.portal-form h1,
.portal-page-title h1,
.portal-welcome h1,
.portal-admin-login h1 {
  margin: 0;
  color: #f4f7ff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .98;
  text-transform: uppercase;
}

.portal-intro,
.portal-page-title > p:last-child,
.portal-admin-login > p {
  color: var(--portal-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.portal-form > label:not(.proof-drop),
.portal-field-row label,
.admin-review-form label {
  margin: 17px 0 8px;
  color: #c9d1e4;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portal-form input:not([type="hidden"]):not([type="file"]),
.portal-form select,
.portal-form textarea,
.admin-review-form input {
  width: 100%;
  min-height: 51px;
  padding: 12px 15px;
  border: 1px solid rgba(122, 145, 229, .25);
  border-radius: 0;
  outline: none;
  background: rgba(5, 8, 18, .92);
  color: #f7f9ff;
  font: inherit;
}

.portal-form textarea { min-height: 110px; resize: vertical; }
.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus,
.admin-review-form input:focus { border-color: #6d88ff; box-shadow: 0 0 0 3px rgba(82, 109, 255, .13); }
.portal-form select { appearance: auto; }
.portal-form label small { color: #66738e; font-size: .65rem; }
.portal-form .password-toggle { color: #8293c9; }

.portal-message { min-height: 20px; margin: 12px 0 0; font-size: .82rem; line-height: 1.5; }
.portal-message-error { color: var(--portal-red); }
.portal-message-success { color: var(--portal-green); }
.portal-form-links { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px; color: #8592af; font-size: .8rem; }
.portal-form-links a:hover { color: white; }
.verification-actions button { padding: 0; border: 0; background: transparent; color: #8592af; cursor: pointer; font: inherit; }
.verification-actions button:hover { color: white; }
.otp-code { font-size: 1.45rem !important; font-weight: 800 !important; letter-spacing: .38em; text-align: center; }
.portal-button-link { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }

.portal-header {
  position: fixed;
  z-index: 60;
  inset: 0 0 auto;
  height: 82px;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(125, 151, 238, .18);
  background: rgba(3, 5, 12, .9);
  backdrop-filter: blur(18px);
}

.portal-header nav { display: flex; justify-content: center; gap: clamp(12px, 2vw, 36px); }
.portal-header nav a { position: relative; color: #929db5; font-size: .76rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.portal-header nav a:hover,
.portal-header nav a.is-active { color: #eef3ff; }
.portal-header nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 2px; background: #6785ff; box-shadow: 0 0 12px #5273ff; }
.portal-header form { justify-self: end; }
.portal-signout { padding: 11px 17px; border: 1px solid rgba(125, 151, 238, .32); background: rgba(18, 25, 48, .58); color: #c8d2ec; cursor: pointer; font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.portal-signout:hover { border-color: #6582ef; color: white; }

.portal-shell { position: relative; width: min(1320px, calc(100% - 40px)); margin: 0 auto; padding: 132px 0 100px; }
.portal-shell-narrow { width: min(1060px, calc(100% - 40px)); }
.portal-welcome { min-height: 205px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 36px 42px; border: 1px solid var(--portal-line); background: radial-gradient(circle at 88% 12%, rgba(62, 88, 199, .23), transparent 23rem), linear-gradient(145deg, rgba(12, 17, 34, .96), rgba(5, 8, 17, .94)); clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
.portal-welcome h1 { font-size: clamp(2.5rem, 4.3vw, 4.4rem); }
.portal-welcome > div > p:last-child { margin: 14px 0 0; color: var(--portal-soft); font-size: 1rem; }
.portal-primary-link { display: inline-flex; align-items: center; gap: 14px; min-width: 205px; justify-content: center; padding: 16px 20px; border: 1px solid rgba(141, 164, 255, .45); background: linear-gradient(135deg, #2c50d0, #6d43d8); color: white; font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.portal-primary-link:hover { filter: brightness(1.12); transform: translateY(-2px); }

.portal-alert { margin: 18px 0; padding: 15px 18px; border: 1px solid; background: rgba(12, 16, 29, .92); font-size: .9rem; line-height: 1.55; }
.portal-alert-success { border-color: rgba(77, 215, 150, .35); color: #91edbd; }
.portal-alert-error { border-color: rgba(255, 93, 121, .35); color: #ff9cac; }
.portal-alert-warning { border-color: rgba(235, 192, 108, .34); color: #dac08e; }

.balance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.balance-card { position: relative; min-height: 158px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px; overflow: hidden; padding: 26px 28px; border: 1px solid var(--portal-line); background: linear-gradient(145deg, rgba(13, 18, 35, .94), rgba(5, 8, 17, .96)); }
.balance-card::after { content: ""; position: absolute; right: -44px; bottom: -64px; width: 150px; height: 150px; border: 1px solid rgba(116, 142, 232, .12); transform: rotate(45deg); }
.balance-icon { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(122, 150, 255, .38); background: rgba(54, 77, 172, .13); color: #91a8ff; font-size: 1.45rem; transform: rotate(45deg); }
.balance-icon::first-letter { transform: rotate(-45deg); }
.balance-card small { display: block; margin-bottom: 5px; color: #8290ab; font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.balance-card strong { display: block; color: #f5f7ff; font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.65rem); font-weight: 400; line-height: 1; }
.balance-card p { margin: 9px 0 0; color: #6f7b94; font-size: .76rem; }
.balance-forcegem .balance-icon { color: #b28eff; border-color: rgba(174, 126, 255, .4); }
.balance-alz .balance-icon { color: var(--portal-gold); border-color: rgba(235, 192, 108, .35); }

.portal-section { margin-top: 58px; }
.portal-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.portal-section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.35rem); font-weight: 400; text-transform: uppercase; }
.portal-section-heading > span,
.portal-section-heading > a { color: #8493b1; font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.portal-section-heading > a:hover { color: white; }

.character-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.character-account-card { min-height: 350px; display: grid; grid-template-columns: minmax(190px, .72fr) 1fr; overflow: hidden; border: 1px solid var(--portal-line); background: linear-gradient(145deg, rgba(13, 18, 36, .96), rgba(5, 8, 16, .98)); clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px); }
.character-account-art { position: relative; overflow: hidden; background: radial-gradient(circle at center 80%, rgba(48, 79, 223, .42), transparent 55%); }
.character-account-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(8, 12, 24, .96)), linear-gradient(transparent 58%, rgba(7, 10, 20, .78)); }
.character-account-art img { position: absolute; left: 50%; bottom: -2%; width: 155%; height: 108%; max-width: none; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .8)); }
.character-account-copy { position: relative; z-index: 2; padding: 32px 30px 28px 8px; }
.character-account-copy > p { margin: 0 0 5px; color: #7e94dd; font-size: .7rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.character-account-copy h3 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 400; line-height: 1.05; text-transform: uppercase; }
.character-level { display: flex; align-items: baseline; gap: 10px; margin: 17px 0; color: #8692aa; font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.character-level strong { color: #cbd7ff; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 400; }
.character-account-copy dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: rgba(106, 130, 209, .12); }
.character-account-copy dl div { padding: 10px 11px; background: #080c18; }
.character-account-copy dt { color: #68758e; font-size: .64rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.character-account-copy dd { margin: 4px 0 0; color: #cbd3e7; font-size: .82rem; }

.portal-empty { padding: 42px; border: 1px dashed rgba(124, 149, 231, .25); background: rgba(7, 10, 20, .72); text-align: center; }
.portal-empty strong { font-family: Georgia, serif; font-size: 1.45rem; font-weight: 400; text-transform: uppercase; }
.portal-empty p { margin: 9px 0 0; color: var(--portal-soft); font-size: .9rem; }
.portal-table-wrap { overflow-x: auto; border: 1px solid var(--portal-line); }
.portal-table { width: 100%; min-width: 900px; border-collapse: collapse; background: rgba(6, 9, 18, .9); }
.portal-table th { padding: 15px 17px; border-bottom: 1px solid var(--portal-line); color: #73819e; font-size: .68rem; letter-spacing: .12em; text-align: left; text-transform: uppercase; }
.portal-table td { padding: 17px; border-bottom: 1px solid rgba(121, 145, 222, .1); color: #c5cee1; font-size: .84rem; }
.portal-table td small { display: block; margin-top: 5px; color: #6e7a93; }
.status-badge { display: inline-flex; align-items: center; min-height: 27px; padding: 5px 10px; border: 1px solid; font-size: .67rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.status-pending { border-color: rgba(235, 192, 108, .35); background: rgba(235, 192, 108, .08); color: #e8c985; }
.status-approved { border-color: rgba(81, 222, 157, .34); background: rgba(81, 222, 157, .08); color: #83e9b7; }
.status-rejected { border-color: rgba(255, 100, 128, .34); background: rgba(255, 100, 128, .08); color: #ff91a5; }
.status-processing { border-color: rgba(102, 137, 255, .38); background: rgba(76, 108, 226, .1); color: #9cb0ff; }
.status-delivery_failed { border-color: rgba(255, 135, 79, .4); background: rgba(219, 91, 43, .1); color: #ffad83; }

.player-package-section { scroll-margin-top: 105px; }
.player-package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.player-package-card { position: relative; min-width: 0; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--portal-line); background: radial-gradient(circle at 100% 0, rgba(74, 103, 219, .2), transparent 15rem), linear-gradient(145deg, rgba(13, 18, 35, .96), rgba(5, 8, 17, .98)); color: #cbd4e8; }
.player-package-card > small,
.package-radio-copy > small { color: #7f93d6; font-size: .65rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.player-package-card h3,
.package-radio-copy > strong { margin: 8px 0 0; color: #f5f7ff; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 400; line-height: 1.1; text-transform: uppercase; }
.player-package-card > strong,
.package-radio-copy > em { margin-top: 13px; color: #ebc979; font-family: Georgia, serif; font-size: 1.35rem; font-style: normal; font-weight: 400; }
.player-package-card > p,
.package-radio-copy > span { margin: 12px 0 0; color: #7f8ba3; font-size: .82rem; line-height: 1.55; }
.player-package-card ul { margin: 20px 0 24px; padding: 15px 0 0 18px; border-top: 1px solid rgba(121, 145, 222, .13); color: #9ca8be; font-size: .8rem; line-height: 1.65; }
.player-package-card li + li { margin-top: 5px; }
.player-package-card li b { color: #cdd8f0; }
.player-package-card > a { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 13px 15px; border: 1px solid rgba(117, 145, 241, .35); color: #a9bbf7; font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.player-package-card > a:hover { border-color: #728df4; color: white; }
.package-choice-fieldset { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.package-choice-fieldset > legend { margin-bottom: 13px; color: #c9d1e4; font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.player-package-grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.package-radio-card { cursor: pointer; }
.package-radio-card > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.package-radio-card:has(input:checked),
.package-radio-card.is-selected { border-color: #6e8cff; box-shadow: 0 0 0 2px rgba(94, 124, 247, .18), inset 0 0 35px rgba(66, 92, 202, .1); }
.package-radio-card:has(input:focus-visible) { outline: 2px solid #8aa2ff; outline-offset: 3px; }
.package-radio-copy { display: flex; flex-direction: column; }

.portal-page-title { max-width: 800px; margin-bottom: 34px; }
.portal-page-title h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); }
.topup-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 20px; }
.topup-form { justify-content: flex-start; border: 1px solid var(--portal-line); padding: 40px; }
.portal-field-row { display: grid; grid-template-columns: 1.6fr .8fr; gap: 14px; }
.portal-field-row > div { display: flex; flex-direction: column; }
.proof-drop { position: relative; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 20px; border: 1px dashed rgba(126, 154, 251, .42); background: rgba(30, 43, 89, .12); color: #cdd8f6; cursor: pointer; text-align: center; }
.proof-drop:hover { border-color: #708cff; background: rgba(49, 68, 142, .18); }
.proof-drop span { color: #73809a; font-size: .75rem; }
.proof-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.topup-guide { display: grid; grid-template-columns: 46px 1fr; gap: 24px 15px; padding: 30px 26px; border: 1px solid var(--portal-line); background: rgba(7, 10, 21, .88); }
.topup-guide-number { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(112, 140, 238, .32); color: #8ca4f4; font-size: .68rem; font-weight: 900; }
.topup-guide strong { color: #dce4f8; font-family: Georgia, serif; font-size: 1rem; font-weight: 400; text-transform: uppercase; }
.topup-guide p { margin: 7px 0 0; color: #7d88a0; font-size: .8rem; line-height: 1.6; }

.security-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 20px; }
.security-form { justify-content: flex-start; padding: 40px; border: 1px solid var(--portal-line); }
.security-note { padding: 30px 28px; border: 1px solid var(--portal-line); background: rgba(7, 10, 21, .88); }
.security-note h2 { margin: 0; color: #f0f4ff; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 400; line-height: 1.12; text-transform: uppercase; }
.security-note ul { margin: 22px 0 0; padding-left: 20px; color: #8793aa; font-size: .86rem; line-height: 1.7; }
.security-note li + li { margin-top: 11px; }

.portal-admin-login { width: min(500px, 100%); padding: 44px; border: 1px solid var(--portal-line); background: var(--portal-panel); box-shadow: 0 35px 110px rgba(0, 0, 0, .6); }
.portal-admin-login .portal-form { padding: 12px 0 0; background: transparent; }
.portal-admin-login h1 { font-size: 3.5rem; }
.admin-welcome { min-height: 180px; }
.admin-count { padding: 12px 16px; border: 1px solid var(--portal-line); color: #9cadd1; font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.admin-monthly-section { margin-top: 52px; }
.admin-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.admin-metric-card { min-height: 142px; padding: 24px; border: 1px solid var(--portal-line); background: linear-gradient(145deg, rgba(13, 18, 35, .96), rgba(5, 8, 17, .96)); }
.admin-metric-card small { display: block; color: #7f8da8; font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.admin-metric-card strong { display: block; margin-top: 13px; color: #f4f7ff; font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.65rem); font-weight: 400; line-height: 1; }
.admin-metric-card p { margin: 11px 0 0; color: #74809a; font-size: .78rem; }
.admin-money-total { display: flex !important; flex-wrap: wrap; gap: 7px 15px; font-size: clamp(1.25rem, 2vw, 1.85rem) !important; line-height: 1.2 !important; }
.admin-money-total span { white-space: nowrap; }
.admin-monthly-table { min-width: 1080px; }
.admin-monthly-table td:last-child a { color: #91a9ff; font-weight: 800; text-transform: uppercase; }
.admin-monthly-table tr.is-selected-month td { background: rgba(80, 106, 207, .11); color: #eef2ff; }
.admin-table-empty { padding: 34px !important; color: #7f8ba4 !important; text-align: center; }
.admin-request-section { margin-top: 58px; scroll-margin-top: 105px; }
.admin-request-heading { margin-bottom: 22px; }
.admin-request-section .admin-request-list { margin-top: 0; }
.admin-request-list { display: grid; gap: 16px; margin-top: 28px; }
.admin-request-card { padding: 28px; border: 1px solid var(--portal-line); background: linear-gradient(145deg, rgba(12, 17, 33, .96), rgba(5, 8, 16, .98)); }
.admin-request-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.admin-request-summary h2 { margin: 0; font-family: Georgia, serif; font-size: 2.2rem; font-weight: 400; }
.admin-request-summary > div > span { color: #8591a9; font-size: .85rem; }
.admin-request-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 22px 0 0; background: rgba(111, 136, 219, .13); }
.admin-request-details div { min-width: 0; padding: 15px; background: #080c18; }
.admin-request-details dt { color: #68758e; font-size: .66rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.admin-request-details dd { overflow-wrap: anywhere; margin: 7px 0 0; color: #c9d1e3; font-size: .83rem; }
.admin-request-details a { color: #91a9ff; text-decoration: underline; text-underline-offset: 3px; }
.admin-player-note { margin: 16px 0 0; color: #8c98af; font-size: .85rem; line-height: 1.6; }
.admin-review-form { display: grid; grid-template-columns: .65fr 1fr auto; align-items: end; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(119, 144, 227, .13); }
.admin-review-form label { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.admin-review-actions { display: flex; gap: 8px; }
.admin-review-actions button { min-height: 51px; padding: 0 18px; border: 1px solid; cursor: pointer; font-size: .73rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.admin-approve { border-color: rgba(85, 226, 161, .36) !important; background: rgba(60, 178, 121, .14); color: #8af0bc; }
.admin-reject { border-color: rgba(255, 100, 128, .36) !important; background: rgba(190, 56, 83, .12); color: #ff99ab; }
.admin-review-complete { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(119, 144, 227, .13); color: #8591aa; font-size: .8rem; }
.admin-package-request { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; padding: 15px 17px; border-left: 3px solid #647ff0; background: rgba(53, 74, 157, .12); }
.admin-package-request strong { color: #e5eaff; font-family: Georgia, serif; font-size: 1.1rem; font-weight: 400; text-transform: uppercase; }
.admin-package-request span { color: #8e9bb4; font-size: .82rem; line-height: 1.55; }
.admin-package-review-form { grid-template-columns: minmax(240px, 1fr) auto; }
.admin-delivery-error { margin-bottom: 0; overflow-wrap: anywhere; }

.cabal-catalog-panel { margin-top: 42px; padding: 28px; border: 1px solid var(--portal-line); background: linear-gradient(145deg, rgba(12, 17, 33, .97), rgba(5, 8, 16, .99)); scroll-margin-top: 110px; }
.cabal-catalog-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr); align-items: center; gap: 30px; }
.cabal-catalog-copy strong { color: #e6ebff; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 400; }
.cabal-catalog-copy p { max-width: 720px; margin: 10px 0 0; color: #8794ad; font-size: .84rem; line-height: 1.65; }
.cabal-catalog-copy code { color: #aebeff; }
.cabal-catalog-upload { display: grid; gap: 13px; }
.cabal-catalog-upload label { display: grid; gap: 8px; color: #c9d1e4; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.cabal-catalog-upload input[type='file'] { width: 100%; min-height: 48px; padding: 10px; border: 1px dashed rgba(122, 145, 229, .35); background: rgba(5, 8, 18, .92); color: #aeb8cd; }
.cabal-catalog-upload input[type='file']::file-selector-button { margin-right: 12px; padding: 8px 11px; border: 1px solid rgba(122, 145, 229, .34); background: rgba(74, 94, 194, .18); color: #dfe6ff; cursor: pointer; }
.cabal-catalog-upload .submit-button { width: 100%; }

.admin-package-create { margin-top: 50px; }
.admin-package-create > .package-main-form { max-width: 820px; border: 1px solid var(--portal-line); }
.package-main-form { justify-content: flex-start; }
.package-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.package-form-grid label { display: flex; flex-direction: column; }
.admin-package-list { display: grid; gap: 18px; margin-top: 42px; }
.admin-package-card { padding: 28px; border: 1px solid var(--portal-line); background: linear-gradient(145deg, rgba(12, 17, 33, .97), rgba(5, 8, 16, .99)); scroll-margin-top: 100px; }
.admin-package-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.admin-package-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 400; text-transform: uppercase; }
.admin-package-heading > div > p:last-child { margin: 10px 0 0; color: #8491a9; font-size: .82rem; }
.package-editor { margin-top: 20px; border: 1px solid rgba(119, 144, 227, .16); background: rgba(5, 8, 17, .58); }
.package-editor summary { padding: 15px 17px; color: #9eafe3; cursor: pointer; font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.package-editor .package-main-form { border-top: 1px solid rgba(119, 144, 227, .13); }
.package-items-table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--portal-line); }
.package-items-table { min-width: 1180px; }
.package-small-button { min-height: 34px; padding: 6px 10px; border: 1px solid; cursor: pointer; font-size: .65rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.package-item-actions { display: flex; align-items: center; gap: 8px; }
.package-item-actions form { margin: 0; }
.package-item-edit-row[hidden] { display: none; }
.package-item-edit-row > td { padding: 0; background: rgba(14, 21, 42, .72); }
.package-item-edit-heading { display: flex; justify-content: space-between; gap: 18px; padding: 18px 20px 0; color: #dce4ff; }
.package-item-edit-heading span { color: #7f8da7; font-size: .72rem; }
.package-item-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 20px; border-top: 1px solid rgba(119, 144, 227, .13); }
.package-item-form label { display: flex; flex-direction: column; gap: 8px; color: #c9d1e4; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.package-item-form input,
.package-item-form select { width: 100%; min-height: 47px; padding: 11px 13px; border: 1px solid rgba(122, 145, 229, .25); outline: none; background: rgba(5, 8, 18, .92); color: #f7f9ff; font: inherit; }
.package-item-form input:focus,
.package-item-form select:focus { border-color: #6d88ff; box-shadow: 0 0 0 3px rgba(82, 109, 255, .13); }
.package-item-form .package-catalog-search { grid-column: 1 / -1; }
.package-item-edit-heading + .package-item-form { border-top: 0; }
.package-item-edit-actions { display: flex; align-self: end; gap: 10px; }
.package-item-edit-actions .package-add-button { flex: 1; padding: 8px 12px; }
.package-catalog-search small { color: #6f7d99; font-size: .66rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.cabal-catalog-picker:disabled { cursor: not-allowed; opacity: .6; }
.package-add-button { min-height: 47px; align-self: end; border: 1px solid; cursor: pointer; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.package-toggle-form { display: flex; justify-content: flex-end; margin-top: 20px; }
.package-toggle-button { min-height: 44px; padding: 10px 17px; border: 1px solid; cursor: pointer; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.vote-welcome { min-height: 190px; }
.vote-site-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vote-site-card { position: relative; min-height: 285px; display: grid; grid-template-columns: 100px 1fr; grid-template-rows: 1fr auto; gap: 22px; padding: 28px; overflow: hidden; border: 1px solid var(--portal-line); background: linear-gradient(145deg, rgba(13, 18, 36, .96), rgba(5, 8, 16, .98)); clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.vote-site-card.is-ready { border-color: rgba(102, 138, 255, .48); box-shadow: inset 0 0 45px rgba(49, 73, 175, .09); }
.vote-site-card.is-cooling { opacity: .78; }
.vote-site-logo { width: 100px; height: 100px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(122, 150, 255, .28); background: radial-gradient(circle, rgba(67, 94, 205, .2), rgba(6, 10, 21, .94)); }
.vote-site-logo img { width: 82%; height: 82%; object-fit: contain; }
.vote-site-logo span { color: #a9baff; font-family: Georgia, serif; font-size: 2.7rem; }
.vote-site-copy h3 { margin: 5px 0 12px; color: #f2f5ff; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 400; text-transform: uppercase; }
.vote-site-copy > p:not(.portal-eyebrow) { margin: 0; color: #8c98b0; font-size: .82rem; line-height: 1.6; }
.vote-site-copy > small { display: block; margin-top: 14px; color: #697792; font-size: .7rem; }
.vote-site-card form { grid-column: 1 / -1; }
.vote-action-button { width: 100%; min-height: 50px; border: 1px solid rgba(123, 151, 247, .4); background: linear-gradient(135deg, #2b50d5, #7144df); color: white; cursor: pointer; font-size: .74rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.vote-action-button:hover:not(:disabled) { filter: brightness(1.14); }
.vote-action-button:disabled { border-color: rgba(113, 128, 166, .2); background: rgba(52, 61, 85, .2); color: #758098; cursor: not-allowed; }
.vote-leader-table td:first-child { color: #d9b96e; font-family: Georgia, serif; }

.admin-vote-create { margin-top: 50px; }
.admin-vote-create > .vote-site-admin-form { max-width: 900px; border: 1px solid var(--portal-line); }
.vote-site-admin-form { justify-content: flex-start; }
.vote-site-admin-form input[type='file'] { width: 100%; min-height: 48px; padding: 10px; border: 1px dashed rgba(122, 145, 229, .35); background: rgba(5, 8, 18, .92); color: #aeb8cd; }
.vote-site-admin-form input[type='file']::file-selector-button { margin-right: 12px; padding: 8px 11px; border: 1px solid rgba(122, 145, 229, .34); background: rgba(74, 94, 194, .18); color: #dfe6ff; cursor: pointer; }
.vote-admin-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 14px; }
.vote-active-check { min-height: 51px; display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; margin-bottom: 0 !important; padding: 12px 14px; border: 1px solid rgba(122, 145, 229, .25); background: rgba(5, 8, 18, .92); color: #aeb9d0 !important; }
.vote-active-check input { width: auto !important; min-height: 0 !important; accent-color: #6281f4; }
.admin-vote-list { display: grid; gap: 18px; margin-top: 42px; }
.admin-vote-card { padding: 28px; border: 1px solid var(--portal-line); background: linear-gradient(145deg, rgba(12, 17, 33, .97), rgba(5, 8, 16, .99)); scroll-margin-top: 100px; }
.admin-vote-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.admin-vote-brand { min-width: 0; display: flex; align-items: center; gap: 18px; }
.admin-vote-brand > img,
.admin-vote-brand > span { flex: 0 0 76px; width: 76px; height: 76px; display: grid; place-items: center; object-fit: contain; padding: 8px; border: 1px solid rgba(122, 150, 255, .26); background: rgba(8, 12, 25, .9); color: #a9baff; font-family: Georgia, serif; font-size: 2rem; }
.admin-vote-brand h2 { overflow-wrap: anywhere; margin: 0; color: #f1f4ff; font-family: Georgia, serif; font-size: clamp(1.55rem, 3vw, 2.3rem); font-weight: 400; text-transform: uppercase; }
.admin-vote-brand a { display: inline-block; margin-top: 8px; color: #91a9ff; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.admin-vote-stats { display: flex; align-items: center; gap: 14px; }
.admin-vote-stats > span:not(.status-badge) { min-width: 92px; padding: 11px 13px; border: 1px solid rgba(120, 145, 229, .17); background: rgba(5, 8, 17, .72); text-align: center; }
.admin-vote-stats small { display: block; color: #6f7d98; font-size: .58rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.admin-vote-stats strong { display: block; margin-top: 5px; color: #e5ebff; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 400; }
.admin-vote-requirements { margin: 20px 0 0; padding: 14px 16px; border-left: 2px solid #6682ee; background: rgba(48, 68, 145, .1); color: #8d99b0; font-size: .82rem; line-height: 1.6; }

.email-review-page { min-height: 100vh; }
.email-review-card { width: min(680px, 100%); padding: 42px; border: 1px solid var(--portal-line); background: var(--portal-panel); box-shadow: 0 35px 110px rgba(0, 0, 0, .6); }
.email-review-card h1 { margin-bottom: 25px; font-size: clamp(2.4rem, 6vw, 4.2rem); }
.email-review-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 22px; background: rgba(111, 136, 219, .13); }
.email-review-details div { padding: 15px; background: #080c18; }
.email-review-details dt { color: #68758e; font-size: .64rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.email-review-details dd { overflow-wrap: anywhere; margin: 6px 0 0; color: #c9d1e3; font-size: .84rem; line-height: 1.45; }
.email-review-details a { color: #9db1ff; text-decoration: underline; text-underline-offset: 3px; }
.email-review-confirm-form { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.email-review-confirm-form > a { color: #8ea0c9; font-size: .78rem; }
.email-review-button { min-height: 50px; padding: 12px 18px; border: 1px solid; cursor: pointer; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.email-review-admin-link { margin-top: 20px; }

@media (max-width: 980px) {
  .portal-auth-panel { grid-template-columns: .8fr 1fr; }
  .portal-auth-art img { left: -35%; width: 165%; }
  .portal-form { padding: 42px 34px; }
  .balance-grid { grid-template-columns: 1fr; }
  .balance-card { min-height: 130px; }
  .character-account-grid { grid-template-columns: 1fr; }
  .player-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .character-account-card { max-width: 720px; }
  .topup-layout { grid-template-columns: 1fr; }
  .security-layout { grid-template-columns: 1fr; }
  .topup-guide { grid-template-columns: 46px 1fr; }
  .admin-request-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-review-form { grid-template-columns: 1fr 1fr; }
  .admin-review-actions { grid-column: 1 / -1; }
  .cabal-catalog-grid { grid-template-columns: 1fr; }
  .package-item-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vote-site-grid { grid-template-columns: 1fr; }
  .admin-vote-summary { align-items: flex-start; flex-direction: column; }
  .admin-vote-stats { width: 100%; flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .portal-auth-shell { padding: 90px 14px 28px; }
  .portal-auth-panel { display: block; min-height: 0; }
  .portal-auth-art { min-height: 270px; }
  .portal-auth-art img { left: 1%; bottom: -46%; width: 98%; height: 160%; }
  .portal-form { padding: 32px 24px; }
  .portal-form-links { flex-direction: column; align-items: center; gap: 10px; }
  .portal-header { height: auto; min-height: 72px; grid-template-columns: 1fr auto; padding: 9px 16px; }
  .portal-header .brand-mark { width: 132px; }
  .portal-header nav { grid-column: 1 / -1; grid-row: 2; order: 3; width: 100%; justify-content: space-between; gap: 8px; padding: 6px 0 8px; }
  .portal-header nav a { font-size: .62rem; }
  .portal-header nav a.is-active::after { bottom: -8px; }
  .portal-signout { padding: 9px 11px; font-size: .65rem; }
  .portal-shell,
  .portal-shell-narrow { width: min(100% - 24px, 680px); padding-top: 132px; }
  .portal-welcome { display: block; padding: 28px 24px; }
  .portal-welcome h1 { font-size: 2.5rem; }
  .portal-primary-link { width: 100%; margin-top: 24px; }
  .balance-card { padding: 22px; }
  .portal-section { margin-top: 44px; }
  .portal-section-heading { align-items: flex-start; }
  .portal-section-heading h2 { font-size: 2rem; }
  .character-account-card { min-height: 520px; grid-template-columns: 1fr; grid-template-rows: 250px 1fr; }
  .character-account-art::after { background: linear-gradient(transparent 60%, #090d1b); }
  .character-account-art img { width: 120%; height: 118%; }
  .character-account-copy { padding: 4px 24px 26px; }
  .portal-page-title h1 { font-size: 3.2rem; }
  .portal-field-row { grid-template-columns: 1fr; gap: 0; }
  .topup-form { padding: 28px 22px; }
  .security-form { padding: 28px 22px; }
  .portal-admin-login { padding: 32px 24px; }
  .admin-request-card { padding: 22px 18px; }
  .admin-metric-grid { grid-template-columns: 1fr; }
  .admin-metric-card { min-height: 120px; }
  .admin-request-summary { flex-direction: column; }
  .admin-request-details { grid-template-columns: 1fr; }
  .admin-review-form { grid-template-columns: 1fr; }
  .admin-review-actions { grid-column: auto; display: grid; grid-template-columns: 1fr 1fr; }
  .admin-review-complete { flex-direction: column; }
  .player-package-grid,
  .player-package-grid-form { grid-template-columns: 1fr; }
  .cabal-catalog-panel { padding: 22px 18px; }
  .package-form-grid,
  .package-item-form,
  .vote-admin-form-grid { grid-template-columns: 1fr; }
  .admin-package-card { padding: 22px 18px; }
  .admin-package-heading { flex-direction: column; }
  .vote-site-card { grid-template-columns: 72px 1fr; gap: 16px; padding: 22px 18px; }
  .vote-site-logo { width: 72px; height: 72px; }
  .admin-vote-card { padding: 22px 18px; }
  .admin-vote-brand { align-items: flex-start; }
  .admin-vote-brand > img,
  .admin-vote-brand > span { flex-basis: 58px; width: 58px; height: 58px; }
  .email-review-card { padding: 32px 22px; }
  .email-review-details { grid-template-columns: 1fr; }
}
