:root {
  color-scheme: dark;
  --bg-900: #04070d;
  --bg-800: #0b1424;
  --bg-700: #16223c;
  --bg-soft: rgba(18, 26, 44, 0.82);
  --bg-strong: rgba(15, 22, 38, 0.92);
  --bg-radial-a: rgba(102, 134, 255, 0.24);
  --bg-radial-b: rgba(111, 227, 186, 0.25);
  --glow-a: rgba(118, 208, 255, 0.18);
  --glow-b: rgba(255, 173, 90, 0.15);
  --glow-c: rgba(99, 240, 193, 0.2);
  --glass-outline: rgba(110, 205, 255, 0.14);
  --text-strong: #f5f8ff;
  --text-muted: #9fb3d9;
  --text-soft: rgba(159, 179, 217, 0.8);
  --accent: #63f0c1;
  --accent-2: #77a6ff;
  --accent-3: #f4b86a;
  --danger: #ff6b8a;
  --success: #63f0c1;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 14px 32px rgba(5, 14, 29, 0.45);
  --shadow-glow: 0 0 28px rgba(99, 240, 193, 0.35);
  --transition: all 0.28s ease;
  font-family: "Poppins", "Inter", "Segoe UI", system-ui, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg-900: #f4f7ff;
  --bg-800: #e9efff;
  --bg-700: #dce6ff;
  --bg-soft: rgba(255, 255, 255, 0.9);
  --bg-strong: rgba(243, 247, 255, 0.94);
  --bg-radial-a: rgba(150, 178, 255, 0.32);
  --bg-radial-b: rgba(152, 226, 205, 0.26);
  --glow-a: rgba(180, 204, 255, 0.35);
  --glow-b: rgba(255, 206, 139, 0.28);
  --glow-c: rgba(120, 206, 186, 0.28);
  --glass-outline: rgba(140, 166, 230, 0.28);
  --text-strong: #1b2142;
  --text-muted: #566189;
  --text-soft: rgba(86, 97, 137, 0.8);
  --shadow-strong: 0 24px 60px rgba(48, 74, 126, 0.18);
  --shadow-soft: 0 18px 38px rgba(55, 86, 142, 0.16);
  --shadow-glow: 0 0 28px rgba(82, 189, 150, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 680px at 10% -8%, var(--bg-radial-a), transparent 70%),
    radial-gradient(900px 620px at 90% -10%, var(--bg-radial-b), transparent 70%),
    linear-gradient(180deg, var(--bg-800) 0%, var(--bg-900) 100%);
  color: var(--text-strong);
  font-family: inherit;
  display: flex;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: -60vh;
  background:
    radial-gradient(420px 420px at 18% 22%, var(--glow-a), transparent 72%),
    radial-gradient(560px 560px at 80% 10%, var(--glow-b), transparent 74%),
    radial-gradient(500px 520px at 58% 80%, var(--glow-c), transparent 80%);
  opacity: 0.8;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}

.no-motion *,
.no-motion *::before,
.no-motion *::after {
  animation: none !important;
  transition: none !important;
}

.app-shell {
  width: min(1120px, 94vw);
  padding: clamp(24px, 4vw, 48px) 0 72px;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 4vw, 36px);
  position: relative;
  z-index: 1;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 4vw, 28px);
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.85), rgba(6, 12, 20, 0.65));
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-outline);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 32% 32%, #fff, #cbffe2 45%, #63f0c1 74%, #1a9d83 100%);
  box-shadow:
    0 0 40px rgba(99, 240, 193, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 16px rgba(0, 0, 0, 0.35);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
}

