/* ==========================================================================
   NUGOMART — PREMIUM GLOBAL DESIGN SYSTEM
   Version 3.1 — Blue + White brand
   Single global stylesheet: /assets/css/style.css

   NOTES
   - Every existing Nugomart class name is preserved.
   - No PHP or JS is required to change for pages to keep working.
   - New classes are additive; nothing was renamed or removed.
   - Legacy classes are kept and marked LEGACY at the point of definition.
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --primary-blue: #3155e7;
  --primary-blue-dark: #2442bd;
  --primary-blue-deep: #17256f;
  --primary-blue-light: #5f7cff;
  --primary-blue-soft: #eaf0ff;
  --primary-blue-faint: #f5f7ff;

  /* Depth */
  --navy: #10183d;
  --navy-soft: #1b285b;

  /* Surfaces */
  --white: #ffffff;
  --off-white: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f2f5fb;
  --surface-blue: #eef3ff;

  /* Text */
  --text-primary: #111936;
  --text-secondary: #414b6b;
  --text-muted: #737d9b;
  --text-light: #a1a9bf;
  --text-on-blue: #ffffff;

  /* Borders */
  --border: #e4e8f2;
  --border-strong: #d3d9e8;
  --border-blue: #c9d4ff;

  /* Semantic */
  --success: #079669;
  --success-bg: #ecfbf5;
  --success-border: #b8ead7;

  --danger: #dc3c4b;
  --danger-bg: #fff0f2;
  --danger-border: #f6c3ca;

  --warning: #a86b08;
  --warning-bg: #fff8e8;
  --warning-border: #f2db9f;

  --info: #3155e7;
  --info-bg: #edf2ff;
  --info-border: #cbd7ff;

  /* Gradients */
  --gradient-primary:      linear-gradient(135deg, #17256f 0%, #3155e7 54%, #5f7cff 100%);
  --gradient-primary-soft: linear-gradient(135deg, #3155e7 0%, #5f7cff 100%);
  --gradient-deep:         linear-gradient(145deg, #10183d 0%, #17256f 50%, #3155e7 100%);
  --gradient-wallet:       linear-gradient(135deg, #17256f 0%, #3155e7 48%, #5f7cff 100%);
  --gradient-soft:         linear-gradient(135deg, #eef3ff 0%, #ffffff 100%);
  --gradient-page:
    radial-gradient(circle at 85% 0%, rgba(95,124,255,.13), transparent 28%),
    radial-gradient(circle at 0% 15%, rgba(49,85,231,.08), transparent 26%);

  /* Shadows */
  --shadow-xs:    0 1px 2px rgba(16,24,61,.04);
  --shadow-sm:    0 5px 18px rgba(16,24,61,.06);
  --shadow-md:    0 12px 30px rgba(16,24,61,.09);
  --shadow-lg:    0 22px 55px rgba(16,24,61,.13);
  --shadow-xl:    0 30px 70px rgba(16,24,61,.18);
  --shadow-blue:  0 12px 30px rgba(49,85,231,.22);
  --shadow-focus: 0 0 0 4px rgba(49,85,231,.14);

  /* Radii */
  --radius-xs:   7px;
  --radius-sm:   11px;
  --radius-md:   15px;
  --radius-lg:   22px;
  --radius-xl:   28px;
  --radius-pill: 999px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 56px;
  --space-16: 72px;

  /* Motion */
  --ease: cubic-bezier(.16,1,.3,1);
  --duration-fast:   150ms;
  --duration-normal: 240ms;
  --duration-slow:   420ms;

  /* Layout */
  --container-max: 1160px;
  --navbar-h:      72px;
  --navbar-height: 72px;

  /* Z-index scale */
  --z-base:    0;
  --z-navbar:  100;
  --z-menu:    200;
  --z-modal:   500;
  --z-toast:   600;
}

/* --------------------------------------------------------------------------
   02. RESET + BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: var(--gradient-page);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease);
}

a:hover {
  color: var(--primary-blue-dark);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-6) 0;
}

::selection {
  color: #fff;
  background: var(--primary-blue);
}

/* --------------------------------------------------------------------------
   03. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -.025em;
  margin: 0 0 var(--space-3);
  font-weight: 750;
}

h1 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
h2 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h3 { font-size: 1.08rem; }
h4 { font-size: 1rem; }
h5 { font-size: .95rem; }
h6 { font-size: .9rem; }

p {
  margin: 0 0 var(--space-4);
}

.muted { color: var(--text-muted); }
.small { font-size: .85rem; }
.strong { font-weight: 700; }
.text-center { text-align: center; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .7rem;
  font-weight: 800;
}

/* Section heading — eyebrow + title pattern used across pages */
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
}

.section-heading .eyebrow {
  margin-bottom: 2px;
}

/* --------------------------------------------------------------------------
   04. APPLICATION SHELL
   -------------------------------------------------------------------------- */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
  width: min(100%, var(--container-max));
  margin: 0 auto;
  padding: 36px 22px 72px;
}

/* Subtle page-level entrance */
.app-main > * {
  animation: fade-slide-up var(--duration-slow) var(--ease) both;
}
.app-main > *:nth-child(1) { animation-delay: 0ms; }
.app-main > *:nth-child(2) { animation-delay: 40ms; }
.app-main > *:nth-child(3) { animation-delay: 80ms; }
.app-main > *:nth-child(4) { animation-delay: 120ms; }
.app-main > *:nth-child(5) { animation-delay: 160ms; }

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.page-header h1 {
  margin: 0 0 5px;
}

.page-header p.muted {
  margin: 0;
}

/* --------------------------------------------------------------------------
   05. NAVIGATION
   -------------------------------------------------------------------------- */
.app-navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-navbar);
  min-height: var(--navbar-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 26px;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(228,232,242,.88);
  box-shadow: 0 5px 25px rgba(16,24,61,.045);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

/* LEGACY brand classes — kept so old markup still renders if any exists */
.brand,
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand:hover { color: var(--text-primary); text-decoration: none; }
.brand-logo { width: auto; height: 38px; object-fit: contain; }
.brand-lockup img { width: auto; height: 40px; object-fit: contain; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.brand-name { font-size: 1.08rem; font-weight: 800; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  margin-left: 12px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: .9rem;
  font-weight: 650;
  transition: background var(--duration-normal) var(--ease),
              color var(--duration-normal) var(--ease),
              transform var(--duration-normal) var(--ease),
              box-shadow var(--duration-normal) var(--ease);
}

.nav-link:hover {
  color: var(--primary-blue-dark);
  background: var(--primary-blue-faint);
  transform: translateY(-1px);
  text-decoration: none;
}

.nav-link.is-active {
  color: #fff;
  background: var(--gradient-primary-soft);
  box-shadow: 0 7px 18px rgba(49,85,231,.20);
}

.nav-link.is-active:hover {
  color: #fff;
}

.nav-link.is-disabled {
  color: var(--text-light);
  opacity: .6;
  cursor: not-allowed;
}

.nav-link.is-disabled:hover {
  background: transparent;
  transform: none;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 11px;
}

.nav-user-name {
  color: var(--text-secondary);
  font-size: .88rem;
  font-weight: 650;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: background var(--duration-fast) var(--ease),
              border-color var(--duration-fast) var(--ease);
}

.nav-toggle:hover {
  background: var(--primary-blue-faint);
  border-color: var(--border-blue);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--text-secondary);
  transition: transform var(--duration-fast) var(--ease);
}

/* Mobile navigation panel — hidden by default, opened by JS */
.nav-panel {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 88vw);
  z-index: var(--z-menu);
  background: #fff;
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(16,24,61,.18);
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease);
  overflow-y: auto;
  padding: 22px;
}

