:root {
  --bg: #020617;
  --panel: #0b1220;
  --panel2: #0f172a;
  --border: rgba(255, 255, 255, .12);
  --text: #f8fafc;
  --muted: rgba(255, 255, 255, .74);
  --muted2: rgba(255, 255, 255, .62);
  --shadow: 0 30px 90px rgba(0, 0, 0, .45);
  --g: linear-gradient(135deg, #7c3aed 0%, #6366f1 30%, #22c55e 100%);
  --g2: radial-gradient(1100px 700px at 10% -10%, rgba(124, 58, 237, .40), transparent 52%),
    radial-gradient(900px 620px at 90% 10%, rgba(34, 197, 94, .32), transparent 50%),
    radial-gradient(900px 620px at 50% 110%, rgba(99, 102, 241, .22), transparent 52%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--g2), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  min-height: 100vh;
}

.gw-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.gw-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.gw-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.gw-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .25);
}

.gw-name {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

.gw-name-strong {
  color: #fff;
}

.gw-name-soft {
  color: rgba(255, 255, 255, .80);
  margin-left: 2px;
}

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

.gw-page {
  padding-top: 28px;
  padding-bottom: 80px;
}

/* Surfaces */
.card-surface {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.gw-card-pad {
  padding: 26px;
}

/* Typography */
.gw-title {
  font-weight: 1000;
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-size: clamp(2.6rem, 3.8vw, 3.9rem);
}

.gw-grad {
  background: var(--g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gw-lead {
  color: rgba(255, 255, 255, .82);
  font-size: 1.12rem;
  max-width: 58ch;
}

.gw-lead-sub {
  color: rgba(255, 255, 255, .72);
  margin: 0;
}

.gw-h2 {
  font-weight: 900;
  letter-spacing: -0.03em;
}

.gw-h3 {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.gw-h5 {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.gw-strong {
  color: #fff;
  font-weight: 800;
}

.gw-muted {
  color: var(--muted) !important;
}

.gw-help {
  margin-top: 6px;
  color: var(--muted2);
  font-size: .92rem;
}

.gw-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .86);
  font-weight: 700;
}

.gw-eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .86);
  font-weight: 700;
  font-size: .92rem;
}

/* Buttons — strong */
.gw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: .62rem 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, filter .12s ease, background .12s ease, border-color .12s ease;
  user-select: none;
}

.gw-btn:active {
  transform: translateY(1px);
}

.gw-btn-sm {
  padding: .50rem .88rem;
  border-radius: 12px;
  font-weight: 800;
}

.gw-btn-lg {
  padding: .78rem 1.25rem;
  border-radius: 16px;
  font-size: 1.05rem;
}

.gw-btn-primary {
  background: var(--g);
  color: #0b1020;
  box-shadow: 0 18px 55px rgba(99, 102, 241, .35);
}

.gw-btn-primary:hover {
  filter: brightness(1.05);
}

.gw-btn-outline {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .20);
  color: #fff;
}

.gw-btn-outline:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .28);
}

.gw-btn-ghost {
  background: rgba(255, 255, 255, .03);
  border-color: rgba(255, 255, 255, .14);
  color: #fff;
}

.gw-btn-ghost:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .22);
}

.gw-btn-danger {
  background: rgba(239, 68, 68, .12);
  border-color: rgba(239, 68, 68, .30);
  color: rgba(255, 255, 255, .92);
}

.gw-btn-danger:hover {
  background: rgba(239, 68, 68, .18);
  border-color: rgba(239, 68, 68, .38);
}

.gw-link {
  color: rgba(255, 255, 255, .95);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, .35);
}

.gw-link:hover {
  border-bottom-color: rgba(255, 255, 255, .6);
}

/* Mini feature cards */
.gw-mini-card {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(2, 6, 23, .45);
}

.gw-mini-title {
  font-weight: 900;
  margin-top: 6px;
}

.gw-mini-sub {
  color: rgba(255, 255, 255, .74);
  font-size: .92rem;
}

.gw-ic {
  font-size: 1.35rem;
}

/* Mock wallet */
.gw-mock {
  position: relative;
}

.gw-wallet {
  padding: 24px;
}

.gw-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, .32);
  background: rgba(34, 197, 94, .10);
  color: rgba(219, 255, 236, .95);
  font-weight: 900;
  font-size: .86rem;
}

.gw-balance {
  font-size: 2.4rem;
  font-weight: 1000;
  margin-top: 6px;
  letter-spacing: -0.02em;
}

.gw-balance-lg {
  font-size: clamp(3.0rem, 4.4vw, 3.9rem);
  font-weight: 1000;
  margin: 10px 0 6px;
  background: var(--g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gw-id-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.gw-id {
  flex: 1;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, .22);
  background: rgba(2, 6, 23, .55);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: rgba(255, 255, 255, .92);
}

.gw-input-inline {
  height: 46px;
}

.gw-floats {
  position: absolute;
  right: -6px;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gw-float {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(2, 6, 23, .55);
  color: rgba(255, 255, 255, .90);
  font-weight: 900;
  width: fit-content;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

/* Inputs */
.gw-input,
.gw-select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(2, 6, 23, .55);
  color: rgba(255, 255, 255, .92);
  outline: none;
}

.gw-input::placeholder {
  color: rgba(255, 255, 255, .55);
}

.gw-input:focus,
.gw-select:focus {
  border-color: rgba(99, 102, 241, .55);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .18);
}

/* Select2 dark */
.select2-container--default .select2-selection--single {
  height: 50px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  background: rgba(2, 6, 23, .55) !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 10px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: rgba(255, 255, 255, .92) !important;
  padding-left: 6px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 48px !important;
  right: 10px !important;
}

.select2-dropdown {
  background: #020617 !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 14px !important;
  overflow: hidden;
}

.select2-results__option {
  color: rgba(255, 255, 255, .92) !important;
}

.select2-results__option--highlighted {
  background: rgba(99, 102, 241, .28) !important;
}

.select2-search--dropdown .select2-search__field {
  background: rgba(255, 255, 255, .06) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  color: rgba(255, 255, 255, .92) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
}

/* Table — custom */
.gw-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
}

.gw-table thead th {
  text-align: left;
  padding: 12px 14px;
  font-size: .92rem;
  color: rgba(255, 255, 255, .78);
  background: rgba(2, 6, 23, .60);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.gw-table tbody td {
  padding: 12px 14px;
  background: rgba(2, 6, 23, .35);
  color: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.gw-table tbody tr:hover td {
  background: rgba(255, 255, 255, .05);
}

.gw-table tbody tr:last-child td {
  border-bottom: none;
}

/* MTCN */
.gw-mtcn {
  max-width: 460px;
  margin: 0 auto;
  padding: 18px 16px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, .22);
  background: rgba(2, 6, 23, .45);
}

.gw-mtcn-code {
  font-size: clamp(2.3rem, 4vw, 3.0rem);
  font-weight: 1000;
  letter-spacing: 6px;
  margin-top: 6px;
  background: var(--g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gw-footer {
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, .60);
  padding: 26px 0;
}