/* =========================================
   Maria Papanikolaou Labs – Client Portal
   portal.css  v2.0  – brand-aligned
   Colors: purple #6b1a97 · lime #ebf500 · pink #ef45c5
   ========================================= */

@font-face {
  font-family: 'Inter var';
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
  src: url("/assets/css/font/Inter-roman.var.woff2") format("woff2");
}
@font-face {
  font-family: 'Inter var';
  font-weight: 100 900;
  font-display: swap;
  font-style: italic;
  src: url("/assets/css/font/Inter-italic.var.woff2") format("woff2");
}

:root {
  /* Brand */
  --purple:   #6b1a97;
  --purple-d: #510a78;
  --purple-l: #f3eafa;
  --lime:     #ebf500;
  --lime-d:   #ccd600;
  --pink:     #ef45c5;
  --pink-l:   #fde8f9;

  /* UI */
  --bg:       #f7f5fc;
  --surface:  #ffffff;
  --border:   #e8e0f4;
  --text:     #2f3000;
  --muted:    #7c6fa0;
  --sidebar-w: 250px;
  --radius:   14px;
  --radius-sm: 8px;
  --shadow:   0 2px 16px rgba(107,26,151,.08);
  --shadow-md:0 6px 28px rgba(107,26,151,.13);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter var', system-ui, -apple-system, sans-serif;
  font-feature-settings: "cv02","cv03","cv04","cv11";
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* =========================================
   SIDEBAR
   ========================================= */
.sidebar {
  width: var(--sidebar-w);
  background: var(--purple);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 1.6rem 1rem 1.4rem;
  gap: 1rem;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}

/* Subtle gradient overlay */
.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(239,69,197,.12) 0%, transparent 60%);
  pointer-events: none;
}

.logo-link { display: block; margin-bottom: .2rem; position: relative; }
.sidebar-logo { height: 48px; width: auto; display: block; }
.sidebar-logo-text { font-size: 1.5rem; font-weight: 800; color: var(--lime); letter-spacing: -.03em; }

/* User card */
.user-card {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255,255,255,.08);
  border-radius: 12px;
  padding: .75rem .85rem;
  border: 1px solid rgba(255,255,255,.1);
  position: relative;
}
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--purple-d);
  font-weight: 800;
  font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  letter-spacing: -.02em;
}
.user-info { min-width: 0; flex: 1; }
.user-name {
  font-size: .83rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-email {
  font-size: .71rem; color: rgba(255,255,255,.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Nav links */
.nav-links {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  flex: 1;
  position: relative;
}
.nav-section-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.35);
  padding: .9rem .9rem .3rem;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .9rem;
  border-radius: 10px;
  color: rgba(255,255,255,.75);
  font-size: .86rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  position: relative;
}
.nav-links a i { width: 16px; text-align: center; flex-shrink: 0; }
.nav-links a:hover {
  background: rgba(235,245,0,.12);
  color: var(--lime);
}
.nav-links a.active {
  background: var(--lime);
  color: var(--purple-d);
  font-weight: 700;
}
.nav-links a.active i { color: var(--purple-d); }

/* Unread badge */
.unread-badge-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(239,69,197,.15);
  color: #f9aaec;
  border: 1px solid rgba(239,69,197,.3);
  border-radius: 10px;
  padding: .55rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  transition: background .15s;
}
.unread-badge-link:hover { background: rgba(239,69,197,.25); }

/* Sidebar footer */
.sidebar-footer { position: relative; }
.btn-logout {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .9rem;
  border-radius: 10px;
  color: rgba(255,255,255,.55);
  font-size: .86rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.btn-logout:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

/* Mobile toggle */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: .9rem; left: .9rem;
  z-index: 200;
  width: 40px; height: 40px;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(107,26,151,.3);
}

/* =========================================
   MAIN CONTENT
   ========================================= */
.portal-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 2rem 2.2rem;
  max-width: 100%;
  min-height: 100vh;
}

.page-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.4rem;
  letter-spacing: -.03em;
}

/* =========================================
   CARDS
   ========================================= */
