:root {
  color-scheme: dark;
  --bg: #070b10;
  --panel: #101821;
  --panel-strong: #14202c;
  --line: rgba(255, 255, 255, 0.1);
  --text: #edf4fb;
  --muted: #92a4b6;
  --soft: #c9d5df;
  --accent: #1fd09a;
  --accent-2: #4aa3ff;
  --gold: #f7c86a;
  --danger: #ff6b6b;
  --warning: #f5bd4f;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
  --glass: rgba(7, 11, 15, 0.78);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body[data-brand="zen"] {
  --panel: #171327;
  --panel-strong: #211a35;
  --line: rgba(163, 131, 255, 0.18);
  --text: #f4f0ff;
  --muted: #b6abda;
  --soft: #ddd5f4;
  --accent: #8f7dff;
  --accent-2: #ff71bc;
  --gold: #ffb45c;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 113, 188, 0.11), transparent 34%),
    radial-gradient(circle at 14% 20%, rgba(143, 125, 255, 0.16), transparent 32%),
    linear-gradient(116deg, transparent 0 40%, rgba(98, 63, 156, 0.12) 46%, transparent 58%),
    linear-gradient(180deg, #05030b 0%, #0a0615 54%, #040208 100%);
}

body[data-visual-theme="ember"] {
  --accent: #ff9a52;
  --accent-2: #ff5e62;
  --gold: #ffd27a;
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 116, 68, 0.18), transparent 32%),
    radial-gradient(circle at 16% 20%, rgba(255, 196, 112, 0.12), transparent 30%),
    linear-gradient(118deg, transparent 0 44%, rgba(255, 94, 98, 0.14) 48%, transparent 60%),
    linear-gradient(180deg, #060201 0%, #130505 54%, #050101 100%);
}

body[data-visual-theme="gale"] {
  --accent: #82eaff;
  --accent-2: #5aa8ff;
  --gold: #d8f6ff;
  background:
    radial-gradient(circle at 50% -12%, rgba(130, 234, 255, 0.16), transparent 34%),
    radial-gradient(circle at 12% 18%, rgba(90, 168, 255, 0.12), transparent 28%),
    linear-gradient(110deg, transparent 0 40%, rgba(130, 234, 255, 0.12) 46%, transparent 60%),
    linear-gradient(180deg, #01060b 0%, #071120 54%, #02060b 100%);
}

body[data-visual-theme="aurora"] {
  --accent: #67efcf;
  --accent-2: #9d7bff;
  --gold: #f7d58d;
  background:
    radial-gradient(circle at 50% -12%, rgba(103, 239, 207, 0.16), transparent 34%),
    radial-gradient(circle at 16% 24%, rgba(157, 123, 255, 0.16), transparent 30%),
    linear-gradient(118deg, transparent 0 42%, rgba(157, 123, 255, 0.12) 48%, transparent 58%),
    linear-gradient(180deg, #03020a 0%, #08101f 52%, #020105 100%);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% -10%, rgba(247, 200, 106, 0.12), transparent 34%),
    radial-gradient(circle at 12% 24%, rgba(31, 208, 154, 0.08), transparent 28%),
    linear-gradient(116deg, transparent 0 40%, rgba(19, 89, 92, 0.12) 46%, transparent 58%),
    linear-gradient(70deg, transparent 0 48%, rgba(247, 200, 106, 0.08) 54%, transparent 66%),
    linear-gradient(180deg, #000 0%, #020409 54%, #000 100%);
  color: var(--text);
  overflow-x: hidden;
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
}

body.overlay-open {
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none !important;
}

.app-shell {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  padding: clamp(12px, 3vw, 28px);
}

.maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(247, 200, 106, 0.14), transparent 24%),
    radial-gradient(circle at top left, rgba(73, 163, 255, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(1, 4, 7, 0.94), rgba(0, 0, 0, 0.98));
  backdrop-filter: blur(18px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.maintenance-card {
  width: min(100%, 860px);
  max-height: calc(100svh - 36px);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(247, 200, 106, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(15, 22, 30, 0.96), rgba(2, 6, 10, 0.98)),
    rgba(0, 0, 0, 0.88);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 18px;
  min-width: 0;
  align-content: start;
  overflow-y: auto;
}

.maintenance-mark {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(247, 200, 106, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.maintenance-mark img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.maintenance-card h1,
.maintenance-lead,
.maintenance-grid strong,
.maintenance-note li,
.maintenance-contact strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.maintenance-lead {
  margin: 0;
  color: var(--soft);
  line-height: 1.7;
}

.maintenance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.maintenance-grid article,
.maintenance-note,
.maintenance-contact {
  border: 1px solid rgba(247, 200, 106, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.52);
  min-width: 0;
}

.maintenance-grid article {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.maintenance-grid span,
.maintenance-note span,
.maintenance-contact span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.maintenance-grid strong {
  color: #f7ead0;
  font-size: clamp(17px, 2.8vw, 22px);
  line-height: 1.35;
}

.maintenance-note {
  padding: 16px 18px;
  display: grid;
  gap: 10px;
}

.maintenance-note ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--soft);
  line-height: 1.6;
}

.maintenance-contact {
  padding: 16px 18px;
  display: grid;
  gap: 8px;
}

.maintenance-contact strong {
  color: #f9e7b8;
  font-size: 16px;
  line-height: 1.5;
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: -18vh -18vw;
  z-index: 0;
  pointer-events: none;
  background: url("./horus.png") center / min(920px, 125vw) auto no-repeat;
  opacity: 0.075;
  filter: blur(22px) saturate(1.2);
  transform: scale(1.18);
}

body[data-brand="zen"] .app-shell::before {
  background-image: url("./zen.png");
  opacity: 0.09;
  filter: blur(24px) saturate(1.08);
}

.app-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.54) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(247, 200, 106, 0.28) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(31, 208, 154, 0.22) 0 1px, transparent 1.8px);
  background-position:
    18px 42px,
    96px 130px,
    170px 76px;
  background-size:
    260px 220px,
    340px 290px,
    410px 330px;
  opacity: 0.36;
  animation: galaxyDrift 18s linear infinite;
}

body[data-visual-theme="ember"] .app-shell::after {
  opacity: 0.42;
  animation-duration: 14s;
}

body[data-visual-theme="gale"] .app-shell::after {
  opacity: 0.28;
  animation-duration: 24s;
}

body[data-visual-theme="aurora"] .app-shell::after {
  opacity: 0.4;
  animation-duration: 20s;
}

.theme-rail {
  position: fixed;
  right: clamp(10px, 2vw, 22px);
  top: 50%;
  z-index: 26;
  display: grid;
  gap: 10px;
  padding: 10px 8px;
  border: 1px solid rgba(247, 200, 106, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(15, 21, 28, 0.86), rgba(2, 5, 9, 0.92)),
    rgba(0, 0, 0, 0.75);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
}

.theme-dot {
  width: 42px;
  height: 42px;
  padding: 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.theme-dot:hover,
.theme-dot:focus-visible {
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.2);
}

.theme-dot.active {
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.theme-dot-swatch {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: block;
}

.theme-dot[data-visual-theme="horus"] .theme-dot-swatch {
  background: linear-gradient(135deg, #f7c86a, #1fd09a 72%);
}

.theme-dot[data-visual-theme="ember"] .theme-dot-swatch {
  background: linear-gradient(135deg, #ffd27a, #ff884a 54%, #ff5e62);
}

.theme-dot[data-visual-theme="gale"] .theme-dot-swatch {
  background: linear-gradient(135deg, #d8f6ff, #82eaff 48%, #5aa8ff);
}

.theme-dot[data-visual-theme="aurora"] .theme-dot-swatch {
  background: linear-gradient(135deg, #67efcf, #9d7bff 58%, #f7d58d);
}

.hidden {
  display: none !important;
}

.login-view {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: calc(100vh - 56px);
  max-width: 720px;
  margin: 0 auto;
  padding-inline: 0;
  isolation: isolate;
  overflow: hidden;
}

.login-view::before {
  content: "";
  position: absolute;
  inset: -12vh -24vw;
  z-index: 0;
  background: url("./horus.png") center / min(760px, 120vw) auto no-repeat;
  opacity: 0.13;
  filter: blur(18px) saturate(1.18);
  transform: scale(1.22);
}

body[data-brand="zen"] .login-view::before {
  background-image: url("./zen.png");
  opacity: 0.16;
}

.login-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 46%, rgba(255, 255, 255, 0.07) 47%, transparent 49%),
    linear-gradient(70deg, transparent 0 58%, rgba(31, 208, 154, 0.07) 59%, transparent 61%);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent);
}

.login-view:not(.hidden),
.dashboard-view:not(.hidden) {
  animation: pageEnter 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.page-exit {
  animation: pageExit 300ms ease both !important;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    84px 42px 0 rgba(255, 255, 255, 0.55),
    172px 118px 0 rgba(255, 255, 255, 0.36),
    316px 76px 0 rgba(255, 255, 255, 0.44),
    452px 156px 0 rgba(255, 255, 255, 0.3),
    588px 90px 0 rgba(255, 255, 255, 0.42),
    690px 220px 0 rgba(255, 255, 255, 0.28),
    120px 330px 0 rgba(255, 255, 255, 0.34),
    520px 390px 0 rgba(255, 255, 255, 0.28),
    720px 520px 0 rgba(255, 255, 255, 0.32);
}

.star-one {
  left: 6%;
  top: 8%;
}

.star-two {
  left: 18%;
  top: 46%;
  opacity: 0.72;
}

.star-three {
  left: 4%;
  top: 72%;
  opacity: 0.5;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(31, 208, 154, 0.35);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.login-card h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 5.5vw, 42px);
  line-height: 1.04;
  letter-spacing: 0;
  text-align: center;
  font-weight: 900;
  background: linear-gradient(180deg, #ffffff 0%, #d9e6ef 46%, #7f94a7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
}

.hero-copy {
  max-width: 420px;
  margin: 0 auto 18px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.status-strip div,
.stats-grid article,
.login-card,
.receipt-card,
.resilience-panel,
.setup-card {
  border: 1px solid var(--line);
  background: rgba(10, 16, 23, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.login-card {
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: min(100%, 440px);
  max-width: calc(100svw - 32px);
  margin-inline: auto;
  padding: clamp(18px, 4vw, 30px);
  border-color: rgba(247, 200, 106, 0.18);
  background:
    linear-gradient(180deg, rgba(15, 21, 29, 0.78), rgba(1, 4, 8, 0.9)),
    rgba(0, 0, 0, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(31, 208, 154, 0.08),
    0 26px 90px rgba(0, 0, 0, 0.72),
    0 0 70px rgba(247, 200, 106, 0.1),
    0 0 90px rgba(31, 208, 154, 0.055);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(247, 200, 106, 0.14), transparent 34%),
    linear-gradient(90deg, transparent, rgba(31, 208, 154, 0.16), transparent);
  opacity: 0.68;
  pointer-events: none;
}

.login-card > * {
  position: relative;
  z-index: 1;
}

.brand-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px;
  border: 1px solid rgba(247, 200, 106, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.brand-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.brand-button.active {
  color: #080b11;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.login-mark {
  width: 102px;
  height: 64px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 200, 106, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  box-shadow:
    inset 0 0 22px rgba(31, 208, 154, 0.06),
    0 0 34px rgba(247, 200, 106, 0.12);
}

.login-mark img {
  width: 86px;
  height: 54px;
  object-fit: contain;
}

.logo-frame {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 200, 106, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.28);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(247, 200, 106, 0.12);
}

.logo-frame img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.logo-frame img[src$="horus.png"] {
  color: transparent;
}

.logo-frame.compact {
  width: 82px;
  height: 82px;
  margin-bottom: 16px;
}

.logo-frame.compact img {
  width: 64px;
  height: 64px;
}

.form-head h2 {
  margin-bottom: 6px;
  font-size: 24px;
  text-align: center;
  font-weight: 850;
  color: #eef6ff;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.form-head p:last-child {
  color: var(--muted);
  line-height: 1.4;
  text-align: center;
  margin-bottom: 12px;
}

label {
  display: block;
  margin: 12px 0 7px;
  color: #f1ddb0;
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(247, 200, 106, 0.12);
}

select,
input,
textarea {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(247, 200, 106, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(10, 15, 22, 0.96);
  color: var(--text);
  padding: 0 14px;
  outline: none;
  caret-color: var(--gold);
  font-weight: 650;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 12px 28px rgba(0, 0, 0, 0.2);
}

textarea {
  min-height: 120px;
  height: auto;
  padding: 14px;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--soft) 50%),
    linear-gradient(135deg, var(--soft) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 22px,
    calc(100% - 12px) 22px;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

option {
  background: #02060b;
  color: var(--text);
}

select:focus,
input:focus {
  border-color: rgba(247, 200, 106, 0.62);
  box-shadow:
    0 0 0 4px rgba(247, 200, 106, 0.11),
    0 0 34px rgba(31, 208, 154, 0.08);
}

input::placeholder {
  color: rgba(214, 225, 236, 0.58);
}

.password-row {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 8px;
}

.icon-button,
.refresh-button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #f5e4b5;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.refresh-button {
  width: auto;
  min-width: 164px;
  padding: 0 16px;
  display: inline-flex;
  gap: 10px;
  font-weight: 800;
}

.refresh-button.is-loading svg {
  animation: spin 900ms linear infinite;
}

svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.primary-button,
.segment-button,
.ghost-button {
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.login-reset {
  min-height: 42px;
  margin-top: 10px;
}

.primary-button {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #060b08;
  background: linear-gradient(135deg, #c7912f 0%, var(--gold) 38%, #55e0ae 100%);
  box-shadow:
    0 16px 34px rgba(31, 208, 154, 0.18),
    0 0 34px rgba(247, 200, 106, 0.16);
}

.primary-button::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0 28%, rgba(255, 255, 255, 0.44) 44%, transparent 62%);
  transform: translateX(-115%);
  transition: transform 520ms ease;
}

.primary-button:hover::after {
  transform: translateX(115%);
}

.primary-button:hover,
.segment-button:hover,
.icon-button:hover,
.refresh-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  border-color: rgba(247, 200, 106, 0.38);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.36),
    0 0 28px rgba(247, 200, 106, 0.12);
}

.primary-button:active,
.segment-button:active,
.icon-button:active,
.refresh-button:active,
.ghost-button:active {
  transform: translateY(1px) scale(0.985);
}

.ghost-button {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  color: #f5e4b5;
  background: rgba(247, 200, 106, 0.07);
  border: 1px solid rgba(247, 200, 106, 0.18);
}

.login-error {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--danger);
  font-weight: 700;
}

.setup-overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.9)),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.setup-overlay:not(.hidden) {
  animation: pageEnter 360ms ease both;
}

.setup-card {
  width: min(100%, 430px);
  padding: clamp(22px, 5vw, 34px);
  background:
    linear-gradient(180deg, rgba(16, 23, 31, 0.96), rgba(2, 5, 9, 0.96)),
    rgba(0, 0, 0, 0.88);
  border-color: rgba(247, 200, 106, 0.24);
}

.setup-card h2 {
  margin-bottom: 10px;
  font-size: 30px;
  text-align: center;
}

.setup-card .eyebrow,
.login-card .eyebrow {
  text-align: center;
}

.setup-copy {
  margin-bottom: 22px;
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
}

.reset-step {
  display: grid;
  gap: 10px;
}

.reset-step + .reset-step {
  margin-top: 14px;
}

.secondary-action {
  margin-top: 6px;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #f1ddb0;
  font-size: 13px;
  font-weight: 850;
}

.code-head strong {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(31, 208, 154, 0.22);
}

.code-input {
  height: 58px;
  text-align: center;
  color: #f7c86a;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 8px;
  text-shadow: 0 0 24px rgba(247, 200, 106, 0.18);
}

.verify-button {
  margin-top: 0;
}

.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(116deg, transparent 0 40%, rgba(247, 200, 106, 0.08) 48%, transparent 60%),
    linear-gradient(180deg, #000 0%, #020407 100%);
  overflow: hidden;
}

.welcome-overlay::before {
  content: "";
  position: absolute;
  inset: -18vh -18vw;
  background: url("./horus.png") center / min(900px, 130vw) auto no-repeat;
  opacity: 0.16;
  filter: blur(18px) saturate(1.2);
  animation: logoBreath 1800ms ease-in-out infinite alternate;
}

body[data-brand="zen"] .welcome-overlay::before {
  background-image: url("./zen.png");
  opacity: 0.18;
}

.welcome-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.56) 0 1px, transparent 1.8px);
  background-size: 220px 190px;
  opacity: 0.26;
}

.welcome-overlay.welcome-leave {
  animation: welcomeLeave 480ms ease both;
}

.welcome-card {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  animation: welcomeCardIn 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.welcome-logo {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 200, 106, 0.34);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.38);
  box-shadow:
    0 0 50px rgba(247, 200, 106, 0.18),
    inset 0 0 24px rgba(31, 208, 154, 0.06);
}

