/* Menm token koulè/font ak landing page GoCrypto a (websithandoff/website/css/styles.css) */
:root {
  --primary: #2873FF;
  --ink: #10192D;
  --grey: #8E9BAE;
  --muted: #5B6478;
  --surface: #F8FAFC;
  --success: #19C09A;
  --danger: #FC6C6B;
}

* { box-sizing: border-box; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
}

/* Ban avètisman "Log In As This User" (gade admin/user-detail.php) */
.impersonation-banner {
  background: #FFF4D6;
  color: #A16A00;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
}
.impersonation-banner a { margin-left: 10px; color: #A16A00; text-decoration: underline; font-weight: 700; }

/* ===== Paj Login/Register — kapsil "split-screen": fòm bò gòch,
   ilistrasyon gradient bò dwat (kache sou mobil). ===== */
.auth-split {
  min-height: 100vh;
  display: flex;
  background: #fff;
}

.auth-split-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 64px;
}

.auth-form-wrap { width: 100%; max-width: 380px; margin: 0 auto; }

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 56px;
}
.auth-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.auth-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 27px;
  margin: 0 0 6px;
}
.auth-subheading { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

.auth-tabs {
  display: flex;
  background: var(--surface);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tabs a {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.auth-tabs a.active { background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(16, 25, 45, 0.08); }

.auth-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  transition: border-color 0.15s;
}
.auth-input-group:focus-within { border-color: var(--primary); }
.auth-input-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-input-text { flex: 1; min-width: 0; }
.auth-input-text label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; font-weight: 600; }
.auth-input-text input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  padding: 0;
  background: transparent;
}
.auth-input-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-input-check.show { display: flex; }

.auth-btn-continue {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
}
.auth-btn-continue:hover { opacity: 0.92; }

.auth-footer-text { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 32px; line-height: 1.6; }

.auth-split-right {
  flex: 1;
  background: linear-gradient(155deg, #DCEBFF 0%, #2873FF 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Logo a (fon transparan) byen gwo dèyè ti graf la, tankou yon ológram fen. */
.auth-hologram-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  opacity: 0.16;
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.5));
  pointer-events: none;
  z-index: 0;
}
.auth-split-right svg { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .auth-split-right { display: none; }
  .auth-split-left { padding: 32px 24px; }
  .auth-brand { margin-bottom: 32px; }
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.field input[type="file"] {
  padding: 8px 10px;
  font-size: 13px;
}

.field .field-hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 400;
}

/* ---- Seksyon KYC — chak chan gen pwòp "kaz" li ---- */

.kyc-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 26px 0 12px;
}

.kyc-section-label:first-child { margin-top: 0; }

.kyc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 6px;
}

.kyc-box {
  background: var(--surface);
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.kyc-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(40, 115, 255, 0.1);
}

.kyc-box-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.kyc-box-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2873FF, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kyc-box-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.kyc-box-title .optional {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
}

.kyc-box select,
.kyc-box input[type="text"],
.kyc-box input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

.kyc-box select:focus,
.kyc-box input:focus {
  outline: none;
  border-color: var(--primary);
}

.kyc-box-hint {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.4;
}

.kyc-dropzone {
  position: relative;
  border: 1.5px dashed #CBD5E1;
  border-radius: 10px;
  padding: 18px 10px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
}

.kyc-dropzone:hover { border-color: var(--primary); }

.kyc-dropzone.has-file {
  border-color: var(--success);
  border-style: solid;
  background: #EFFBF7;
}

.kyc-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.kyc-dropzone-text {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  word-break: break-word;
}

.kyc-dropzone.has-file .kyc-dropzone-text { color: #0E9C7C; }

.kyc-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.kyc-summary-item {
  background: var(--surface);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 14px;
}

.kyc-summary-item .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 5px;
}

.kyc-summary-item .value {
  font-size: 13.5px;
  font-weight: 600;
  word-break: break-word;
}

