@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;700;800&display=swap');

:root {
  --font-ui: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Unbounded', 'Manrope', sans-serif;

  --tg-bg: #041107;
  --tg-text: #101513;
  --tg-hint: #6e776f;
  --tg-link: #54cf66;
  --tg-button: #52cd64;
  --tg-button-text: #ffffff;
  --tg-secondary-bg: #f2f5f1;

  --bg: #04110b;
  --bg-soft: #0d2418;
  --bg-accent: #0f3521;
  --card: #ffffff;
  --card-soft: #f3f8f4;
  --text: #111d15;
  --muted: #637364;
  --accent: #3dd46c;
  --accent-dark: #1f9a4a;
  --accent-soft: #dbf7e4;
  --accent-soft-strong: #c3efcf;
  --accent-sun: #f4ba3a;
  --red: #d74d4d;
  --line: #dce8dd;
  --line-strong: #c8d8c9;
  --shadow: 0 16px 34px rgba(2, 22, 11, 0.2);
  --shadow-soft: 0 16px 32px rgba(2, 22, 11, 0.12);
  --shadow-strong: 0 24px 54px rgba(2, 22, 11, 0.2);
  --card-glow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-ui);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(244, 186, 58, 0.2), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(48, 170, 86, 0.34), transparent 30%),
    radial-gradient(circle at 10% 28%, rgba(32, 91, 57, 0.28), transparent 34%),
    linear-gradient(180deg, #05160d 0%, #020806 42%, #04120a 100%);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 16%, rgba(255, 255, 255, 0.12), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(255, 255, 255, 0.08), transparent 26%);
  mix-blend-mode: soft-light;
  opacity: 0.6;
}

a {
  color: var(--tg-link);
}

.hidden {
  display: none !important;
}

.wrap {
  width: min(920px, calc(100% - 24px));
  margin: 20px auto 44px;
}