.brand__title {
  font-size: clamp(18px, 2.5vw, 24px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand__subtitle {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.32em;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 12px 18px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.btn--ghost {
  background: rgba(12, 24, 40, 0.65);
  color: var(--text-strong);
  border: 1px solid rgba(126, 165, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(99, 240, 193, 0.08);
}

.btn--ghost:hover {
  border-color: rgba(126, 165, 255, 0.45);
  color: #fff;
}

.btn--primary {
  background: linear-gradient(135deg, #63f0c1, #3ea2ff);
  color: #03181a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), var(--shadow-glow);
}

.btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn--square {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  padding: 0;
  font-size: 18px;
}

.theme-toggle {
  position: relative;
}

.theme-toggle__icon {
  font-size: 18px;
  line-height: 1;
}

.theme-toggle[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px rgba(126, 165, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.theme-toggle[aria-pressed="true"] .theme-toggle__icon {
  filter: drop-shadow(0 0 8px rgba(62, 162, 255, 0.4));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.surface {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-outline);
  padding: clamp(18px, 4vw, 28px);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.surface--strong {
  background: var(--bg-strong);
  border-color: rgba(126, 165, 255, 0.3);
}

.surface--accent {
  background: linear-gradient(180deg, rgba(14, 28, 46, 0.86), rgba(18, 32, 52, 0.86));
  border-color: rgba(99, 240, 193, 0.22);
  box-shadow: var(--shadow-soft), 0 0 34px rgba(99, 240, 193, 0.18);
}

.section-title {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.section-subtitle {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.layout-grid {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.layout-grid--split {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.stat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat-chip {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(126, 165, 255, 0.22);
  background: rgba(10, 20, 34, 0.75);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-chip__label {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(169, 201, 255, 0.75);
}

.stat-chip__value {
  font-size: 15px;
  font-weight: 600;
}

.stat-chip--accent {
  border-color: rgba(99, 240, 193, 0.35);
  background: rgba(9, 28, 30, 0.78);
  color: #dffef3;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.list__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
}

.list__icon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #63f0c1, #3ea2ff);
  margin-top: 6px;
  box-shadow: 0 0 10px rgba(99, 240, 193, 0.35);
}

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

.pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(126, 165, 255, 0.25);
  background: rgba(10, 20, 32, 0.72);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pill--accent {
  border-color: rgba(99, 240, 193, 0.4);
  color: var(--accent);
  background: rgba(9, 30, 24, 0.9);
}

.contact-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.contact-card {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(126, 165, 255, 0.26);
  background: rgba(12, 20, 34, 0.75);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: rgba(99, 240, 193, 0.45);
  transform: translateY(-2px);
}

.contact-card__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-card__label strong {
  font-size: 14px;
}

.contact-card__label span {
  font-size: 12px;
  color: var(--text-muted);
}

.contact-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(99, 240, 193, 0.22), rgba(62, 162, 255, 0.2));
  color: var(--accent);
  font-size: 18px;
}

/* ===== Light theme adjustments ===== */

:root[data-theme="light"] body::after {
  mix-blend-mode: normal;
  opacity: 0.9;
}

:root[data-theme="light"] .app-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(238, 244, 255, 0.92));
  border-color: rgba(170, 190, 250, 0.45);
  box-shadow: 0 20px 48px rgba(62, 92, 150, 0.16);
}

:root[data-theme="light"] .btn--ghost {
  background: rgba(255, 255, 255, 0.86);
  color: var(--text-strong);
  border-color: rgba(165, 190, 250, 0.4);
  box-shadow: inset 0 0 0 1px rgba(99, 240, 193, 0.12);
}

:root[data-theme="light"] .btn--ghost:hover {
  border-color: rgba(126, 165, 255, 0.5);
  color: var(--text-strong);
}

:root[data-theme="light"] .badge {
  background: rgba(99, 240, 193, 0.16);
  color: #0f7055;
}

:root[data-theme="light"] .clock {
  color: rgba(44, 64, 110, 0.85);
}

:root[data-theme="light"] .surface {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(174, 196, 255, 0.4);
  box-shadow: 0 20px 40px rgba(70, 96, 150, 0.12);
}

:root[data-theme="light"] .surface--strong {
  background: rgba(245, 249, 255, 0.96);
  border-color: rgba(170, 192, 255, 0.46);
}

:root[data-theme="light"] .surface--accent {
  background: linear-gradient(180deg, rgba(227, 239, 255, 0.95), rgba(208, 229, 255, 0.95));
  border-color: rgba(140, 188, 255, 0.36);
  box-shadow: 0 24px 50px rgba(80, 126, 192, 0.16);
}

:root[data-theme="light"] .stat-chip {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(174, 196, 255, 0.5);
  color: var(--text-strong);
}

:root[data-theme="light"] .stat-chip__label {
  color: rgba(70, 96, 160, 0.72);
}

:root[data-theme="light"] .stat-chip--accent {
  background: rgba(221, 247, 236, 0.96);
  border-color: rgba(52, 168, 126, 0.38);
  color: #0d6048;
}

:root[data-theme="light"] .list__item {
  color: rgba(74, 88, 128, 0.92);
}

:root[data-theme="light"] .list__icon {
  box-shadow: 0 0 10px rgba(62, 162, 255, 0.28);
}

:root[data-theme="light"] .pill {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(172, 196, 250, 0.46);
  color: var(--text-muted);
}

:root[data-theme="light"] .pill--accent {
  background: rgba(221, 245, 236, 0.98);
  color: #0f7055;
  border-color: rgba(62, 170, 128, 0.4);
}

:root[data-theme="light"] .contact-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(168, 194, 255, 0.42);
}

:root[data-theme="light"] .contact-card__label span {
  color: rgba(88, 104, 148, 0.82);
}

:root[data-theme="light"] .contact-card__icon {
  background: linear-gradient(135deg, rgba(99, 240, 193, 0.16), rgba(62, 162, 255, 0.16));
  color: #1f7c60;
}

:root[data-theme="light"] .panel {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(172, 198, 255, 0.5);
  box-shadow: 0 26px 56px rgba(70, 102, 164, 0.18);
}

:root[data-theme="light"] .panel__logo img {
  filter: drop-shadow(0 0 14px rgba(255, 214, 116, 0.35));
}

:root[data-theme="light"] .meta-bar {
  color: rgba(80, 94, 134, 0.9);
}

:root[data-theme="light"] .meta-bar .chip {
  background: rgba(236, 242, 255, 0.96);
  border-color: rgba(170, 194, 250, 0.4);
}

:root[data-theme="light"] .alert {
  background: rgba(255, 228, 236, 0.95);
  border-color: rgba(236, 128, 148, 0.48);
  color: #a02242;
}

:root[data-theme="light"] .timeline__item {
  background: rgba(248, 250, 255, 0.96);
  border-color: rgba(170, 194, 250, 0.4);
}

:root[data-theme="light"] .timeline__meta {
  color: rgba(84, 104, 150, 0.82);
}

:root[data-theme="light"] .game-card {
  background: rgba(248, 251, 255, 0.96);
  border-color: rgba(168, 194, 255, 0.4);
  box-shadow: 0 18px 36px rgba(72, 98, 156, 0.14);
}

:root[data-theme="light"] .game-card:hover {
  box-shadow: 0 20px 44px rgba(82, 118, 182, 0.18);
}

:root[data-theme="light"] .game-card__tag {
  background: rgba(235, 243, 255, 0.92);
  border-color: rgba(120, 180, 255, 0.4);
  color: rgba(56, 88, 150, 0.85);
}

:root[data-theme="light"] .game-card__desc {
  color: rgba(84, 98, 140, 0.86);
}

:root[data-theme="light"] .balance-banner {
  background: linear-gradient(140deg, rgba(227, 242, 239, 0.95), rgba(228, 238, 255, 0.95));
  border-color: rgba(120, 200, 188, 0.35);
}

:root[data-theme="light"] .balance-banner__label {
  color: rgba(70, 100, 150, 0.75);
}

:root[data-theme="light"] .action-list a {
  background: rgba(244, 248, 255, 0.96);
  border-color: rgba(174, 198, 255, 0.42);
}

:root[data-theme="light"] .feed__item {
  background: rgba(244, 248, 255, 0.96);
  border-color: rgba(170, 194, 250, 0.4);
}

:root[data-theme="light"] .tag {
  background: rgba(120, 200, 180, 0.16);
  color: #176e56;
}

:root[data-theme="light"] .footer {
  color: rgba(84, 98, 140, 0.8);
}

:root[data-theme="light"] .form-field label {
  color: rgba(84, 106, 168, 0.78);
}

:root[data-theme="light"] .form-field input,
:root[data-theme="light"] .form-field select {
  background: rgba(240, 244, 255, 0.98);
  border-color: rgba(174, 198, 255, 0.48);
  color: var(--text-strong);
}

:root[data-theme="light"] .helper-row {
  color: rgba(80, 96, 138, 0.9);
}

:root[data-theme="light"] .helper-row a {
  color: #1d7c60;
}

.panel {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.panel.show {
  opacity: 1;
  transform: translateY(0);
}

.panel__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.panel__logo img {
  max-height: 60px;
  filter: drop-shadow(0 0 18px rgba(255, 214, 116, 0.4));
}


.meta-bar {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.meta-bar .chip {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(10, 20, 30, 0.72);
  border: 1px solid rgba(126, 165, 255, 0.24);
}

/* ===== Login lite layout ===== */
body.login-lite {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(28px, 7vw, 48px) clamp(18px, 6vw, 32px);
  background:
    radial-gradient(520px 520px at 12% -8%, rgba(126, 165, 255, 0.16), transparent 70%),
    radial-gradient(460px 460px at 88% 110%, rgba(99, 240, 193, 0.18), transparent 78%),
    linear-gradient(180deg, #060b16 0%, #0b1424 100%);
  color: #e8f2ff;
  font-family: 'Inter', 'Poppins', 'Segoe UI', sans-serif;
  overflow: hidden;
  touch-action: manipulation;
  overscroll-behavior: contain;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.login-lite__wrapper {
  width: min(360px, 100%);
}

.login-lite__card {
  background: rgba(8, 14, 28, 0.92);
  border: 1px solid rgba(126, 165, 255, 0.22);
  border-radius: 22px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.48);
  padding: 26px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-lite__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.login-lite__badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffe88c, #ffb25a);
  color: #291100;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-family: 'Orbitron', 'Roboto Mono', monospace;
  box-shadow: 0 18px 36px rgba(255, 176, 82, 0.35);
}

.login-lite__titles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.login-lite__title {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
}

.login-lite__subtitle {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(170, 194, 238, 0.78);
}

.login-lite__display {
  font-family: 'Orbitron', 'Roboto Mono', monospace;
  border-radius: 16px;
  border: 1px solid rgba(99, 240, 193, 0.28);
  background: rgba(9, 16, 30, 0.86);
  padding: 16px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #f2f7ff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.login-lite__display--error {
  border-color: rgba(255, 107, 138, 0.65);
  background: rgba(58, 12, 24, 0.85);
}

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

.login-lite__keypad button {
  appearance: none;
  border: none;
  border-radius: 14px;
  height: 56px;
  font-size: 20px;
  font-weight: 600;
  color: #f7fbff;
  background: linear-gradient(180deg, rgba(32, 46, 70, 0.9), rgba(18, 28, 42, 0.9));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  touch-action: manipulation;
}

.login-lite__keypad button:active {
  transform: translateY(1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.login-lite__keypad button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
}

.login-lite__keypad button[data-action="back"] {
  font-size: 18px;
  background: rgba(10, 18, 32, 0.92);
  border: 1px solid rgba(126, 165, 255, 0.26);
}

.login-lite__keypad button[data-action="submit"] {
  font-size: 14px;
  letter-spacing: 0.18em;
  background: linear-gradient(135deg, #63f0c1, #3ea2ff);
  color: #062129;
  box-shadow: 0 14px 26px rgba(62, 162, 255, 0.32);
}

.login-lite__keypad--locked button {
  opacity: 0.35;
  pointer-events: none;
}

.login-lite__helper {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: rgba(178, 197, 234, 0.88);
}

.login-lite__info {
  margin: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(126, 165, 255, 0.68);
}

@media (max-width: 360px) {
  .login-lite__card {
    padding: 22px 18px 24px;
    gap: 18px;
  }

  .login-lite__keypad button {
    height: 52px;
  }
}

@media (min-width: 480px) {
  body.login-lite {
    padding: 52px 36px;
  }
}

:root[data-theme="light"] body.login-lite {
  background:
    radial-gradient(520px 520px at 12% -10%, rgba(148, 189, 255, 0.22), transparent 70%),
    radial-gradient(460px 460px at 88% 108%, rgba(140, 226, 203, 0.2), transparent 78%),
    linear-gradient(180deg, #f4f7ff 0%, #e7edff 100%);
  color: #14213d;
}

:root[data-theme="light"] .login-lite__card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(140, 166, 230, 0.32);
  box-shadow: 0 18px 32px rgba(74, 102, 156, 0.16);
}

:root[data-theme="light"] .login-lite__badge {
  background: linear-gradient(135deg, #ffeaba, #ffc46d);
  color: #3a2100;
  box-shadow: 0 14px 26px rgba(255, 192, 112, 0.28);
}

:root[data-theme="light"] .login-lite__display {
  background: rgba(240, 244, 255, 0.95);
  border-color: rgba(140, 166, 230, 0.34);
  color: #0e1d34;
}

:root[data-theme="light"] .login-lite__display--error {
  background: rgba(255, 228, 232, 0.96);
  border-color: rgba(255, 150, 170, 0.52);
  color: #7e1d34;
}

:root[data-theme="light"] .login-lite__keypad button {
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.95), rgba(226, 232, 248, 0.95));
  color: #10233f;
  box-shadow: 0 10px 20px rgba(118, 142, 196, 0.16);
}

:root[data-theme="light"] .login-lite__keypad button[data-action="back"] {
  background: rgba(234, 240, 255, 0.96);
  border-color: rgba(150, 178, 240, 0.38);
}

:root[data-theme="light"] .login-lite__keypad button[data-action="submit"] {
  color: #041423;
  box-shadow: 0 12px 22px rgba(80, 170, 255, 0.24);
}

:root[data-theme="light"] .login-lite__helper {
  color: rgba(70, 88, 130, 0.85);
}

:root[data-theme="light"] .login-lite__info {
  color: rgba(86, 108, 156, 0.68);
}

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 107, 138, 0.35);
  background: rgba(44, 10, 18, 0.85);
  color: #ffb8c6;
  font-size: 13px;
  margin-bottom: 12px;
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.timeline__item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(126, 165, 255, 0.18);
  background: rgba(10, 20, 34, 0.78);
  display: grid;
  gap: 6px;
}

.timeline__meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.timeline__title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.game-grid {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.game-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(126, 165, 255, 0.25);
  background: rgba(11, 20, 32, 0.78);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 240, 193, 0.5);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.game-card__image {
  position: relative;
  padding-bottom: 56%;
  overflow: hidden;
}

.game-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
}

.game-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(9, 24, 32, 0.86);
  border: 1px solid rgba(99, 240, 193, 0.35);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-card__body {
  padding: 18px;
  display: grid;
  gap: 10px;
  flex: 1;
}

.game-card__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.game-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.game-card__cta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.balance-banner {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99, 240, 193, 0.35);
  background: linear-gradient(120deg, rgba(9, 26, 24, 0.9), rgba(10, 24, 36, 0.9));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.balance-banner__label {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(169, 255, 225, 0.72);
}

.balance-banner__value {
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.action-panel {
  display: grid;
  gap: 14px;
}

.action-panel__title {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(169, 201, 255, 0.75);
}

.action-list {
  display: grid;
  gap: 10px;
}

.action-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(126, 165, 255, 0.2);
  background: rgba(9, 19, 32, 0.78);
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
  font-size: 13px;
}

.action-list a:hover {
  border-color: rgba(99, 240, 193, 0.45);
  transform: translateX(2px);
}

.feed {
  display: grid;
  gap: 12px;
}

.feed__item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(126, 165, 255, 0.18);
  background: rgba(10, 18, 30, 0.75);
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.55;
}

.feed__item strong {
  font-size: 14px;
  letter-spacing: 0.08em;
}

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

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(99, 240, 193, 0.14);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.footer {
  margin-top: auto;
  text-align: center;
  font-size: 12px;
  color: rgba(159, 179, 217, 0.7);
  padding: 10px 0 0;
}

.footer strong {
  color: var(--accent);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(169, 201, 255, 0.75);
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(126, 165, 255, 0.28);
  background: rgba(9, 18, 32, 0.85);
  color: var(--text-strong);
  font-size: 15px;
  font-family: "Inter", system-ui, sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus {
  border-color: rgba(99, 240, 193, 0.55);
  box-shadow: 0 0 0 1px rgba(99, 240, 193, 0.3);
  outline: none;
}

.helper-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.helper-row a {
  color: var(--accent);
  text-decoration: none;
}

.helper-row a:hover {
  text-decoration: underline;
}

.faded {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.icon-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(99, 240, 193, 0.18);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.clock {
  font-family: "Roboto Mono", ui-monospace;
  font-size: 14px;
  color: rgba(169, 255, 225, 0.8);
  letter-spacing: 0.12em;
}

.grid-two {
  display: grid;
  gap: clamp(16px, 3vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (max-width: 720px) {
  body {
    padding-bottom: 40px;
  }

  .app-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .header-actions {
    justify-content: center;
  }

  .screen {
    font-size: 16px;
  }

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

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .game-card__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brand__title {
    font-size: 18px;
  }

  .brand__subtitle {
    letter-spacing: 0.26em;
  }

  .panel__header {
    gap: 6px;
  }

  .screen {
    letter-spacing: 0.18em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body.has-mobile-nav {
  padding-bottom: calc(var(--mobile-nav-height, 76px) + env(safe-area-inset-bottom));
}

body.drawer-open {
  overflow: hidden;
}

.mobile-nav {
  --mobile-nav-height: 76px;
  position: fixed;
  left: 50%;
  bottom: clamp(12px, 4vw, 24px);
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 32px));
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(12, 20, 32, 0.94), rgba(9, 16, 28, 0.86));
  border: 1px solid var(--glass-outline);
  box-shadow: var(--shadow-soft);
  z-index: 85;
  pointer-events: auto;
}

:root[data-theme="light"] .mobile-nav {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(242, 247, 255, 0.9));
}

.mobile-nav__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav__item {
  border-radius: 20px;
  overflow: hidden;
}

.mobile-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text-muted);
  background: transparent;
  transition: var(--transition);
}

.mobile-nav__icon {
  font-size: 18px;
}

.mobile-nav__item.is-active .mobile-nav__link {
  color: var(--text-strong);
  background: linear-gradient(140deg, rgba(99, 240, 193, 0.18), rgba(118, 185, 255, 0.22));
  box-shadow: inset 0 0 0 1px rgba(99, 240, 193, 0.35);
}

:root[data-theme="light"] .mobile-nav__item.is-active .mobile-nav__link {
  background: linear-gradient(140deg, rgba(99, 240, 193, 0.22), rgba(118, 185, 255, 0.32));
  box-shadow: inset 0 0 0 1px rgba(118, 185, 255, 0.45);
}

@media (max-width: 460px) {
  .mobile-nav {
    width: min(480px, calc(100vw - 24px));
    border-radius: 24px;
  }

  .mobile-nav__link {
    font-size: 11px;
  }
}

.support-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.support-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.support-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 14, 0.65);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.support-drawer.is-open .support-drawer__backdrop {
  opacity: 1;
}

.support-drawer__panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 24px);
  width: min(520px, calc(100vw - 24px));
  padding: 28px clamp(20px, 6vw, 34px) calc(28px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 16px 16px;
  background: linear-gradient(170deg, rgba(12, 20, 36, 0.95), rgba(7, 12, 22, 0.94));
  border: 1px solid var(--glass-outline);
  box-shadow: var(--shadow-strong);
  color: var(--text-strong);
  transition: transform 0.28s ease;
}

:root[data-theme="light"] .support-drawer__panel {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 255, 0.96));
}

.support-drawer.is-open .support-drawer__panel {
  transform: translate(-50%, 0);
}

.support-drawer__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-outline);
  background: transparent;
  color: inherit;
  font-size: 16px;
  cursor: pointer;
}

.support-drawer__header {
  margin-bottom: 22px;
  padding-right: 42px;
}

.support-drawer__header h2 {
  margin: 0 0 6px;
  font-size: clamp(20px, 5vw, 24px);
}

.support-drawer__header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.support-drawer__group {
  margin-bottom: 22px;
}

.support-drawer__group-title {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.support-drawer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-drawer__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(99, 240, 193, 0.08));
  border: 1px solid rgba(99, 240, 193, 0.12);
  transition: var(--transition);
}