.welcome-logo img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  animation: logoRise 900ms ease both;
}

.welcome-card h2 {
  margin: 0;
  font-size: clamp(34px, 8vw, 64px);
  line-height: 1;
  font-weight: 900;
  background: linear-gradient(180deg, #fff, #f6dfaa 42%, #77ddb5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.welcome-card p:last-of-type {
  margin: 0;
  color: var(--soft);
  font-weight: 650;
}

.welcome-loader {
  width: min(100%, 280px);
  height: 3px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.welcome-loader::before {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  animation: loaderRun 1050ms ease-in-out infinite;
}

.dashboard-view {
  position: relative;
  z-index: 1;
  width: min(100%, 940px);
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  overflow-x: clip;
}

.dashboard-view::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.3), #000),
    url("./horus.png") center 42% / min(900px, 110vw) auto no-repeat;
  opacity: 0.06;
  filter: blur(14px);
}

body[data-brand="zen"] .dashboard-view::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), #000),
    url("./zen.png") center 42% / min(860px, 108vw) auto no-repeat;
  opacity: 0.08;
}

.topbar,
.account-hero,
.tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  min-height: 96px;
}

.welcome-panel {
  position: relative;
  min-width: 0;
  width: min(100%, 720px);
  min-height: 84px;
  padding: 16px 20px 16px 22px;
  overflow: hidden;
  border: 1px solid rgba(247, 200, 106, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(247, 200, 106, 0.11), rgba(31, 208, 154, 0.07) 46%, rgba(0, 0, 0, 0.7)),
    rgba(5, 8, 12, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 54px rgba(0, 0, 0, 0.36),
    0 0 44px rgba(247, 200, 106, 0.08);
}

.welcome-panel::before {
  content: "";
  position: absolute;
  inset: -40px auto -40px -90px;
  width: 260px;
  background: url("./horus.png") center / contain no-repeat;
  opacity: 0.18;
  filter: blur(2px) saturate(1.12);
}

body[data-brand="zen"] .welcome-panel::before,
body[data-brand="zen"] .account-hero::before {
  background-image: url("./zen.png");
}

.welcome-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent 0 34%, rgba(255, 255, 255, 0.14) 44%, transparent 56%),
    radial-gradient(circle at 88% 18%, rgba(247, 200, 106, 0.2), transparent 30%);
  opacity: 0.52;
  animation: welcomePanelSheen 7s ease-in-out infinite;
}

.welcome-panel > * {
  position: relative;
  z-index: 1;
}

.welcome-panel .eyebrow {
  margin-bottom: 6px;
  color: #f5d78d;
  text-shadow:
    0 0 16px rgba(247, 200, 106, 0.28),
    0 0 28px rgba(31, 208, 154, 0.12);
}

.welcome-panel-glow {
  position: absolute;
  right: 16px;
  top: 15px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow:
    0 0 0 7px rgba(31, 208, 154, 0.11),
    0 0 30px rgba(31, 208, 154, 0.55);
}

.ops-panel {
  position: relative;
  width: min(100%, 520px);
  min-width: 360px;
  min-height: 64px;
  padding: 8px 12px;
  border: 1px solid rgba(247, 200, 106, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(247, 200, 106, 0.09), rgba(74, 163, 255, 0.08) 52%, rgba(0, 0, 0, 0.68)),
    rgba(5, 8, 12, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 54px rgba(0, 0, 0, 0.3),
    0 0 36px rgba(74, 163, 255, 0.08);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ops-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(102deg, transparent 0 34%, rgba(255, 255, 255, 0.12) 44%, transparent 56%),
    radial-gradient(circle at 84% 18%, rgba(247, 200, 106, 0.18), transparent 28%);
  opacity: 0.42;
}

.ops-panel-glow {
  display: none;
}

body[data-brand="zen"] .ops-panel {
  background:
    linear-gradient(140deg, rgba(255, 180, 92, 0.12), rgba(143, 125, 255, 0.12) 52%, rgba(0, 0, 0, 0.68)),
    rgba(8, 5, 16, 0.86);
}

.ops-panel > * {
  position: relative;
  z-index: 1;
}

.ops-panel-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(228px, 256px);
  align-items: center;
  gap: 12px;
}

.ops-panel-actions {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.live-clock {
  min-width: 0;
  display: grid;
  gap: 1px;
  text-align: left;
  align-content: center;
}

.live-clock .eyebrow {
  margin: 0;
  color: #f3d792;
  font-size: 10px;
}

.live-clock strong {
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  background: linear-gradient(180deg, #fffbe8 0%, #f0c968 44%, #c6fff2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 28px rgba(247, 200, 106, 0.12),
    0 18px 42px rgba(0, 0, 0, 0.34);
}

.live-clock-date {
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}

.ops-panel-divider {
  display: none;
}

.ops-diamond-button {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 264px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(247, 200, 106, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(247, 200, 106, 0.1), rgba(74, 163, 255, 0.08) 56%, rgba(0, 0, 0, 0.56)),
    rgba(10, 16, 23, 0.88);
  color: #f7f2df;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.ops-diamond-button.hidden {
  display: none !important;
}

.ops-diamond-button.locked {
  opacity: 0.92;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(149, 163, 180, 0.04) 56%, rgba(0, 0, 0, 0.54)),
    rgba(10, 16, 23, 0.82);
}

.ops-activity-button {
  max-width: 172px;
}

.ops-diamond-icon,
.ops-diamond-lock {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.ops-diamond-icon svg,
.ops-diamond-lock svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ops-diamond-logo {
  width: 26px;
  height: 26px;
}

.ops-diamond-logo img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(247, 200, 106, 0.18));
}

.ops-diamond-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: left;
}

.ops-diamond-copy strong,
.ops-diamond-copy small {
  display: block;
  overflow-wrap: anywhere;
}

.ops-diamond-copy strong {
  font-size: 13px;
  line-height: 1.05;
}

.ops-diamond-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.ops-logout-button {
  margin-left: auto;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  color: #f7f2df;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.16);
}

