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

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Kanit', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(69, 180, 255, 0.12), transparent 25%),
    radial-gradient(circle at top right, rgba(110, 82, 255, 0.10), transparent 25%),
    linear-gradient(180deg, #050608 0%, #090b10 100%);
  color: #eef2ff;
  -webkit-tap-highlight-color: transparent;
}

::-webkit-scrollbar { width: 0; height: 0; }

.app-shell {
  min-height: 100vh;
  display: flex;
  background: transparent;
}

.sidebar {
  width: 268px;
  background: rgba(14, 17, 24, 0.95);
  border-right: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 40;
  padding: 18px;
  transition: transform .25s ease;
}

.main {
  margin-left: 268px;
  width: calc(100% - 268px);
  min-height: 100vh;
  padding: 28px;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #54d6ff, #6a7dff);
  box-shadow: 0 0 18px rgba(84, 214, 255, .8);
}

.glass-card {
  background: rgba(18, 22, 30, 0.82);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
}

.hero-card {
  background:
    radial-gradient(circle at top right, rgba(95, 173, 255, .28), transparent 28%),
    linear-gradient(135deg, #111722 0%, #0f1724 40%, #162234 100%);
  border: 1px solid rgba(124, 191, 255, 0.15);
  border-radius: 26px;
  box-shadow: 0 18px 50px rgba(0,0,0,.32);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  color: #aab4c8;
  font-size: 14px;
  cursor: pointer;
  transition: .18s ease;
}

.menu-item:hover,
.menu-item.active {
  background: linear-gradient(135deg, rgba(84,214,255,.14), rgba(92,115,255,.12));
  color: #7fdcff;
  border: 1px solid rgba(127, 220, 255, 0.1);
}

.field {
  width: 100%;
  height: 52px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  color: #f8fbff;
  padding: 0 16px;
  outline: none;
  font-size: 14px;
  transition: .18s ease;
}

.field::placeholder { color: #7e889d; }

.field:focus {
  border-color: rgba(91, 201, 255, .55);
  box-shadow: 0 0 0 4px rgba(84, 214, 255, .10);
  background: rgba(255,255,255,0.055);
}

.label {
  display: block;
  font-size: 13px;
  color: #96a1b6;
  margin-bottom: 9px;
  font-weight: 500;
}

.btn-primary {
  height: 52px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #53d3ff, #5b8cff);
  color: #06111d;
  font-weight: 800;
  padding: 0 18px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(79, 182, 255, .28);
  transition: .18s ease;
}

.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.04); }

.btn-secondary {
  height: 52px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  color: #ecf1ff;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
}

.stat-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 16px;
}

.soft-text { color: #90a0b8; }
.text-green-soft { color: #6df3a6; }
.text-red-soft { color: #ff8b9e; }
.text-blue-soft { color: #7fdcff; }
.text-yellow-soft { color: #ffd56a; }

.page { display: none; }
.page.active { display: block; }

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.04);
  color: #c6d3e6;
}

.tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.tx-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  flex: 0 0 44px;
}

.drawer-btn { display: none; }
.overlay { display: none; }

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 90;
  backdrop-filter: blur(8px);
}

.modal-bg.show { display: flex; }

.modal-card {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, #151a22 0%, #12161d 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 28px;
  padding: 28px 22px;
  box-shadow: 0 20px 80px rgba(0,0,0,.45);
  text-align: center;
}

.confirm-circle {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  margin: 0 auto 22px;
  border: 4px solid rgba(125, 214, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #88ddff;
  font-weight: 800;
  box-shadow: 0 0 28px rgba(84,214,255,.12) inset;
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  margin: 0 auto 14px;
  border: 2px solid rgba(255,255,255,.08);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

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

th, td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 14px;
}

th { color: #92a0b5; font-weight: 600; }

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-105%);
    width: 238px;
  }

  .sidebar.open { transform: translateX(0); }

  .main {
    margin-left: 0;
    width: 100%;
    padding: 16px;
    max-width: 430px;
    margin-inline: auto;
  }

  .drawer-btn { display: inline-flex; }

  .overlay.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.52);
    z-index: 30;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-card { border-radius: 24px; }
  .glass-card { border-radius: 20px; }
  .tx-item { padding: 14px; }

  th, td { white-space: nowrap; }
}