:root[data-theme="light"] .support-drawer__link {
  background: linear-gradient(160deg, rgba(99, 240, 193, 0.16), rgba(118, 185, 255, 0.12));
  border-color: rgba(118, 185, 255, 0.25);
}

.support-drawer__link:hover,
.support-drawer__link:focus-visible {
  border-color: rgba(99, 240, 193, 0.36);
  transform: translateY(-1px);
}

.support-drawer__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(99, 240, 193, 0.14);
  font-size: 20px;
}

.support-drawer__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.support-drawer__label {
  font-size: 15px;
  font-weight: 600;
}

.support-drawer__hint {
  font-size: 13px;
  color: var(--text-soft);
}

.support-drawer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-drawer__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(118, 185, 255, 0.18);
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: var(--transition);
  border: 1px solid transparent;
}

.support-drawer__chip:hover,
.support-drawer__chip:focus-visible {
  border-color: rgba(118, 185, 255, 0.45);
  transform: translateY(-1px);
}

@media (max-width: 540px) {
  .support-drawer__panel {
    width: min(480px, calc(100vw - 18px));
  }

  .support-drawer__link {
    padding: 12px 14px;
  }
}

/* Admin dashboard */

.admin-dashboard {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 36px);
}

.admin-hero {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vw, 28px);
}

