/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --primary: #0f3d26;
  --primary-2: #166534;
  --primary-3: #22c55e;
  --primary-soft: #dcfce7;
  --accent: #f59e0b;
  --accent-2: #f97316;
  --danger: #dc2626;
  --danger-soft: #fef2f2;

  --bg: #f4f8f5;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --surface-2: #fbfdfc;

  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;

  --border: #e5ece7;
  --border-2: #eef3f0;

  --sidebar-w: 262px;
  --header-h: 68px;

  --shadow-xs: 0 1px 2px rgba(15, 61, 38, 0.05);
  --shadow-sm: 0 2px 8px rgba(15, 61, 38, 0.06);
  --shadow-md: 0 8px 22px -6px rgba(15, 61, 38, 0.14);
  --shadow-lg: 0 24px 48px -18px rgba(15, 61, 38, 0.22);
  --shadow-xl: 0 40px 80px -24px rgba(15, 61, 38, 0.3);

  --grad-primary: linear-gradient(
    135deg,
    #0f3d26 0%,
    #166534 55%,
    #22c55e 130%
  );
  --grad-primary-h: linear-gradient(
    135deg,
    #166534 0%,
    #15803d 55%,
    #22c55e 130%
  );
  --grad-accent: linear-gradient(135deg, #f59e0b, #f97316);
  --grad-soft: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  --grad-panel: linear-gradient(135deg, #ffffff 0%, #f7fbf9 100%);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}

/* ===== BODY ===== */
body {
  font-family:
    "Noto Sans Bengali",
    "Noto Serif Bengali",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}
button {
  font-family: inherit;
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5d0;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* =========================================================
   APP HEADER
   ========================================================= */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.header-inner {
  width: 100%;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  color: var(--text);
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: 0.2s var(--ease);
}
.hamburger:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.2px;
  min-width: 0;
}
.brand img {
  height: 42px;
  width: 42px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 4px;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}
.brand-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.brand-txt .b1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid rgba(34, 197, 94, 0.25);
  white-space: nowrap;
}
.balance-chip i {
  color: var(--primary-3);
  font-size: 1rem;
}
.balance-chip .cur {
  font-weight: 600;
  opacity: 0.7;
}

.btn-hdr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.86rem;
  border: 1px solid transparent;
  transition: 0.2s var(--ease);
  white-space: nowrap;
}
.btn-hdr.primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(22, 101, 52, 0.55);
}
.btn-hdr.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(22, 101, 52, 0.65);
  color: #fff;
}
.btn-hdr.ghost {
  background: var(--surface);
  color: var(--text-2);
  border-color: var(--border);
}
.btn-hdr.ghost:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-soft);
}
.btn-hdr.danger {
  background: var(--surface);
  color: var(--danger);
  border-color: #fecaca;
}
.btn-hdr.danger:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 22px 16px 24px;
  overflow-y: auto;
  z-index: 900;
  transition: transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}

.side-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 0 12px;
  margin: 4px 0 10px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.92rem;
  transition: 0.18s var(--ease);
  position: relative;
  cursor: pointer;
  border: 1px solid transparent;
}
.side-item i:first-child {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--primary-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: 0.2s var(--ease);
}
.side-item:hover {
  background: var(--primary-soft);
  color: var(--primary);
  transform: translateX(3px);
}
.side-item:hover i:first-child {
  background: var(--grad-primary);
  color: #fff;
}
.side-item.active {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(22, 101, 52, 0.5);
}
.side-item.active i:first-child {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.side-item .badge-dot {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.side-card {
  margin-top: auto;
  background: var(--grad-soft);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  text-align: center;
}
.side-card .ic {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--grad-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 10px;
  box-shadow: 0 8px 16px -8px rgba(22, 101, 52, 0.6);
}
.side-card h6 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 4px;
}
.side-card p {
  font-size: 0.76rem;
  color: var(--text-2);
  margin: 0 0 12px;
  line-height: 1.5;
}
.side-card .btn-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--primary);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.78rem;
  box-shadow: var(--shadow-xs);
  transition: 0.2s;
}
.side-card .btn-help:hover {
  background: var(--primary);
  color: #fff;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */
.main-content {
  margin-left: var(--sidebar-w);
  margin-top: var(--header-h);
  padding: 26px 26px 60px;
  min-height: calc(100vh - var(--header-h));
}

.page-head {
  margin-bottom: 22px;
}
.page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  letter-spacing: -0.4px;
  margin: 0 0 6px;
  color: var(--text);
}
.page-title .ic {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--grad-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 8px 18px -8px rgba(22, 101, 52, 0.55);
  flex-shrink: 0;
}
.page-sub {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}

/* =========================================================
   HERO / WELCOME BANNER
   ========================================================= */
