:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --panel-soft: #334155;
  --line: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #10b981;
  --primary-hover: #059669;
  --danger: #ef4444;
  --success-bg: rgba(4, 120, 87, 0.25);
  --success-text: #6ee7b7;
  --error-bg: rgba(185, 28, 28, 0.25);
  --error-text: #fca5a5;
  --card-gap: 1rem;
  --card-gap-mobile: 0.85rem;
}

* {
  box-sizing: border-box;
  font-family: "Space Grotesk", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(16, 185, 129, 0.16), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(14, 165, 233, 0.14), transparent 24%),
    #08111f;
  color: var(--text);
}

a {
  color: #6ee7b7;
  text-decoration: none;
}

a:hover {
  color: #34d399;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
}

.site-topbar {
  background: rgba(8, 17, 31, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #f8fafc;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(145deg, #34d399 0%, #0ea5e9 100%);
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.14);
}

.nav {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.nav a {
  color: #dbeafe;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.36);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav a:hover {
  background: rgba(51, 65, 85, 0.58);
  border-color: rgba(52, 211, 153, 0.28);
  color: #f8fafc;
}

.auth-box {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.auth-box span {
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.36);
}

.page {
  padding: 1.4rem 0 3rem;
}

.page-full {
  padding: 0;
}

.shell-host {
  padding: 0;
  min-height: 100vh;
}

.layout-shell {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background: #0f172a;
}

.sidebar-desktop {
  width: 18rem;
  background: #1e293b;
  border-right: 1px solid #334155;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  padding: 1rem;
  overflow-y: auto;
}

.sidebar-mobile {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: #1e293b;
  border-right: 1px solid #334155;
  transition: left 0.3s ease;
  z-index: 60;
  padding: 1rem;
  overflow-y: auto;
}

.sidebar-mobile.open {
  left: 0;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  z-index: 50;
}

.sidebar-overlay.open {
  display: block;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #334155;
}

.sidebar-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #10b981 0%, #0f766e 100%);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #ecfeff;
}

.sidebar-brand strong {
  display: block;
  color: #f8fafc;
}

.sidebar-brand p {
  margin: 0.2rem 0 0;
  color: #94a3b8;
  font-size: 0.82rem;
}

.sidebar-nav {
  display: grid;
  gap: 0.4rem;
}

.sidebar-item {
  transition: all 0.2s ease;
}

.sidebar-item:hover {
  transform: translateX(4px);
}

.menu-section {
  border-left: 3px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.45);
  color: #cbd5e1;
}

.menu-label {
  min-width: 0;
}

.menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(217, 119, 6, 0.18);
  color: #fde68a;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
}

.menu-section:hover {
  border-left-color: #10b981;
  background: rgba(51, 65, 85, 0.65);
  color: #ecfeff;
}