.ops-logout-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.welcome-subtitle {
  margin: 8px 0 0;
  color: #d4c08e;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar h2,
.account-hero h1 {
  margin-bottom: 0;
}

.topbar h2 {
  font-family: "Trebuchet MS", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.02;
  font-weight: 900;
  background: linear-gradient(180deg, #fff8df 0%, #f0c968 36%, #e8f7ef 64%, #8fa1ad 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 18px 42px rgba(0, 0, 0, 0.48),
    0 0 34px rgba(247, 200, 106, 0.1);
}

.segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(247, 200, 106, 0.12);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.segment-button {
  min-height: 48px;
  color: #a6b1bc;
  background: transparent;
}

.segment-button.active {
  color: #060b08;
  background: linear-gradient(135deg, #c7912f, var(--gold) 42%, var(--accent));
  box-shadow: 0 10px 28px rgba(247, 200, 106, 0.13);
}

.account-hero {
  position: relative;
  overflow: hidden;
  min-height: 138px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(247, 200, 106, 0.18);
  background:
    radial-gradient(circle at 58% 45%, rgba(247, 200, 106, 0.16), transparent 34%),
    linear-gradient(115deg, rgba(31, 208, 154, 0.16), rgba(247, 200, 106, 0.1) 42%, rgba(5, 11, 18, 0.9)),
    rgba(0, 0, 0, 0.78);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.account-hero::before {
  content: "";
  position: absolute;
  inset: -60px -90px;
  background: url("./horus.png") center / min(820px, 125vw) auto no-repeat;
  opacity: 0.18;
  filter: blur(3px) saturate(1.18);
  transform: rotate(-1deg);
}

.account-hero > * {
  position: relative;
  z-index: 1;
}

.account-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
  background: linear-gradient(180deg, #fff, #dce8ef 52%, #94a1a8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.iban {
  margin: 16px 0 0;
  color: #d9c48d;
  font-weight: 700;
  word-break: break-word;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 148px;
  padding: 12px 14px;
  border: 1px solid rgba(247, 200, 106, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.36);
  font-weight: 800;
  color: var(--soft);
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(31, 208, 154, 0.12);
}

.sync-pill.warning .pulse {
  background: var(--warning);
  box-shadow: 0 0 0 8px rgba(245, 189, 79, 0.14);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stats-grid article {
  padding: 16px;
  display: grid;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.72);
  border-color: rgba(247, 200, 106, 0.12);
}

.stats-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stats-grid strong {
  font-size: clamp(22px, 4vw, 34px);
}

.search-box {
  margin: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
  color: var(--muted);
}

.search-box input {
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.resilience-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
}

.resilience-panel h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}

.resilience-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.tool-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.compact-button,
.compact-primary {
  width: auto;
  min-width: 0;
  margin-top: 0;
  min-height: 42px;
  padding-inline: 14px;
}

.compact-primary {
  min-width: 110px;
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(247, 200, 106, 0.16);
  background: rgba(247, 200, 106, 0.08);
  color: #f2dfb1;
  font-size: 12px;
  font-weight: 700;
}

.selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 208, 154, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 208, 154, 0.08), rgba(74, 163, 255, 0.08) 52%, rgba(0, 0, 0, 0.55)),
    rgba(0, 0, 0, 0.76);
}

.selection-bar-copy {
  display: grid;
  gap: 4px;
}

.selection-bar-copy strong {
  font-size: 18px;
}

.selection-bar-copy span:last-child {
  color: #d7e7f5;
  font-weight: 700;
}

.selection-bar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.diamond-overlay,
.diamond-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(247, 200, 106, 0.14), transparent 28%),
    radial-gradient(circle at 18% 20%, rgba(255, 215, 131, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(6, 8, 12, 0.92), rgba(3, 4, 8, 0.98)),
    #05070b;
  backdrop-filter: blur(16px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.diamond-card,
.diamond-confirm-card {
  width: min(100%, 1160px);
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(247, 200, 106, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(247, 200, 106, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(17, 21, 28, 0.99), rgba(7, 9, 14, 0.99)),
    #0a0d12;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.48),
    0 0 60px rgba(247, 200, 106, 0.08);
}

.diamond-overlay {
  place-items: stretch;
  padding: 0;
}

.diamond-card {
  width: 100%;
  min-height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  border-inline: 0;
  display: grid;
  gap: 18px;
  overflow: auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(247, 200, 106, 0.07), transparent 24%),
    linear-gradient(180deg, rgba(15, 18, 24, 0.99), rgba(6, 8, 12, 0.99)),
    #090b10;
}

.diamond-confirm-card {
  width: min(100%, 420px);
  min-height: 420px;
  display: grid;
  gap: 14px;
  justify-items: stretch;
  align-content: center;
}

.diamond-shell {
  width: min(100%, 780px);
  margin: 0 auto;
  display: grid;
  align-content: start;
  gap: 20px;
}

.diamond-page-topline {
  width: min(100%, 780px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.diamond-back-button,
.modal-close-button {
  background:
    linear-gradient(180deg, rgba(42, 35, 18, 0.92), rgba(19, 16, 10, 0.96)),
    rgba(15, 12, 8, 0.92);
  border-color: rgba(247, 200, 106, 0.2);
  color: #f7d791;
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 214, 0.08),
    0 18px 34px rgba(0, 0, 0, 0.26);
}

.diamond-back-button {
  width: auto;
  min-width: 132px;
  min-height: 42px;
  margin-top: 0;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-width: 1px;
  border-style: solid;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(247, 200, 106, 0.12);
}

.diamond-back-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.diamond-command-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(247, 200, 106, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at center right, rgba(247, 200, 106, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(24, 28, 36, 0.96), rgba(11, 13, 18, 0.98)),
    rgba(17, 19, 24, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 214, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.26);
}

.diamond-command-card--simple {
  align-items: center;
}

.diamond-operator-chip {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.diamond-operator-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(58, 46, 20, 0.94), rgba(27, 21, 11, 0.96)),
    rgba(18, 14, 9, 0.92);
  border: 1px solid rgba(247, 200, 106, 0.2);
  color: #f7d791;
  box-shadow: inset 0 1px 0 rgba(255, 245, 214, 0.06);
}

.diamond-operator-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.diamond-operator-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.diamond-operator-copy--solo {
  gap: 0;
}

.diamond-operator-copy strong {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1;
  color: #f8f2df;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.diamond-operator-copy small {
  color: rgba(244, 223, 167, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.diamond-brand-seal {
  width: 118px;
  height: 88px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 200, 106, 0.18);
  background:
    radial-gradient(circle at center, rgba(247, 200, 106, 0.12), transparent 58%),
    linear-gradient(180deg, rgba(41, 34, 18, 0.96), rgba(16, 13, 8, 0.96)),
    rgba(12, 10, 7, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 214, 0.08),
    0 22px 42px rgba(0, 0, 0, 0.26);
}

.diamond-brand-seal img {
  width: 88px;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(247, 200, 106, 0.2))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.diamond-page-head {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.diamond-page-head h2,
.diamond-confirm-card h2 {
  margin: 0;
}

.diamond-page-head h2 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.04;
  color: #fff8ea;
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.diamond-subtitle,
.diamond-confirm-copy {
  margin: 0;
  color: rgba(239, 228, 197, 0.74);
  line-height: 1.6;
  max-width: 66ch;
  text-wrap: pretty;
}

.diamond-status-grid,
.diamond-confirm-grid,
.diamond-meta-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.diamond-status-grid article,
.diamond-confirm-grid article,
.diamond-meta-card,
.diamond-entry-card,
.diamond-history-card,
.diamond-switch-row {
  min-width: 0;
  border: 1px solid rgba(247, 200, 106, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 245, 214, 0.025), rgba(255, 245, 214, 0.01)),
    rgba(18, 21, 28, 0.9);
}

.diamond-status-grid article,
.diamond-confirm-grid article,
.diamond-meta-card {
  padding: 16px 18px;
  display: grid;
  gap: 8px;
}

.diamond-status-grid span,
.diamond-confirm-grid span,
.diamond-meta-card span,
.diamond-history-copy {
  color: rgba(239, 228, 197, 0.52);
  font-size: 12px;
  font-weight: 700;
}

.diamond-status-grid strong,
.diamond-confirm-grid strong,
.diamond-meta-card strong {
  font-size: clamp(16px, 2.6vw, 22px);
  line-height: 1.25;
  overflow-wrap: anywhere;
  color: #fff8ea;
}

.diamond-meta-card strong {
  font-size: clamp(15px, 2.2vw, 18px);
}

.diamond-meta-card:last-child strong {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(13px, 1.9vw, 15px);
}

.diamond-balance-strip,
.diamond-maintenance-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(247, 200, 106, 0.16);
  background:
    linear-gradient(135deg, rgba(88, 64, 21, 0.14), rgba(31, 23, 12, 0.12)),
    rgba(18, 17, 13, 0.82);
}

.diamond-maintenance-banner {
  align-items: flex-start;
  border-color: rgba(247, 200, 106, 0.18);
  background:
    linear-gradient(135deg, rgba(82, 69, 33, 0.18), rgba(30, 25, 17, 0.12)),
    rgba(24, 20, 14, 0.84);
}

.diamond-balance-strip strong {
  color: #f6d189;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 800;
  line-height: 1.35;
}

.diamond-maintenance-banner p:last-child {
  margin: 8px 0 0;
  color: rgba(244, 233, 204, 0.76);
  line-height: 1.58;
}

.diamond-balance-dot {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  color: #f6d189;
  border-radius: 12px;
  border: 1px solid rgba(247, 200, 106, 0.16);
  background:
    linear-gradient(180deg, rgba(58, 46, 20, 0.94), rgba(27, 21, 11, 0.96)),
    rgba(18, 14, 9, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 214, 0.06),
    0 0 0 8px rgba(247, 200, 106, 0.05);
}

.diamond-balance-dot svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.diamond-entry-card {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.diamond-query-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 156px;
  gap: 10px;
  align-items: center;
}

.diamond-query-row input,
.diamond-amount-row input {
  width: 100%;
  height: 72px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(94, 69, 24, 0.22), rgba(40, 28, 12, 0.16)),
    rgba(35, 26, 13, 0.96);
  border: 1px solid rgba(247, 200, 106, 0.18);
  color: #fdf4df;
  font-size: clamp(20px, 3vw, 28px);
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 214, 0.07),
    inset 0 -14px 26px rgba(0, 0, 0, 0.14);
}

.diamond-query-row input::placeholder,
.diamond-amount-row input::placeholder {
  color: rgba(239, 228, 197, 0.48);
}

.diamond-query-button {
  width: 156px;
  min-width: 156px;
  height: 72px;
  min-height: 72px;
  margin-top: 0;
  padding: 0 18px;
  align-self: center;
  justify-self: stretch;
  border-radius: 20px;
  font-size: clamp(18px, 2.3vw, 22px);
  line-height: 1;
  font-weight: 900;
  background: linear-gradient(135deg, #d8a743, #f0d38d 52%, #d3a13b);
  color: #18130d;
  border-color: rgba(247, 200, 106, 0.28);
  box-shadow:
    0 16px 32px rgba(128, 93, 17, 0.18),
    inset 0 1px 0 rgba(255, 245, 214, 0.3);
}

.diamond-amount-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.diamond-amount-row label {
  min-width: 150px;
  margin: 0;
  color: rgba(244, 233, 204, 0.8);
  font-size: 14px;
  font-weight: 700;
}

.diamond-preset-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(247, 200, 106, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 245, 214, 0.024), rgba(255, 245, 214, 0.01)),
    rgba(16, 14, 10, 0.92);
}