.filter-panel {
  border: 1px solid rgba(126, 165, 255, 0.26);
  border-radius: var(--radius-md);
  background: rgba(9, 18, 32, 0.82);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.filter-panel summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 22px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(169, 201, 255, 0.78);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-panel summary::after {
  content: '▾';
  font-size: 16px;
  transition: transform 0.2s ease;
}

.filter-panel[open] summary::after {
  transform: rotate(180deg);
}

.filter-panel summary::-webkit-details-marker {
  display: none;
}

.filter-panel__form {
  display: grid;
  gap: 18px;
  padding: 0 22px 22px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.filter-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.filter-panel[open] summary {
  border-bottom: 1px solid rgba(126, 165, 255, 0.2);
}

.admin-hero__header {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.admin-hero h1 {
  margin: 0;
  font-size: clamp(24px, 5vw, 34px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-hero p {
  margin: 0;
  max-width: 540px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
}

.summary-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.summary-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(126, 165, 255, 0.24);
  background: linear-gradient(160deg, rgba(9, 18, 32, 0.86), rgba(12, 26, 40, 0.9));
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
}

.summary-card__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(169, 201, 255, 0.72);
}

.summary-card__value {
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(20px, 4vw, 28px);
  color: var(--text-strong);
  letter-spacing: 0.08em;
}

.summary-card__hint {
  color: var(--text-soft);
  font-size: 13px;
}

.command-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.command-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(126, 165, 255, 0.28);
  background: rgba(10, 20, 36, 0.78);
  color: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.command-chip:hover,
.command-chip:focus-visible {
  border-color: rgba(99, 240, 193, 0.45);
  transform: translateY(-1px);
}

.command-chip__icon {
  font-size: 18px;
  line-height: 1;
}

.command-chip[data-variant="primary"] {
  background: linear-gradient(135deg, rgba(99, 240, 193, 0.2), rgba(62, 162, 255, 0.18));
  border-color: rgba(99, 240, 193, 0.45);
}

.command-chip[data-variant="danger"] {
  border-color: rgba(255, 107, 138, 0.32);
  background: rgba(46, 16, 28, 0.75);
  color: #ffb5c5;
}

.code-widget {
  display: grid;
  gap: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(126, 165, 255, 0.24);
  background: linear-gradient(160deg, rgba(9, 22, 34, 0.88), rgba(8, 18, 30, 0.9));
  box-shadow: var(--shadow-soft);
  padding: clamp(18px, 4vw, 26px);
}

.code-widget__display {
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(22px, 4.8vw, 30px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 240, 193, 0.32);
  background: linear-gradient(180deg, rgba(12, 26, 24, 0.9), rgba(9, 20, 18, 0.88));
  padding: 16px 18px;
  color: #b9ffe4;
  box-shadow: inset 0 0 22px rgba(99, 240, 193, 0.18);
}

.code-widget__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.code-widget__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.btn--compact {
  padding: 10px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.input-slim {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(126, 165, 255, 0.28);
  background: rgba(9, 18, 32, 0.85);
  color: var(--text-strong);
  font-family: "Roboto Mono", ui-monospace;
  letter-spacing: 0.04em;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-slim:focus {
  border-color: rgba(99, 240, 193, 0.55);
  box-shadow: 0 0 0 1px rgba(99, 240, 193, 0.3);
  outline: none;
}

.data-table {
  overflow-x: auto;
}

.data-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  min-width: 640px;
}

.data-table thead th {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 0 18px 6px;
}

.data-table tbody tr {
  background: linear-gradient(180deg, rgba(9, 18, 32, 0.92), rgba(6, 12, 20, 0.9));
  border-radius: var(--radius-md);
  border: 1px solid rgba(126, 165, 255, 0.2);
  box-shadow: var(--shadow-soft);
}

.data-table tbody td {
  padding: 16px 18px;
  vertical-align: top;
  color: var(--text-strong);
}

.data-table tbody tr:hover {
  border-color: rgba(99, 240, 193, 0.38);
}

.data-table__code {
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
}

.data-table__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(126, 165, 255, 0.25);
  background: rgba(8, 16, 30, 0.86);
  font-size: 13px;
}

.row-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row-actions__panel {
  display: none;
  gap: 12px;
}

.row-actions.is-open .row-actions__panel {
  display: grid;
}

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

.row-actions__panel form[data-layout="stack"] {
  grid-template-columns: 1fr;
}

.table-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  color: var(--text-soft);
}

.pager {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.pager__info {
  font-size: 13px;
  color: var(--text-soft);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 18, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 980;
}

.sheet-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(9, 18, 30, 0.98), rgba(5, 12, 20, 0.96));
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(126, 165, 255, 0.28);
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.55);
  transform: translateY(100%);
  transition: transform 0.32s ease;
  z-index: 990;
  overflow: hidden;
}