.welcome-banner {
  position: relative;
  background: var(--grad-primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 28px 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 22px;
}
.welcome-banner::before,
.welcome-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.welcome-banner::before {
  width: 380px;
  height: 380px;
  top: -160px;
  right: -120px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.16),
    transparent 65%
  );
}
.welcome-banner::after {
  width: 280px;
  height: 280px;
  bottom: -140px;
  left: -80px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.4), transparent 65%);
}
.welcome-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.welcome-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.welcome-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}
.welcome-text h2 {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 4px;
}
.welcome-text p {
  opacity: 0.85;
  font-size: 0.9rem;
  margin: 0;
}
.welcome-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
}
.welcome-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.15);
  }
}

/* =========================================================
   STATS CARDS
   ========================================================= */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
@media (max-width: 900px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: 0.25s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0.8;
}
.stat-card.accent::before {
  background: var(--grad-accent);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.stat-card.accent .stat-ic {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
}
.stat-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary);
}
.stat-card.accent .stat-tag {
  background: #fef3c7;
  color: #b45309;
}
.stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.stat-lbl {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: -2px;
}

@media (max-width: 560px) {
  .stat-card {
    padding: 14px 14px;
    border-radius: 14px;
  }
  .stat-ic {
    width: 34px;
    height: 34px;
    font-size: 1rem;
    border-radius: 10px;
  }
  .stat-val {
    font-size: 1.2rem;
  }
  .stat-lbl {
    font-size: 0.72rem;
  }
  .stat-tag {
    font-size: 0.62rem;
    padding: 3px 7px;
  }
}

/* =========================================================
   DOCUMENTS SECTION
   ========================================================= */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 575px) {
  .panel {
    padding: 18px 14px;
    border-radius: 20px;
  }
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.panel-head h3 {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.3px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-head h3 i {
  color: var(--primary-2);
}
.panel-count {
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 480px;
}
.search-wrap i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 1.08rem;
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  padding: 12px 18px 12px 46px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  transition: 0.2s var(--ease);
}
.search-wrap input:focus {
  outline: none;
  border-color: var(--primary-2);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 101, 52, 0.12);
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--text-2);
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s var(--ease);
}
.chip:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.chip.active {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(22, 101, 52, 0.5);
}

@media (max-width: 560px) {
  .toolbar {
    gap: 10px;
  }
  .search-wrap {
    min-width: 0;
  }
  .search-wrap input {
    padding: 11px 16px 11px 42px;
    font-size: 0.86rem;
  }
  .search-wrap i {
    left: 14px;
    font-size: 0.98rem;
  }
  .chip {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  .panel-head h3 {
    font-size: 1rem;
  }
}

/* =========================================================
   DOC CARDS GRID
   ========================================================= */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
@media (max-width: 640px) {
  .doc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.doc-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  transition: 0.3s var(--ease);
  overflow: hidden;
  animation: cardIn 0.45s var(--ease) both;
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.doc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1.5px;
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.7),
    rgba(15, 61, 38, 0.4) 40%,
    transparent 70%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: 0.3s;
  pointer-events: none;
}
.doc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.doc-card:hover::before {
  opacity: 1;
}
.doc-ic {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: var(--grad-soft);
  color: var(--primary-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 14px;
  transition: 0.3s var(--ease);
}
.doc-card:hover .doc-ic {
  background: var(--grad-primary);
  color: #fff;
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 20px -8px rgba(22, 101, 52, 0.5);
}
.doc-card h4 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 7px;
  line-height: 1.35;
  letter-spacing: -0.2px;
}
.doc-card p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 16px;
  flex-grow: 1;
}
.doc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}
.badge-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #15803d;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}
.badge-status.coming {
  background: rgba(234, 179, 8, 0.14);
  color: #a16207;
}
.badge-status.coming .dot {
  background: #a16207;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.22);
}
.btn-doc {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--grad-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.82rem;
  transition: 0.25s var(--ease);
  box-shadow: 0 6px 14px -6px rgba(22, 101, 52, 0.5);
  white-space: nowrap;
}
.btn-doc:hover {
  color: #fff;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 10px 20px -6px rgba(22, 101, 52, 0.6);
}

@media (max-width: 640px) {
  .doc-card {
    padding: 16px 14px 14px;
    border-radius: 16px;
  }
  .doc-ic {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    border-radius: 12px;
    margin-bottom: 10px;
  }
  .doc-card h4 {
    font-size: 0.86rem;
    margin-bottom: 5px;
    line-height: 1.3;
  }
  .doc-card p {
    font-size: 0.72rem;
    line-height: 1.45;
    margin-bottom: 11px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .doc-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }
  .badge-status {
    justify-content: center;
    width: 100%;
    font-size: 0.62rem;
    padding: 3px 9px;
  }
  .btn-doc {
    justify-content: center;
    width: 100%;
    font-size: 0.72rem;
    padding: 7px 10px;
  }
}