.card {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.hero-card {
  background: linear-gradient(140deg, #131313, #1d1d1d);
  color: #f5f5f4;
  border-color: rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
}

.brand-logo {
  display: block;
  width: 134px;
  height: auto;
  object-fit: contain;
  filter: brightness(1.02);
}

.hero-description {
  margin: 12px 0 0;
  max-width: 700px;
  color: var(--tg-text); opacity: 0.85;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h2,
h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 700;
}

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

.error {
  color: #dc2626;
  font-weight: 700;
}

.success {
  color: #16a34a;
  font-weight: 700;
}

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

.row > * {
  flex: 1 1 220px;
}

.stack,
.stack-md,
.stack-lg,
.list {
  display: grid;
}

.stack,
.stack-md,
.list {
  gap: 10px;
}

.stack-lg {
  gap: 12px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

input,
select,
textarea,
button {
  width: 100%;
  font: inherit;
}

input,
select,
textarea {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(0, 146, 70, 0.18);
  border-color: #74c69d;
}

button {
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.08s ease, opacity 0.2s ease;
}

@media (hover: hover) {
  button:hover {
    opacity: 0.96;
  }
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-dark,
.action-btn-dark {
  background: #1a1a1a;
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: #f5f5f4;
  color: var(--tg-text);
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.item {
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  padding: 11px;
  background: #fff;
  display: grid;
  gap: 6px;
}

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

.stats-grid .item {
  background: #fafaf9;
}

.stats-grid h2 {
  margin: 3px 0 0;
  font-size: 31px;
  line-height: 1;
  font-family: var(--font-display);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge.ok {
  background: #dcfce7;
  color: #166534;
}

.badge.warn {
  background: #f5f5f4;
  color: var(--tg-hint);
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid #e7e5e4;
  padding: 9px 6px;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

th {
  color: var(--tg-hint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

small {
  color: var(--tg-hint);
}

code {
  border-radius: 6px;
  background: #f5f5f4;
  padding: 2px 6px;
}

.footer-note {
  text-align: center;
  color: var(--tg-hint);
  font-size: 12px;
  margin-top: 8px;
}

/* Mini app screens (index.php) */
.miniapp {
  min-height: 100%;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.mini-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 0;
  border-radius: 0 0 22px 22px;
  backdrop-filter: blur(16px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(6, 25, 15, 0.92), rgba(4, 16, 10, 0.86));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.mini-header-inner {
  position: relative;
  padding: 14px 16px;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.icon-btn {
  position: absolute;
  left: 12px;
  top: 18px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0;
}

.icon-btn svg,
.hero-step-arrow svg,
.action-btn-icon svg,
.small-btn-icon svg,
.map-link-icon svg,
.result-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-btn {
  width: auto;
  background: transparent;
  border-radius: 999px;
  padding: 4px 0;
  color: #fff;
}

.mini-location {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.mini-main {
  flex: 1;
  padding: 14px;
}

.miniapp .small-text {
  font-size: 13px;
  line-height: 1.45;
}

.screen {
  display: none;
  gap: 14px;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.screen.active {
  display: grid;
  opacity: 1;
  transform: scale(1);
}

.hero-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 190px;
  border: 2px solid rgba(255, 255, 255, 0.14);
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.hero-overlay h1 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.04;
  text-transform: uppercase;
}

.panel-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.9)),
    rgba(255, 255, 255, 0.92);
  color: var(--text);
  border-radius: 26px;
  border: 1px solid rgba(218, 231, 220, 0.96);
  padding: 16px;
  box-shadow:
    var(--card-glow),
    0 14px 30px rgba(2, 22, 11, 0.1),
    0 2px 0 rgba(255, 255, 255, 0.7) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.panel-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0) 36%);
  pointer-events: none;
}

@media (hover: hover) {
  .screen.active .panel-card:hover {
    transform: translateY(-2px);
    box-shadow:
      var(--card-glow),
      0 20px 36px rgba(2, 22, 11, 0.14),
      0 2px 0 rgba(255, 255, 255, 0.74) inset;
  }
}

.device-only-card {
  text-align: center;
}

.device-only-card h3 {
  margin-bottom: 8px;
}

.device-only-card .action-btn {
  margin-top: 10px;
}

.hero-primary-card {
  position: relative;
  background:
    radial-gradient(circle at 102% -6%, rgba(244, 186, 58, 0.22), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(54, 180, 95, 0.34), transparent 26%),
    linear-gradient(180deg, rgba(4, 17, 11, 0.15) 0%, rgba(2, 8, 5, 0.7) 68%, rgba(2, 8, 5, 0.88) 100%),
    url('luxwash-main-hero.jpg');
  background-size: auto, auto, auto, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -40px 70px rgba(1, 8, 4, 0.28),
    0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-primary-card::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 32%);
}

.hero-primary-card::after {
  content: '';
  position: absolute;
  inset: -30% auto auto 45%;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
  pointer-events: none;
  transform: rotate(-12deg);
}

.hero-kicker {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 900;
}

.hero-main-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 35px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero-name-prefix {
  text-transform: none;
}

.hero-greeting {
  margin: 0 0 8px;
  color: #a4f2b2;
  font-size: 14px;
  font-weight: 800;
}

.hero-main-subtitle {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.4;
  font-size: 15px;
  font-weight: 600;
}

.hero-prize-line {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 4px;
}

.hero-proof-item {
  padding: 10px 10px 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-proof-item strong {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}

.hero-proof-item span {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}

.hero-live-line {
  margin-bottom: 12px;
  color: #fecaca;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.hero-live-line a {
  color: #7dd3fc;
  text-decoration: none;
}

.hero-primary-card .promo-muted {
  color: rgba(255, 255, 255, 0.68);
}

.hero-primary-card .count-box {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.hero-primary-card .count-box strong {
  color: var(--text);
}

.hero-primary-card .count-box span {
  color: var(--muted);
  opacity: 1;
}

.hero-cta-stack {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.hero-cta-stack .action-btn {
  min-height: 56px;
  font-size: 18px;
  line-height: 1;
}

.hero-cta-micro {
  margin: -2px 0 2px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

.hero-inline-note {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(8, 32, 20, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.section-kicker {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.promo-card {
  position: relative;
  overflow: hidden;
}

.promo-badge {
  position: absolute;
  right: 0;
  top: 0;
  border-radius: 0 24px 0 14px;
  background: var(--red);
  color: #fff;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.promo-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.promo-prize-image {
  width: 86px;
  height: 86px;
  border-radius: 14px;
  border: 1px solid #e7e5e4;
  background: #f5f5f4;
  overflow: hidden;
  flex: 0 0 auto;
}

.promo-prize-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-meta h2 {
  margin: 0 0 4px;
  font-size: 19px;
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.1;
}

.promo-live {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.promo-muted {
  margin: 0 0 6px;
  color: var(--tg-hint);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

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

.count-box {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  padding: 8px 4px;
}

.count-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
}

.count-box span {
  color: var(--tg-hint);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
}

.promo-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 6px;
}

.promo-trust-line {
  margin: 4px 0 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.text-link {
  display: inline-block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
}

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

.steps-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.steps-list li span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}

.steps-list li p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  padding: 12px 14px;
  box-shadow: 0 10px 22px rgba(3, 16, 6, 0.06);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.faq-list summary::after {
  content: '+';
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  flex: 0 0 auto;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.faq-list details[open] {
  border-color: #c6e6cc;
  box-shadow: 0 14px 28px rgba(61, 212, 108, 0.14);
  transform: translateY(-1px);
}

.faq-list details[open] summary::after {
  content: '−';
  background: #effaf1;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.map-frame {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--card-soft);
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  box-shadow: 0 10px 24px rgba(3, 16, 6, 0.07);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  border-radius: 18px;
  min-height: 52px;
  font-size: 17px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  border: 0;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background-color 0.22s ease, opacity 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  will-change: transform;
}

.action-btn-green {
  background: linear-gradient(155deg, #58e173 0%, #31c763 55%, #27af58 100%);
  color: var(--tg-button-text);
  box-shadow:
    0 14px 30px rgba(61, 212, 108, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@media (hover: hover) {
  .action-btn-green:hover {
    filter: saturate(1.08) brightness(1.02);
    box-shadow:
      0 18px 36px rgba(61, 212, 108, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.36);
    transform: translateY(-2px);
  }
}

.action-btn:active {
  transform: translateY(1px) scale(0.985);
}

.action-btn:focus-visible,
.small-btn:focus-visible,
.location-btn:focus-visible,
.upload-drop:focus-visible,
.icon-btn:focus-visible {
  outline: 2px solid rgba(82, 205, 100, 0.32);
  outline-offset: 2px;
}

.action-btn-light {
  background: linear-gradient(180deg, #ffffff, #f7fbf8);
  color: var(--text);
  border: 1px solid #d7e5d8;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 10px 22px rgba(3, 16, 6, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

@media (hover: hover) {
  .action-btn-light:hover {
    border-color: #c8ddca;
    box-shadow:
      0 14px 28px rgba(3, 16, 6, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
  }
}

.action-btn:disabled,
.small-btn:disabled {
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}

.action-btn-icon {
  gap: 10px;
}

.action-btn-icon svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.action-btn-secondary-link {
  font-size: 18px;
}

.action-btn-tg {
  margin-top: 10px;
  width: 100%;
  background: linear-gradient(155deg, #58e173 0%, #31c763 55%, #27af58 100%);
  color: #fff;
  font-size: 17px;
  text-transform: none;
  letter-spacing: 0;
}

.bonus-grid {
  margin: 8px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bonus-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #ccefd2;
  background: #edf9ef;
  color: #24863a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bonus-pill-muted {
  border-color: var(--line-strong);
  opacity: 1;
  background: #f4f6f3;
  color: var(--muted);
}

.repeat-cta-btn {
  margin-top: 10px;
}

.sticky-cta-wrap {
  display: none;
}

.small-btn {
  width: auto;
  border-radius: 12px;
  padding: 8px 10px;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(3, 16, 6, 0.05);
  font-size: 12px;
}

@media (hover: hover) {
  .small-btn:hover {
    border-color: var(--line-strong);
    box-shadow: 0 10px 20px rgba(3, 16, 6, 0.08);
    transform: translateY(-1px);
  }
}

.small-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.field-block {
  margin-bottom: 14px;
}

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

.location-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 16px;
  padding: 10px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(3, 16, 6, 0.04);
}

.location-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

@media (hover: hover) {
  .location-btn:hover {
    border-color: #c9ddcb;
    transform: translateY(-1px);
  }
}

.location-btn:active {
  transform: translateY(1px) scale(0.99);
}

.upload-drop {
  display: grid;
  place-items: center;
  border: 2px dashed #cfe0d0;
  border-radius: 24px;
  background: #ffffff;
  min-height: 180px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  overflow: hidden;
  padding: 10px;
  box-shadow: 0 12px 26px rgba(3, 16, 6, 0.06);
}

.upload-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

body.is-wheel-step {
  background:
    radial-gradient(circle at 50% 85%, rgba(0, 123, 255, 0.14), transparent 50%),
    linear-gradient(180deg, #031329 0%, #021027 42%, #021128 100%);
}

body.is-wheel-step::before {
  opacity: 0.2;
}

.is-wheel-step .mini-header {
  display: none;
}

.is-wheel-step .miniapp {
  max-width: 375px;
}

.is-wheel-step .mini-main {
  padding: 0;
}

.wheel-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 39px 24px 24px;
  text-align: center;
  color: #ffffff;
}

.wheel-screen-top {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
}

.wheel-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 0;
  background: rgba(55, 55, 55, 0.7);
  color: #ffffff;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.wheel-icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wheel-spins-pill {
  margin: 0;
  justify-self: center;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #0d0d0d;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wheel-screen h2 {
  margin: 42px 0 6px;
  color: #ffffff;
  text-transform: none;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-family: var(--font-ui);
}

.wheel-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.wheel-spin-btn {
  width: 118px;
  margin: 20px auto 0;
  border-radius: 20px;
  padding: 16px 14px;
  background: linear-gradient(180deg, #2fd358 0%, #0b7f6e 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 34px rgba(11, 127, 110, 0.38);
}

.wheel-spin-btn:disabled {
  opacity: 1;
}

.wheel-wrap {
  position: relative;
  height: 430px;
  margin-top: 22px;
  overflow: hidden;
}

.wheel-stage-shell {
  position: absolute;
  left: 50%;
  bottom: -124px;
  width: 280px;
  height: 280px;
  transform: translateX(-50%) scale(2.14);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.45));
}

.wheel-stage {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  transform-origin: 50% 50%;
  will-change: transform;
}

.wheel-stage canvas {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 3px solid #f7cd4b;
  background: #0f1a30;
  box-shadow:
    0 0 0 2px rgba(255, 120, 215, 0.72),
    0 18px 44px rgba(0, 0, 0, 0.44);
}

.wheel-pointer {
  position: absolute;
  left: 50%;
  top: 58px;
  transform: translateX(-50%);
  width: 34px;
  height: 60px;
  border-radius: 4px 4px 10px 10px;
  background: linear-gradient(180deg, #ffe33a 0%, #eb46d5 52%, #6487ff 100%);
  clip-path: polygon(0 0, 100% 0, 100% 74%, 50% 100%, 0 74%);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28);
  z-index: 3;
}

.wheel-center {
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 3px solid #f37cff;
  background:
    radial-gradient(circle at 40% 35%, #404a63 0%, #1d2230 62%, #11141d 100%);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.16),
    0 12px 24px rgba(0, 0, 0, 0.42);
  z-index: 4;
}

.wheel-result {
  margin: 6px auto 0;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
  animation: wheel-result-reveal 0.35s ease-out;
}

.wheel-result-label {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wheel-result-prize {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.wheel-stage-finished canvas {
  box-shadow:
    0 0 0 2px rgba(255, 120, 215, 0.72),
    0 0 0 12px rgba(255, 216, 107, 0.13),
    0 22px 52px rgba(0, 0, 0, 0.52);
}

@keyframes wheel-result-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.result-card {
  border-top: 5px solid var(--accent);
  background:
    radial-gradient(circle at 50% 0%, rgba(82, 205, 100, 0.14), transparent 30%),
    #ffffff;
  box-shadow: 0 22px 46px rgba(3, 16, 6, 0.14);
}

.ticket-panel {
  background: linear-gradient(180deg, #2d302f, #1a1d1b);
  color: #fff;
  border-radius: 24px;
  padding: 14px;
  margin: 12px 0;
  box-shadow: 0 18px 34px rgba(3, 16, 6, 0.18);
}

.ticket-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #22c55e;
  font-weight: 800;
  margin-bottom: 6px;
}

.ticket-value {
  margin: 0;
  font-size: 34px;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1;
}

.dark-card {
  background: #1a1a1a;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.small-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #22c55e;
  font-weight: 800;
  margin-bottom: 8px;
}

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

.cabinet-tickets {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  margin: 0 0 4px;
}

.history-item {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #d9e8da;
  padding: 12px;
  box-shadow: 0 14px 26px rgba(3, 16, 6, 0.08);
}

.history-thumb {
  width: 82px;
  height: 82px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-soft);
  flex: 0 0 auto;
}

.history-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-content {
  flex: 1;
  display: grid;
  align-content: space-between;
  gap: 4px;
}

.history-date {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.history-prize {
  margin: 0;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
}

.history-ticket {
  margin: 0;
  color: #1d7f48;
  font-size: 11px;
  font-weight: 700;
}

.history-status {
  margin: 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}

.history-status.win {
  color: #0b7c43;
  background: #dcf6e5;
}

.history-status.lose {
  color: #5f6d61;
  background: #ebefec;
}

.history-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.history-empty {
  border: 1px dashed #c6d8c9;
  border-radius: 18px;
  background: #f8fcf9;
  padding: 20px 14px;
  text-align: center;
}

.history-empty-title {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.mini-footer {
  padding: 20px 14px 24px;
  text-align: center;
  color: var(--tg-hint);
  font-size: 11px;
  line-height: 1.5;
}

.mini-footer a {
  color: #22c55e;
  text-decoration: none;
  font-weight: 800;
}

/* --- Hero Steps Inline --- */
.hero-steps-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 16px 0 10px;
  flex-wrap: nowrap;
}

.hero-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.hero-step span {
  min-width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-step p {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin: 0;
  white-space: nowrap;
}

.hero-step-arrow {
  color: rgba(255,255,255,0.46);
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding-bottom: 16px;
}

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

.hero-cta-row .action-btn {
  min-height: 44px;
  font-size: 13px;
}

/* --- Device Only icon --- */
.device-only-icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  margin: 0 auto 12px;
}

/* --- Redesigned Upload Dropzone --- */
.upload-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(82, 205, 100, 0.12), transparent 32%),
    #ffffff;
}

.upload-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.upload-benefit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #edf9ef;
  border: 1px solid #ccefd2;
  color: #24863a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.upload-drop {
  position: relative;
  transition: border-color 0.2s, background 0.2s;
  background:
    radial-gradient(circle at 50% 0%, rgba(82, 205, 100, 0.14), transparent 52%),
    #ffffff;
  border-style: solid;
  border-color: #d7e6d8;
}

.camera-only-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 14px;
}

.upload-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.16)),
    var(--accent-soft);
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 20px rgba(82, 205, 100, 0.14);
}

.upload-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 21, 19, 0.06);
  color: var(--text);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.upload-hint-sub {
  font-size: 11px;
  color: var(--tg-hint);
  font-weight: 500;
}

@media (hover: hover) {
  .upload-drop:hover {
    border-color: #bfe3c4;
    box-shadow: 0 14px 28px rgba(82, 205, 100, 0.08);
    transform: translateY(-1px);
  }
}

.upload-drop:active {
  transform: scale(0.995);
}

.upload-drop:has(.upload-preview:not(.hidden)) .upload-drop-inner {
  display: none;
}

/* --- Checking screen --- */
.checking-card {
  text-align: center;
  padding: 28px 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(82, 205, 100, 0.18), transparent 34%),
    #ffffff;
}

.checking-anim {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.checking-spinner {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 4px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
  box-shadow:
    0 0 0 12px rgba(82, 205, 100, 0.08),
    0 18px 30px rgba(82, 205, 100, 0.14);
}

.checking-scanline {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 114px;
  height: 2px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(82, 205, 100, 0.95), transparent);
  box-shadow: 0 0 18px rgba(82, 205, 100, 0.5);
  animation: scan-line 1.5s ease-in-out infinite;
}

.checking-kicker {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

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

@keyframes scan-line {
  0%, 100% { transform: translate(-50%, -20px); opacity: 0.5; }
  50% { transform: translate(-50%, 20px); opacity: 1; }
}

.checking-steps {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  text-align: left;
}

.checking-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(16, 21, 19, 0.04);
  border: 1px solid rgba(212, 221, 211, 0.8);
  font-size: 14px;
  font-weight: 700;
  color: var(--tg-hint);
  transition: color 0.3s, border-color 0.3s, background-color 0.3s, transform 0.3s;
}

.checking-step[data-state="active"] {
  color: var(--tg-text);
  border-color: #bceac3;
  background: rgba(82, 205, 100, 0.08);
  transform: translateY(-1px);
}

.checking-step[data-state="done"] {
  color: var(--accent);
  border-color: #caedd0;
  background: #edf9ef;
}

.checking-step-text {
  flex: 1 1 auto;
}

.check-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid currentColor;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.checking-step[data-state="active"] .check-dot {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  animation: pulse-dot 0.7s ease-in-out infinite alternate;
}

.checking-step[data-state="done"] .check-dot::after {
  content: '✓';
  font-size: 11px;
  font-weight: 900;
  color: var(--accent);
}

@keyframes pulse-dot {
  from { transform: scale(1); }
  to { transform: scale(1.2); }
}

/* --- Error card --- */
.error-card {
  text-align: center;
  border-top: 4px solid var(--red);
  padding: 24px 18px;
  box-shadow: 0 18px 34px rgba(215, 77, 77, 0.08);
}

.error-tips {
  background: color-mix(in srgb, var(--tg-secondary-bg) 50%, transparent);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  text-align: left;
}

.error-tip-title {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tg-hint);
  margin-bottom: 8px;
}

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

.error-tip-list li {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

/* --- Latest Winners --- */
.winners-card h3 {
  margin-bottom: 8px;
}

.winners-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(82, 205, 100, 0.18), transparent 42%),
    #ffffff;
}

.winners-table-wrap {
  overflow-x: auto;
  border: 1px solid #d8ebda;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(82, 205, 100, 0.12), transparent 40%),
    var(--card-soft);
}

.winners-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 260px;
}

.winners-table th,
.winners-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(20, 25, 20, 0.08);
}

.winners-table th {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tg-hint);
  font-weight: 900;
}

.winners-table td {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.winners-table tbody tr:last-child td {
  border-bottom: 0;
}

.prize-stock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.prize-stock-item {
  border: 1px solid #d8ebda;
  border-radius: 14px;
  padding: 10px 10px 9px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(223, 245, 226, 0.5));
}

.prize-stock-label {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tg-hint);
}

.prize-stock-value {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
}

.prize-stock-note {
  margin: 1px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.prize-overview-card {
  overflow: hidden;
}

.compact-promo-row {
  align-items: center;
  margin-top: 10px;
  margin-bottom: 0;
  padding: 12px;
  border-radius: 18px;
  background: var(--card-soft);
  border: 1px solid var(--line);
}

.referral-card {
  border-top: 4px solid var(--accent);
}

.referral-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.referral-link-block {
  margin-bottom: 12px;
}

.referral-link-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.referral-link-row input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.referral-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.referral-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.referral-progress {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card-soft);
  border: 1px solid var(--line);
}

.referral-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.referral-progress-head strong {
  font-size: 13px;
  color: var(--text);
}

.referral-progress-head span {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-dark);
}

.referral-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e7efe8;
  overflow: hidden;
  margin-bottom: 6px;
}

.referral-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width 240ms ease;
}

.referral-invites {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.referral-invite-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-soft);
}

.referral-invite-user {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.referral-invite-status {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

@media (max-width: 720px) {
  .panel-card {
    border-radius: 20px;
    padding: 14px;
  }

  .mini-location {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .hero-proof-grid {
    grid-template-columns: 1fr;
  }

  .referral-head {
    flex-direction: column;
  }

  .referral-link-row {
    flex-direction: column;
  }

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

  .referral-invite-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cabinet-stats-grid,
  .cabinet-action-grid {
    grid-template-columns: 1fr;
  }

  .cabinet-profile-name {
    font-size: 18px;
  }

  .cabinet-balance-value span:first-child {
    font-size: 30px;
  }

  .wrap {
    width: calc(100% - 16px);
    margin-top: 12px;
  }

  .card {
    border-radius: 18px;
    padding: 14px;
  }

  .mini-main {
    padding: 10px;
  }

  .hero-kicker,
  .section-kicker,
  .promo-live,
  .promo-muted {
    font-size: 11px;
  }

  .wheel-screen {
    padding: 34px 18px 16px;
  }

  .wheel-screen h2 {
    margin-top: 34px;
  }

  .wheel-wrap {
    height: 400px;
  }

  .wheel-stage-shell {
    bottom: -132px;
    transform: translateX(-50%) scale(2);
  }

  .hero-main-title {
    font-size: 29px;
    line-height: 1.13;
  }

  .hero-main-subtitle {
    font-size: 15px;
    line-height: 1.45;
  }

  .hero-prize-line,
  .hero-inline-note,
  .winners-table td,
  .ticket-right p:first-child,
  .ticket-label {
    font-size: 12px;
  }

  .hero-proof-item span,
  .count-box span {
    font-size: 11px;
  }

  .count-box {
    padding: 10px 4px;
  }

  .promo-row,
  .compact-promo-row {
    gap: 10px;
  }

  .prize-stock-grid {
    grid-template-columns: 1fr;
  }

  .promo-meta h2 {
    font-size: 18px;
  }

  .ticket-panel {
    padding: 12px;
    border-radius: 20px;
  }

  .result-next-card,
  .upload-card,
  .checking-card,
  .error-card {
    padding: 16px;
  }

  #screenLanding {
    padding-bottom: 84px;
  }

  .sticky-cta-wrap {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: min(440px, calc(100% - 20px));
    z-index: 40;
    display: block;
    padding: 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background:
      linear-gradient(180deg, rgba(6, 25, 15, 0.78), rgba(6, 21, 13, 0.68));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  }

  .sticky-cta-wrap .action-btn {
    min-height: 54px;
    border-radius: 14px;
    box-shadow: 0 14px 24px rgba(0, 146, 70, 0.34);
  }
}

@media (max-width: 390px) {
  .wheel-screen {
    padding-left: 12px;
    padding-right: 12px;
  }

  .wheel-stage-shell {
    bottom: -136px;
    transform: translateX(-50%) scale(1.9);
  }

  .wheel-wrap {
    height: 370px;
  }

  .wheel-center {
    bottom: -14px;
  }
}

/* Extended user UI */
.notice {
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
}

.notice-error {
  color: #9f2f2f;
  background: #fff4f4;
  border-color: #f1cece;
}

.promo-live-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.promo-live-badge {
  border-radius: 6px;
  background: #edf9ef;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 6px;
}

.help-row {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.help-row p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-row a {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.map-link {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 16px;
  background: #ffffff;
  color: var(--text);
  padding: 10px 12px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(3, 16, 6, 0.06);
}

.map-link-icon {
  gap: 8px;
}

.map-link-icon svg {
  width: 16px;
  height: 16px;
  color: var(--accent-dark);
}

.help-inline {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.help-inline a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
}

.loading-line {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}

.cabinet-head h2 {
  color: #ffffff;
  margin: 0 0 4px;
  font-size: 34px;
  line-height: 1;
}

.cabinet-head .small-text {
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.cabinet-profile-card {
  display: grid;
  gap: 14px;
}

.cabinet-profile-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2ece3;
}

.cabinet-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  color: #101513;
  background: linear-gradient(140deg, #7ff39c, #3dd46c);
  box-shadow: 0 10px 20px rgba(61, 212, 108, 0.3);
}

.cabinet-profile-name {
  margin: 0 0 2px;
  color: var(--text);
  font-size: 20px;
  font-family: var(--font-display);
  line-height: 1.1;
}

.cabinet-profile-handle {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.cabinet-stat-box {
  background: var(--card-soft);
  border: 1px solid #dae8db;
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
}

.cabinet-stat-value {
  margin: 0 0 2px;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  font-family: var(--font-display);
}

.cabinet-stat-value-win {
  color: #1f9a4a;
}

.cabinet-stat-value-ref {
  color: #b88712;
}

.cabinet-stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.cabinet-balance-card {
  border-radius: 16px;
  padding: 12px 14px;
  background: linear-gradient(140deg, #4be171, #189f50);
  box-shadow: 0 14px 28px rgba(31, 154, 74, 0.32);
}

.cabinet-balance-label {
  margin: 0;
  color: rgba(9, 22, 13, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.cabinet-balance-value {
  margin: 6px 0;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.cabinet-balance-value span:first-child {
  color: #0d2113;
  font-size: 38px;
  line-height: 1;
  font-family: var(--font-display);
}

.cabinet-balance-value span:last-child {
  color: rgba(9, 22, 13, 0.72);
  font-size: 16px;
  font-weight: 700;
}

.cabinet-balance-card .small-text {
  color: rgba(9, 22, 13, 0.64);
  font-size: 11px;
}

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

.cabinet-action-btn {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #d4e3d6;
  background: #f6faf7;
  color: #1a2d1d;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cabinet-history-card {
  padding-top: 14px;
}

.cabinet-history-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.cabinet-history-head h3 {
  margin: 0;
}

.cabinet-history-head .small-text {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.cabinet-hints p {
  margin: 0;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
}

.cabinet-hints p:first-child {
  color: var(--accent);
}

.result-icon {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-soft);
  color: var(--accent-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.result-icon svg {
  width: 34px;
  height: 34px;
}

.result-icon.success {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.result-icon.muted {
  color: var(--muted);
}

.result-win-hero {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 20px 18px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(82, 205, 100, 0.28), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.08)),
    var(--card-soft);
  border: 1px solid #d7ead9;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 34px rgba(82, 205, 100, 0.12);
}

.result-hero-topline {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.result-kicker-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(82, 205, 100, 0.14);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.result-kicker-pill-muted {
  background: rgba(16, 21, 19, 0.06);
  color: var(--text);
}

.result-heading {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 6px;
  text-align: center;
}

.result-main-text {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 0;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.result-hero-note {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.result-next-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.35)),
    var(--card-soft);
  border: 1px solid var(--line-strong);
  margin-bottom: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 12px 28px rgba(3, 16, 6, 0.06);
}

.result-section-label {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.result-win-hint {
  margin: 0;
}

.screen.active > .panel-card,
.screen.active > .wheel-screen,
.screen.active > .cabinet-head,
.screen.active > .sticky-cta-wrap {
  animation: card-reveal 0.45s ease both;
}

.screen.active > :nth-child(2) {
  animation-delay: 0.05s;
}

.screen.active > :nth-child(3) {
  animation-delay: 0.1s;
}

.screen.active > :nth-child(4) {
  animation-delay: 0.15s;
}

.screen.active > :nth-child(5) {
  animation-delay: 0.2s;
}

.screen.active > :nth-child(6) {
  animation-delay: 0.25s;
}

.screen.active > :nth-child(7) {
  animation-delay: 0.3s;
}

.fade-slide-up {
  animation: fade-slide-up 0.5s ease both;
  animation-delay: calc(var(--stagger-index, 0) * 0.05s);
}

@keyframes card-reveal {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

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

@keyframes fade-slide-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@media (prefers-reduced-motion: reduce) {
  .screen,
  .screen.active > .panel-card,
  .screen.active > .wheel-screen,
  .screen.active > .cabinet-head,
  .screen.active > .sticky-cta-wrap,
  .fade-slide-up {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

.code-block {
  border: 1px solid #d9e6da;
  background:
    linear-gradient(180deg, rgba(82, 205, 100, 0.08), rgba(82, 205, 100, 0.02)),
    #f8fafc;
  border-radius: 20px;
  text-align: center;
  padding: 14px 12px;
  margin: 10px 0 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.result-code {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.card-head p {
  font-size: 11px;
  font-weight: 900;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toggle-link {
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.no-card-box {
  border-radius: 14px;
  border: 1px solid #d5ebd8;
  background: #f4fbf5;
  color: #2f6b3f;
  font-weight: 700;
  padding: 10px;
}

.card-saved {
  border-radius: 14px;
  border: 1px solid #cdeed2;
  background: #ecf9ee;
  color: #287c3b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 900;
  padding: 10px;
  text-align: center;
}

.result-share-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.ticket-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

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

.ticket-right p:first-child {
  color: #8ef49c;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.ticket-tip {
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(82, 205, 100, 0.08), rgba(255, 255, 255, 0.9)),
    var(--card-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.ticket-tip strong {
  color: var(--text);
  text-transform: uppercase;
}

.footer-help {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 8px;
}

.footer-help p {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.footer-help a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Admin page */
.admin-page {
  color: #f5f7f5;
  background:
    radial-gradient(circle at 100% 0%, rgba(82, 205, 100, 0.18), transparent 34%),
    linear-gradient(180deg, #041107 0%, #020604 52%, #041107 100%);
}

.admin-shell {
  width: min(1220px, calc(100% - 28px));
  margin: 20px auto 36px;
}

.admin-login-wrap {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login-card {
  width: min(420px, 100%);
  background: #fff;
  color: var(--text);
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
  padding: 24px;
  display: grid;
  gap: 12px;
}

.admin-login-head {
  text-align: center;
  display: grid;
  gap: 8px;
  margin-bottom: 2px;
}

.admin-login-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  margin: 0 auto;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 24px rgba(82, 205, 100, 0.14);
}

.admin-login-icon svg,
.admin-tab-btn svg,
.admin-logout svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-login-icon svg {
  width: 24px;
  height: 24px;
}

.admin-login-head h1 {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 30px;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.admin-tab-btn.active {
  border-color: #bceac3;
  background: #edf9ef;
  color: #1d5f2f;
}

.admin-tab-panel {
  display: block;
}

.admin-brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 0.95;
}

.admin-brand p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.58);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 11px;
  font-weight: 900;
}

.admin-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.admin-logout:hover {
  color: #fff;
}

.admin-card {
  background: #fff;
  color: var(--text);
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(3, 16, 6, 0.14);
  padding: 20px;
  margin-bottom: 14px;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-card-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: uppercase;
}

.muted-title {
  color: var(--muted);
  margin: 4px 0 6px;
}

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

.promo-limit-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--card-soft);
  border-radius: 18px;
  padding: 10px;
}

.promo-limit-meta p {
  margin: 0;
  font-weight: 900;
  font-size: 15px;
}

.promo-limit-meta small {
  color: var(--muted);
  font-size: 12px;
}

.promo-limit-input {
  width: 108px;
  text-align: center;
  font-weight: 900;
}

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

.admin-summary-item {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.34)),
    var(--card-soft);
  border-radius: 18px;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.admin-summary-item p {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 900;
}

.admin-summary-item strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
}

.sum-green {
  color: var(--accent);
}

.admin-save-btn {
  width: auto;
  min-width: 230px;
  min-height: 46px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.admin-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-export-btn,
.admin-draw-btn {
  width: auto;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.admin-winner-card {
  margin-top: 12px;
  border: 1px solid #ccefd2;
  background: #edf9ef;
  border-radius: 20px;
  padding: 12px;
}

.admin-winner-name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.05;
}

.admin-winner-meta {
  margin: 0;
  color: #235c32;
  font-size: 13px;
  font-weight: 700;
}

.admin-winner-cardline {
  margin: 4px 0 0;
  color: #28723b;
  font-size: 12px;
  font-weight: 700;
}

.admin-winner-date {
  margin: 6px 0 0;
  color: #2a7e3d;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 900;
}

.admin-redraw-btn {
  margin-top: 10px;
}

.admin-participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-stat-card {
  background: #fff;
  color: var(--text);
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(3, 16, 6, 0.12);
  padding: 18px;
}

.admin-stat-card p {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 11px;
  font-weight: 900;
}

.admin-stat-card strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
}

.admin-table-card {
  padding-bottom: 10px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.admin-table-wrap table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table-wrap table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7faf7;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
}

.admin-table-wrap table th,
.admin-table-wrap table td {
  padding: 12px 10px;
  vertical-align: top;
}

.admin-table-wrap table td {
  font-size: 12px;
  border-bottom: 1px solid #eef3ed;
}

.admin-table-wrap table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table-wrap table tbody tr:nth-child(even) td {
  background: rgba(244, 246, 243, 0.55);
}

.admin-tg-cell {
  font-size: 11px;
  line-height: 1.35;
}

.admin-contact-link {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 800;
  font-size: 11px;
}

.admin-contact-link:hover {
  text-decoration: underline;
}

.admin-message-btn {
  width: auto;
  padding: 6px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.admin-sync-btn {
  width: auto;
  padding: 6px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: var(--card-soft);
  color: var(--text);
}

.admin-details-btn {
  width: auto;
  padding: 6px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: #edf9ef;
  color: #245c32;
}

.admin-sync-pill {
  display: inline-block;
  min-width: 44px;
  text-align: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #eef3ed;
  color: var(--text);
}

.admin-sync-pill.ok {
  background: var(--accent-soft);
  color: #28723b;
}

.admin-sync-pill.err {
  background: #fee2e2;
  color: #991b1b;
}

.admin-bio-cell {
  max-width: 230px;
  white-space: normal;
  line-height: 1.35;
}

.admin-action-stack {
  min-width: 112px;
  display: grid;
  gap: 6px;
}

.admin-participant-details-row > td {
  background: var(--card-soft);
  border-top: 0;
  padding: 10px 8px 12px;
}

.admin-participant-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.admin-detail-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px;
}

.admin-detail-item-wide {
  grid-column: 1 / -1;
}

.admin-detail-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.admin-detail-value {
  margin: 0;
  color: #1f2937;
  font-size: 12px;
  line-height: 1.3;
  word-break: break-word;
}

.admin-json-block {
  margin: 0;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 11px;
  line-height: 1.35;
  color: #1f2937;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
}

.admin-inbox-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 12px;
}

.admin-inbox-sidebar {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card-soft);
  padding: 8px;
  max-height: 540px;
  overflow: auto;
}

.admin-inbox-main {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 10px;
}

.admin-inbox-chats {
  display: grid;
  gap: 8px;
}

.admin-inbox-chat-btn {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  display: grid;
  gap: 4px;
}

.admin-inbox-chat-btn.active {
  border-color: #ccefd2;
  background: #edf9ef;
}

.admin-inbox-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-inbox-chat-head strong {
  font-size: 12px;
  line-height: 1.2;
}

.admin-inbox-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.admin-inbox-chat-sub {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.admin-inbox-chat-preview {
  margin: 0;
  color: #111827;
  font-size: 11px;
  line-height: 1.35;
}

.admin-inbox-messages {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-soft);
  min-height: 280px;
  max-height: 420px;
  overflow: auto;
  padding: 10px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.admin-inbox-msg {
  max-width: min(82%, 620px);
  border-radius: 12px;
  padding: 8px;
}

.admin-inbox-msg-in {
  background: #fff;
  border: 1px solid var(--line);
  justify-self: start;
}

.admin-inbox-msg-out {
  background: #edf9ef;
  border: 1px solid #ccefd2;
  justify-self: end;
}

.admin-inbox-msg-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #111827;
}

.admin-inbox-msg-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.admin-inbox-reply {
  display: grid;
  gap: 8px;
}

.admin-inbox-reply textarea {
  min-height: 80px;
  resize: vertical;
}

.admin-inbox-reply .action-btn {
  width: auto;
  min-width: 180px;
}

.admin-prize-badge {
  display: inline-block;
  border-radius: 999px;
  background: #edf9ef;
  color: var(--accent-dark);
  border: 1px solid #ccefd2;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 900;
  padding: 4px 9px;
}

.admin-photo-thumb {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  border: 1px solid var(--line);
  overflow: hidden;
  display: block;
}

.admin-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-car-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-car-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid #d7e5d8;
  background: #f7fbf8;
  color: #1f2937;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-car-photo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

@media (max-width: 920px) {
  .admin-shell {
    width: calc(100% - 16px);
    margin-top: 12px;
  }

  .admin-header {
    align-items: center;
  }

  .admin-tabs {
    gap: 6px;
  }

  .admin-tab-btn {
    width: 100%;
    text-align: center;
  }

  .admin-brand h1 {
    font-size: 38px;
  }

  .admin-card {
    border-radius: 22px;
    padding: 16px;
  }

  .admin-date-grid,
  .admin-summary-grid {
    grid-template-columns: 1fr;
  }

  .admin-summary-item strong {
    font-size: 28px;
  }

  .admin-table-wrap table th,
  .admin-table-wrap table td {
    padding: 10px 8px;
  }

  .admin-table-wrap table thead th {
    font-size: 10px;
  }

  .admin-tg-cell,
  .admin-contact-link,
  .admin-message-btn,
  .admin-sync-btn,
  .admin-details-btn,
  .admin-bio-cell {
    font-size: 12px;
  }

  .admin-save-btn {
    width: 100%;
  }

  .admin-export-btn,
  .admin-draw-btn {
    width: 100%;
  }

  .admin-inbox-layout {
    grid-template-columns: 1fr;
  }

  .admin-inbox-sidebar {
    max-height: 280px;
  }

  .admin-inbox-main {
    min-height: 340px;
  }
}

/* LuxWash Admin visual refresh (aligned with Mini App look) */
.admin-page {
  color: #eef8f0;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 186, 58, 0.2), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(48, 170, 86, 0.34), transparent 30%),
    radial-gradient(circle at 10% 28%, rgba(32, 91, 57, 0.28), transparent 34%),
    linear-gradient(180deg, #05160d 0%, #020806 42%, #04120a 100%);
}

.admin-page::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.09), transparent 26%),
    radial-gradient(circle at 86% 82%, rgba(255, 255, 255, 0.06), transparent 24%);
  mix-blend-mode: soft-light;
}

.admin-shell {
  width: min(1240px, calc(100% - 28px));
  margin: 18px auto 34px;
  position: relative;
  z-index: 1;
}

.admin-header {
  align-items: flex-end;
  margin-bottom: 16px;
}

.admin-brand h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 56px);
  letter-spacing: -0.02em;
  color: #f4fff6;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.admin-brand .brand-line {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-brand .brand-line span {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-sun));
}

.admin-brand .brand-line span:nth-child(1) {
  width: 34px;
}

.admin-brand .brand-line span:nth-child(2) {
  width: 18px;
  opacity: 0.78;
}

.admin-brand .brand-line span:nth-child(3) {
  width: 10px;
  opacity: 0.6;
}

.admin-brand p {
  margin-top: 10px;
  color: rgba(245, 255, 247, 0.72);
}

.admin-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(8, 29, 18, 0.76), rgba(6, 22, 14, 0.64));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.admin-tab-btn {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 8px 14px;
  color: rgba(244, 255, 246, 0.86);
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.08em;
}

@media (hover: hover) {
  .admin-tab-btn:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
  }
}

.admin-tab-btn.active {
  border-color: rgba(220, 232, 221, 0.95);
  background: linear-gradient(180deg, #ffffff, #f5faf6);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 20px rgba(2, 22, 11, 0.18);
}

.admin-logout {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 255, 247, 0.9);
}

@media (hover: hover) {
  .admin-logout:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
  }
}

.admin-login-card,
.admin-card,
.admin-stat-card {
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92)),
    var(--card);
  box-shadow:
    var(--card-glow),
    0 18px 36px rgba(2, 22, 11, 0.16);
}

.admin-card-head {
  margin-bottom: 12px;
}

.admin-card-head h2 {
  font-size: clamp(19px, 2.1vw, 24px);
  letter-spacing: -0.01em;
  text-transform: none;
}

.admin-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
}

.admin-summary-item strong {
  font-size: clamp(28px, 3vw, 36px);
}

.admin-search-bar {
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 150px 150px auto;
  gap: 8px;
}

.admin-search-bar input,
.admin-search-bar button {
  margin: 0;
}

.admin-card label,
.admin-login-card label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.09em;
}

.admin-card input,
.admin-card select,
.admin-card textarea,
.admin-login-card input {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--text);
}

.admin-card input:focus,
.admin-card select:focus,
.admin-card textarea:focus,
.admin-login-card input:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(61, 212, 108, 0.2);
  outline-offset: 0;
  box-shadow: 0 0 0 2px rgba(61, 212, 108, 0.1);
}

.admin-page .action-btn {
  border-radius: 12px;
  min-height: 44px;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.admin-page .small-btn,
.admin-page .admin-message-btn,
.admin-page .admin-sync-btn,
.admin-page .admin-details-btn {
  border-radius: 10px;
  min-height: 36px;
  padding: 7px 10px;
  font-size: 11px;
}

.admin-bonus-status-select {
  min-width: 148px;
  min-height: 36px;
  border-radius: 10px;
  padding: 7px 30px 7px 10px;
  font-size: 11px;
}

.admin-table-wrap {
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.admin-table-wrap table thead th {
  background: linear-gradient(180deg, #f8fcf8, #f1f7f2);
  color: #4d5d4f;
  font-size: 10px;
}

.admin-table-wrap table tbody tr:nth-child(even) td {
  background: rgba(243, 248, 244, 0.9);
}

@media (hover: hover) {
  .admin-table-wrap table tbody tr:hover td {
    background: rgba(219, 247, 228, 0.34);
  }
}

.admin-prize-badge {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: var(--accent-soft-strong);
}

.admin-car-plate {
  border-color: var(--line-strong);
  background: #f6faf7;
  color: #1a2a1f;
}

.admin-inbox-sidebar,
.admin-inbox-main {
  border-radius: 18px;
}

.admin-inbox-main {
  background: linear-gradient(180deg, #ffffff, #f9fcf9);
}

.admin-inbox-messages {
  background: #f5faf6;
}

.admin-inbox-msg-out {
  background: #e8f8ec;
  border-color: #cbeacf;
}

.notice {
  border-radius: 12px;
}

.notice-error {
  color: #8d2e2e;
  background: #fff5f5;
  border-color: #f4d5d5;
}

@media (max-width: 980px) {
  .admin-search-bar {
    grid-template-columns: 1fr 1fr;
  }

  .admin-search-bar input[type="search"] {
    grid-column: 1 / -1;
  }

  .admin-search-bar .small-btn {
    width: 100%;
  }

  .admin-tabs {
    width: 100%;
    border-radius: 18px;
  }

  .admin-tab-btn {
    width: 100%;
    justify-content: flex-start;
  }
}
