:root {
  --brand: #7B2FF7;
  --accent: #FF914D;
  --bg: #0d0f15;
  --panel: #11131a;
  --line: #26314a;
  --ok: #1fdc6b;
  --bad: #ff6b6b;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #e9eeff;
  background: 
    radial-gradient(1100px 500px at 10% -10%, rgba(123,47,247,.25), transparent 50%),
    radial-gradient(900px 600px at 120% 20%, rgba(255,145,77,.20), transparent 50%),
    var(--bg);
}

a {
  color: #c8d3ff;
  text-decoration: none;
}

.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: 0;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #ffc49e);
  color: #121521;
  box-shadow: 0 8px 18px rgba(255,145,77,.25);
}

.btn.secondary {
  background: linear-gradient(135deg, #8fa2ff, #5b6bff);
  color: #fff;
}

.btn.ghost {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  color: #e8edff;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  color: #c6d2ff;
  background: rgba(255,255,255,.04);
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(3,25,54,.18);
}

.grid {
  display: grid;
  gap: 16px;
}

@media(min-width: 768px) { 
  .grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  } 
}

@media(min-width: 1024px) { 
  .layout {
    grid-template-columns: 1fr 360px;
  } 
}

.layout {
  display: grid;
  gap: 18px;
}

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

.tiny {
  font-size: 12px;
  color: #9fb1d2;
}

.muted {
  color: #a6b4d6;
}

.price {
  font-weight: 800;
  color: #ffe3d2;
} 

.tag {
  font-weight: 800;
  color: #cfd7ff;
}

.divider {
  height: 1px;
  background: #26314a;
  margin: 16px 0;
}

.input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #172033;
  color: #e9f0ff;
  min-height: 48px;
}

select {
  cursor: pointer;
  font-size: 14px;
}

select option {
  background: #0f1626;
  color: #e9f0ff;
  padding: 8px;
}

/* Improved dropdown styling for better text visibility */
.grid.cols-2 select {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(13,15,21,.78);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: conic-gradient(from 200deg, #FF914D, #ffd0b2 30%, #6835f7 60%, #7B2FF7 100%);
}

.pill {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
}

#page-checkout, #page-verify, #page-admin {
  display: none;
  min-height: 100vh;
  background: #0a0e16;
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 20px;
}

.code {
  font-family: ui-monospace, Consolas, Menlo, monospace;
  background: #0b0e14;
  border: 1px solid #26314a;
  padding: 6px 8px;
  border-radius: 10px;
}

.alert {
  border: 1px dashed #6b2222;
  background: #2a1010;
  color: #ffc9c9;
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 10px;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.table th, .table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table th {
  background: #121726;
  text-align: left;
}

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

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: none;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #182034;
}

.toast.show {
  display: block;
  animation: fadeout 3.2s forwards;
}

@keyframes fadeout {
  0% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

.hint {
  font-size: .9rem;
  color: #c6d2ff;
}

.danger {
  color: #ffb1b1;
}