/* Empty state */
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty i {
  font-size: 2.6rem;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--grad-soft);
  color: var(--primary-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.empty h5 {
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
  margin: 0 0 6px;
}
.empty p {
  font-size: 0.88rem;
  margin: 0;
}
@media (max-width: 560px) {
  .empty {
    padding: 40px 16px;
  }
  .empty i {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }
  .empty h5 {
    font-size: 0.95rem;
  }
  .empty p {
    font-size: 0.8rem;
  }
}

/* =========================================================
   SIDEBAR OVERLAY (MOBILE)
   ========================================================= */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 850;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s var(--ease);
}
.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1024px) {
  .hamburger {
    display: inline-flex;
  }
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 0 0 40px rgba(15, 23, 42, 0.15);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
    padding: 20px 16px 60px;
  }
}
@media (max-width: 480px) {
  .header-inner {
    padding: 0 12px;
  }
  .brand-txt .b1 {
    font-size: 0.95rem;
  }
  .brand-sub {
    display: none;
  }
  .balance-chip {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
  .btn-hdr {
    padding: 8px 12px;
    font-size: 0.78rem;
  }
  .btn-hdr span.lbl {
    display: none;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  text-align: center;
  padding: 28px 16px;
  color: var(--muted);
  font-size: 0.84rem;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}
.site-footer strong {
  color: var(--primary);
  font-weight: 700;
}

/* =========================================================
   AUTH SCREEN
   ========================================================= */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--grad-primary);
  position: relative;
  overflow: hidden;
}
.auth-wrap::before,
.auth-wrap::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.auth-wrap::before {
  width: 700px;
  height: 700px;
  top: -260px;
  right: -200px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.14),
    transparent 60%
  );
}
.auth-wrap::after {
  width: 520px;
  height: 520px;
  bottom: -220px;
  left: -160px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.35), transparent 60%);
}
@media (max-width: 900px) {
  .auth-wrap {
    grid-template-columns: 1fr;
  }
  .auth-hero {
    display: none;
  }
}
.auth-hero {
  position: relative;
  z-index: 2;
  padding: 60px 56px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-hero .brand-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-hero .brand-top img {
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 14px;
  padding: 5px;
}
.auth-hero .brand-top .t {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.2px;
}
.auth-hero .brand-top .s {
  font-size: 0.78rem;
  opacity: 0.75;
}
.auth-hero h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 18px;
}
.auth-hero h1 span {
  background: linear-gradient(135deg, #fbbf24, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.02rem;
  max-width: 480px;
  line-height: 1.65;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
  max-width: 440px;
}
.auth-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 13px 16px;
  border-radius: 16px;
  backdrop-filter: blur(8px);
}
.auth-feature .ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.auth-feature strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}
.auth-feature small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.auth-panel {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(2px);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 26px;
  padding: 34px 32px 30px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.35);
  animation: cardIn 0.5s var(--ease) both;
}
@media (max-width: 480px) {
  .auth-card {
    padding: 26px 20px 24px;
    border-radius: 22px;
  }
}
.auth-card .logo {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  margin: 0 auto 14px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(15, 61, 38, 0.5);
}
.auth-card .logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.auth-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 4px;
  letter-spacing: -0.4px;
}
.auth-card .sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-alt);
  padding: 5px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
}
.auth-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 11px 0;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  transition: 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.auth-tab-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 61, 38, 0.12);
}

.form-container {
  display: none;
  animation: fadeIn 0.3s ease both;
}
.form-container.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.field {
  position: relative;
  margin-bottom: 14px;
}
.field .ic {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 1rem;
  pointer-events: none;
}
.field input {
  width: 100%;
  padding: 14px 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-alt);
  font-size: 0.94rem;
  font-family: inherit;
  transition: 0.2s var(--ease);
  color: var(--text);
}
.field input:focus {
  outline: none;
  border-color: var(--primary-2);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 101, 52, 0.12);
}
.field .toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  padding: 6px;
  font-size: 1.05rem;
  border-radius: 8px;
}
.field .toggle:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.btn-submit {
  width: 100%;
  border: none;
  padding: 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
  background: var(--grad-primary);
  box-shadow: 0 12px 24px -10px rgba(15, 61, 38, 0.55);
  transition: 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -10px rgba(15, 61, 38, 0.65);
}
.btn-submit.register {
  background: linear-gradient(135deg, #15803d, #22c55e);
  box-shadow: 0 12px 24px -10px rgba(22, 101, 52, 0.55);
}

.switch-line {
  text-align: center;
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--muted);
}
.switch-line a {
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}
.switch-line a:hover {
  text-decoration: underline;
}

.alert-custom {
  border-radius: 14px;
  font-size: 0.88rem;
  padding: 11px 14px;
  margin-bottom: 16px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-danger.alert-custom {
  background: var(--danger-soft);
  color: #b91c1c;
  border-color: #fecaca;
}
.alert-success.alert-custom {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}