.diamond-preset-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.diamond-preset-head span {
  color: rgba(239, 228, 197, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.diamond-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.diamond-preset-button {
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(247, 200, 106, 0.16);
  background:
    linear-gradient(180deg, rgba(63, 48, 19, 0.94), rgba(27, 20, 10, 0.98)),
    rgba(18, 14, 9, 0.94);
  color: #f6d189;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.diamond-preset-button:hover,
.diamond-preset-button:focus-visible {
  border-color: rgba(247, 200, 106, 0.34);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
}

.diamond-preset-button:active {
  transform: translateY(1px);
}

.diamond-switch-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
}

.diamond-switch-row-single {
  grid-template-columns: 1fr;
}

.diamond-switch-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 0 20px;
  border-radius: 22px;
  border: 1px solid rgba(247, 200, 106, 0.08);
  background:
    linear-gradient(180deg, rgba(27, 22, 15, 0.96), rgba(13, 11, 8, 0.96)),
    rgba(13, 11, 8, 0.92);
  color: rgba(246, 228, 185, 0.84);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.01em;
  text-shadow: 0 0 18px rgba(247, 200, 106, 0.08);
}

.diamond-switch-button.active {
  background:
    linear-gradient(135deg, rgba(247, 200, 106, 0.24), rgba(247, 200, 106, 0.1)),
    linear-gradient(180deg, rgba(27, 22, 15, 0.96), rgba(13, 11, 8, 0.96));
  border-color: rgba(247, 200, 106, 0.24);
  color: #f8d58f;
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 214, 0.06),
    0 16px 30px rgba(128, 93, 17, 0.12);
}

.diamond-switch-button.passive {
  opacity: 0.76;
}

.diamond-history-card {
  padding: 18px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  min-height: 0;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 245, 214, 0.04), rgba(255, 245, 214, 0.01)),
    rgba(13, 12, 10, 0.78);
  backdrop-filter: blur(18px);
}

.diamond-table-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.3fr) minmax(126px, 0.82fr) 104px 82px;
  gap: 12px;
  padding: 0 14px 16px;
  border-bottom: 1px solid rgba(247, 200, 106, 0.08);
  color: rgba(239, 228, 197, 0.56);
  font-size: 12px;
  font-weight: 800;
}

.diamond-order-list {
  min-height: 0;
  display: grid;
  align-content: start;
  overflow-y: auto;
  padding-right: 4px;
}

.diamond-order-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.3fr) minmax(126px, 0.82fr) 104px 82px;
  gap: 12px;
  align-items: center;
  padding: 18px 14px;
  border-bottom: 1px solid rgba(247, 200, 106, 0.08);
}

.diamond-order-index {
  min-width: 0;
  color: rgba(244, 233, 204, 0.84);
  font-size: 16px;
  font-weight: 800;
}

.diamond-order-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.diamond-order-id strong {
  font-size: clamp(18px, 2.2vw, 24px);
  color: #fff8ea;
  line-height: 1.08;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.diamond-order-id span,
.diamond-order-date span {
  color: rgba(239, 228, 197, 0.64);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.diamond-order-id span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.diamond-order-amount-block {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
}

.diamond-order-amount {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff8ea;
  font-weight: 800;
  min-height: 22px;
}

.diamond-order-amount strong,
.diamond-order-date strong {
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1;
}

.diamond-order-gem {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.diamond-order-gem svg {
  width: 18px;
  height: 18px;
  fill: #f6d189;
}

.diamond-order-date {
  justify-items: center;
}

.diamond-repeat-button {
  width: 52px;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
  margin-top: 0;
  padding: 0;
  border: 1px solid rgba(247, 200, 106, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(58, 46, 20, 0.94), rgba(27, 21, 11, 0.96)),
    rgba(18, 14, 9, 0.92);
  color: #f6d189;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 245, 214, 0.05);
}

.diamond-repeat-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  animation: diamond-spin 2.8s linear infinite;
}

.diamond-order-state {
  justify-items: center;
}

.diamond-status-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.diamond-status-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.diamond-status-icon.is-success {
  background: rgba(28, 209, 144, 0.16);
  color: #22d387;
}

.diamond-status-icon.is-maintenance {
  background: rgba(247, 200, 106, 0.12);
  color: #f2b84f;
}

.diamond-pagination {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 10px;
  align-items: center;
  padding: 18px 0 0;
}

.diamond-pagination span {
  text-align: center;
  color: rgba(239, 228, 197, 0.74);
  font-size: 13px;
  font-weight: 700;
}

.diamond-empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(239, 228, 197, 0.74);
}

.diamond-message {
  min-height: 20px;
  margin: 0;
}

.diamond-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.diamond-secondary-button {
  min-height: 58px;
  border-color: rgba(247, 200, 106, 0.2);
  background:
    linear-gradient(180deg, rgba(40, 32, 17, 0.94), rgba(18, 14, 9, 0.96)),
    rgba(13, 10, 7, 0.94);
  color: #f6d189;
}

.diamond-confirm-brand {
  width: 120px;
  height: 82px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 1px solid rgba(247, 200, 106, 0.18);
  background:
    radial-gradient(circle at center, rgba(247, 200, 106, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(43, 35, 18, 0.96), rgba(17, 13, 8, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 214, 0.08),
    0 18px 38px rgba(0, 0, 0, 0.28);
}

.diamond-confirm-brand img {
  width: 84px;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(247, 200, 106, 0.22))
    drop-shadow(0 10px 20px rgba(0, 0, 0, 0.24));
}

@keyframes diamond-spin {
  to {
    transform: rotate(360deg);
  }
}

.notice-overlay,
.cashbox-overlay,
.filter-overlay,
.receipt-detail-overlay,
.activity-overlay {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.92)),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notice-card,
.cashbox-card,
.filter-card,
.receipt-detail-card,
.activity-card {
  width: min(100%, 540px);
  padding: clamp(22px, 5vw, 32px);
  border: 1px solid rgba(247, 200, 106, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 23, 31, 0.96), rgba(2, 5, 9, 0.96)),
    rgba(0, 0, 0, 0.88);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.72),
    0 0 60px rgba(247, 200, 106, 0.08);
}

.notice-card {
  width: min(100%, 1180px);
  min-height: calc(100dvh - 36px);
  max-height: calc(100dvh - 36px);
  display: grid;
  gap: 16px;
  align-content: start;
  overflow-y: auto;
}

.notice-card > * {
  min-width: 0;
}

.cashbox-card,
.filter-card,
.receipt-detail-card,
.activity-card {
  max-height: min(86dvh, 680px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
}

.activity-card {
  width: min(100%, 860px);
  max-height: min(88dvh, 760px);
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
}

.activity-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.activity-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(247, 200, 106, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 16%, rgba(247, 200, 106, 0.16), transparent 24%),
    linear-gradient(132deg, rgba(247, 200, 106, 0.08), rgba(74, 163, 255, 0.06) 48%, rgba(0, 0, 0, 0.7));
}

.activity-hero-logo {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 200, 106, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(5, 8, 12, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 40px rgba(0, 0, 0, 0.28);
}

.activity-hero-logo img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.activity-hero-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.activity-hero-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
}

.activity-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.activity-summary-grid article,
.activity-list-card {
  padding: 16px 18px;
  border: 1px solid rgba(247, 200, 106, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 23, 31, 0.92), rgba(4, 7, 12, 0.92)),
    rgba(0, 0, 0, 0.78);
}

.activity-summary-grid article {
  display: grid;
  gap: 6px;
}

.activity-summary-grid span,
.activity-user-meta span,
.activity-list-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.activity-summary-grid strong,
.activity-user-copy strong {
  font-size: 18px;
  line-height: 1.15;
}

.activity-summary-grid small,
.activity-user-copy small {
  color: var(--soft);
  font-size: 12px;
}

.activity-error {
  min-height: 20px;
  margin: 0;
}

.activity-list-card {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}

.activity-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.activity-user-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.activity-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(6, 10, 16, 0.82);
}

.activity-user-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.activity-user-copy strong,
.activity-user-copy small,
.activity-list-head strong {
  overflow-wrap: anywhere;
}

.activity-user-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.activity-state-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
}

.activity-state-pill.active {
  color: #d8fff2;
  border-color: rgba(31, 208, 154, 0.22);
  background: rgba(31, 208, 154, 0.1);
}

.activity-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
  box-shadow: 0 0 0 0 rgba(148, 163, 184, 0.32);
}

.activity-state-pill.active .activity-live-dot {
  background: var(--accent);
  animation: activity-pulse 1.7s ease-out infinite;
}

@keyframes activity-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 208, 154, 0.48);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(31, 208, 154, 0);
  }
}

.notice-card h2,
.cashbox-card h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 4.5vw, 32px);
  line-height: 1.1;
}

.notice-lead,
.cashbox-copy {
  margin: 0;
  color: var(--soft);
  line-height: 1.55;
}

.notice-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(247, 200, 106, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 18%, rgba(247, 200, 106, 0.16), transparent 26%),
    linear-gradient(120deg, rgba(247, 200, 106, 0.08), rgba(74, 163, 255, 0.08) 42%, rgba(0, 0, 0, 0.64));
}

.notice-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(102deg, transparent 0 36%, rgba(255, 255, 255, 0.12) 44%, transparent 56%);
  opacity: 0.48;
}

.notice-brand-mark {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.notice-logo-frame {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 200, 106, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(4, 8, 12, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 46px rgba(0, 0, 0, 0.3);
}

.notice-logo-frame img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.notice-brand-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
  align-content: start;
}

.notice-brand-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.06;
  text-wrap: pretty;
}

.notice-brand-copy h2,
.notice-lead,
.notice-list li,
.notice-check-list li,
.notice-footnote,
.notice-signature strong,
.notice-footer > * {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.notice-grid,
.cashbox-guide-grid,
.cashbox-modal-stats,
.cashbox-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.notice-grid,
.cashbox-guide-grid,
.cashbox-modal-stats {
  margin-top: 0;
}

.notice-grid article,
.cashbox-guide-grid article,
.cashbox-modal-stats article,
.cashbox-metrics article,
.cashbox-panel {
  border: 1px solid rgba(247, 200, 106, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.6);
}

.notice-grid article,
.cashbox-guide-grid article,
.cashbox-modal-stats article,
.cashbox-metrics article {
  padding: 14px;
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.notice-grid span,
.cashbox-guide-grid span,
.cashbox-modal-stats span,
.cashbox-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.notice-grid strong,
.cashbox-guide-grid strong,
.cashbox-modal-stats strong,
.cashbox-metrics strong {
  font-size: clamp(16px, 3vw, 22px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.notice-list {
  margin: 0;
  padding-left: 18px;
  color: var(--soft);
  line-height: 1.6;
  display: grid;
  gap: 10px;
}

.notice-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  max-width: 64ch;
  line-height: 1.55;
}

.notice-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.notice-detail-card {
  padding: 16px;
  border: 1px solid rgba(247, 200, 106, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.6);
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.notice-detail-title {
  color: #f6dfac;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notice-check-list {
  margin: 0;
  padding-left: 18px;
  color: var(--soft);
  line-height: 1.6;
  display: grid;
  gap: 10px;
}

.notice-signature {
  padding: 14px 16px;
  border: 1px solid rgba(247, 200, 106, 0.14);
  border-radius: 8px;
  background: rgba(247, 200, 106, 0.06);
  display: grid;
  gap: 6px;
  min-width: 0;
}

.notice-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  min-width: 0;
  margin-top: auto;
}

.notice-signature span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.notice-signature strong {
  font-size: 15px;
  line-height: 1.35;
  color: #f9e7b8;
  overflow-wrap: anywhere;
}

.filter-card {
  width: min(100%, 720px);
  align-content: start;
  overflow-y: auto;
}

.filter-card-head,
.receipt-detail-head,
.customer-history-head,
.receipt-detail-head-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-grid,
.receipt-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.filter-grid label,
.receipt-edit-grid label {
  display: grid;
  gap: 8px;
}

.filter-grid span,
.receipt-edit-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.filter-grid input,
.filter-grid select,
.receipt-edit-grid select,
.receipt-edit-grid textarea {
  width: 100%;
}

.filter-toggle-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.toggle-chip input {
  accent-color: var(--accent);
}

.filter-actions,
.receipt-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-actions .primary-button,
.filter-actions .ghost-button,
.receipt-detail-footer .primary-button,
.receipt-detail-footer .ghost-button {
  width: auto;
  min-width: 0;
  margin-top: 0;
}

.receipt-detail-footer .primary-button {
  min-width: 160px;
}

.receipt-detail-action-row,
.receipt-side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.receipt-detail-card {
  width: min(100%, 920px);
  max-height: min(90dvh, 840px);
  align-content: start;
  overflow-y: auto;
}

.receipt-detail-head {
  align-items: flex-start;
}

.receipt-detail-hero,
.customer-history-panel {
  border: 1px solid rgba(247, 200, 106, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.56);
}

.receipt-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px;
}

.receipt-detail-hero h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 30px);
  color: #fff4cf;
}