.nav-panel.is-open {
  transform: translateX(0);
}

.nav-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.nav-panel__close {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1;
  transition: background var(--duration-fast) var(--ease),
              border-color var(--duration-fast) var(--ease);
}

.nav-panel__close:hover {
  background: var(--primary-blue-faint);
  border-color: var(--border-blue);
}

.nav-panel__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 22px;
}

.nav-panel__link {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 650;
  font-size: .95rem;
  transition: background var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease);
}

.nav-panel__link:hover {
  background: var(--primary-blue-faint);
  color: var(--primary-blue-dark);
  text-decoration: none;
}

.nav-panel__link.is-active {
  color: #fff;
  background: var(--gradient-primary-soft);
}

.nav-panel__link.is-disabled {
  color: var(--text-light);
  opacity: .6;
  cursor: not-allowed;
}

.nav-panel__divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.nav-panel__user {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-panel__username {
  color: var(--text-secondary);
  font-size: .9rem;
  font-weight: 700;
  padding: 6px 4px;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-menu) - 1);
  background: rgba(10,16,42,.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease);
}

.nav-backdrop.is-open {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   06. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary-soft);
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 7px 18px rgba(49,85,231,.16);
  transition: transform var(--duration-fast) var(--ease),
              box-shadow var(--duration-normal) var(--ease),
              filter var(--duration-normal) var(--ease),
              background var(--duration-normal) var(--ease),
              border-color var(--duration-normal) var(--ease),
              color var(--duration-normal) var(--ease);
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 650ms var(--ease);
  pointer-events: none;
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
  filter: brightness(1.03);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.btn:disabled,
.btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost,
.btn-secondary {
  background: #fff;
  color: var(--primary-blue);
  border-color: var(--border-blue);
  box-shadow: var(--shadow-xs);
}

.btn-ghost:hover,
.btn-secondary:hover {
  color: var(--primary-blue-dark);
  background: var(--primary-blue-faint);
  border-color: #b9c7fa;
  box-shadow: var(--shadow-sm);
  filter: none;
}

.btn-danger {
  background: linear-gradient(135deg, #d82f3f, #ee5967);
  color: #fff;
}

.btn-danger:hover {
  color: #fff;
  box-shadow: 0 12px 28px rgba(216,47,63,.22);
}

.btn-tip,
.tip-btn {
  background: var(--gradient-primary-soft);
  color: #fff;
  border: 0;
  box-shadow: 0 7px 18px rgba(49,85,231,.18);
}

.btn-tip:hover,
.tip-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.btn-block { width: 100%; }

.btn-sm {
  min-height: 36px;
  padding: 8px 12px;
  font-size: .82rem;
  border-radius: var(--radius-xs);
}

.btn-lg {
  min-height: 50px;
  padding: 14px 24px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* --------------------------------------------------------------------------
   07. FORMS
   -------------------------------------------------------------------------- */
form label {
  display: block;
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-size: .88rem;
  font-weight: 700;
}

form label + input,
form label + select,
form label + textarea {
  margin-top: 0;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="tel"],
form input[type="number"],
form input[type="search"],
form input[type="url"],
form input[type="file"],
form select,
form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--text-primary);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(16,24,61,.025);
  transition: border-color var(--duration-fast) var(--ease),
              box-shadow var(--duration-fast) var(--ease),
              background var(--duration-fast) var(--ease);
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

form input[type="file"] {
  padding: 10px;
}

form input::placeholder,
form textarea::placeholder {
  color: #a0a8bc;
}

form input:hover:not(:focus),
form select:hover:not(:focus),
form textarea:hover:not(:focus) {
  border-color: var(--border-strong);
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: var(--primary-blue);
  background: #fff;
  box-shadow: var(--shadow-focus);
}

form input[aria-invalid="true"],
form input.is-error,
form select.is-error,
form textarea.is-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(220,60,75,.10);
}

form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}

form button[type="submit"] {
  margin-top: 18px;
}

