/* ──────────────────────────────────────────────
   NUESA Auth Portal — v1.2 Stylesheet
   Pixel-matched to the NUESA OAUSTECH UI design:
   gold→green→blue gradient panel, white form panel,
   gold left-border inputs, green pill button.
────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Brand colours */
  --n-green:        #2d8a3e;
  --n-green-dark:   #1e6b2e;
  --n-green-hover:  #279138;
  --n-gold:         #d4920a;
  --n-blue:         #1a4ea6;
  --n-white:        #ffffff;
  --n-bg:           #f0f2f4;
  --n-text:         #1c2333;
  --n-muted:        #6c7a8d;
  --n-border:       #dde2e9;
  --n-input-bg:     #f8f9fb;
  --n-error:        #c0392b;
  --n-success:      #1e6b2e;
  /* Gradient — matches screenshot exactly */
  --n-grad: linear-gradient(160deg, #d4920a 0%, #2d8a3e 38%, #1a4ea6 100%);
  /* Radii / shadows */
  --n-card-radius: 18px;
  --n-card-shadow: 0 12px 48px rgba(0,0,0,.14);
  /* Fonts */
  --ff-head: 'Montserrat', sans-serif;
  --ff-body: 'Inter', sans-serif;
}

/* ── Reset scoped to plugin ───────────────── */
#nuesa-portal *,
#nuesa-portal *::before,
#nuesa-portal *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
#nuesa-portal {
  font-family: var(--ff-body);
  color: var(--n-text);
  -webkit-font-smoothing: antialiased;
}

/* ════════════════════════════════════════════
   AUTH CARD WRAPPER
════════════════════════════════════════════ */
.nuesa-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--n-bg);
  padding: 48px 20px;
}

/* The two-column card */
.nuesa-card {
  display: flex;
  width: 100%;
  max-width: 920px;
  min-height: 600px;
  background: var(--n-white);
  border-radius: var(--n-card-radius);
  box-shadow: var(--n-card-shadow);
  overflow: hidden;
}
.nuesa-card--wide { max-width: 1020px; }

/* ════════════════════════════════════════════
   LEFT  — gradient brand panel
════════════════════════════════════════════ */
.nuesa-panel--brand {
  flex: 0 0 44%;
  background: var(--n-grad);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 44px 40px 44px 40px;
}

/* ── Body copy centred in brand panel */
.nuesa-panel__content {
  position: relative;
  z-index: 2;
  margin: auto 0;   /* vertically centres content without logo */
}
.nuesa-panel__greeting {
  color: rgba(255,255,255,.82);
  font-size: .88rem;
  letter-spacing: .02em;
  margin-bottom: 8px;
  font-family: var(--ff-body);
}
.nuesa-panel__title {
  font-family: var(--ff-head);
  font-weight: 900;
  font-size: 2.5rem;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.nuesa-panel__line {
  width: 36px;
  height: 3px;
  background: rgba(255,255,255,.55);
  border-radius: 2px;
  margin: 16px 0;
}
.nuesa-panel__text {
  color: rgba(255,255,255,.82);
  font-size: .88rem;
  line-height: 1.7;
  max-width: 280px;
}

/* ── Decorative translucent circles (like in screenshot) */
.nuesa-panel__circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.nuesa-panel__circles .c {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.09);
}
/* Top-right large */
.c1 { width: 240px; height: 240px; top: -80px;  right: -80px; }
/* Bottom-right medium */
.c2 { width: 170px; height: 170px; bottom: 30px; right: 20px;  }
/* Middle-left small */
.c3 { width: 90px;  height: 90px;  top: 52%;    left: -20px;  transform: translateY(-50%); }