.menu-section.is-active {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.sidebar-user {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #334155;
}

.sidebar-maintenance {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #334155;
}

.main-container {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.panel-header {
  background: rgba(30, 41, 59, 0.7);
  border-bottom: 1px solid #334155;
  padding: 0.9rem 1rem;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}

.panel-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.panel-header-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.mobile-menu-btn {
  display: none;
  border: 1px solid #475569;
  background: rgba(51, 65, 85, 0.5);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.panel-header-copy h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #f8fafc;
}

.panel-header-copy p {
  margin: 0.2rem 0 0;
  color: #94a3b8;
  font-size: 0.85rem;
}

.panel-header-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  font-size: 0.88rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  flex: 0 0 auto;
  white-space: nowrap;
}

.panel-header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.panel-header-actions form {
  flex: 0 0 auto;
}

.admin-maintenance-toggle {
  min-height: 38px;
  box-shadow: none;
  white-space: nowrap;
}

.admin-maintenance-toggle.is-active {
  background: #ef4444;
  color: #fff;
}

.admin-maintenance-toggle.is-active:hover {
  background: #dc2626;
}

.admin-maintenance-toggle.is-inactive {
  background: #10b981;
  color: #052e16;
}

.admin-maintenance-toggle.is-inactive:hover {
  background: #059669;
  color: #ecfdf5;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10b981;
  animation: pulse 2s infinite;
}

.panel-header .alert {
  margin: 0.75rem 0 0;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

.content-area {
  padding: 1rem;
  display: grid;
  gap: var(--card-gap);
  align-content: start;
}

.card,
.admin-card,
.hero-card {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 1rem;
  margin: 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.content-area > section {
  margin: 0;
}

.grid > .card,
.grid > .admin-card,
.grid > .hero-card,
.grid > .bg-slate-800 {
  margin-bottom: 0;
}

.card h1,
.card h2,
.card h3,
.admin-card h1,
.admin-card h2,
.admin-card h3 {
  margin-top: 0;
}

.narrow {
  max-width: 560px;
  margin: 1rem auto;
}

.grid {
  display: grid;
  gap: var(--card-gap);
}

.two-cols,
.admin-columns {
  display: grid;
  gap: var(--card-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

#betsTopGrid {
  margin-bottom: var(--card-gap);
  align-items: start;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

.type-selector {
  display: grid;
  gap: 0.35rem;
}

.room-selector {
  display: grid;
  gap: 0.35rem;
}

.type-label {
  color: #cbd5e1;
  font-weight: 600;
}

.room-btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 0.45rem;
}

.room-btn {
  border: 1px solid #475569;
  border-radius: 9px;
  background: #0f172a;
  color: #cbd5e1;
  min-height: 40px;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s ease;
}

.room-btn:hover {
  border-color: #10b981;
  color: #ecfeff;
}

.room-btn.is-selected {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.type-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.type-btn {
  border: 1px solid #475569;
  border-radius: 9px;
  background: #0f172a;
  color: #cbd5e1;
  min-height: 40px;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s ease;
}

.type-btn:hover {
  border-color: #10b981;
  color: #ecfeff;
}

.type-btn.is-selected {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.group-picker {
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 0.7rem;
  background: rgba(15, 23, 42, 0.65);
  margin-top: -0.1rem;
}

.group-picker-note {
  margin: 0 0 0.6rem;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  max-height: 345px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.group-btn {
  border: 1px solid #475569;
  border-radius: 9px;
  background: #0f172a;
  color: #e2e8f0;
  padding: 0.45rem 0.5rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.group-btn:hover {
  border-color: #10b981;
}

.group-btn.is-selected {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.group-btn strong {
  display: block;
  font-size: 0.82rem;
}

.group-btn span {
  display: block;
  margin-top: 0.2rem;
  color: #94a3b8;
  font-size: 0.77rem;
}

.hour-picker {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
}

.hour-btn {
  border: 1px solid #475569;
  border-radius: 9px;
  background: #0f172a;
  color: #cbd5e1;
  min-height: 38px;
  padding: 0.4rem 0.45rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hour-btn:hover {
  border-color: #10b981;
  color: #ecfeff;
}

.hour-btn.is-selected {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

label {
  display: grid;
  gap: 0.35rem;
  color: #cbd5e1;
  font-weight: 600;
}

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

input,
select,
textarea {
  border: 1px solid #475569;
  border-radius: 9px;
  padding: 0.62rem 1rem;
  background: #0f172a;
  color: #f8fafc;
  width: 100%;
  min-height: 44px;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
  text-indent: 0.2rem;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  text-indent: 0.2rem;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
  text-indent: 0.2rem;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  text-indent: 0.2rem;
}

textarea {
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 9px;
  padding: 0.6rem 0.9rem;
  background: var(--primary);
  color: #052e16;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.16);
}

.btn:hover {
  background: var(--primary-hover);
  color: #ecfdf5;
  transform: translateY(-1px);
}

.btn:disabled {
  background: #475569;
  color: #cbd5e1;
  cursor: not-allowed;
}

.btn-danger {
  background: #ef4444;
  color: #fff;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-outline {
  background: transparent;
  color: #6ee7b7;
  border: 1px solid #10b981;
}

.btn-outline:hover {
  background: rgba(16, 185, 129, 0.15);
}

.btn-small {
  padding: 0.38rem 0.6rem;
  font-size: 0.84rem;
}

.btn-full {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.table-pagination {
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pagination-meta {
  margin: 0;
  color: #94a3b8;
  font-size: 0.82rem;
}

.pagination-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 32px;
  padding: 0.28rem 0.55rem;
  border: 1px solid #475569;
  border-radius: 8px;
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.83rem;
}

.pagination-link:hover {
  border-color: #10b981;
  color: #ecfeff;
}

.pagination-link.is-current {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.pagination-link.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pagination-gap {
  color: #94a3b8;
  font-size: 0.82rem;
  padding: 0 0.15rem;
}

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

.table-wrap table {
  min-width: 700px;
}

th,
td {
  padding: 0.55rem;
  text-align: left;
  border-bottom: 1px solid #334155;
  font-size: 0.9rem;
  color: #e2e8f0;
}

th {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.75);
}

.balance {
  margin: 0.25rem 0 0.65rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: #6ee7b7;
}

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

.alert {
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  font-weight: 600;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: #047857;
}

.alert-error {
  background: var(--error-bg);
  color: var(--error-text);
  border-color: #b91c1c;
}

.alert-warning {
  background: rgba(161, 98, 7, 0.2);
  color: #fde68a;
  border-color: #a16207;
}

.rule-box {
  border: 1px solid #475569;
  border-radius: 10px;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
}

.rule-box p {
  margin: 0 0 0.55rem;
  color: #cbd5e1;
}

.inline-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #e2e8f0;
  font-weight: 500;
}

.inline-check input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  margin-top: 0.1rem;
  accent-color: #10b981;
  flex: 0 0 auto;
}

.inline-check span {
  display: inline-block;
}

.pix-current-card {
  display: grid;
  gap: 0.8rem;
}

.pix-current-meta {
  display: grid;
  gap: 0.25rem;
}

.pix-current-meta p {
  margin: 0;
}

.pix-qr-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #334155;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.75);
  padding: 0.8rem;
}

.pix-qr-image {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 0.5rem;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.9rem;
  align-items: stretch;
}

.dashboard-hero-main {
  display: grid;
  gap: 0.7rem;
}

.dashboard-hero-main h2 {
  margin: 0;
}

.dashboard-hero-main p {
  margin: 0;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.dashboard-kpi {
  border: 1px solid #334155;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  padding: 0.7rem;
}

.dashboard-kpi small {
  color: #94a3b8;
}

.dashboard-kpi p {
  margin: 0.4rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

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

.dashboard-stat-card h3 {
  margin: 0 0 0.6rem;
}

.dashboard-stat-card p {
  margin: 0.3rem 0;
}

.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.profile-top-grid {
  align-items: start;
}

.profile-kpi {
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #f8fafc;
}

.profile-kpi small {
  color: rgba(248, 250, 252, 0.82);
}

.profile-kpi p {
  color: #ffffff;
}

.profile-kpi-emerald {
  background: linear-gradient(145deg, #059669 0%, #047857 100%);
}

.profile-kpi-blue {
  background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 100%);
}

.profile-kpi-amber {
  background: linear-gradient(145deg, #d97706 0%, #b45309 100%);
}

.profile-kpi-violet {
  background: linear-gradient(145deg, #7c3aed 0%, #6d28d9 100%);
}

.profile-kpi-cyan {
  background: linear-gradient(145deg, #0891b2 0%, #0e7490 100%);
}

.profile-kpi-indigo {
  background: linear-gradient(145deg, #4f46e5 0%, #4338ca 100%);
}

.profile-kpi-slate {
  background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
}

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

.profile-kpi-wide {
  grid-column: span 3;
}

.profile-meta-value {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #cbd5e1;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

@media (max-width: 1200px) {
  .profile-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-kpi-wide {
    grid-column: span 2;
  }
}

.inline-form,
.admin-inline-form {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
}

.inline-form input,
.inline-form select {
  width: auto;
  min-width: 132px;
  min-height: 38px;
  padding-left: 1rem !important;
}

.pos {
  color: #6ee7b7;
  font-weight: 700;
}

.neg {
  color: #fca5a5;
  font-weight: 700;
}

.landing-shell {
  display: grid;
  gap: var(--card-gap);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.95fr);
  gap: var(--card-gap);
  align-items: stretch;
}

.hero-content {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(52, 211, 153, 0.22), transparent 28%),
    linear-gradient(145deg, rgba(7, 16, 30, 0.96) 0%, rgba(15, 23, 42, 0.94) 46%, rgba(6, 78, 59, 0.92) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  padding: clamp(1.35rem, 3vw, 2rem);
  display: grid;
  gap: 1rem;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.hero-content::after {
  content: "";
  position: absolute;
  right: -6rem;
  bottom: -6rem;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, rgba(14, 165, 233, 0) 72%);
  pointer-events: none;
}

.hero-content h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.35rem, 5vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(110, 231, 183, 0.35);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a7f3d0;
  background: rgba(8, 17, 31, 0.32);
}

.hero-text {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.75;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-stat {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 16px;
  padding: 0.9rem;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(6px);
}

.hero-stat span {
  display: block;
  color: #94a3b8;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-stat strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.45rem;
  color: #f8fafc;
}

.hero-stat p {
  margin: 0.45rem 0 0;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.55;
}

.hero-card {
  display: grid;
  gap: 0.95rem;
  border-radius: 22px;
  padding: 1.3rem;
  background:
    linear-gradient(160deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.94) 56%, rgba(12, 74, 110, 0.88) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-card-kicker {
  margin: 0;
  color: #93c5fd;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-card h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.15;
}

.hero-card-list {
  display: grid;
  gap: 0.75rem;
}

.hero-card-item {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 15px;
  padding: 0.9rem;
  background: rgba(8, 17, 31, 0.38);
}

.hero-card-item strong {
  display: block;
  color: #f8fafc;
  font-size: 1rem;
}

.hero-card-item p {
  margin: 0.45rem 0 0;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.6;
}

.hero-card-footer {
  display: grid;
  gap: 0.3rem;
  padding-top: 0.2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-card-footer strong {
  color: #f8fafc;
}

.hero-card-footer span {
  color: #94a3b8;
  line-height: 1.55;
}

.landing-strip {
  display: grid;
  gap: var(--card-gap);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-strip-item {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  padding: 1rem 1.05rem;
  background: rgba(15, 23, 42, 0.56);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18);
}

.landing-strip-item span {
  display: block;
  color: #6ee7b7;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-strip-item strong {
  display: block;
  margin-top: 0.45rem;
  color: #f8fafc;
  font-size: 1.05rem;
}

.landing-strip-item p {
  margin: 0.45rem 0 0;
  color: #cbd5e1;
  line-height: 1.6;
}

.landing-grid {
  display: grid;
  gap: var(--card-gap);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-feature-card {
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.64);
}

.landing-feature-card h2 {
  margin-bottom: 0.55rem;
}

.landing-feature-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.landing-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--card-gap);
}

.landing-story-card {
  border-radius: 20px;
  display: grid;
  gap: 0.85rem;
}

.landing-story-card h2 {
  margin: 0;
}

.landing-story-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #cbd5e1;
  display: grid;
  gap: 0.5rem;
  line-height: 1.6;
}

.landing-story-highlight {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.landing-mini-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 15px;
  padding: 0.95rem;
  background: rgba(8, 17, 31, 0.38);
}

.landing-mini-card strong {
  display: block;
  color: #f8fafc;
}

.landing-mini-card span {
  display: block;
  margin-top: 0.4rem;
  color: #94a3b8;
  line-height: 1.55;
}

.landing-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  padding: 1.15rem 1.2rem;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.92) 0%, rgba(6, 78, 59, 0.82) 100%);
}

.landing-cta-copy {
  display: grid;
  gap: 0.35rem;
  max-width: 56ch;
}

.landing-cta-copy h2 {
  margin: 0;
}

.landing-cta-copy p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.65;
}

.landing-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.admin-block {
  margin: 0;
  display: grid;
  gap: var(--card-gap);
  align-content: start;
}

.admin-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0;
}

.admin-block h1,
.admin-block h2,
.admin-block h3 {
  margin: 0;
}

.admin-badge {
  border: 1px solid #10b981;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.2);
}

.admin-kpi-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-kpi {
  border: 1px solid #334155;
  border-radius: 13px;
  padding: 0.85rem;
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.96) 100%);
}

.admin-kpi-link {
  display: block;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.admin-kpi-link:hover {
  color: inherit;
  border-color: rgba(16, 185, 129, 0.65);
  transform: translateY(-1px);
}

.admin-kpi h3 {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.admin-kpi p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.admin-kpi small {
  color: #94a3b8;
}

.admin-inline-form input,
.admin-inline-form select {
  min-width: 132px;
  font-size: 0.82rem;
  padding: 0.38rem 0.65rem;
  padding-left: 1rem !important;
}

.form-grid input:not([type="hidden"]),
.form-grid select,
.form-grid textarea,
.inline-form input:not([type="hidden"]),
.inline-form select,
.admin-inline-form input:not([type="hidden"]),
.admin-inline-form select {
  padding-left: 1rem !important;
}

.admin-inline-form input[name="reason"] {
  min-width: 220px;
}

.redeem-edit-form {
  flex-wrap: nowrap;
  gap: 0.3rem;
}

.redeem-edit-form input[name="max_redemptions"] {
  width: 74px;
  min-width: 74px;
}

.redeem-edit-form input[type="datetime-local"] {
  width: 170px;
  min-width: 170px;
  padding-left: 0.7rem !important;
}

.redeem-edit-form .btn {
  flex: 0 0 auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #475569;
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.3);
  font-size: 0.76rem;
}

.status-open,
.status-drawing,
.status-pending,
.status-processing {
  color: #fcd34d;
  border-color: #a16207;
  background: rgba(161, 98, 7, 0.2);
}

.status-drawn,
.status-completed,
.status-won {
  color: #6ee7b7;
  border-color: #047857;
  background: rgba(4, 120, 87, 0.2);
}

.status-failed,
.status-cancelled,
.status-lost {
  color: #fca5a5;
  border-color: #b91c1c;
  background: rgba(185, 28, 28, 0.2);
}

.status-abandoned {
  color: #fcd34d;
  border-color: #a16207;
  background: rgba(161, 98, 7, 0.2);
}

.status-role,
.status-webhook {
  color: #a5b4fc;
  border-color: #4f46e5;
  background: rgba(79, 70, 229, 0.2);
}

.webhook-details {
  min-width: 280px;
}

.webhook-details summary {
  cursor: pointer;
  color: #c4b5fd;
  font-weight: 600;
  list-style: none;
}

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

.webhook-details summary::after {
  content: " ▾";
}

.webhook-details[open] summary::after {
  content: " ▴";
}

.webhook-details-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.7rem;
}

.webhook-meta-list {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.webhook-meta-list p {
  margin: 0;
}

.webhook-payload {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid #334155;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  color: #cbd5e1;
  font-size: 0.74rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 280px;
  overflow: auto;
}

.admin-side-kpi {
  margin-top: 1rem;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.65);
  color: #94a3b8;
}

.admin-side-kpi p {
  margin: 0.35rem 0;
}

.admin-side-kpi strong {
  color: #e2e8f0;
}

.admin-config-form {
  gap: 0.8rem;
}

.config-main-card,
.config-compact-card {
  padding: 0.85rem;
}

.config-main-card h2,
.config-compact-card h3 {
  margin: 0 0 0.6rem;
}

.config-main-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 0.6rem;
}

.config-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: start;
}

.config-input-grid {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.config-input-grid.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-config-form label {
  gap: 0.25rem;
  font-size: 0.88rem;
}

.admin-config-form input:not([type="hidden"]),
.admin-config-form select {
  min-height: 40px;
  padding: 0.48rem 0.72rem;
}

@media (max-width: 1200px) {
  .config-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .landing-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .sidebar-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .content-area {
    padding: 0.9rem;
    gap: var(--card-gap-mobile);
  }

  .grid,
  .two-cols,
  .admin-columns,
  .admin-block {
    gap: var(--card-gap-mobile);
  }

  .two-cols,
  .admin-columns,
  .landing-hero,
  .landing-grid,
  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .landing-strip,
  .hero-stat-grid,
  .landing-story-highlight {
    grid-template-columns: 1fr;
  }

  .landing-cta-band,
  .hero-actions,
  .landing-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-inner {
    min-height: auto;
    padding-block: 0.8rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .nav,
  .auth-box {
    width: auto;
    min-width: 0;
    margin-left: auto;
  }

  .nav a,
  .auth-box span,
  .hero-actions .btn,
  .landing-cta-actions .btn {
    width: auto;
  }

  .nav {
    flex-wrap: nowrap;
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .auth-box {
    justify-content: flex-end;
  }

  .hour-picker {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .panel-header-inner {
    flex-wrap: wrap;
  }

  .panel-header-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .panel-header-meta {
    width: auto;
    justify-content: center;
  }

  .inline-form input,
  .inline-form select,
  .admin-inline-form input,
  .admin-inline-form select {
    width: 100%;
    min-width: 0;
  }

  .redeem-edit-form {
    flex-wrap: nowrap;
  }

  .redeem-edit-form input[name="max_redemptions"] {
    width: 74px;
    min-width: 74px;
  }

  .redeem-edit-form input[type="datetime-local"] {
    width: 170px;
    min-width: 170px;
  }

  .table-pagination {
    align-items: flex-start;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .table-wrap table {
    min-width: 0;
  }

  table.mobile-card-table thead {
    display: none;
  }

  table.mobile-card-table tbody,
  table.mobile-card-table tr,
  table.mobile-card-table td {
    display: block;
    width: 100%;
  }

  table.mobile-card-table tbody tr {
    border: 1px solid #334155;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.7);
    padding: 0.15rem 0.65rem;
    margin-bottom: 0.7rem;
  }

  table.mobile-card-table td {
    border-bottom: 1px dashed #334155;
    padding: 0.48rem 0;
    font-size: 0.84rem;
    color: #e2e8f0;
    white-space: normal;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
  }

  table.mobile-card-table td:last-child {
    border-bottom: 0;
  }

  table.mobile-card-table td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    max-width: 42%;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.2;
  }

  table.mobile-card-table td[data-label=""]::before {
    content: none;
  }

  table.mobile-card-table tr.is-table-empty td {
    display: block;
    text-align: center;
    border-bottom: 0;
    padding: 0.65rem 0;
  }

  .dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }

  .profile-kpi-grid,
  .profile-form-grid {
    grid-template-columns: 1fr;
  }

  .profile-kpi-wide {
    grid-column: auto;
  }

  .config-main-grid,
  .config-duo-grid,
  .config-input-grid.two-cols {
    grid-template-columns: 1fr;
  }

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

@media (min-width: 901px) {
  .sidebar-mobile,
  .sidebar-overlay {
    display: none;
  }
}

.home-landing {
  display: grid;
  gap: 1.1rem;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.92fr);
  gap: 0.65rem;
  align-items: stretch;
}

.home-hero-copy,
.home-hero-media,
.home-panel,
.home-metric-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.24);
}

.home-hero-copy {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.55rem;
  padding: clamp(0.75rem, 1.6vw, 0.95rem);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(52, 211, 153, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(8, 17, 31, 0.98) 0%, rgba(15, 23, 42, 0.96) 48%, rgba(8, 83, 65, 0.92) 100%);
}

.home-hero-copy::after {
  content: "";
  position: absolute;
  right: -3rem;
  top: -3rem;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 70%);
}

.home-chip,
.home-overline,
.home-badge,
.home-mini-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-chip,
.home-overline {
  padding: 0.3rem 0.72rem;
  border: 1px solid rgba(110, 231, 183, 0.28);
  background: rgba(15, 23, 42, 0.34);
  color: #a7f3d0;
  font-size: 0.73rem;
  font-weight: 700;
}

.home-hero-copy h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.2rem, 2vw, 1.72rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.home-cta-row {
  width: fit-content;
  max-width: 100%;
}

.home-cta-row .btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  padding: 0.44rem 0.72rem;
  font-size: 0.9rem;
  box-shadow: 0 8px 16px rgba(2, 6, 23, 0.14);
}

.home-live-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.38rem;
}

.home-live-item {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  padding: 0.5rem 0.58rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(8, 17, 31, 0.42);
}

.home-live-item strong {
  font-size: 0.95rem;
  color: #f8fafc;
}

.home-live-item span {
  color: #94a3b8;
  line-height: 1.25;
  font-size: 0.7rem;
}

.home-hero-media {
  display: flex;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.home-hero-illustration,
.home-panel-visual,
.home-wallet-visual {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.home-hero-illustration img,
.home-panel-visual img,
.home-wallet-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.home-next-card {
  display: grid;
  width: 100%;
  height: 100%;
  align-content: start;
  gap: 0.38rem;
  padding: 0.72rem;
  border-radius: 16px;
  background: rgba(8, 17, 31, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.home-next-card h2,
.home-panel h2,
.home-bottom-copy h2 {
  margin: 0;
  font-size: 1rem;
}

.home-next-time {
  margin: 0;
  color: #c7d5e6;
  font-size: 0.8rem;
}

.home-countdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.38rem;
}

.home-countdown-box {
  display: grid;
  gap: 0.15rem;
  justify-items: center;
  padding: 0.48rem 0.28rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(17, 28, 49, 0.98) 0%, rgba(11, 22, 41, 0.98) 100%);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.home-countdown-box strong {
  font-size: clamp(0.95rem, 2.2vw, 1.3rem);
  color: #f8fafc;
}

.home-countdown-box span {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.home-countdown.is-finished .home-countdown-box {
  border-color: rgba(52, 211, 153, 0.28);
}

.home-next-note {
  margin: 0;
  color: #94a3b8;
  line-height: 1.35;
  font-size: 0.76rem;
}

.home-results-section {
  display: grid;
}

.home-results-panel {
  width: 100%;
  max-width: 100%;
}

.home-result-list-expanded {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.home-result-list-expanded .home-result-item {
  min-width: 0;
  align-items: flex-start;
}

.home-feature-grid,
.home-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-panel {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(8, 17, 31, 0.94) 100%);
}

.home-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.home-panel-head > div {
  display: grid;
  gap: 0.35rem;
}

.home-badge {
  padding: 0.32rem 0.72rem;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(14, 165, 233, 0.12);
  color: #bae6fd;
  font-size: 0.73rem;
  font-weight: 700;
}

.home-draw-list,
.home-result-list,
.home-winner-list {
  display: grid;
  gap: 0.8rem;
}

.home-draw-item,
.home-result-item,
.home-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.64);
}

.home-draw-item strong,
.home-result-main strong,
.home-winner-main strong {
  display: block;
  color: #f8fafc;
}

.home-draw-item span,
.home-result-main span,
.home-winner-main span,
.home-winner-main small,
.home-winner-amount span {
  display: block;
  color: #94a3b8;
  line-height: 1.5;
}

.home-draw-side,
.home-result-side {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
  text-align: right;
}

.home-result-main {
  min-width: 0;
}

.home-result-main strong,
.home-result-main span {
  overflow-wrap: anywhere;
}

.home-mini-status {
  padding: 0.28rem 0.58rem;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.16);
  color: #a7f3d0;
  font-size: 0.7rem;
  font-weight: 700;
}

.home-mini-countdown {
  color: #f8fafc;
  font-weight: 700;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
}

.home-result-animal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.9);
  color: #d7e1ee;
  font-size: 0.75rem;
}

.home-result-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.home-result-status.is-pending {
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
}

.home-result-status.is-drawing {
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
}

.home-result-number {
  color: #6ee7b7;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
}

.home-result-number.is-pending {
  color: #e2e8f0;
  font-size: 0.92rem;
  font-family: inherit;
}

.home-wallet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: 1rem;
  align-items: stretch;
}

.home-wallet-stats {
  display: grid;
  gap: 0.75rem;
}

.home-today-stat,
.home-today-note {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.62);
}