.err {
  display: block;
  margin-top: 6px;
  color: var(--danger);
  font-size: .8rem;
  font-weight: 600;
}

/* Form section wrapper — used to group fields inside a card */
.form-section {
  padding: 0 0 var(--space-5);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--surface-soft);
}

.form-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   08. CARDS + SECTIONS
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  margin-bottom: 20px;
  padding: 25px;
  overflow: hidden;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(228,232,242,.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease),
              box-shadow var(--duration-normal) var(--ease),
              border-color var(--duration-normal) var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: #d6def2;
  box-shadow: var(--shadow-md);
}

.card h2 { margin-top: 0; }

.card-elevated { box-shadow: var(--shadow-md); }

.card-gradient {
  color: #fff;
  border: 0;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-blue);
}

.card-gradient h1,
.card-gradient h2,
.card-gradient h3,
.card-gradient .stat-value { color: #fff; }

.card-gradient .muted,
.card-gradient .stat-label,
.card-gradient .stat-note { color: rgba(255,255,255,.78); }

/* Info block — soft background, used inside cards for bank details,
   fee previews, admin notes, and small data panels. */
.info-card {
  padding: 14px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.info-card .eyebrow { margin: 0 0 6px; }

/* Empty state block */
.empty-state {
  padding: 28px 22px;
  text-align: center;
  background: var(--surface-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

.empty-state h2,
.empty-state h3 {
  color: var(--text-primary);
  margin: 0 0 6px;
}

.empty-state p {
  margin: 0;
}

/* Action row — flexible button container */
.action-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Grids */
.grid {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.feature-list {
  margin: 0;
  padding-left: 1.2rem;
}

.feature-list li {
  margin: 7px 0;
  color: var(--text-secondary);
}

.feature-list strong {
  color: var(--text-primary);
}

/* Detail list — 2-column layout on tablet+, stacked on mobile */
.detail-list { margin: 0; }

.detail-list > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--surface-soft);
}

.detail-list > div:last-child { border-bottom: 0; }

.detail-list dt {
  color: var(--text-muted);
  font-size: .86rem;
  font-weight: 600;
}

.detail-list dd {
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   09. DASHBOARD + WALLET
   -------------------------------------------------------------------------- */
.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  top: -75px;
  right: -65px;
  border-radius: 50%;
  background: rgba(49,85,231,.08);
  filter: blur(2px);
  pointer-events: none;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(49,85,231,.28), transparent);
}

.stat-label {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stat-value {
  position: relative;
  z-index: 1;
  color: var(--text-primary);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.035em;
}

.stat-note {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  font-size: .82rem;
}

.wallet-card {
  color: #fff;
  border: 0;
  background: var(--gradient-wallet);
  box-shadow: var(--shadow-lg);
}

.wallet-card::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  top: -150px;
  right: -100px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  filter: blur(4px);
}

.wallet-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  bottom: -120px;
  left: 18%;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}

.wallet-card .stat-label,
.wallet-card .stat-note { color: rgba(255,255,255,.76); }

.wallet-card .stat-value { color: #fff; }

/* --------------------------------------------------------------------------
   10. PROFILE + AVATARS
   -------------------------------------------------------------------------- */
.profile-card {
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--gradient-primary-soft);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  box-shadow: var(--shadow-md), 0 0 0 1px var(--border-blue);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-meta h2 { margin: 0 0 4px; }
.profile-meta p  { margin: 4px 0; }

/* --------------------------------------------------------------------------
   11. BADGES + STATUS
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-pill);
  background: var(--primary-blue-soft);
  color: var(--primary-blue-dark);
  font-size: .74rem;
  font-weight: 750;
  white-space: nowrap;
}

.badge-success {
  color: var(--success);
  background: var(--success-bg);
  border-color: var(--success-border);
}

.badge-danger {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: var(--danger-border);
}

.badge-warning {
  color: var(--warning);
  background: var(--warning-bg);
  border-color: var(--warning-border);
}

/* --------------------------------------------------------------------------
   12. ALERTS
   -------------------------------------------------------------------------- */
.alert {
  margin: 12px 0;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  line-height: 1.5;
  box-shadow: var(--shadow-xs);
}

.alert-success { color: var(--success); background: var(--success-bg); border-color: var(--success-border); }
.alert-error   { color: var(--danger);  background: var(--danger-bg);  border-color: var(--danger-border); }
.alert-warning { color: var(--warning); background: var(--warning-bg); border-color: var(--warning-border); }
.alert-info    { color: var(--info);    background: var(--info-bg);    border-color: var(--info-border); }

/* --------------------------------------------------------------------------
   13. AUTHENTICATION
   -------------------------------------------------------------------------- */
.auth-wrap {
  position: relative;
  width: min(100% - 32px, 470px);
  margin: clamp(42px, 8vh, 92px) auto;
  padding: 38px;
  overflow: hidden;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  animation: auth-enter 600ms var(--ease) both;
}

.auth-wrap::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -150px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95,124,255,.25), rgba(95,124,255,0) 68%);
  pointer-events: none;
  z-index: -1;
}