.receipt-detail-hero p {
  margin: 0 0 10px;
  color: var(--soft);
  line-height: 1.55;
}

.receipt-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 13px;
}

.receipt-detail-hero strong {
  font-size: clamp(24px, 3vw, 36px);
  align-self: center;
  color: #dffff5;
  text-shadow: 0 0 20px rgba(31, 208, 154, 0.15);
}

.receipt-detail-tags,
.receipt-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tag,
.mini-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(74, 163, 255, 0.16);
  background: rgba(74, 163, 255, 0.08);
  color: #cfe6ff;
  font-size: 11px;
  font-weight: 700;
}

.detail-tag.fresh,
.mini-tag.fresh {
  border-color: rgba(247, 200, 106, 0.3);
  background:
    linear-gradient(135deg, rgba(247, 200, 106, 0.24), rgba(31, 208, 154, 0.18)),
    rgba(0, 0, 0, 0.18);
  color: #fff6d8;
  font-weight: 800;
  box-shadow:
    0 0 0 1px rgba(247, 200, 106, 0.08),
    0 0 26px rgba(31, 208, 154, 0.14);
}

.detail-tag.cashbox,
.mini-tag.cashbox {
  border-color: rgba(247, 200, 106, 0.28);
  background: linear-gradient(135deg, rgba(247, 200, 106, 0.18), rgba(255, 232, 181, 0.08));
  color: #fff0c1;
  box-shadow: 0 0 24px rgba(247, 200, 106, 0.14);
}

.detail-tag.collected,
.mini-tag.collected {
  border-color: rgba(112, 180, 255, 0.26);
  background: rgba(112, 180, 255, 0.12);
  color: #dceeff;
}

.detail-tag.note,
.mini-tag.note {
  border-color: rgba(201, 160, 255, 0.24);
  background: rgba(201, 160, 255, 0.1);
  color: #ecd9ff;
}

.customer-history-panel {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.customer-history-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.customer-history-stats article {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 6px;
}

.customer-history-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.customer-history-stats strong {
  font-size: 18px;
}

.customer-history-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.history-item {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  display: grid;
  gap: 5px;
}

.history-item strong {
  color: #f6dfac;
  font-size: 16px;
}

.history-item span {
  color: var(--soft);
  line-height: 1.5;
}

.history-item small {
  color: var(--muted);
}

.receipt-note-field {
  grid-column: 1 / -1;
}

.receipt-note-field textarea {
  min-height: 120px;
  resize: vertical;
}

.receipt-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-action-button {
  width: auto;
  min-width: 140px;
  margin-top: 0;
}

.receipt-detail-footnote {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.55;
}

.cashbox-panel {
  padding: 15px 16px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

.cashbox-panel.is-active {
  border-color: rgba(31, 208, 154, 0.34);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.72),
    0 0 46px rgba(31, 208, 154, 0.1);
}

.cashbox-panel-head,
.cashbox-panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cashbox-panel-head {
  align-items: flex-start;
}

.cashbox-panel-copy {
  display: grid;
  gap: 4px;
}

.cashbox-panel h3 {
  margin: 0;
  font-size: clamp(18px, 2.7vw, 24px);
  line-height: 1.12;
}

.cashbox-panel .cashbox-copy {
  font-size: 13px;
  line-height: 1.45;
}

.cashbox-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(247, 200, 106, 0.18);
  border-radius: 999px;
  color: #f3dfb0;
  background: rgba(247, 200, 106, 0.08);
  font-weight: 800;
}

.cashbox-status.is-active {
  color: #dffff5;
  border-color: rgba(31, 208, 154, 0.3);
  background: rgba(31, 208, 154, 0.12);
}

.cashbox-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f7c86a;
  box-shadow: 0 0 0 8px rgba(247, 200, 106, 0.12);
}

.cashbox-status.is-active .cashbox-status-dot {
  background: #22e3a8;
  box-shadow:
    0 0 0 8px rgba(31, 208, 154, 0.16),
    0 0 24px rgba(31, 208, 154, 0.42);
  animation: cashboxPulse 1.2s ease-in-out infinite;
}

.cashbox-panel-amount,
.cashbox-modal-amount {
  color: #ffffff;
}

.cashbox-panel-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cashbox-panel-body {
  display: grid;
  gap: 12px;
}

.cashbox-panel-actions .primary-button,
.cashbox-panel-actions .ghost-button {
  margin-top: 0;
  min-height: 42px;
  padding-inline: 14px;
}

.cashbox-collapse-button {
  margin-top: 0;
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 14px;
}

.cashbox-collapse-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 160ms ease;
}

.cashbox-panel.is-open .cashbox-collapse-button svg {
  transform: rotate(180deg);
}

.cashbox-open-button {
  width: auto;
  min-width: 168px;
  padding-inline: 16px;
}

.cashbox-modal-actions {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(2, 5, 9, 0), rgba(2, 5, 9, 0.9) 28%);
}

.cashbox-card .primary-button,
.notice-card .primary-button {
  margin-top: 0;
}

.cashbox-card .ghost-button,
.notice-card .ghost-button {
  min-height: 48px;
}

.cashbox-card input {
  margin-top: 2px;
}

.cashbox-card label {
  margin: 0 0 6px;
}

.cashbox-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cashbox-card-scroll {
  min-height: 0;
  display: grid;
  gap: 14px;
  overflow-y: auto;
  padding-right: 4px;
}

.cashbox-guide-strip {
  margin-top: 0;
}

.cashbox-guide-strip article {
  padding: 10px 12px;
  gap: 4px;
  text-align: center;
}

.cashbox-guide-strip span {
  color: #f3dfb0;
}

.cashbox-guide-strip strong {
  font-size: clamp(13px, 2.5vw, 15px);
}

.cashbox-modal-stats article,
.cashbox-metrics article {
  padding: 11px 12px;
  gap: 6px;
}

.cashbox-modal-stats strong,
.cashbox-metrics strong {
  font-size: clamp(15px, 2.8vw, 20px);
}