.kyc-doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kyc-doc-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  background: #E7ECFF;
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.kyc-doc-links a:hover { opacity: 0.85; }

.btn-primary {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:hover { opacity: 0.92; }

.alert-error {
  background: #FFF1F1;
  color: var(--danger);
  border: 1px solid #FFD5D5;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

.auth-footer-text a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* ===== App shell (paj konekte: dashboard/wallet/trade/markets/profile/admin) ===== */

.badge-admin {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  background: #E7ECFF;
  color: var(--primary);
}


/* ---- Nav Itilizatè (includes/nav.php) — kapsil won, fon nwa, flotan ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: clamp(10px, 3vw, 16px) clamp(10px, 4vw, 20px) 0;
}

.site-nav-pill {
  max-width: 1100px;
  margin: 0 auto;
  background: #1F2430;
  border-radius: 999px;
  padding: 8px clamp(14px, 4.5vw, 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 4vw, 24px);
  box-shadow: 0 12px 30px rgba(16, 25, 45, 0.18);
}

.site-nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 4vw, 17px);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

/* ---- Sou paj Positions la, "Wallet" ranplase meni 3-bar la nèt ---- */
.site-nav-wallet-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  background: #fff;
  color: #14171F;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav-wallet-link:hover { opacity: 0.9; }

/* ---- Menu 3 bar — kategori mache yo + Wallet/Profile/Log Out ---- */
.site-menu { position: relative; }
.site-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.site-menu-toggle:hover, .site-menu.open .site-menu-toggle { background: rgba(255, 255, 255, 0.16); }

.site-menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(16, 25, 45, 0.18);
  min-width: 200px;
  padding: 8px;
  z-index: 30;
}
.site-menu.open .site-menu-dropdown { display: block; }

.site-menu-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 8px 12px 4px;
}

.site-menu-item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.site-menu-item:hover { background: var(--surface); }
.site-menu-divider { height: 1px; background: #E2E8F0; margin: 6px 4px; }
.site-menu-item-danger { color: var(--danger); }

.app-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  margin: 0 0 4px;
}

.page-subtitle { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

.card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 6px 24px rgba(16, 25, 45, 0.06);
  margin-bottom: 20px;
  overflow-x: auto;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 24px rgba(16, 25, 45, 0.06);
}