.auth-wrap::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  bottom: -130px;
  left: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49,85,231,.12), rgba(49,85,231,0) 70%);
  pointer-events: none;
  z-index: -1;
}

.auth-wrap h1 {
  margin: 0 auto 10px;
  max-width: 22ch;
  color: var(--text-primary);
  font-size: clamp(1.5rem, 3.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.18;
  text-align: center;
}

.auth-wrap form,
.auth-wrap p,
.auth-wrap img {
  position: relative;
  z-index: 1;
}

.auth-wrap > p:first-of-type { color: var(--text-muted); }

/* LEGACY */
.auth-logo {
  width: auto;
  height: 48px;
  max-width: 210px;
  margin: 0 0 25px;
  object-fit: contain;
  object-position: left center;
}

/* Split auth layout (used by register.php) */
.auth-split {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(420px,.95fr);
  min-height: 100vh;
  width: 100%;
}

.auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 60px 56px;
  overflow: hidden;
  color: #fff;
  background: var(--gradient-deep);
  isolation: isolate;
}

.auth-hero::before,
.auth-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.auth-hero::before {
  width: 560px;
  height: 560px;
  top: -230px;
  right: -180px;
  background: radial-gradient(circle, rgba(95,124,255,.34), transparent 67%);
}

.auth-hero::after {
  width: 440px;
  height: 440px;
  bottom: -220px;
  left: -150px;
  background: radial-gradient(circle, rgba(255,255,255,.13), transparent 68%);
}

.auth-hero-title {
  position: relative;
  z-index: 2;
  max-width: 13ch;
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -.05em;
}

.auth-hero-sub {
  position: relative;
  z-index: 2;
  max-width: 42ch;
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
}

.auth-hero-foot {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,.62);
  font-size: .84rem;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 48px 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(95,124,255,.10), transparent 30%),
    var(--off-white);
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 470px;
  padding: 40px;
  overflow: hidden;
  background: rgba(255,255,255,.97);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  animation: auth-enter 600ms var(--ease) both;
}

.auth-card h1 {
  margin: 0 0 7px;
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 800;
}

.auth-wrap .btn-block,
.auth-card .btn-block {
  min-height: 50px;
  margin-top: 8px;
  border-radius: var(--radius-sm);
  font-size: .96rem;
}

/* --------------------------------------------------------------------------
   14. SOCIAL / FEED SUPPORT
   -------------------------------------------------------------------------- */
.post-card,
.feed-card,
.business-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease),
              box-shadow var(--duration-normal) var(--ease),
              border-color var(--duration-normal) var(--ease);
}

.post-card:hover,
.feed-card:hover,
.business-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-blue);
  box-shadow: var(--shadow-md);
}

.post-card__header,
.feed-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 10px;
}