.modal-close-button {
  width: 42px;
  height: 42px;
  align-self: flex-start;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(247, 200, 106, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #f6dfac;
}

.modal-close-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.cashbox-message {
  min-height: 20px;
  margin: 0;
}

.receipt-list {
  position: relative;
  display: grid;
  gap: 8px;
}

.receipt-card {
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  background:
    linear-gradient(105deg, rgba(247, 200, 106, 0.045), rgba(31, 208, 154, 0.025) 48%, rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.68);
  border-color: rgba(247, 200, 106, 0.13);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.receipt-card.is-duplicate {
  border-color: rgba(245, 189, 79, 0.34);
  box-shadow:
    0 0 0 1px rgba(245, 189, 79, 0.12),
    0 24px 58px rgba(0, 0, 0, 0.34);
}

.receipt-card:hover {
  transform: translateY(-1px);
  border-color: rgba(247, 200, 106, 0.28);
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(247, 200, 106, 0.06);
}

.receipt-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #fff4cf;
  text-shadow: 0 0 24px rgba(247, 200, 106, 0.14);
}

.receipt-main {
  min-width: 0;
}

.receipt-card-headline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.receipt-sender-name {
  display: block;
  color: #fff4cf;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 0 24px rgba(247, 200, 106, 0.14);
}

.receipt-select {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.receipt-select input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.receipt-select span {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(247, 200, 106, 0.24);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.receipt-select input:checked + span {
  background: linear-gradient(135deg, var(--gold), var(--accent));
  border-color: transparent;
}

.receipt-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
  display: grid;
  gap: 3px;
}

.receipt-note-preview {
  color: #d8e7f4;
}

.amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(31, 208, 154, 0.18);
  white-space: nowrap;
}

.receipt-side {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  color: #07110f;
  background: linear-gradient(135deg, var(--accent), #b7f4dc);
  font-size: 12px;
  font-weight: 800;
}

.badge.fresh {
  color: #07110f;
  background: linear-gradient(135deg, var(--accent), #b7f4dc);
}

.badge.collected {
  color: #041109;
  background: linear-gradient(135deg, #6effb8, #c6fff2);
}

.badge.pending {
  color: #130e03;
  background: linear-gradient(135deg, #f5bd4f, #f7d27b);
}

.badge.warning {
  color: #2a1300;
  background: linear-gradient(135deg, #ff9966, #ffc86b);
}

.badge.cashbox {
  color: #061113;
  background: linear-gradient(135deg, #4aa3ff, #b7dfff);
}

.receipt-tag-row {
  margin-top: 8px;
}

.receipt-detail-button {
  width: auto;
  min-width: 74px;
  margin-top: 0;
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.receipt-side-actions {
  gap: 6px;
}

.receipt-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(2, 5, 8, 0.82);
  backdrop-filter: blur(20px);
}

.receipt-preview-card {
  width: min(100%, 1180px);
  max-height: min(92dvh, 940px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(247, 200, 106, 0.18);
  background:
    linear-gradient(180deg, rgba(18, 27, 39, 0.98), rgba(9, 14, 21, 0.98)),
    rgba(7, 14, 22, 0.96);
  box-shadow:
    0 36px 80px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.receipt-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.receipt-preview-head > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.receipt-preview-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.receipt-preview-download {
  width: auto;
  min-width: 0;
  min-height: 38px;
  margin-top: 0;
  padding: 0 14px;
  border-color: rgba(247, 200, 106, 0.2);
  background: rgba(247, 200, 106, 0.06);
  color: #fff0c1;
}

.receipt-preview-download:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.receipt-preview-head h2 {
  margin: 0 0 6px;
}

.receipt-preview-copy {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.receipt-preview-frame-wrap {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.42);
  overflow: hidden;
  min-height: 0;
  height: min(74dvh, 760px);
}

.receipt-preview-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #05080d;
}

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.receipt-list.manual-refresh::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  pointer-events: none;
  border-radius: 8px;
  background: linear-gradient(110deg, transparent 0 38%, rgba(247, 200, 106, 0.13) 48%, transparent 58%);
  animation: refreshSweep 900ms ease infinite;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  display: grid;
  gap: 10px;
  max-width: min(92vw, 340px);
}

.toast-card {
  padding: 14px 16px;
  border: 1px solid rgba(31, 208, 154, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(10, 20, 30, 0.98), rgba(7, 14, 22, 0.94)),
    rgba(0, 0, 0, 0.9);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.42),
    0 0 30px rgba(31, 208, 154, 0.08);
  display: grid;
  gap: 7px;
  animation: toastEnter 220ms ease both;
}

.toast-card.warning {
  border-color: rgba(245, 189, 79, 0.24);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.42),
    0 0 30px rgba(245, 189, 79, 0.08);
}

.toast-card.fresh {
  border-color: rgba(247, 200, 106, 0.24);
  background:
    linear-gradient(135deg, rgba(28, 40, 56, 0.98), rgba(10, 18, 28, 0.96)),
    rgba(0, 0, 0, 0.9);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.42),
    0 0 36px rgba(247, 200, 106, 0.12);
}

.toast-topline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1fd09a, #8ef1cf);
  box-shadow: 0 0 18px rgba(31, 208, 154, 0.45);
  flex: 0 0 auto;
}

.toast-card.fresh .toast-dot {
  background: linear-gradient(135deg, #f7c86a, #1fd09a);
  box-shadow: 0 0 18px rgba(247, 200, 106, 0.4);
}

.toast-card strong {
  color: #fff2cd;
  font-size: 13px;
}

.toast-card.fresh strong {
  color: #fff6df;
}

.toast-card span {
  color: var(--soft);
  line-height: 1.5;
}

.toast-message {
  display: block;
}

.toast-rich-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toast-rich-separator {
  color: rgba(255, 236, 190, 0.66);
  font-weight: 700;
}

.toast-highlight {
  color: #ffd87b;
  font-weight: 800;
  text-shadow:
    0 0 12px rgba(247, 200, 106, 0.24),
    0 0 20px rgba(247, 200, 106, 0.14);
  letter-spacing: 0.01em;
}

.toast-highlight-name {
  font-size: 14px;
}

.toast-highlight-amount {
  font-size: 14px;
}

.toast-card small {
  color: var(--muted);
  font-size: 11px;
}

.toast-card.leaving {
  animation: toastLeave 220ms ease both;
}

.pagination {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(247, 200, 106, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 200, 106, 0.08), rgba(31, 208, 154, 0.055)),
    rgba(0, 0, 0, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 16px 42px rgba(0, 0, 0, 0.3),
    0 0 34px rgba(247, 200, 106, 0.07);
}

.page-button {
  width: 44px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 200, 106, 0.18);
  border-radius: 8px;
  color: #f5e4b5;
  background: rgba(247, 200, 106, 0.07);
}

.page-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

#pageInfo {
  color: #f5e4b5;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 0 22px rgba(247, 200, 106, 0.12);
}

.dashboard-view.account-switch .account-hero,
.dashboard-view.account-switch .stats-grid,
.dashboard-view.account-switch .tool-row,
.dashboard-view.account-switch .resilience-panel,
.dashboard-view.account-switch .pagination,
.dashboard-view.account-switch .receipt-list {
  animation: panelSwitch 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes pageExit {
  to {
    opacity: 0;
    transform: translateY(-12px) scale(0.99);
    filter: blur(8px);
  }
}

@keyframes panelSwitch {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes receiptIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes galaxyDrift {
  from {
    background-position:
      18px 42px,
      96px 130px,
      170px 76px;
  }

  to {
    background-position:
      278px 262px,
      436px 420px,
      580px 406px;
  }
}

@keyframes welcomeCardIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes welcomeLeave {
  to {
    opacity: 0;
    transform: scale(1.02);
    filter: blur(10px);
  }
}

@keyframes logoBreath {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.06);
  }
}

@keyframes logoRise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loaderRun {
  from {
    transform: translateX(-110%);
  }

  to {
    transform: translateX(250%);
  }
}

@keyframes refreshSweep {
  from {
    transform: translateX(-60%);
  }

  to {
    transform: translateX(60%);
  }
}

@keyframes toastEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastLeave {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@keyframes cashboxPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.08);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes welcomePanelSheen {
  0%,
  100% {
    transform: translateX(-8%);
    opacity: 0.42;
  }

  50% {
    transform: translateX(8%);
    opacity: 0.68;
  }
}

@media (max-width: 820px) {
  body {
    position: relative;
    min-width: 0;
  }

  .app-shell {
    width: 100%;
    min-width: 0;
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    overflow-x: hidden;
  }

  .app-shell::before {
    inset: -10vh -70vw;
    background-size: 150vw auto;
    opacity: 0.08;
  }

  .login-view {
    width: 100%;
    max-width: none;
    min-height: calc(100svh - 20px);
    align-items: center;
    justify-items: center;
    padding-inline: 0;
  }

  .login-view::before {
    inset: -10vh -60vw;
    background-size: 138vw auto;
    opacity: 0.12;
  }

  .login-card {
    width: min(100%, 392px);
    max-width: calc(100svw - 24px);
    margin: auto;
    padding: 16px;
  }

  .login-mark {
    width: 82px;
    height: 52px;
    margin-bottom: 8px;
  }

  .login-mark img {
    width: 70px;
    height: 44px;
  }

  .logo-frame {
    width: 72px;
    height: 72px;
    margin-bottom: 10px;
  }

  .logo-frame img {
    width: 58px;
    height: 58px;
  }

  .login-card h1 {
    font-size: 25px;
    line-height: 1.05;
  }

  .hero-copy {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .form-head h2 {
    font-size: 21px;
  }

  .form-head p:last-child {
    font-size: 13px;
  }

  label {
    margin-top: 10px;
  }

  select,
  input {
    height: 45px;
  }

  select {
    background-position:
      calc(100% - 18px) 18px,
      calc(100% - 12px) 18px;
  }

  .password-row {
    grid-template-columns: 1fr 44px;
  }

  .icon-button,
  .refresh-button {
    width: 44px;
    height: 44px;
  }

  .refresh-button {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .primary-button {
    min-height: 46px;
    margin-top: 14px;
  }

  .welcome-card {
    width: min(100%, 360px);
  }

  .welcome-logo {
    width: 104px;
    height: 104px;
  }

  .welcome-logo img {
    width: 86px;
    height: 86px;
  }

  .welcome-card h2 {
    font-size: 34px;
  }

  .dashboard-view {
    width: 100%;
    max-width: calc(100svw - 20px);
    gap: 8px;
    min-height: calc(100svh - 16px);
    overflow-x: hidden;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cashbox-panel-head,
  .cashbox-panel-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cashbox-status {
    width: 100%;
    justify-content: center;
  }

  .cashbox-panel {
    padding: 12px;
    gap: 10px;
  }

  .cashbox-panel h3 {
    font-size: 18px;
  }

  .cashbox-panel .cashbox-copy {
    font-size: 12px;
  }

  .cashbox-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .cashbox-metrics article {
    padding: 9px 8px;
    min-width: 0;
  }

  .cashbox-metrics strong {
    font-size: 14px;
    word-break: break-word;
  }

  .cashbox-panel-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .cashbox-collapse-button {
    min-height: 42px;
    padding-inline: 12px;
  }

  .cashbox-open-button,
  .cashbox-panel-actions .ghost-button {
    width: 100%;
    min-width: 0;
  }

  .notice-grid {
    grid-template-columns: 1fr;
  }

  .maintenance-grid {
    grid-template-columns: 1fr;
  }

  .maintenance-card {
    width: min(100%, 420px);
    padding: 18px;
  }

  .maintenance-mark {
    width: 88px;
    height: 88px;
  }

  .maintenance-mark img {
    width: 66px;
    height: 66px;
  }

  .notice-detail-grid {
    grid-template-columns: 1fr;
  }

  .notice-brand-mark {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .notice-logo-frame {
    width: 92px;
    height: 92px;
  }

  .notice-logo-frame img {
    width: 72px;
    height: 72px;
  }

  .notice-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .cashbox-guide-grid,
  .cashbox-modal-stats,
  .cashbox-guide-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cashbox-modal-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cashbox-modal-actions {
    grid-template-columns: 1fr;
  }

  .notice-card,
  .cashbox-card,
  .filter-card,
  .receipt-detail-card {
    width: min(100%, 420px);
    padding: 16px;
  }

  .diamond-card,
  .diamond-confirm-card {
    width: 100%;
    padding: 16px;
  }

  .diamond-card {
    min-height: 100svh;
    max-height: 100svh;
    gap: 14px;
  }

  .diamond-shell,
  .diamond-page-topline {
    width: 100%;
  }

  .diamond-command-card {
    grid-template-columns: minmax(0, 1fr) minmax(170px, 208px);
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
  }

  .diamond-operator-chip {
    gap: 14px;
  }

  .diamond-operator-icon {
    width: 40px;
    height: 40px;
  }

  .diamond-operator-copy strong {
    font-size: clamp(16px, 5.6vw, 22px);
  }

  .diamond-operator-copy small {
    font-size: 11px;
  }

  .diamond-hero-balance {
    padding: 14px 16px;
    border-radius: 20px;
    gap: 10px;
  }

  .diamond-hero-balance strong {
    font-size: clamp(22px, 7vw, 34px);
  }

  .diamond-hero-gem {
    width: 28px;
    height: 28px;
  }

  .diamond-hero-gem svg {
    width: 24px;
    height: 24px;
  }

  .diamond-command-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px;
  }

  .diamond-brand-seal {
    width: 94px;
    height: 74px;
    border-radius: 20px;
  }

  .diamond-brand-seal img {
    width: 72px;
  }

  .diamond-page-head {
    gap: 8px;
  }

  .diamond-page-head h2 {
    font-size: clamp(28px, 9vw, 42px);
  }

  .diamond-subtitle {
    font-size: 13px;
    line-height: 1.55;
  }

  .diamond-status-grid,
  .diamond-confirm-grid,
  .diamond-meta-strip {
    grid-template-columns: 1fr;
  }

  .diamond-meta-card {
    padding: 14px 16px;
  }

  .diamond-balance-strip,
  .diamond-maintenance-banner {
    padding: 14px 16px;
    border-radius: 18px;
  }

  .diamond-balance-strip strong {
    font-size: 15px;
    line-height: 1.35;
  }

  .diamond-maintenance-banner p:last-child {
    font-size: 12px;
  }

  .diamond-entry-card,
  .diamond-history-card {
    padding: 14px;
  }

  .diamond-query-row {
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 10px;
    align-items: center;
  }

  .diamond-query-row input,
  .diamond-amount-row input {
    height: 64px;
    border-radius: 18px;
    font-size: 18px;
  }

  .diamond-query-button {
    width: 118px;
    min-width: 118px;
    height: 64px;
    min-height: 64px;
    border-radius: 18px;
    font-size: 15px;
  }

  .diamond-amount-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .diamond-amount-row label {
    min-width: 0;
    font-size: 12px;
  }

  .diamond-preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diamond-switch-row {
    padding: 10px;
    gap: 10px;
  }

  .diamond-switch-button {
    min-height: 58px;
    border-radius: 18px;
    font-size: 15px;
  }

  .diamond-history-card {
    padding: 14px 12px;
    border-radius: 22px;
  }

  .diamond-table-head,
  .diamond-order-row {
    grid-template-columns: 48px minmax(0, 1.18fr) 78px 70px 54px;
    gap: 8px;
  }

  .diamond-table-head {
    padding: 0 6px 14px;
    font-size: 10px;
  }

  .diamond-order-row {
    padding: 16px 6px;
    align-items: center;
  }

  .diamond-order-index {
    font-size: 12px;
  }

  .diamond-order-id strong {
    font-size: 13px;
    line-height: 1.15;
  }

  .diamond-order-id span,
  .diamond-order-date span {
    font-size: 10px;
  }

  .diamond-order-amount {
    gap: 4px;
  }

  .diamond-order-amount strong,
  .diamond-order-date strong {
    font-size: 13px;
  }

  .diamond-order-gem {
    width: 15px;
    height: 15px;
  }

  .diamond-order-gem svg {
    width: 14px;
    height: 14px;
  }

  .diamond-repeat-button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    margin-top: 0;
    border-radius: 11px;
  }

  .diamond-repeat-button svg {
    width: 16px;
    height: 16px;
  }

  .diamond-status-icon {
    width: 38px;
    height: 38px;
  }

  .diamond-status-icon svg {
    width: 18px;
    height: 18px;
  }

  .notice-card {
    min-height: calc(100svh - 24px);
    max-height: calc(100svh - 24px);
    gap: 14px;
  }

  .cashbox-card {
    max-height: min(86svh, 660px);
    gap: 12px;
  }

  .filter-card,
  .receipt-detail-card {
    max-height: min(90svh, 760px);
    gap: 12px;
  }

  .cashbox-card-scroll {
    gap: 12px;
    padding-right: 0;
  }

  .cashbox-guide-strip article,
  .cashbox-modal-stats article {
    padding: 10px 8px;
  }

  .cashbox-guide-strip strong,
  .cashbox-modal-stats strong {
    font-size: 13px;
  }

  .topbar,
  .account-hero,
  .tool-row {
    align-items: stretch;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    min-height: auto;
    gap: 8px;
  }

  .welcome-panel {
    width: 100%;
    min-height: 78px;
    padding: 13px 14px;
  }

  .welcome-panel::before {
    inset: -30px auto -30px -74px;
    width: 210px;
    opacity: 0.16;
  }

  .ops-panel {
    width: 100%;
    min-width: 0;
    min-height: 66px;
    padding: 10px 12px;
    gap: 8px;
  }

  .ops-panel-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .ops-panel-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }

  .ops-diamond-button {
    width: auto;
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .ops-activity-button {
    max-width: 144px;
  }

  .ops-panel-divider {
    display: none;
  }

  .live-clock strong {
    font-size: 21px;
  }

  .live-clock-date {
    font-size: 11px;
  }

  .ops-logout-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
  }

  .welcome-subtitle {
    margin-top: 6px;
    font-size: 10px;
  }

  .topbar h2 {
    font-size: clamp(21px, 7vw, 28px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .activity-card {
    width: min(100%, 620px);
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
  }

  .activity-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .activity-hero-logo {
    width: 76px;
    height: 76px;
  }

  .activity-hero-logo img {
    width: 60px;
    height: 60px;
  }

  .activity-summary-grid {
    grid-template-columns: 1fr;
  }

  .activity-user-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .activity-user-meta {
    width: 100%;
    justify-items: start;
    text-align: left;
  }

  .account-hero,
  .tool-row {
    flex-direction: column;
  }

  .tool-actions,
  .selection-bar,
  .filter-actions,
  .receipt-detail-footer,
  .receipt-quick-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .receipt-detail-action-row,
  .receipt-side-actions {
    width: 100%;
  }

  .selection-bar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .selection-bar-actions .compact-button,
  .selection-bar-actions .compact-primary,
  .tool-actions .compact-button,
  .tool-actions .compact-primary,
  .tool-actions .refresh-button,
  .receipt-quick-actions .quick-action-button {
    width: 100%;
  }

  .filter-grid,
  .receipt-edit-grid,
  .customer-history-stats,
  .customer-history-list {
    grid-template-columns: 1fr;
  }

  .account-hero {
    min-height: 104px;
    padding: 13px;
  }

  .account-hero h1 {
    font-size: 26px;
  }

  .iban {
    margin-top: 10px;
    font-size: 12px;
  }

  .sync-pill {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    gap: 7px;
  }

  .stats-grid article {
    padding: 10px 8px;
    min-width: 0;
  }

  .stats-grid span {
    font-size: 11px;
  }

  .stats-grid strong {
    font-size: 18px;
    word-break: break-word;
  }

  .resilience-panel {
    display: none;
  }

  .receipt-card {
    grid-template-columns: 1fr;
    padding: 9px 10px;
    gap: 7px;
  }

  .receipt-card-headline {
    align-items: flex-start;
  }

  .receipt-side {
    justify-items: start;
  }

  .receipt-card h3 {
    font-size: 15px;
  }

  .receipt-meta {
    font-size: 12px;
    line-height: 1.38;
  }

  .receipt-detail-button {
    min-width: 66px;
    min-height: 28px;
    padding: 0 8px;
    font-size: 11px;
  }

  .toast-stack {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
  }

  .receipt-preview-card {
    width: min(100%, 480px);
    padding: 14px;
  }

  .receipt-preview-actions {
    width: 100%;
    justify-content: stretch;
  }

  .receipt-preview-download {
    flex: 1 1 0;
    min-height: 36px;
    padding: 0 10px;
    font-size: 11px;
  }

  .receipt-preview-frame-wrap,
  .receipt-preview-frame-wrap iframe {
    min-height: 68dvh;
  }

  .pagination {
    grid-template-columns: 40px 1fr 40px;
    padding: 9px;
    min-height: 58px;
  }

  .page-button {
    width: 40px;
    height: 38px;
  }

  .amount {
    white-space: normal;
  }

  .login-view:not(.hidden),
  .dashboard-view:not(.hidden) {
    animation: mobileFadeIn 260ms ease both;
  }

  .dashboard-view.account-switch .account-hero,
  .dashboard-view.account-switch .stats-grid,
  .dashboard-view.account-switch .tool-row,
  .dashboard-view.account-switch .resilience-panel,
  .dashboard-view.account-switch .pagination,
  .dashboard-view.account-switch .receipt-list {
    animation: mobilePanelFade 180ms ease both;
  }

  .primary-button:hover,
  .segment-button:hover,
  .icon-button:hover,
  .refresh-button:hover,
  .ghost-button:hover,
  .receipt-card:hover {
    transform: none;
  }

  .primary-button:active,
  .segment-button:active,
  .icon-button:active,
  .refresh-button:active,
  .ghost-button:active,
  .page-button:active {
    transform: none;
  }

  .code-input {
    height: 54px;
    font-size: 25px;
    letter-spacing: 6px;
  }
}

@media (max-width: 480px) {
  .diamond-command-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 16px;
  }

  .diamond-operator-copy strong {
    font-size: 16px;
  }

  .diamond-operator-copy small {
    display: none;
  }

  .diamond-brand-seal {
    width: 82px;
    height: 66px;
    border-radius: 18px;
  }

  .diamond-brand-seal img {
    width: 60px;
  }

  .diamond-page-head h2 {
    font-size: 26px;
  }

  .diamond-subtitle {
    font-size: 12px;
  }

  .diamond-query-row {
    grid-template-columns: minmax(0, 1fr) 108px;
    align-items: stretch;
  }

  .diamond-query-row input,
  .diamond-amount-row input {
    font-size: 16px;
    padding-inline: 10px;
  }

  .diamond-query-button {
    width: 108px;
    min-width: 108px;
    height: 64px;
    min-height: 64px;
    font-size: 14px;
  }

  .diamond-preset-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .diamond-preset-button {
    min-height: 50px;
    font-size: 12px;
  }

  .diamond-table-head,
  .diamond-order-row {
    grid-template-columns: minmax(0, 1fr) 62px 54px 38px;
    gap: 6px;
  }

  .diamond-table-head {
    font-size: 9px;
  }

  .diamond-table-head span:first-child,
  .diamond-order-index {
    display: none;
  }

  .diamond-order-id strong {
    font-size: 12px;
  }

  .diamond-order-id span,
  .diamond-order-date span {
    font-size: 9px;
  }

  .diamond-order-amount strong,
  .diamond-order-date strong {
    font-size: 12px;
  }

  .diamond-repeat-button {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    margin-top: 0;
  }

  .diamond-repeat-button svg {
    width: 14px;
    height: 14px;
  }

  .diamond-status-icon {
    width: 30px;
    height: 30px;
  }

  .diamond-status-icon svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 820px) {
  .theme-rail {
    top: auto;
    bottom: 16px;
    right: 50%;
    transform: translateX(50%);
    grid-auto-flow: column;
    grid-auto-columns: min-content;
    padding: 8px 10px;
  }

  .theme-dot {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 360px) {
  .diamond-query-row {
    grid-template-columns: minmax(0, 1fr) 98px;
    gap: 8px;
    align-items: center;
  }

  .diamond-query-button {
    width: 98px;
    min-width: 98px;
    height: 60px;
    min-height: 60px;
    font-size: 13px;
  }

  .diamond-command-card {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px;
  }

  .diamond-operator-chip {
    gap: 12px;
  }

  .diamond-operator-icon {
    width: 40px;
    height: 40px;
  }

  .diamond-operator-copy strong {
    font-size: 14px;
  }

  .diamond-back-button {
    min-width: 116px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .diamond-brand-seal {
    width: 70px;
    height: 58px;
  }

  .diamond-brand-seal img {
    width: 52px;
  }

  .diamond-preset-grid {
    grid-template-columns: 1fr;
  }

  .diamond-confirm-actions {
    grid-template-columns: 1fr;
  }

  .diamond-switch-button {
    min-height: 54px;
    padding-inline: 14px;
    font-size: 14px;
  }
}

@keyframes mobileFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes mobilePanelFade {
  from {
    opacity: 0.82;
  }

  to {
    opacity: 1;
  }
}

@media (max-height: 720px) {
  .login-card {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .hero-copy {
    display: none;
  }

  .form-head p:last-child {
    display: none;
  }

  .logo-frame {
    width: 66px;
    height: 66px;
    margin-bottom: 8px;
  }

  .logo-frame img {
    width: 54px;
    height: 54px;
  }
}

/* BIGO / diamond suite refresh */
.diamond-overlay {
  padding: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(247, 200, 106, 0.16), transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(255, 193, 93, 0.1), transparent 18%),
    linear-gradient(180deg, rgba(4, 5, 8, 0.98), rgba(10, 11, 16, 0.995));
}

.diamond-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100dvh;
  max-height: 100dvh;
  padding: clamp(18px, 2vw, 28px);
  border-radius: 0;
  border: 0;
  background:
    radial-gradient(circle at 14% 14%, rgba(247, 200, 106, 0.09), transparent 18%),
    radial-gradient(circle at 92% 10%, rgba(247, 200, 106, 0.06), transparent 16%),
    linear-gradient(180deg, rgba(12, 13, 18, 0.995), rgba(5, 6, 9, 1)),
    rgba(0, 0, 0, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.diamond-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(247, 200, 106, 0.04), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 22%);
}

.diamond-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(22vw, 220px);
  height: 100%;
  z-index: -1;
  opacity: 0.34;
  background:
    linear-gradient(180deg, rgba(247, 200, 106, 0.04), rgba(247, 200, 106, 0)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent);
  border-left: 1px solid rgba(247, 200, 106, 0.06);
}

.diamond-page-topline {
  width: min(100%, 620px);
  margin: 0 auto 18px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(247, 200, 106, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(15, 17, 22, 0.94), rgba(9, 10, 14, 0.94)),
    rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(18px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.diamond-page-brand {
  display: grid;
  justify-self: center;
  gap: 3px;
  min-width: 0;
}

.diamond-page-brand-copy {
  display: grid;
  gap: 2px;
  text-align: center;
}

.diamond-page-brand-copy span {
  color: rgba(244, 203, 114, 0.78);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.diamond-page-brand-copy strong {
  color: #fff8ef;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 900;
  line-height: 1;
}

.diamond-page-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.diamond-page-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(247, 200, 106, 0.24);
  background:
    radial-gradient(circle at 50% 40%, rgba(247, 200, 106, 0.18), transparent 42%),
    rgba(18, 14, 9, 0.94);
  box-shadow:
    0 0 24px rgba(247, 200, 106, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.diamond-page-avatar img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.diamond-close-inline {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 999px;
}

.diamond-shell-luxe {
  width: min(100%, 620px);
  max-width: none;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  padding: 0 0 26px;
}

.diamond-luxe-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  min-height: 0;
  padding: clamp(22px, 3vw, 28px);
  border: 1px solid rgba(247, 200, 106, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 18%, rgba(247, 200, 106, 0.14), transparent 26%),
    radial-gradient(circle at 84% 78%, rgba(255, 184, 92, 0.08), transparent 20%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008)),
    rgba(10, 11, 15, 0.98);
  box-shadow:
    0 26px 56px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.diamond-luxe-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0 42%, rgba(255, 255, 255, 0.06) 50%, transparent 58%);
  opacity: 0.35;
}

.diamond-luxe-copy,
.diamond-luxe-brand-panel,
.diamond-luxe-entry,
.diamond-luxe-sidecard,
.diamond-history-card-luxe {
  position: relative;
  z-index: 1;
}

.diamond-luxe-copy {
  display: grid;
  gap: 14px;
  align-content: center;
  min-width: 0;
  justify-items: center;
  text-align: center;
  order: 2;
}

.diamond-luxe-copy .eyebrow {
  color: #f4cb72;
}

.diamond-luxe-copy h2 {
  margin: 0;
  font-size: clamp(34px, 7vw, 46px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff8eb;
  text-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
}

.diamond-subtitle {
  max-width: 48ch;
  color: rgba(236, 229, 214, 0.78);
  font-size: 14px;
  line-height: 1.75;
}

.diamond-luxe-status-line {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.diamond-luxe-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(247, 200, 106, 0.18);
  background: linear-gradient(180deg, rgba(247, 200, 106, 0.2), rgba(184, 124, 22, 0.12));
  color: #fff6df;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.diamond-luxe-status-line strong {
  color: #f3e7cb;
  font-size: 15px;
  line-height: 1.65;
}

.diamond-luxe-brand-panel {
  display: grid;
  gap: 16px;
  align-content: center;
  justify-items: center;
  order: 1;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: clamp(20px, 2.8vw, 28px);
  border: 1px solid rgba(247, 200, 106, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 22%, rgba(247, 200, 106, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(9, 10, 13, 0.96);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.diamond-luxe-logo-frame {
  width: clamp(150px, 34vw, 188px);
  height: clamp(150px, 34vw, 188px);
  display: grid;
  place-items: center;
  border-radius: 28px;
  border: 1px solid rgba(247, 200, 106, 0.24);
  background:
    radial-gradient(circle at 50% 42%, rgba(247, 200, 106, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(0, 0, 0, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 26px 62px rgba(0, 0, 0, 0.34),
    0 0 46px rgba(247, 200, 106, 0.14);
}

.diamond-luxe-logo-frame img {
  width: 74%;
  height: 74%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(247, 200, 106, 0.22))
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.34));
}

.diamond-luxe-operator-panel {
  width: 100%;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(247, 200, 106, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.diamond-luxe-operator-panel span,
.diamond-card-heading .eyebrow,
.diamond-history-hint {
  color: rgba(244, 203, 114, 0.8);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.diamond-luxe-operator-panel strong {
  color: #fff9ef;
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1;
}

.diamond-luxe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.diamond-entry-card,
.diamond-luxe-sidecard,
.diamond-history-card-luxe {
  border: 1px solid rgba(247, 200, 106, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(15, 17, 21, 0.96), rgba(7, 8, 11, 0.96)),
    rgba(0, 0, 0, 0.72);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.diamond-luxe-entry,
.diamond-luxe-sidecard {
  padding: 22px;
}

.diamond-card-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.diamond-card-heading strong {
  color: #fffaf2;
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.14;
}

.diamond-query-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 12px;
  align-items: center;
}

.diamond-query-row input,
.diamond-amount-row input {
  min-height: 64px;
  border-radius: 16px;
  border: 1px solid rgba(247, 200, 106, 0.16);
  background:
    linear-gradient(180deg, rgba(42, 29, 12, 0.72), rgba(21, 16, 11, 0.82)),
    rgba(0, 0, 0, 0.34);
  color: #fff7ea;
  font-size: 16px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.diamond-query-row input::placeholder,
.diamond-amount-row input::placeholder {
  color: rgba(247, 232, 194, 0.44);
}

.diamond-query-button {
  min-width: 170px;
  min-height: 64px;
  border-radius: 16px;
  border: 1px solid rgba(247, 200, 106, 0.2);
  background:
    linear-gradient(135deg, #f3c566 0%, #d19a2a 54%, #8d5a10 100%);
  color: #110d07;
  font-size: 15px;
  font-weight: 900;
  box-shadow:
    0 16px 32px rgba(163, 110, 18, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.diamond-query-button:hover,
.diamond-query-button:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 20px 34px rgba(163, 110, 18, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.diamond-amount-row {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.diamond-amount-row label {
  color: rgba(247, 232, 194, 0.8);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.diamond-preset-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(247, 200, 106, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.diamond-preset-head {
  margin-bottom: 12px;
}

.diamond-preset-head span {
  color: rgba(236, 229, 214, 0.6);
}

.diamond-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.diamond-preset-button {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(247, 200, 106, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(23, 18, 12, 0.92);
  color: #f9edcf;
  font-size: 13px;
  font-weight: 800;
}

.diamond-preset-button:hover,
.diamond-preset-button:focus-visible {
  background:
    linear-gradient(180deg, rgba(247, 200, 106, 0.16), rgba(247, 200, 106, 0.08)),
    rgba(23, 18, 12, 0.96);
  color: #fffaf1;
}

.diamond-luxe-sidecard p {
  margin: 0;
  color: rgba(236, 229, 214, 0.72);
  line-height: 1.8;
}

.diamond-luxe-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.diamond-luxe-mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(247, 200, 106, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #f3e7cb;
  font-size: 12px;
  font-weight: 700;
}

.diamond-history-card-luxe {
  padding: 22px;
}

.diamond-history-headline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.diamond-history-hint {
  text-transform: none;
  letter-spacing: 0;
  text-align: right;
  max-width: 480px;
  line-height: 1.65;
}

.diamond-order-list {
  display: grid;
  gap: 14px;
}

.diamond-order-row-luxe {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(247, 200, 106, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 10%, rgba(247, 200, 106, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    rgba(9, 10, 13, 0.94);
}

.diamond-order-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.diamond-order-index,
.diamond-order-status-copy {
  color: rgba(247, 232, 194, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.diamond-order-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

.diamond-order-main {
  min-width: 0;
}

.diamond-order-id {
  display: grid;
  gap: 12px;
}

.diamond-order-id-copy {
  display: grid;
  gap: 6px;
}

.diamond-order-id strong {
  color: #fff9ef;
  font-size: 24px;
  line-height: 1.06;
}

.diamond-order-admin-chip {
  display: inline-grid;
  justify-items: start;
  gap: 4px;
  width: fit-content;
  min-width: 172px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(247, 200, 106, 0.14);
  background:
    linear-gradient(180deg, rgba(247, 200, 106, 0.1), rgba(247, 200, 106, 0.04)),
    rgba(20, 16, 10, 0.78);
}

.diamond-order-admin-chip strong {
  color: #fff7ea;
  font-size: 15px;
  line-height: 1.2;
}

.diamond-order-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.diamond-order-id span,
.diamond-order-admin-chip span,
.diamond-order-amount-copy span,
.diamond-order-date span,
.diamond-order-state span {
  color: rgba(236, 229, 214, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.diamond-order-amount-block {
  display: grid;
  gap: 12px;
  justify-items: start;
  align-content: center;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(247, 200, 106, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.diamond-order-amount {
  display: flex;
  align-items: center;
  gap: 10px;
}

.diamond-order-amount-copy {
  display: grid;
  gap: 4px;
}

.diamond-order-amount strong,
.diamond-order-date strong {
  color: #fff8ea;
  font-size: 26px;
  line-height: 1;
}

.diamond-order-gem {
  width: 24px;
  height: 24px;
  color: #f4cb72;
}

.diamond-order-date {
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(247, 200, 106, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.diamond-order-date small {
  color: rgba(236, 229, 214, 0.56);
  font-size: 13px;
  font-weight: 700;
}

.diamond-repeat-button {
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(247, 200, 106, 0.16);
  background:
    linear-gradient(180deg, rgba(247, 200, 106, 0.16), rgba(126, 86, 19, 0.1)),
    rgba(20, 15, 10, 0.92);
  color: #f9edcf;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.diamond-repeat-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.diamond-order-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  align-content: center;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(247, 200, 106, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.diamond-status-icon {
  width: 50px;
  height: 50px;
}

.diamond-pagination {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(247, 200, 106, 0.08);
}

.diamond-pagination span {
  color: rgba(236, 229, 214, 0.72);
}

.diamond-empty-state {
  padding: 34px 20px;
  border-radius: 14px;
  border: 1px dashed rgba(247, 200, 106, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(236, 229, 214, 0.7);
}

.diamond-message {
  margin-top: 12px;
}

.diamond-confirm-card {
  width: min(100%, 460px);
  min-height: 0;
  padding: 24px;
  border-radius: 24px;
  border-color: rgba(247, 200, 106, 0.18);
  background:
    linear-gradient(180deg, rgba(17, 18, 22, 0.985), rgba(9, 10, 13, 0.985)),
    rgba(0, 0, 0, 0.94);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.diamond-confirm-card h2 {
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1.05;
}

.diamond-confirm-copy {
  color: rgba(241, 230, 199, 0.74);
}

.diamond-confirm-grid {
  gap: 10px;
}

.diamond-confirm-grid article {
  border-radius: 16px;
  border-color: rgba(247, 200, 106, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(19, 16, 10, 0.86);
}

.diamond-confirm-password {
  display: grid;
  gap: 8px;
}

.diamond-confirm-password label {
  color: rgba(247, 232, 194, 0.82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.diamond-confirm-password input {
  width: 100%;
  min-height: 60px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(247, 200, 106, 0.14);
  background:
    linear-gradient(180deg, rgba(43, 31, 12, 0.72), rgba(21, 16, 11, 0.84)),
    rgba(0, 0, 0, 0.34);
  color: #fff8eb;
  font-size: 18px;
  font-weight: 800;
}

.diamond-confirm-password input:focus {
  outline: none;
  border-color: rgba(247, 200, 106, 0.34);
  box-shadow: 0 0 0 3px rgba(247, 200, 106, 0.08);
}

.diamond-overlay-enter .diamond-card {
  animation: diamondSceneIn 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.diamond-overlay-enter .diamond-shell-luxe > * {
  animation: diamondLayerIn 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.diamond-overlay-enter .diamond-shell-luxe > *:nth-child(2) {
  animation-delay: 18ms;
}

.diamond-overlay-enter .diamond-shell-luxe > *:nth-child(3) {
  animation-delay: 34ms;
}

@keyframes diamondSceneIn {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes diamondLayerIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .diamond-history-headline {
    align-items: start;
    flex-direction: column;
  }

  .diamond-history-hint {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .diamond-card {
    padding: 16px;
  }

  .diamond-page-topline {
    margin-bottom: 16px;
    padding: 12px;
    grid-template-columns: auto 1fr auto;
    border-radius: 16px;
  }

  .diamond-luxe-hero,
  .diamond-luxe-entry,
  .diamond-luxe-sidecard,
  .diamond-history-card-luxe,
  .diamond-order-row-luxe {
    padding: 16px;
  }

  .diamond-page-brand-copy strong {
    font-size: 15px;
  }

  .diamond-page-brand-copy span {
    font-size: 9px;
  }

  .diamond-page-actions {
    gap: 8px;
  }

  .diamond-page-avatar,
  .diamond-close-inline {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .diamond-luxe-copy h2 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .diamond-query-row {
    grid-template-columns: 1fr;
  }

  .diamond-query-button {
    width: 100%;
    min-width: 0;
  }

  .diamond-preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diamond-luxe-logo-frame {
    width: 126px;
    height: 126px;
    border-radius: 18px;
  }

  .diamond-order-side {
    grid-template-columns: 1fr;
  }

  .diamond-order-id strong,
  .diamond-order-amount strong,
  .diamond-order-date strong {
    font-size: 22px;
  }

  .diamond-confirm-card {
    padding: 20px;
    border-radius: 20px;
  }

  .diamond-repeat-button {
    width: 100%;
    justify-content: center;
  }
}