/* ════════════════════════════════════════════
   RIGHT — white form panel
════════════════════════════════════════════ */
.nuesa-panel--form {
  flex: 1;
  padding: 52px 52px 52px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.nuesa-form__title {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--n-text);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.nuesa-form__subtitle {
  color: var(--n-muted);
  font-size: .875rem;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 360px;
}

/* ── Notification message ─────────────────── */
.nuesa-msg {
  padding: 11px 15px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: none;
}
.nuesa-msg--error   { background: #fdecea; color: var(--n-error);   border-left: 3px solid var(--n-error); }
.nuesa-msg--success { background: #e8f5eb; color: var(--n-success); border-left: 3px solid var(--n-success); }

/* ── Form fields ──────────────────────────── */
.nuesa-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nuesa-field {
  position: relative;
}

/* Inputs & selects — white bg, gold left accent border, no outer border */
.nuesa-field input,
.nuesa-field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--n-input-bg);
  border: 1px solid transparent;
  border-left: 3px solid var(--n-gold);
  border-radius: 0 8px 8px 0;
  font-family: var(--ff-body);
  font-size: .95rem;
  color: var(--n-text);
  outline: none;
  transition: background .18s, border-color .18s, box-shadow .18s;
  line-height: 1.4;
}
.nuesa-field input::placeholder {
  color: #aab3bf;
  font-size: .9rem;
}
.nuesa-field input:focus,
.nuesa-field select:focus {
  background: #fff;
  border-color: transparent;
  border-left-color: var(--n-green);
  box-shadow: 0 0 0 3px rgba(45,138,62,.1);
}
.nuesa-field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c7a8d' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* Two-column grid for first/last name */
.nuesa-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Password eye toggle */
.nuesa-field--pw input { padding-right: 48px; }
.nuesa-pw-toggle {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--n-muted);
  padding: 4px;
  line-height: 0;
  transition: color .15s;
}
.nuesa-pw-toggle svg  { width: 19px; height: 19px; }
.nuesa-pw-toggle:hover { color: var(--n-green); }

/* Remember + forgot row */
.nuesa-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -4px;
}
.nuesa-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--n-muted);
  cursor: pointer;
  user-select: none;
}
.nuesa-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-left: none;
  border-radius: 4px !important;
  border: 1.5px solid var(--n-border) !important;
  background: #fff !important;
  box-shadow: none !important;
  accent-color: var(--n-green);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0 !important;
}

.nuesa-link {
  color: var(--n-green);
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
  transition: color .15s;
}
.nuesa-link:hover { color: var(--n-gold); }

/* ── SIGN IN button — green pill ──────────── */
.nuesa-btn {
  width: 100%;
  padding: 16px;
  background: var(--n-green);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--ff-head);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(45,138,62,.3);
  margin-top: 4px;
}
.nuesa-btn:hover {
  background: var(--n-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 26px rgba(45,138,62,.38);
}
.nuesa-btn:active  { transform: translateY(0); }
.nuesa-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

.nuesa-form__footer {
  text-align: center;
  font-size: .855rem;
  color: var(--n-muted);
  margin-top: 4px;
}

/* ════════════════════════════════════════════
   DASHBOARD
════════════════════════════════════════════ */
.nuesa-dashboard {
  display: flex;
  min-height: 92vh;
  background: var(--n-bg);
  border-radius: var(--n-card-radius);
  overflow: hidden;
  box-shadow: var(--n-card-shadow);
}

/* ── Sidebar ──────────────────────────────── */
.nuesa-sidebar {
  width: 236px;
  flex-shrink: 0;
  background: var(--n-green-dark);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.nuesa-sidebar__brand {
  padding: 28px 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.nuesa-sidebar__brand img {
  width: 110px;
  filter: brightness(0) invert(1);
}
.nuesa-sidebar__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  gap: 3px;
}
.nuesa-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 9px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: background .18s, color .18s;
}
.nuesa-nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.nuesa-nav-item:hover,
.nuesa-nav-item--active {
  background: rgba(255,255,255,.14);
  color: #fff;
}
.nuesa-nav-item--active { font-weight: 600; }
.nuesa-sidebar__logout {
  margin: 0 14px 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  color: rgba(255,255,255,.75);
  font-family: var(--ff-body);
  font-size: .855rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .18s, color .18s;
  width: calc(100% - 28px);
}
.nuesa-sidebar__logout svg { width: 15px; height: 15px; }
.nuesa-sidebar__logout:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ── Main area ────────────────────────────── */
.nuesa-main {
  flex: 1;
  padding: 38px 44px 44px;
  overflow-y: auto;
  background: var(--n-bg);
}
.nuesa-main__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}
.nuesa-main__greeting {
  font-family: var(--ff-head);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--n-text);
  line-height: 1.2;
}
.nuesa-main__subtitle {
  color: var(--n-muted);
  font-size: .875rem;
  margin-top: 5px;
}
.nuesa-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--n-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: .95rem;
  flex-shrink: 0;
}