.sheet.is-open {
  transform: translateY(0);
}

.sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 12px;
}

.sheet__title {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sheet__body {
  padding: 0 22px 24px;
  overflow-y: auto;
}

.sheet__list {
  display: grid;
  gap: 12px;
}

.sheet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(126, 165, 255, 0.24);
  background: rgba(10, 20, 36, 0.82);
}

.sheet-item__meta {
  display: grid;
  gap: 4px;
  font-family: "Roboto Mono", ui-monospace;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.sheet__empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-soft);
  font-size: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 18px);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 240, 193, 0.32);
  background: rgba(8, 18, 28, 0.92);
  color: var(--text-strong);
  font-size: 14px;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 995;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 960px) {
  .code-widget {
    grid-template-columns: 1.2fr 1fr;
  }

  .row-actions__panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .row-actions__panel form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sheet {
    left: 50%;
    right: auto;
    bottom: 50%;
    transform: translate(0, 120%);
    border-radius: 24px;
    max-height: 70vh;
    width: min(520px, 92vw);
  }

  .sheet.is-open {
    transform: translate(-50%, 50%);
  }
}

@media (max-width: 760px) {
  .data-table table {
    min-width: 0;
    border-spacing: 0 10px;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody tr {
    display: grid;
    gap: 12px;
    padding: 14px;
  }

  .data-table tbody td {
    padding: 0;
  }

  .data-table tbody td::before {
    content: attr(data-cell-label);
    display: block;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(169, 201, 255, 0.7);
    margin-bottom: 4px;
  }

  .row-actions__panel form {
    grid-template-columns: 1fr;
  }

  .table-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

:root[data-theme="light"] .summary-card {
  background: linear-gradient(160deg, rgba(244, 248, 255, 0.96), rgba(232, 240, 255, 0.96));
  border-color: rgba(168, 194, 255, 0.4);
}

:root[data-theme="light"] .command-chip {
  background: rgba(244, 248, 255, 0.96);
  border-color: rgba(168, 194, 255, 0.4);
}

:root[data-theme="light"] .filter-panel {
  background: rgba(244, 248, 255, 0.98);
  border-color: rgba(174, 198, 255, 0.45);
}

:root[data-theme="light"] .filter-panel summary {
  color: rgba(84, 106, 168, 0.8);
}

:root[data-theme="light"] .command-chip[data-variant="danger"] {
  background: rgba(255, 230, 236, 0.94);
  border-color: rgba(255, 140, 180, 0.38);
  color: #c24a68;
}

:root[data-theme="light"] .code-widget {
  background: linear-gradient(160deg, rgba(244, 248, 255, 0.96), rgba(230, 240, 255, 0.96));
  border-color: rgba(168, 194, 255, 0.4);
}

:root[data-theme="light"] .code-widget__display {
  background: linear-gradient(180deg, rgba(226, 244, 240, 0.96), rgba(216, 236, 230, 0.96));
  border-color: rgba(120, 200, 180, 0.4);
  color: #145945;
}

:root[data-theme="light"] .input-slim {
  background: rgba(240, 244, 255, 0.98);
  border-color: rgba(174, 198, 255, 0.48);
  color: var(--text-strong);
}

:root[data-theme="light"] .data-table tbody tr {
  background: rgba(244, 248, 255, 0.98);
  border-color: rgba(174, 198, 255, 0.4);
}

:root[data-theme="light"] .data-table__badge {
  background: rgba(244, 248, 255, 0.96);
  border-color: rgba(174, 198, 255, 0.38);
}

:root[data-theme="light"] .sheet {
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.98), rgba(236, 242, 255, 0.98));
  border-color: rgba(174, 198, 255, 0.45);
}

:root[data-theme="light"] .sheet-item {
  background: rgba(240, 246, 255, 0.96);
  border-color: rgba(174, 198, 255, 0.42);
}

:root[data-theme="light"] .sheet__empty {
  color: rgba(86, 106, 148, 0.82);
}

:root[data-theme="light"] .toast {
  background: rgba(244, 248, 255, 0.96);
  border-color: rgba(168, 194, 255, 0.42);
  color: var(--text-strong);
}