.post-card__body,
.feed-card__body {
  padding: 10px 20px 18px;
}

.post-card__actions,
.feed-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px 17px;
  border-top: 1px solid var(--surface-soft);
  flex-wrap: wrap;
}

/* Post images */
.post-card__media,
.post-card__body img,
.feed-card__body img {
  width: 100%;
  margin-top: 14px;
  border-radius: var(--radius-md);
  max-height: min(520px, 70vh);
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   15. TABLES
   -------------------------------------------------------------------------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--surface-soft);
}

th {
  color: var(--text-muted);
  background: var(--surface-soft);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

td {
  color: var(--text-secondary);
  font-size: .9rem;
}

tbody tr { transition: background var(--duration-fast) var(--ease); }
tbody tr:hover { background: var(--primary-blue-faint); }
tbody tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.app-footer {
  margin-top: auto;
  padding: 22px 20px;
  color: var(--text-muted);
  font-size: .84rem;
  text-align: center;
  background: rgba(255,255,255,.88);
  border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   17. MODALS / DROPDOWNS / FLOATING UI
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10,16,42,.48);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: fade-in 180ms var(--ease) both;
}

.modal,
.modal-content {
  width: min(100%, 560px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 26px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  animation: modal-in 260ms var(--ease) both;
}

.dropdown,
.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.toast {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-md);
  z-index: var(--z-toast);
}

/* --------------------------------------------------------------------------
   18. ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes auth-enter {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fade-slide-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes soft-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(49,85,231,0); }
  50%      { box-shadow: 0 0 0 7px rgba(49,85,231,.07); }
}

/* --------------------------------------------------------------------------
   19. ACCESSIBILITY
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid rgba(49,85,231,.22);
  outline-offset: 2px;
}

/* Prevent body scroll when mobile menu is open */
body.nav-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   20. RESPONSIVE
   -------------------------------------------------------------------------- */

/* Tablets and small laptops — reduce the widest grids */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* Small tablets and phones — the hero is hidden, only the form remains */
@media (max-width: 920px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-hero  { display: none; }
  .auth-panel { padding: 36px 20px 52px; }
}

/* Phones and small tablets — mobile navigation kicks in */
@media (max-width: 820px) {
  .app-navbar {
    padding: 10px 16px;
  }

  /* Hide the desktop nav-links and user block */
  .nav-links,
  .nav-user {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  /* Show the mobile panel and its backdrop when JS opens them */
  .nav-panel {
    display: block;
  }

  .nav-backdrop {
    display: block;
    pointer-events: none;
  }

  .nav-backdrop.is-open {
    pointer-events: auto;
  }

  .app-main {
    padding: 28px 16px 52px;
  }

  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }

  .profile-card {
    align-items: flex-start;
  }

  .detail-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  form .form-row {
    grid-template-columns: 1fr;
  }

  .auth-wrap {
    width: min(100% - 28px, 470px);
    padding: 32px 25px;
    margin: 32px auto;
  }

  .auth-card {
    padding: 32px 25px;
  }

  .section-heading {
    align-items: flex-start;
  }
}