/* ── Profile card ─────────────────────────── */
.nuesa-profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 28px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  border-left: 4px solid var(--n-green);
}
.nuesa-profile-card__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--n-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.nuesa-profile-card__info h2 {
  font-family: var(--ff-head);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.nuesa-profile-card__info p {
  color: var(--n-muted);
  font-size: .855rem;
  margin-bottom: 10px;
}
.nuesa-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .77rem;
  font-weight: 600;
  margin-right: 5px;
  background: #e7f5ea;
  color: var(--n-green);
}
.nuesa-badge--dept  { background: #e8f0fe; color: var(--n-blue); }
.nuesa-badge--level { background: #fef6df; color: #7a5500; }

/* ── Section title ────────────────────────── */
.nuesa-section-title {
  font-family: var(--ff-head);
  font-size: .8rem;
  font-weight: 700;
  color: var(--n-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ── Quick-access grid ────────────────────── */
.nuesa-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.nuesa-quick-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 13px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--n-text);
  box-shadow: 0 1px 8px rgba(0,0,0,.05);
  border: 1px solid var(--n-border);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.nuesa-quick-card:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,.1);
  transform: translateY(-2px);
  border-color: #a8d8b0;
}
.nuesa-quick-card--primary {
  border-color: var(--n-green);
  background: linear-gradient(135deg, #edf8f0 0%, #fff 100%);
}
.nuesa-quick-card--primary:hover { border-color: var(--n-green); }
.nuesa-quick-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #e7f5ea;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nuesa-quick-card--primary .nuesa-quick-card__icon {
  background: var(--n-green);
}
.nuesa-quick-card__icon svg { width: 21px; height: 21px; stroke: var(--n-green); }
.nuesa-quick-card--primary .nuesa-quick-card__icon svg { stroke: #fff; }
.nuesa-quick-card h3 {
  font-family: var(--ff-head);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.nuesa-quick-card p { font-size: .8rem; color: var(--n-muted); line-height: 1.45; }
.nuesa-quick-card__arrow {
  width: 17px;
  height: 17px;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--n-muted);
  transition: transform .18s, color .18s;
}
.nuesa-quick-card:hover .nuesa-quick-card__arrow {
  transform: translateX(3px);
  color: var(--n-green);
}

/* ── Library CTA banner ───────────────────── */
.nuesa-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--n-grad);
  border-radius: 14px;
  padding: 26px 30px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.nuesa-cta__text h3 {
  font-family: var(--ff-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.nuesa-cta__text p {
  color: rgba(255,255,255,.82);
  font-size: .855rem;
  line-height: 1.5;
}
.nuesa-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--n-green);
  font-family: var(--ff-head);
  font-size: .875rem;
  font-weight: 800;
  padding: 13px 26px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
}
.nuesa-cta__btn svg { width: 15px; height: 15px; transition: transform .18s; }
.nuesa-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.22); }
.nuesa-cta__btn:hover svg { transform: translateX(3px); }

/* ════════════════════════════════════════════
   RESPONSIVE — mobile-first
   Breakpoints:
     ≤800px  tablet / large phone (landscape)
     ≤640px  phone (portrait)
     ≤400px  small phone
════════════════════════════════════════════ */

/* ════════════════════════════════════════════
   RESPONSIVE — tablet + mobile
   Breakpoints:
     ≤1024px  tablet landscape
     ≤800px   tablet portrait
     ≤640px   phone portrait
     ≤400px   small phone
════════════════════════════════════════════ */

