:root {
  --brand: #0d6efd;
  --brand-dark: #0a58ca;
  --brand-soft: #eaf3ff;
  --ink: #152033;
  --muted: #667085;
  --line: #e6edf5;
  --bg: #f4f7fb;
  --card: #ffffff;
  --success-bg: #dcfce7;
  --success-text: #166534;
  --warning-bg: #fef3c7;
  --warning-text: #92400e;
  --info-bg: #dbeafe;
  --info-text: #1d4ed8;
  --danger-bg: #fee2e2;
  --danger-text: #991b1b;
  --shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --sidebar-width: 280px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.10), transparent 32%),
    linear-gradient(180deg, #eff5ff 0%, #f7f9fc 36%, #ffffff 100%);
}

a { text-decoration: none; }
img { max-width: 100%; display: block; }
.text-muted-2 { color: var(--muted) !important; }
.min-h-screen { min-height: 100vh; }
.page-shell {
  min-height: 100vh;
  padding: 16px;
}
.app-frame {
  max-width: 1480px;
  margin: 0 auto;
  min-height: calc(100vh - 32px);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.role-switch-card {
  background: linear-gradient(135deg, #0d6efd 0%, #1f4ed8 100%);
  color: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.soft-card {
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.card-header-lite {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
.status-success { background: var(--success-bg); color: var(--success-text); }
.status-warning { background: var(--warning-bg); color: var(--warning-text); }
.status-info { background: var(--info-bg); color: var(--info-text); }
.status-danger { background: var(--danger-bg); color: var(--danger-text); }

.app-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 32px);
}

.sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #172554 100%);
  color: #fff;
  padding: 22px 18px;
  position: relative;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 1.2rem;
}

.user-panel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px;
  padding: 14px;
  margin-bottom: 22px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.92);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.menu-label {
  color: rgba(255,255,255,0.65);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 12px 10px 10px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link-custom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 18px;
  color: rgba(255,255,255,0.82);
  font-weight: 600;
  transition: .2s ease;
}
.nav-link-custom:hover,
.nav-link-custom.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.nav-link-custom i {
  width: 20px;
  text-align: center;
}

.main-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.topbar-search {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding-left: 42px;
}

.search-wrap {
  position: relative;
}
.search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.content-wrap {
  padding: 18px;
  padding-bottom: 100px;
}

.hero-card {
  background: linear-gradient(135deg, #003300 0%, #13850d 100%);
  color: #fff;
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 20px 34px rgba(37, 99, 235, 0.18);
}

.balance-tile {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 22px;
  padding: 16px;
}

.metric-tile {
  background: var(--card);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  height: 100%;
}

.info-block {
  background: #f7faff;
  border: 1px solid #e4eefb;
  border-radius: 18px;
  padding: 15px;
  height: 100%;
}

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.data-row:last-child { border-bottom: 0; padding-bottom: 0; }

.timeline-item {
  position: relative;
  padding-left: 20px;
  margin-bottom: 18px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}
.timeline-item::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  bottom: -18px;
  width: 2px;
  background: #dbeafe;
}
.timeline-item:last-child::after { display: none; }

.mobile-bottom-nav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 40;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.12);
  padding: 8px;
}
.mobile-bottom-nav .nav {
  gap: 6px;
}
.mobile-bottom-nav .nav-link {
  flex: 1 1 0;
  border-radius: 16px;
  color: var(--muted);
  padding: 10px 8px;
  font-size: .76rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.mobile-bottom-nav .nav-link.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.table-modern {
  --bs-table-bg: transparent;
  margin-bottom: 0;
}
.table-modern th {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  border-bottom-color: var(--line);
}
.table-modern td {
  vertical-align: middle;
  border-bottom-color: var(--line);
}

.filter-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
}

.request-option {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  transition: .2s ease;
  background: #fff;
}
.request-radio:checked + .request-option {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.08);
  background: #f8fbff;
}
.request-radio { display: none; }

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.auth-card {
  width: min(1100px, 100%);
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 32px;
  box-shadow: 0 25px 70px rgba(15,23,42,0.12);
  overflow: hidden;
}
.auth-hero {
  background: linear-gradient(135deg, #003300 0%, #13850d 100%);
  color: #fff;
  padding: 28px;
  height: 100%;


}
.auth-hero .bg-overlay {
	  position: absolute;
    height: 100%;
    width: 100%;
    right: 0;
    bottom: 0;
    left: 0;
    top: 0;
    background-color: #224326;
    background-image: url(https://www.transparenttextures.com/patterns/dark-matter.png);
    opacity: 1;
}
.auth-panel {
  padding: 28px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.feature-item:last-child { margin-bottom: 0; }
.feature-item .icon-wrap {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.18);
}

.desktop-only { display: none !important; }

@media (min-width: 992px) {
  .page-shell { padding: 20px; }
  .app-layout { grid-template-columns: var(--sidebar-width) 1fr; }
  .sidebar { min-height: calc(100vh - 40px); }
  .content-wrap { padding: 24px; }
  .topbar { padding: 18px 24px; }
  .desktop-only { display: block !important; }
  .mobile-bottom-nav { display: none; }
}

@media (max-width: 991.98px) {
  .sidebar { display: none; }
  .app-frame { border-radius: 28px; min-height: calc(100vh - 32px); }
  .hero-card { padding: 20px; }
}

@media (max-width: 575.98px) {
  .page-shell { padding: 10px; }
  .app-frame { min-height: calc(100vh - 20px); border-radius: 24px; }
  .topbar { padding: 14px; }
  .content-wrap { padding: 14px; padding-bottom: 96px; }
  .hero-card { border-radius: 22px; }
  .soft-card, .metric-tile, .info-block { border-radius: 20px; }
  .avatar { width: 58px; height: 58px; border-radius: 16px; }
}

.auth-form-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  padding: 20px;
}
.auth-divider {
  position: relative;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  margin: 18px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--line);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.input-icon-wrap {
  position: relative;
}
.input-icon-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  z-index: 2;
}
.input-icon-wrap .form-control,
.input-icon-wrap .form-select {
  padding-left: 42px;
  border-radius: 16px;
  min-height: 52px;
  border-color: var(--line);
}
.auth-form-card .form-control,
.auth-form-card .form-select {
  border-radius: 16px;
  min-height: 52px;
  border-color: var(--line);
}
.auth-form-card .form-control:focus,
.auth-form-card .form-select:focus {
  box-shadow: 0 0 0 4px rgba(13,110,253,.08);
  border-color: var(--brand);
}
.quick-link-card {
  background: #f8fbff;
  border: 1px solid #e4eefb;
  border-radius: 20px;
  padding: 14px 16px;
}
.token-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.token-grid .form-control {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  min-height: 58px;
  padding: 0;
}
.security-list {
  display: grid;
  gap: 10px;
}
.security-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #e4eefb;
}
.security-item i {
  color: var(--brand);
}
.password-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.password-meter span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
}
.password-meter span.active {
  background: linear-gradient(90deg, #0d6efd, #2563eb);
}
.auth-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.auth-footer-links a {
  color: var(--brand-dark);
  font-weight: 600;
}
@media (max-width: 575.98px) {
  .auth-panel, .auth-hero { padding: 20px; }
  .auth-form-card { padding: 16px; border-radius: 20px; }
  .token-grid { gap: 8px; }
  .token-grid .form-control { min-height: 52px; font-size: 1.1rem; }
}