.portal-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 1.4rem;
}
.portal-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.1rem;
  letter-spacing: -.01em;
}

/* =========================================
   STATS GRID
   ========================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--purple-l);
  color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.stat-icon.blue   { background: #eff6ff; color: #2563eb; }
.stat-icon.purple { background: var(--purple-l); color: var(--purple); }
.stat-icon.green  { background: #f0fdf4; color: #16a34a; }
.stat-icon.red    { background: var(--pink-l); color: var(--pink); }
.stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.04em;
  line-height: 1;
}
.stat-label {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .2rem;
  font-weight: 500;
}

/* =========================================
   TABLE
   ========================================= */
.table-responsive { overflow-x: auto; }
.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.portal-table thead th {
  padding: .8rem 1.2rem;
  text-align: left;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
  background: var(--surface);
}
.portal-table tbody td {
  padding: .85rem 1.2rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
.portal-table tbody tr:last-child td { border-bottom: none; }
.portal-table tbody tr:hover { background: #faf8ff; }

/* =========================================
   STATUS BADGES
   ========================================= */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}
.badge-warning   { background: #fef9c3; color: #854d0e; }
.badge-info      { background: #dbeafe; color: #1e40af; }
.badge-primary   { background: var(--purple-l); color: var(--purple-d); }
.badge-danger    { background: var(--pink-l); color: #9d174d; }
.badge-success   { background: #dcfce7; color: #15803d; }
.badge-secondary { background: #f3f4f6; color: #4b5563; }

/* =========================================
   BUTTONS
   ========================================= */
.btn-portal {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.1rem;
  border-radius: 50px;
  font-family: inherit;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .12s, box-shadow .12s, background .15s;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -.01em;
}
.btn-portal:active { transform: scale(.97); }

.btn-primary-p {
  background: var(--lime);
  color: var(--purple-d);
}
.btn-primary-p:hover {
  background: var(--lime-d);
  box-shadow: 0 4px 14px rgba(235,245,0,.4);
}

.btn-dark-p {
  background: var(--purple);
  color: #fff;
}
.btn-dark-p:hover {
  background: var(--purple-d);
  box-shadow: 0 4px 14px rgba(107,26,151,.3);
}

.btn-outline-p {
  background: transparent;
  color: var(--purple);
  border: 1.5px solid var(--border);
}
.btn-outline-p:hover {
  background: var(--purple-l);
  border-color: var(--purple);
}

.btn-danger-p {
  background: var(--pink);
  color: #fff;
}
.btn-danger-p:hover {
  background: #d93ab3;
  box-shadow: 0 4px 14px rgba(239,69,197,.3);
}

.btn-sm-p { padding: .35rem .8rem; font-size: .78rem; }

/* =========================================
   FORM ELEMENTS
   ========================================= */
.portal-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .35rem;
  letter-spacing: .01em;
}
.portal-input,
.portal-select,
.portal-textarea {
  width: 100%;
  padding: .72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .9rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.portal-input:focus,
.portal-select:focus,
.portal-textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(107,26,151,.1);
}
.portal-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}
.portal-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237c6fa0' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* =========================================
   ALERTS
   ========================================= */
.portal-alert {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.portal-alert i { margin-top: .1rem; flex-shrink: 0; }

.alert-success-p { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error-p   { background: #fff1f5; color: #9d174d; border: 1px solid #fecdd3; }
.alert-warning-p { background: #fefce8; color: #854d0e; border: 1px solid #fde68a; }
.alert-info-p    { background: var(--purple-l); color: var(--purple-d); border: 1px solid #ddd0f0; }

/* =========================================
   STEP WIZARD
   ========================================= */
.step-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 1.8rem;
  padding: 1.2rem 1.6rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.step-item {
  display: flex;
  align-items: center;
  flex: 1;
}
.step-item:last-child { flex: 0; }
.step-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
}
.step-circle.active {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(107,26,151,.15);
}
.step-circle.done {
  background: var(--lime);
  color: var(--purple-d);
}
.step-label {
  font-size: .73rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: .5rem;
  white-space: nowrap;
  transition: color .2s;
}
.step-label.active { color: var(--purple); }
.step-label.done   { color: var(--lime-d); }
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 .6rem;
  border-radius: 2px;
  transition: background .2s;
}
.step-line.done { background: var(--lime); }

/* =========================================
   SERVICE CARDS
   ========================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .8rem;
}
.service-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem .9rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .12s, box-shadow .15s;
  background: var(--surface);
}
.service-card:hover {
  border-color: var(--purple);
  background: var(--purple-l);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.service-card.selected {
  border-color: var(--purple);
  background: var(--purple-l);
  box-shadow: 0 0 0 3px rgba(107,26,151,.12);
}
.service-card i {
  font-size: 1.5rem;
  color: var(--purple);
  display: block;
  margin-bottom: .5rem;
}
.service-card.selected i { color: var(--purple-d); }
.svc-name {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.svc-price {
  font-size: .72rem;
  color: var(--muted);
  margin-top: .25rem;
}
.service-card.selected .svc-name { color: var(--purple-d); }

/* =========================================
   RADIO CARDS (questionnaire)
   ========================================= */
.radio-card-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.radio-card {
  display: inline-flex;
  align-items: center;
  padding: .45rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  color: var(--muted);
  background: var(--surface);
}
.radio-card:hover { border-color: var(--purple); color: var(--purple); }
.radio-card.selected {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
}
.radio-card input[type="radio"] { display: none; }

/* =========================================
   DROPZONE / FILE UPLOAD
   ========================================= */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: #faf9ff;
}
.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--purple);
  background: var(--purple-l);
}
.dropzone i {
  font-size: 2.2rem;
  color: var(--purple);
  margin-bottom: .6rem;
  display: block;
  opacity: .65;
}
.dropzone p { font-size: .88rem; color: var(--muted); }
.dropzone p strong { color: var(--purple); }

.file-list { display: flex; flex-direction: column; gap: .4rem; margin-top: .8rem; }
.file-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .55rem .8rem;
  font-size: .83rem;
}
.file-item i { color: var(--purple); flex-shrink: 0; }
.file-name {
  flex: 1;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-size { color: var(--muted); font-size: .75rem; flex-shrink: 0; }
.remove-file {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: .2rem;
  font-size: .85rem;
  transition: color .15s;
  flex-shrink: 0;
}
.remove-file:hover { color: var(--pink); }

/* =========================================
   MESSAGES
   ========================================= */
.messages-container {
  min-height: 160px;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: .4rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.message-bubble {
  max-width: 72%;
  padding: .75rem 1rem;
  border-radius: 16px;
  font-size: .875rem;
  line-height: 1.55;
  position: relative;
  word-break: break-word;
}
.message-bubble.mine {
  background: var(--purple);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.message-bubble.theirs {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.message-meta {
  display: block;
  font-size: .68rem;
  opacity: .6;
  margin-top: .3rem;
  text-align: right;
}
.message-bubble.theirs .message-meta { text-align: left; }

/* =========================================
   STATUS TIMELINE
   ========================================= */
.status-timeline {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: .2rem;
}
.tl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 70px;
  position: relative;
}
.tl-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.tl-step.done:not(:last-child)::after { background: var(--lime); }
.tl-step.active:not(:last-child)::after {
  background: linear-gradient(90deg, var(--purple) 0%, var(--border) 100%);
}

.tl-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
  z-index: 1;
  position: relative;
  transition: all .2s;
  border: 2.5px solid var(--bg);
}
.tl-step.active .tl-dot {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(107,26,151,.15);
}
.tl-step.done .tl-dot {
  background: var(--lime);
  color: var(--purple-d);
}

.tl-label {
  font-size: .68rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: .4rem;
  text-align: center;
  line-height: 1.2;
}
.tl-step.done .tl-label   { color: var(--lime-d); }
.tl-step.active .tl-label  { color: var(--purple); }

/* =========================================
   PAYMENT BOX
   ========================================= */
.payment-box {
  background: linear-gradient(135deg, var(--purple), #9b31d4);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.payment-box .amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--lime);
  letter-spacing: -.04em;
  line-height: 1;
}
.payment-box .pay-label { font-size: .88rem; opacity: .75; margin-bottom: .3rem; }
.btn-pay {
  background: var(--lime);
  color: var(--purple-d);
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: none;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  white-space: nowrap;
  letter-spacing: -.01em;
}
.btn-pay:hover {
  background: #fff;
  color: var(--purple-d);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

/* =========================================
   QUESTIONNAIRE DISPLAY
   ========================================= */
.questionnaire-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .8rem;
}
.q-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  border: 1px solid var(--border);
}
.q-label {
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .3rem;
}
.q-value { font-size: .88rem; color: var(--text); line-height: 1.5; }

/* =========================================
   FILTER PILLS
   ========================================= */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.2rem;
}
.filter-pill {
  padding: .38rem .9rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
  background: var(--surface);
  text-decoration: none;
  display: inline-block;
  letter-spacing: -.01em;
}
.filter-pill:hover,
.filter-pill.active {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

/* =========================================
   BREADCRUMB
   ========================================= */
.portal-breadcrumb {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.portal-breadcrumb a { color: var(--purple); font-weight: 500; }
.portal-breadcrumb a:hover { text-decoration: underline; }

/* =========================================
   CARD REQUEST ROWS (dashboard)
   ========================================= */
.card-request {
  display: flex;
  align-items: center;
  padding: .8rem 0;
  border-bottom: 1px solid var(--border);
}
.card-request:last-child { border-bottom: none; }
.card-request-title { font-weight: 600; font-size: .9rem; }
.card-request-sub { font-size: .78rem; color: var(--muted); margin-top: .15rem; }

/* =========================================
   LOGIN / AUTH PAGES
   ========================================= */
.auth-page {
  min-height: 100vh;
  width: 100%;
  background: var(--purple);
  background-image:
    radial-gradient(ellipse at 20% 60%, rgba(239,69,197,.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 10%, rgba(235,245,0,.12) 0%, transparent 40%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 1rem;
}
.auth-logo { text-align: center; }
.auth-logo img { height: 64px; width: auto; }
.auth-logo-text {
  color: var(--lime);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.04em;
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
  padding: 2.6rem 2.4rem;
  width: clamp(320px, 92vw, 440px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--purple-d);
  margin-bottom: .1rem;
  letter-spacing: -.03em;
}
.auth-card .auth-sub { font-size: .85rem; color: var(--muted); }

.auth-input {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .92rem;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.auth-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(107,26,151,.12);
}

.btn-auth {
  width: 100%;
  padding: .88rem;
  background: var(--lime);
  color: var(--purple-d);
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  margin-top: .2rem;
  letter-spacing: -.01em;
}
.btn-auth:hover {
  background: var(--lime-d);
  box-shadow: 0 4px 20px rgba(235,245,0,.4);
}

.auth-links { text-align: center; font-size: .84rem; color: var(--muted); }
.auth-links a { color: var(--purple); font-weight: 600; }
.auth-links a:hover { text-decoration: underline; }

/* =========================================
   SUCCESS PAGE
   ========================================= */
.success-page {
  min-height: 100vh;
  background: var(--purple);
  background-image: radial-gradient(ellipse at 30% 50%, rgba(239,69,197,.2) 0%, transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-card {
  background: #fff;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
}
.success-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: #f0fdf4;
  color: #16a34a;
  font-size: 2.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1000px) {
  .portal-content { padding: 1.5rem 1.3rem; }
}

@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 40px rgba(0,0,0,.25); }
  .portal-content { margin-left: 0; padding: 1.2rem 1rem; padding-top: 4rem; }
  .sidebar-toggle { display: flex; align-items: center; justify-content: center; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 2rem 1.5rem; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .payment-box { flex-direction: column; text-align: center; }
  .message-bubble { max-width: 90%; }
  .questionnaire-grid { grid-template-columns: 1fr; }
  .step-label { display: none; }
}