/* Small phones */
@media (max-width: 560px) {
  body { font-size: 15px; }

  .app-navbar { min-height: 64px; }

  .brand-logo    { height: 32px; }
  .brand-lockup img { height: 34px; }
  .brand-name    { font-size: 1rem; }

  .page-header { align-items: flex-start; }

  h1 { font-size: 1.55rem; }

  .card {
    padding: 19px;
    border-radius: var(--radius-md);
  }

  .grid-4 { grid-template-columns: 1fr; }

  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-avatar {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }

  .auth-wrap {
    width: min(100% - 22px, 470px);
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  .auth-logo { height: 42px; }

  .auth-card {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  .auth-hero {
    min-height: 300px;
    padding: 34px 22px;
  }

  .auth-hero-title { font-size: 2rem; }

  .btn { min-height: 46px; }

  .app-footer { padding: 18px 14px; }
}

/* --------------------------------------------------------------------------
   21. UTILITIES
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 8px !important; }
.mt-4 { margin-top: 16px !important; }
.mt-6 { margin-top: 24px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-6 { margin-bottom: 24px !important; }

.flex         { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-col     { display: flex; flex-direction: column; }

.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }

.w-full      { width: 100%; }
.hidden      { display: none !important; }
.text-center { text-align: center; }

/* --------------------------------------------------------------------------
   22. NUGOMART CODED LOGO
   -------------------------------------------------------------------------- */
.ng-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
  line-height: 1;
  transition: transform var(--duration-normal) var(--ease),
              color var(--duration-fast) var(--ease);
}

.ng-logo:hover {
  color: var(--text-primary);
  text-decoration: none;
  transform: translateY(-1px);
}

.ng-logo:focus-visible {
  outline: 3px solid rgba(49,85,231,.22);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.ng-logo__mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-blue);
  transition: box-shadow var(--duration-normal) var(--ease),
              transform var(--duration-normal) var(--ease);
}

.ng-logo__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ng-logo:hover .ng-logo__mark {
  box-shadow: 0 16px 34px rgba(49,85,231,.28);
  transform: translateY(-1px);
}

.ng-logo__word {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: inherit;
}

.ng-logo--lg { gap: 14px; }
.ng-logo--lg .ng-logo__mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}
.ng-logo--lg .ng-logo__word { font-size: 1.35rem; }

.ng-logo--center {
  display: flex;
  justify-content: center;
  width: 100%;
}

.ng-logo--muted { color: var(--text-secondary); }
.ng-logo--muted .ng-logo__mark { box-shadow: var(--shadow-xs); }

.app-navbar .ng-logo { flex-shrink: 0; }

@media (max-width: 560px) {
  .ng-logo__mark { width: 32px; height: 32px; border-radius: 10px; }
  .ng-logo__word { font-size: 1rem; }

  .ng-logo--lg .ng-logo__mark { width: 40px; height: 40px; border-radius: 12px; }
  .ng-logo--lg .ng-logo__word { font-size: 1.15rem; }
}

/* --------------------------------------------------------------------------
   23. CHAT / MESSAGES
   -------------------------------------------------------------------------- */
.chat {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  align-items: stretch;
  min-height: 60vh;
}

.chat__list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 72vh;
}

.chat__list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.chat__empty { padding: 20px 16px; }

.chat__conv {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--surface-soft);
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: background var(--duration-fast) var(--ease);
}

.chat__conv:hover {
  background: var(--primary-blue-faint);
  text-decoration: none;
  color: inherit;
}

.chat__conv.is-active { background: var(--primary-blue-soft); }

.chat__conv-body { flex: 1; min-width: 0; }

.chat__conv-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.chat__conv-name {
  font-size: .95rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat__conv-meta { margin-bottom: 2px; }

.chat__conv-preview {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--gradient-primary-soft);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.chat__thread {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 72vh;
}

.chat__thread-empty {
  padding: 40px 24px;
  text-align: center;
  margin: auto;
}

.chat__thread-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.chat__thread-head-meta { flex: 1; min-width: 0; }

.chat__back { display: none; }

.chat__messages {
  flex: 1;
  padding: 18px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--off-white);
}

.chat__bubble-row { display: flex; }
.chat__bubble-row--in  { justify-content: flex-start; }
.chat__bubble-row--out { justify-content: flex-end; }

.chat__bubble {
  max-width: min(76%, 520px);
  padding: 10px 14px;
  border-radius: 16px;
  line-height: 1.45;
  box-shadow: var(--shadow-xs);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.chat__bubble--in {
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}

.chat__bubble--out {
  background: var(--gradient-primary-soft);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.chat__bubble-text { font-size: .92rem; }

.chat__bubble-time {
  margin-top: 4px;
  font-size: .72rem;
  text-align: right;
}

.chat__bubble--out .chat__bubble-time { color: rgba(255,255,255,.78); }

.chat__composer {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: #fff;
  align-items: flex-end;
}

.chat__composer textarea {
  flex: 1;
  min-height: 44px;
  max-height: 140px;
  resize: none;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .92rem;
  outline: none;
  transition: border-color var(--duration-fast) var(--ease),
              box-shadow var(--duration-fast) var(--ease);
}

.chat__composer textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-focus);
}