.stat-card .label { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.stat-card .value { font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700; }
.stat-card .value.positive { color: var(--success); }
.stat-card .value.negative { color: var(--danger); }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 10px 12px;
  border-bottom: 1px solid #E2E8F0;
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid #F1F5F9;
}

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

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pill-buy, .pill-deposit, .pill-active { background: #E6FBF6; color: var(--success); }
.pill-sell, .pill-withdraw, .pill-inactive { background: #FFF1F1; color: var(--danger); }
.pill-admin { background: #E7ECFF; color: var(--primary); }
.pill-user { background: #F1F5F9; color: var(--muted); }
.pill-pending { background: #FFF4D6; color: #A16A00; }

.btn-secondary {
  padding: 8px 16px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-danger {
  padding: 8px 16px;
  background: #fff;
  color: var(--danger);
  border: 1px solid #FFD5D5;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-sm { padding: 6px 12px; font-size: 12px; }

.tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid #E2E8F0; flex-wrap: wrap; }

.tabs a {
  padding: 10px 18px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}

.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }

.form-row { display: flex; gap: 12px; }
.form-row .field { flex: 1; }

.alert-success {
  background: #E6FBF6;
  color: var(--success);
  border: 1px solid #B8F0E3;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

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

@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
  .app-main { padding: 20px 16px calc(48px + 76px); }
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

@media (max-width: 480px) {
  .auth-card { padding: 24px 20px; }
  .page-title { font-size: 22px; }
  .card { padding: 16px; }
  .stat-card { padding: 16px; }
  .data-table th, .data-table td { padding: 8px; font-size: 13px; }
}

.tv-widget-container {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
}

/* ===== Admin Dashboard (admin/index.php sèlman) — sidebar fonse + kat
   estatistik/graf ki itilize VRÈ done tradin (pa "Products/Premium"). ===== */
.ad-body { background: var(--surface); margin: 0; }

.ad-shell { display: flex; min-height: 100vh; }

.ad-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #14171F;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.ad-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 0 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.ad-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.ad-nav-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6A6D78;
  padding: 0 12px;
  margin-bottom: 8px;
}

.ad-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.ad-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #C2C6D0;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}
.ad-nav a:hover { background: #1F222B; color: #fff; }
.ad-nav a.active { background: var(--primary); color: #fff; }
.ad-nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

.ad-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #C2C6D0;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  margin-top: auto;
}
.ad-logout:hover { background: #1F222B; color: #fff; }

.ad-main { flex: 1; padding: 24px 32px 60px; min-width: 0; }

.ad-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}
.ad-title { font-family: 'Space Grotesk', sans-serif; font-size: 24px; margin: 0 0 2px; }
.ad-subtitle { color: var(--muted); font-size: 13px; margin: 0; }

.ad-topbar-right { display: flex; align-items: center; gap: 14px; }
.ad-bell {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #E2E8F0;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.ad-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.ad-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.ad-stat-card { background: #fff; border-radius: 14px; padding: 18px; border: 1px solid #E2E8F0; }
.ad-stat-card-warn { border-color: #FFE7A0; }
.ad-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.ad-stat-label { color: var(--muted); font-size: 12.5px; margin-bottom: 4px; }
.ad-stat-value { font-size: 22px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }

.ad-two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 16px; }

.ad-card { background: #fff; border-radius: 14px; padding: 20px; border: 1px solid #E2E8F0; overflow-x: auto; }
.ad-card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 6px; }
.ad-card-head h2 { font-size: 15px; margin: 0; }
.ad-card-sub { font-size: 12px; color: var(--muted); }
.ad-card-link { font-size: 12.5px; color: var(--primary); text-decoration: none; font-weight: 600; }

.ad-bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 180px; }
.ad-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.ad-bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.ad-bar-fill { width: 100%; background: linear-gradient(180deg, #5B93FF, var(--primary)); border-radius: 6px 6px 0 0; min-height: 3px; }
.ad-bar-label { margin-top: 8px; font-size: 11.5px; color: var(--muted); }

.ad-donut-wrap { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.ad-donut-legend { display: flex; flex-direction: column; gap: 10px; }
.ad-donut-legend-item { font-size: 13px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.ad-donut-legend-item strong { margin-left: auto; }
.ad-donut-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.ad-activity-list { display: flex; flex-direction: column; gap: 14px; }
.ad-activity-row { display: flex; align-items: center; gap: 12px; }
.ad-activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.ad-activity-text { flex: 1; min-width: 0; }
.ad-activity-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-activity-time { font-size: 11.5px; color: var(--muted); }
.ad-activity-amount { text-align: right; font-size: 13px; font-weight: 700; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }

@media (max-width: 1000px) {
  .ad-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .ad-shell { flex-direction: column; }
  .ad-sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px 16px; gap: 10px 14px; }
  .ad-brand { margin-bottom: 0; }
  .ad-nav-label { display: none; }
  .ad-nav { flex-direction: row; flex-wrap: wrap; flex: 1 1 100%; order: 3; gap: 6px; }
  .ad-nav a { padding: 7px 10px; font-size: 12.5px; }
  .ad-logout { margin-top: 0; margin-left: auto; }
  .ad-main { padding: 20px 16px 48px; }
  .ad-topbar-right { margin-left: auto; }
}

@media (max-width: 420px) {
  .ad-brand { font-size: 13.5px; }
  .ad-nav a { padding: 6px 8px; font-size: 12px; gap: 6px; }
  .ad-stat-value { font-size: 19px; }
  .ad-donut-wrap { gap: 12px; }
}