.home-today-stat strong {
  display: block;
  color: #f8fafc;
  font-size: 1.45rem;
}

.home-today-stat span,
.home-today-note {
  color: #94a3b8;
  line-height: 1.6;
}

.home-winner-item {
  align-items: flex-start;
}

.home-winner-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.24) 0%, rgba(14, 165, 233, 0.24) 100%);
  color: #f8fafc;
  font-weight: 700;
}

.home-winner-main {
  flex: 1;
  min-width: 0;
}

.home-winner-amount {
  text-align: right;
  flex: 0 0 auto;
}

.home-winner-amount strong {
  display: block;
  color: #6ee7b7;
}

.home-empty-state {
  padding: 1rem;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.42);
}

@media (max-width: 1200px) {
  .home-hero,
  .home-story-grid {
    grid-template-columns: 1fr;
  }

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

  .home-wallet-layout {
    grid-template-columns: 1fr;
  }

  .home-result-list-expanded {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .home-landing,
  .home-feature-grid {
    gap: 0.85rem;
  }

  .home-feature-grid,
  .home-metrics-grid {
    grid-template-columns: 1fr;
  }

  .home-live-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero-copy h1 {
    text-align: center;
  }

  .home-hero-copy,
  .home-hero-media,
  .home-panel,
  .home-metric-card {
    border-radius: 22px;
  }

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

  .home-draw-item,
  .home-winner-item,
  .home-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .home-draw-side,
  .home-winner-amount {
    justify-items: start;
    text-align: left;
  }

  .home-result-item {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.78rem;
    border-radius: 15px;
  }

  .home-result-main strong {
    font-size: 0.92rem;
  }

  .home-result-main span {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .home-result-side {
    gap: 0.25rem;
    justify-items: end;
    text-align: right;
  }

  .home-result-status {
    padding: 0.22rem 0.48rem;
    font-size: 0.66rem;
  }

  .home-result-number {
    font-size: 1rem;
  }

  .home-result-number.is-pending {
    font-size: 0.82rem;
  }

  .home-cta-row {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
  }

  .home-cta-row .btn {
    width: auto;
  }
}

@media (max-width: 640px) {
  .home-hero-copy h1 {
    max-width: none;
    font-size: 1.35rem;
  }

  .home-live-strip {
    grid-template-columns: 1fr;
  }

  .home-result-item {
    gap: 0.5rem;
    padding: 0.62rem 0.68rem;
  }

  .home-result-main strong {
    font-size: 0.88rem;
  }

  .home-result-main span {
    font-size: 0.72rem;
  }

  .home-result-status {
    padding: 0.18rem 0.42rem;
    font-size: 0.62rem;
  }

  .home-result-number {
    font-size: 0.94rem;
  }

  .home-result-number.is-pending {
    font-size: 0.78rem;
  }

  .home-countdown-box {
    padding-inline: 0.3rem;
  }
}