.chat__composer .btn {
  min-height: 44px;
  padding: 10px 20px;
}

@media (max-width: 820px) {
  .chat {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
  }

  .chat__list,
  .chat__thread {
    max-height: none;
    min-height: 60vh;
  }

  .chat__list--hidden-mobile { display: none; }
  .chat__thread--hidden-mobile { display: none; }
  .chat__back { display: inline-flex; }
  .chat__thread-head { flex-wrap: wrap; }
}

/* --------------------------------------------------------------------------
   24. AUTH HERO + FORM POLISH
   Small additions used by register.php. Additive only.
   -------------------------------------------------------------------------- */

/* Hero bullet list */
.auth-hero-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 2;
}
.auth-hero-list li {
  position: relative;
  padding-left: 26px;
  margin: 12px 0;
  color: rgba(255,255,255,.86);
  font-size: .98rem;
  line-height: 1.4;
}
.auth-hero-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.75);
}

/* Form section inside auth card */
.form-section {
  padding: 0 0 20px;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--surface-soft);
}
.form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 12px;
}
.form-section__title {
  margin: 0 0 14px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-section__tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--primary-blue-soft);
  color: var(--primary-blue-dark);
  border: 1px solid var(--border-blue);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .06em;
}

/* Field hint under an input */
.field-hint {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.45;
}

/* Auth card typography polish */
.auth-card h1 {
  margin: 18px 0 6px;
  font-size: clamp(1.5rem, 3.5vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.15;
}
.auth-card .sub {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.5;
}

/* Labels inside the auth card */
.auth-card form label {
  margin: 0 0 14px;
  font-weight: 650;
  color: var(--text-secondary);
  font-size: .86rem;
  letter-spacing: -.005em;
}

/* Inputs inside the auth card */
.auth-card form input {
  min-height: 46px;
  font-size: .94rem;
  padding: 11px 13px;
  margin-top: 6px;
}

/* Submit button spacing */
.auth-card form .btn-block {
  margin-top: 6px;
}

/* Bottom link block */
.auth-card p.bottom {
  margin: 18px 0 0;
  font-size: .88rem;
  color: var(--text-secondary);
  text-align: center;
}
.auth-card p.bottom a {
  font-weight: 700;
}

@media (max-width: 560px) {
  .auth-card h1 { font-size: 1.4rem; }
  .auth-card .sub { font-size: .88rem; }
  .form-section { padding-bottom: 16px; margin-bottom: 16px; }
}


/* --------------------------------------------------------------------------
   26. READ MORE / SHOW LESS
   -------------------------------------------------------------------------- */
.readmore {
  position: relative;
}

/* The clamped text */
.readmore__text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
  word-break: break-word;
  overflow-wrap: anywhere;
  margin: 0;
  line-height: 1.5;
}

/* 
  BULLETPROOF FIX: We completely remove the webkit-box when open.
  This prevents mobile browsers from snapping the text back closed.
*/
.readmore.is-open .readmore__text {
  display: block !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  overflow: visible !important;
  max-height: none !important;
}

/* The toggle */
.readmore__toggle {
  display: none;
  margin-top: 6px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--primary-blue);
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease);
}

.readmore__toggle:hover {
  color: var(--primary-blue-dark);
  text-decoration: underline;
}

.readmore__toggle:focus-visible {
  outline: 3px solid rgba(49,85,231,.22);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

.readmore.is-short .readmore__toggle {
  display: none;
}

.readmore.is-clamped .readmore__toggle {
  display: inline-block;
}