:root {
  --bg: #040507;
  --panel: rgba(14, 16, 23, 0.9);
  --panel-2: rgba(18, 21, 30, 0.95);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f6f7fb;
  --muted: #8f929f;
  --yellow: #f4bc17;
  --yellow-soft: rgba(244, 188, 23, 0.16);
  --white-btn: #f4f4f4;
  --success: #27c281;
  --danger: #ff6b6b;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
body { min-height: 100vh; position: relative; overflow-x: hidden; }

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
}

.container { width: min(1180px, calc(100vw - 32px)); margin: 0 auto; }
.narrow { width: min(1080px, calc(100vw - 32px)); }
.hidden { display: none !important; }

.bg-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  opacity: .2;
  pointer-events: none;
}
.glow-1 { width: 360px; height: 360px; background: #f7c624; top: -30px; left: -70px; }
.glow-2 { width: 320px; height: 320px; background: #8057ff; bottom: -70px; right: -90px; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-row { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  box-shadow: 0 0 0 5px rgba(244, 188, 23, 0.08);
}
.brand-text { font-size: 32px; font-weight: 900; letter-spacing: .4px; }
.brand-text-wrap { display: flex; align-items: center; }
.top-actions { display: flex; gap: 12px; align-items: center; }

.hero-title {
  margin-top: 28px;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .4px;
}
.hero-title span { color: var(--yellow); }
.hero-sub { color: var(--muted); margin-top: 10px; margin-bottom: 18px; font-size: 20px; }

.page-grid {
  display: grid;
  grid-template-columns: 1.45fr .95fr;
  gap: 36px;
  padding: 18px 0 48px;
}
.glass-card {
  background: linear-gradient(180deg, rgba(20, 22, 33, .94), rgba(10, 12, 18, .97));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.form-card { border-radius: 26px; padding: 26px; }
.side-card { margin-top: 88px; border-radius: 28px; padding: 28px; height: fit-content; }
.field-label {
  display: inline-block;
  font-size: 13px;
  color: #b8bcc6;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: .3px;
}
.row { display: grid; gap: 14px; margin-top: 18px; }
.two-col { grid-template-columns: 1fr 1fr; }
.three-col { grid-template-columns: 1.25fr 1fr 1fr; }
.align-end { align-items: end; }

.input,
.select,
.textarea-note {
  width: 100%;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.05);
  color: var(--text);
  border-radius: 18px;
  padding: 15px 16px;
  outline: none;
  transition: .2s ease;
}
.input:focus,
.select:focus,
.textarea-note:focus {
  border-color: rgba(244,188,23,.55);
  box-shadow: 0 0 0 4px rgba(244,188,23,.12);
}
.textarea { min-height: 120px; resize: vertical; }
.textarea-note { min-height: 60px; resize: vertical; }

.upload-card {
  position: relative;
  min-height: 182px;
  border-radius: 24px;
  border: 1px dashed rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02));
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
}
.upload-card:hover { border-color: rgba(244,188,23,.45); }
.upload-inner { text-align: center; color: var(--muted); }
.upload-icon { font-size: 40px; margin-bottom: 8px; color: #6b6d76; }
.upload-text { font-weight: 700; }
.upload-tip { font-size: 12px; margin-top: 6px; }
.logo-preview { width: 100%; height: 182px; object-fit: contain; background: rgba(0,0,0,.32); }

.segmented {
  display: flex;
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  padding: 6px;
  gap: 6px;
}
.seg {
  flex: 1;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: #e2e2e8;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 800;
}
.seg.active {
  background: var(--yellow);
  color: #111;
  box-shadow: 0 12px 30px rgba(244,188,23,.22);
}

.primary-btn,
.ghost-btn,
.submit-btn,
.wallet-option,
.modal-close {
  border: none;
  cursor: pointer;
  transition: .22s ease;
  font-weight: 800;
}
.primary-btn.small { padding: 12px 16px; border-radius: 14px; }
.primary-btn {
  background: var(--yellow);
  color: #111;
  padding: 14px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(244,188,23,.22);
}
.primary-btn:hover,
.wallet-option:hover,
.submit-btn:hover { transform: translateY(-1px); }
.primary-btn:disabled,
.submit-btn:disabled { opacity: .7; cursor: not-allowed; }
.ghost-btn {
  background: rgba(255,255,255,.05);
  color: #d5d5dc;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
}
.submit-btn {
  width: 100%;
  margin-top: 24px;
  background: linear-gradient(180deg, #ffffff, #ebebeb);
  color: #111;
  padding: 18px 20px;
  border-radius: 20px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: .4px;
}

.status-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  color: #c1c1c8;
  border: 1px solid rgba(255,255,255,.05);
  white-space: pre-wrap;
}
.status-box.status-error { border-color: rgba(255,107,107,.26); color: #ffb1b1; }
.status-box.status-success { border-color: rgba(39,194,129,.26); color: #97efc8; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  color: #dddde3;
}
.feature-list li { padding-left: 30px; position: relative; }
.feature-list li::before {
  content: '◉';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--yellow);
}
.highlight-box {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(244,188,23,.18), rgba(244,188,23,.08));
  color: #ffd664;
  border: 1px solid rgba(244,188,23,.22);
}
.community-card,
.wallet-box {
  margin-top: 22px;
  border-radius: 20px;
  padding: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.community-title { font-size: 22px; font-weight: 900; }
.community-desc,
.wallet-label,
.dashboard-tip { color: var(--muted); margin-top: 8px; }
.community-btn {
  display: inline-block;
  margin-top: 16px;
  width: 100%;
  text-align: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 800;
}
.wallet-name { margin-top: 10px; font-weight: 800; color: #ffe7a0; }
.wallet-address {
  margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}

.wallet-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.wallet-modal-box {
  width: 100%;
  max-width: 480px;
  border-radius: 24px;
  padding: 22px;
}
.wallet-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.wallet-modal-header h3 { margin: 0; font-size: 24px; }
.wallet-modal-header p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.modal-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 24px;
}
.wallet-section-title { color: var(--yellow); font-size: 14px; margin-bottom: 12px; }
.wallet-list { display: grid; gap: 12px; }
.wallet-option {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  text-align: left;
  background: rgba(255,255,255,.04);
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wallet-option small { color: var(--muted); }
.wallet-empty {
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 16px;
  color: var(--muted);
}

.admin-page { padding: 38px 0 60px; }
.admin-topbar,
.dashboard-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-title { margin-bottom: 18px; }
.admin-login-card,
.dashboard-header { border-radius: 26px; padding: 24px; margin-bottom: 24px; }
.admin-login-form { display: grid; gap: 16px; }
.admin-login-actions,
.toolbar-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.orders-grid { display: grid; gap: 18px; }
.order-card {
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(22,24,36,.92), rgba(12,14,20,.96));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.order-header { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.order-title { font-size: 24px; font-weight: 900; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(244,188,23,.14);
  color: #ffd55b;
  border: 1px solid rgba(244,188,23,.22);
}
.order-layout { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.order-main { flex: 1; min-width: 280px; }
.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 16px 0;
}
.meta-item { background: rgba(255,255,255,.03); border-radius: 16px; padding: 12px; line-height: 1.6; }
.meta-item strong { display: block; color: #a4a4ad; font-size: 12px; margin-bottom: 6px; }
.order-actions { display: grid; grid-template-columns: 160px 1fr auto; gap: 12px; margin-top: 16px; }
.order-logo {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.1);
}

@media (max-width: 960px) {
  .page-grid { grid-template-columns: 1fr; }
  .side-card { margin-top: 0; }
  .submit-btn { font-size: 22px; }
  .order-actions { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .topbar,
  .admin-topbar,
  .dashboard-toolbar { flex-direction: column; align-items: flex-start; }
  .top-actions,
  .two-col,
  .three-col,
  .meta-grid { grid-template-columns: 1fr; display: grid; width: 100%; }
  .top-actions,
  .toolbar-actions,
  .admin-login-actions { display: flex; flex-wrap: wrap; }
  .form-card,
  .side-card,
  .wallet-modal-box { padding: 18px; border-radius: 22px; }
}
