/* =======================
   Base + Variables
======================= */
:root {
  --bg: #e0e0e0;
  --bg-2: #0e1622;
  --panel: #101822;
  --panel-2: #e6e6e6;
  --ink: #e8eef7;
  --ink-dim: #a8b3c4;
  --muted: #8ea3b6;
  --brand: #3e63ff;
  --brand-2: #2752ff;
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
  --bluechip: #0d5bd9;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --radius: 18px;
  --radius-sm: 12px;
  --gap: 16px;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font: 14px/1.5 Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
}

/* =======================
   AUTH PAGES (Login/Signup)
======================= */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.auth-left {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.auth-left .auth-card {
  width: min(520px, 90%);
}

.auth-title {
  font-size: 42px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 26px;
  letter-spacing: .2px
}

.auth-title span {
  color: var(--brand);
}

.auth-field {
  margin-bottom: 18px;
}

.field {
  width: 100%;
  padding: 16px 14px 14px;
  border: none;
  border-bottom: 2px solid #e5e7eb;
  outline: none;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

.field:focus {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(62, 99, 255, .18)
}

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

.small {
  font-size: 12px;
  color: #6b7280
}

.auth-actions {
  margin-top: 10px
}

.btn-primary {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 16px;
  width: 100%;
  box-shadow: 0 12px 30px rgba(62, 99, 255, .35);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .4px
}

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

.switch {
  position: relative;
  width: 46px;
  height: 22px;
  background: #d1d5db;
  border-radius: 40px;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  cursor: pointer
}

.switch input {
  display: none
}

.switch .thumb {
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transform: translateX(0);
  transition: .2s
}

.switch input:checked+.thumb {
  transform: translateX(24px);
  background: var(--brand)
}

.auth-links {
  margin-top: 18px;
  color: #111827
}

.auth-links a {
  color: var(--brand);
  text-decoration: none
}

.auth-links a:hover {
  text-decoration: underline
}

.auth-keep {
  margin-top: 14px;
  color: #6b7280
}

.auth-right {
  background: #0a0e18
}

.auth-right-fill {
  height: 100vh;
  background: #0a0e18
}

.auth-note {
  margin-top: 24px;
  color: #6b7280
}

.center-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
  padding: 24px
}

.center-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f8fafc
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.ck {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #6b7280;
  margin-top: 8px
}

/* =======================
   DASHBOARD LAYOUT
======================= */
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: 68px 1fr;
  grid-template-areas: "sidebar header" "sidebar main";
  background: var(--bg);
}

/* Sidebar */
.sidebar {
  grid-area: sidebar;
  background: var(--panel-2);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 30;
  border-right: 1px solid rgba(255, 255, 255, .06)
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.brand .logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0a61c5, #023ca7);
  display: grid;
  place-items: center;
  font-weight: 800
}

.brand .name {
  font-weight: 800
}


.brand .namee {
  font-weight: 800;
  color: #000000
}


.nav {
  padding: 8px
}

.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0c1524;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  margin: 4px 0
}

.nav a:hover {
  background: rgba(255, 255, 255, .06)
}

.nav a.active {
  background: rgba(62, 99, 255, .15);
  outline: 1px solid rgba(62, 99, 255, .25)
}

.profile {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  gap: 10px
}

.profile img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover
}

/* Header */
.header {
  grid-area: header;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(11, 17, 26, .9);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 25;
  border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.h-left {
  display: flex;
  align-items: center;
  gap: 12px
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
  cursor: pointer
}

.icon-btn:hover {
  background: rgba(255, 255, 255, .14)
}

.hi {
  font-size: 26px;
  font-weight: 800
}

/* Main */
.main {
  grid-area: main;
  padding: 16px
}

.accounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 12px
}

.acc {
  background: #0f3f85;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow)
}

.acc h4 {
  margin: 0 0 6px;
  font-size: 12px;
  opacity: .92
}

.acc .val {
  font-size: 18px;
  font-weight: 800
}

.quick {
  display: flex;
  gap: 12px;
  margin-bottom: 16px
}

.qbtn {
  flex: 1;
  background: var(--panel);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow)
}

.grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 16px
}

.card h3 {
  margin: 0 0 12px;
  font-size: 16px
}

.txn {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-radius: 12px
}

.txn:hover {
  background: rgba(255, 255, 255, .04)
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  background: rgba(255, 255, 255, .06)
}

.badge.green {
  background: rgba(34, 197, 94, .15);
  color: #a5f3c6
}

.badge.red {
  background: rgba(218, 218, 218, 0.822);
  color: #da0f0f
}

/* Collapsed Sidebar */
body.collapsed .app {
  grid-template-columns: 76px 1fr
}

body.collapsed .sidebar .name,
body.collapsed .nav a span,
body.collapsed .profile .meta {
  display: none
}

body.collapsed .nav a {
  justify-content: center
}

/* Mobile */
@media(max-width:980px) {
  .accounts {
    grid-template-columns: repeat(2, 1fr)
  }

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

@media(max-width:720px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-areas: "header" "main"
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    transform: translateX(-100%);
    transition: transform .25s ease
  }

  body.show-sidebar .sidebar {
    transform: translateX(0)
  }

  .header {
    position: sticky;
    top: 0
  }
}

/* Transfers Page */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.input {
  background: #0f1520;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 12px;
  color: #e8eef7;
  outline: none
}

.input:focus {
  border-color: var(--brand)
}

.btn {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(62, 99, 255, .35)
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px
}

.table tr {
  background: #0f1520
}

.table td,
.table th {
  padding: 12px 14px
}

.table th {
  font-size: 12px;
  color: var(--ink-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px
}

.table tr {
  border-radius: 12px
}

.table tr td:first-child {
  border-radius: 12px 0 0 12px
}

.table tr td:last-child {
  border-radius: 0 12px 12px 0
}