/* ── Tablet landscape (≤1024px) ─────────────── */
@media (max-width: 1024px) {

  /* Auth card: slightly narrower padding */
  .nuesa-wrap { padding: 40px 24px; }
  .nuesa-card     { max-width: 100%; }
  .nuesa-card--wide { max-width: 100%; }

  /* Brand panel: shrink slightly */
  .nuesa-panel--brand { flex: 0 0 40%; padding: 40px 32px; }
  .nuesa-panel__title { font-size: 2.2rem; }

  /* Form panel */
  .nuesa-panel--form { padding: 44px 40px; }

  /* Dashboard: sidebar slightly narrower */
  .nuesa-sidebar { width: 210px; }
  .nuesa-main    { padding: 30px 32px 40px; }

  /* Cards: 2-col grid */
  .nuesa-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablet portrait (≤800px) ───────────────── */
@media (max-width: 800px) {

  /* Auth: stack brand on top */
  .nuesa-wrap {
    padding: 28px 20px;
    align-items: flex-start;
  }
  .nuesa-card,
  .nuesa-card--wide {
    flex-direction: column;
    max-width: 560px;
    margin: 0 auto;
    min-height: auto;
    border-radius: 16px;
  }

  /* Brand panel becomes a short gradient header */
  .nuesa-panel--brand {
    flex: 0 0 auto;
    min-height: 190px;
    padding: 32px 32px 36px;
    justify-content: flex-end;
  }
  .nuesa-panel__content { margin: 0; }
  .nuesa-panel__title   { font-size: 2rem; }
  .nuesa-panel__text    { font-size: .84rem; max-width: 100%; }
  .nuesa-panel__line    { margin: 12px 0; }

  /* Form panel */
  .nuesa-panel--form  { padding: 32px 32px 40px; }
  .nuesa-form__title  { font-size: 1.5rem; }
  .nuesa-form__subtitle { margin-bottom: 24px; }

  /* Register: keep 2-col on tablet portrait */
  .nuesa-field-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Dashboard: top sticky nav bar */
  .nuesa-dashboard {
    flex-direction: column;
    border-radius: 0;
    min-height: auto;
    box-shadow: none;
  }
  .nuesa-sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 6px;
  }
  .nuesa-sidebar__brand {
    padding: 0;
    border: none;
    flex-shrink: 0;
  }
  .nuesa-sidebar__brand img { width: 90px; }
  .nuesa-sidebar__nav {
    flex: 1;
    flex-direction: row;
    padding: 0;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nuesa-sidebar__nav::-webkit-scrollbar { display: none; }
  .nuesa-nav-item {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: .8rem;
    white-space: nowrap;
    gap: 6px;
  }
  .nuesa-nav-item svg { width: 15px; height: 15px; }
  .nuesa-sidebar__logout {
    flex-shrink: 0;
    margin: 0;
    width: auto;
    padding: 8px 12px;
    font-size: .8rem;
  }
  .nuesa-sidebar__logout svg { width: 14px; height: 14px; }

  .nuesa-main { padding: 22px 20px 36px; }
  .nuesa-main__greeting { font-size: 1.4rem; }

  /* Cards: 2-col */
  .nuesa-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* CTA */
  .nuesa-cta { padding: 22px 24px; }
}

/* ── Phone portrait (≤640px) ────────────────── */
@media (max-width: 640px) {

  /* Auth: full screen, no outer padding */
  .nuesa-wrap {
    padding: 0;
    min-height: 100vh;
    align-items: stretch;
    background: transparent;
  }
  .nuesa-card,
  .nuesa-card--wide {
    border-radius: 0;
    box-shadow: none;
    min-height: 100svh;
    max-width: 100%;
  }

  /* Brand panel: compact */
  .nuesa-panel--brand {
    min-height: 175px;
    padding: 28px 24px 30px;
  }
  .nuesa-panel__title   { font-size: 1.8rem; }
  .nuesa-panel__text    { font-size: .83rem; }
  .nuesa-panel__greeting { font-size: .82rem; }

  /* Form panel */
  .nuesa-panel--form {
    padding: 28px 24px 44px;
    flex: 1;
  }
  .nuesa-form__title    { font-size: 1.35rem; }
  .nuesa-form__subtitle { font-size: .82rem; margin-bottom: 20px; }

  /* Inputs */
  .nuesa-field input,
  .nuesa-field select { padding: 13px 14px; font-size: .9rem; }
  .nuesa-field--pw input { padding-right: 44px; }
  .nuesa-pw-toggle svg   { width: 17px; height: 17px; }

  /* Register: single column on phone */
  .nuesa-field-grid { grid-template-columns: 1fr; gap: 0; }

  /* Button */
  .nuesa-btn { padding: 15px; font-size: .875rem; }

  /* Dashboard: fixed bottom nav */
  .nuesa-sidebar {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    flex-direction: row;
    justify-content: space-around;
    padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 -4px 18px rgba(0,0,0,.22);
    background: var(--n-green-dark);
    z-index: 200;
  }
  .nuesa-sidebar__brand { display: none; }
  .nuesa-sidebar__nav {
    flex: none;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    overflow: visible;
    gap: 0;
  }
  .nuesa-nav-item {
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: .64rem;
    padding: 6px 8px;
    border-radius: 8px;
    text-align: center;
    min-width: 54px;
    white-space: normal;
  }
  .nuesa-nav-item svg { width: 19px; height: 19px; }
  .nuesa-sidebar__logout {
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: .64rem;
    padding: 6px 8px;
    background: transparent;
    border: none;
    border-radius: 8px;
    min-width: 54px;
    width: auto;
    margin: 0;
    color: rgba(255,255,255,.72);
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
  .nuesa-sidebar__logout svg { width: 19px; height: 19px; }
  .nuesa-sidebar__logout:hover { background: rgba(255,255,255,.12); color: #fff; }

  /* Main: extra bottom padding for fixed nav */
  .nuesa-main { padding: 18px 16px 90px; }
  .nuesa-main__header { flex-wrap: wrap; gap: 10px; }
  .nuesa-main__greeting { font-size: 1.2rem; }
  .nuesa-main__subtitle { font-size: .8rem; }

  /* Profile card */
  .nuesa-profile-card { padding: 16px 18px; gap: 14px; }
  .nuesa-profile-card__avatar { width: 48px; height: 48px; font-size: 1rem; }
  .nuesa-profile-card__info h2 { font-size: .95rem; }
  .nuesa-profile-card__info p  { font-size: .82rem; }

  /* Cards: single column */
  .nuesa-cards { grid-template-columns: 1fr; gap: 10px; }
  .nuesa-quick-card { padding: 14px 16px; gap: 12px; }
  .nuesa-quick-card__icon { width: 38px; height: 38px; border-radius: 9px; }
  .nuesa-quick-card__icon svg { width: 18px; height: 18px; }
  .nuesa-quick-card h3 { font-size: .85rem; }
  .nuesa-quick-card p  { font-size: .78rem; }

  /* CTA */
  .nuesa-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
    gap: 14px;
  }
  .nuesa-cta__btn { width: 100%; justify-content: center; padding: 13px; }
}

/* ── Small phones (≤400px) ──────────────────── */
@media (max-width: 400px) {
  .nuesa-panel--brand   { min-height: 155px; padding: 22px 18px 24px; }
  .nuesa-panel__title   { font-size: 1.55rem; }
  .nuesa-panel--form    { padding: 24px 18px 40px; }
  .nuesa-form__title    { font-size: 1.2rem; }
  .nuesa-form__subtitle { font-size: .78rem; margin-bottom: 16px; }
  .nuesa-field input,
  .nuesa-field select   { padding: 12px 13px; font-size: .875rem; }
  .nuesa-btn            { padding: 14px; font-size: .85rem; }
  .nuesa-section-title  { font-size: .75rem; }
  .nuesa-nav-item,
  .nuesa-sidebar__logout { min-width: 46px; padding: 5px 6px; font-size: .6rem; }
  .nuesa-main { padding: 14px 13px 88px; }
}


