/* =========================================
   MadrasaFlow Landing Page
   Warm, editorial, community-driven
   ========================================= */

:root {
  --teal: #0D5E5E;
  --teal-dark: #084545;
  --amber: #E8A23A;
  --amber-light: #F5CC7A;
  --parchment: #F5F0E8;
  --parchment-dark: #EAE4D8;
  --ink: #1A1A2E;
  --ink-mid: #3A3A5C;
  --ink-light: #6B6B8A;
  --white: #FFFFFF;
  --success: #2A7A4B;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--parchment);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAVBAR ---- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: var(--parchment);
  border-bottom: 1px solid var(--parchment-dark);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- HERO ---- */
.hero {
  padding: 80px 48px 64px;
  background: var(--parchment);
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-mid);
  line-height: 1.65;
  max-width: 480px;
}

/* Hero visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 380px;
}

.hero-orb-container {
  position: relative;
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}

.orb-1 {
  width: 260px;
  height: 260px;
  background: var(--teal);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orb-2 {
  width: 180px;
  height: 180px;
  background: var(--amber);
  top: 20%;
  left: 55%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
}

.orb-3 {
  width: 100px;
  height: 100px;
  background: var(--teal);
  bottom: 20%;
  left: 30%;
  transform: translate(-50%, -50%);
  opacity: 0.25;
}

/* Floating cards */
.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 4px 24px rgba(13, 94, 94, 0.10), 0 1px 4px rgba(13, 94, 94, 0.06);
  border: 1px solid var(--parchment-dark);
  z-index: 2;
}

.hero-card-1 {
  top: 15%;
  left: 5%;
  animation: float1 4s ease-in-out infinite;
}

.hero-card-2 {
  top: 48%;
  right: 5%;
  animation: float2 5s ease-in-out infinite;
}

.hero-card-3 {
  bottom: 15%;
  left: 15%;
  animation: float3 4.5s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon-amber {
  background: #FEF6E8;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.card-sub {
  font-size: 12px;
  color: var(--ink-light);
}

/* ---- MANIFESTO ---- */
.manifesto {
  background: var(--teal);
  padding: 56px 48px;
}

.manifesto-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 400;
  font-style: italic;
  color: var(--parchment);
  line-height: 1.65;
}

/* ---- FEATURES ---- */
.features {
  padding: 80px 48px;
  background: var(--parchment);
}

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature {
  padding: 48px 0;
  border-bottom: 1px solid var(--parchment-dark);
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.feature:last-child {
  border-bottom: none;
}

.feature-number {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--parchment-dark);
  line-height: 1;
  padding-top: 4px;
}

.feature-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 12px;
}

.feature-body {
  font-size: 16px;
  color: var(--ink-mid);
  line-height: 1.7;
  max-width: 420px;
}

.feature-tag {
  margin-top: 16px;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  background: #FEF6E8;
  padding: 5px 12px;
  border-radius: 20px;
}

/* ---- PROCESS ---- */
.process {
  padding: 80px 48px;
  background: var(--white);
}

.process-header {
  max-width: 600px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.process-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.process-steps {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 56px 2px 1fr;
  gap: 24px;
  align-items: start;
  position: relative;
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--parchment);
  border: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.step-line {
  width: 2px;
  background: var(--parchment-dark);
  position: relative;
  height: 100%;
  margin: 0 26px;
}

.step:last-child .step-line {
  display: none;
}

.step-content {
  padding: 16px 0 40px;
}

.step-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-body {
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* ---- QUOTE ---- */
.quote-section {
  padding: 80px 48px;
  background: var(--teal-dark);
}

.quote-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 2.5vw, 30px);
  font-style: italic;
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.55;
  margin-bottom: 24px;
}

.quote-attr {
  font-size: 14px;
  color: var(--parchment-dark);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ---- CLOSING ---- */
.closing {
  padding: 80px 48px;
  background: var(--parchment);
  border-top: 1px solid var(--parchment-dark);
}

.closing-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.closing-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 20px;
}

.closing-sub {
  font-size: 17px;
  color: var(--ink-mid);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}

/* ---- FOOTER ---- */
.footer {
  padding: 32px 48px;
  background: var(--ink);
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--parchment);
}

.footer-note {
  font-size: 13px;
  color: var(--ink-light);
  margin-left: auto;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .navbar { padding: 16px 24px; }
  .nav-tagline { display: none; }
  
  .hero { padding: 48px 24px; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 280px; }
  .hero-card-2 { display: none; }
  .orb-2 { display: none; }
  
  .manifesto { padding: 40px 24px; }
  
  .features { padding: 48px 24px; }
  .feature { grid-template-columns: 1fr; gap: 16px; }
  .feature-number { font-size: 36px; }
  
  .process { padding: 48px 24px; }
  
  .quote-section { padding: 48px 24px; }
  .closing { padding: 48px 24px; }
  
  .footer { flex-direction: column; align-items: flex-start; padding: 24px; gap: 8px; }
  .footer-note { margin-left: 0; }
}

/* =========================================
   Portal / Auth UI
   ========================================= */

.auth-page {
  min-height: 100vh;
  background: var(--parchment);
  display: flex;
  flex-direction: column;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: var(--white);
  border-bottom: 1px solid var(--parchment-dark);
}

.auth-header .nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-header .nav-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.auth-header .nav-tagline {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-card {
  background: var(--white);
  border-radius: 16px;
  padding: 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 4px 32px rgba(13, 94, 94, 0.08);
  border: 1px solid var(--parchment-dark);
}

.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.auth-sub {
  font-size: 15px;
  color: var(--ink-light);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mid);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  font-family: 'Source Sans 3', sans-serif;
  border: 1.5px solid var(--parchment-dark);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s;
  outline: none;
}

.form-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 94, 94, 0.08);
}

.form-input.error {
  border-color: #D9534F;
}

.form-error {
  font-size: 13px;
  color: #D9534F;
  margin-top: 4px;
}

.form-time {
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Source Sans 3', sans-serif;
  border: 1.5px solid var(--parchment-dark);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}

.form-time:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 94, 94, 0.08);
}

.btn-primary {
  width: 100%;
  padding: 13px 24px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Source Sans 3', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: 0.02em;
}

.btn-primary:hover { background: var(--teal-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  width: 100%;
  padding: 13px 24px;
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Source Sans 3', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover { background: var(--parchment); }

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-light);
}

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

.auth-footer a:hover { text-decoration: underline; }

.auth-guide-link {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-light);
}

.auth-guide-link a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.auth-guide-link a:hover { text-decoration: underline; }

.auth-guide-link {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-light);
}

.auth-guide-link a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.auth-guide-link a:hover { text-decoration: underline; }

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
}

.alert-error {
  background: #FEF2F2;
  color: #9B1C1C;
  border: 1px solid #FECACA;
}

.alert-success {
  background: #F0FDF4;
  color: #14532D;
  border: 1px solid #BBF7D0;
}

/* ---- Portal Layout ---- */
.portal-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--parchment);
}

.portal-header {
  background: var(--white);
  border-bottom: 1px solid var(--parchment-dark);
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.portal-brand:hover { color: var(--teal); }

.portal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mid);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.15s;
}

.portal-nav a:hover { background: var(--parchment); color: var(--ink); }
.portal-nav a.active { background: var(--teal); color: var(--white); }

.portal-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.portal-user-info { display: flex; flex-direction: column; }

.portal-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.portal-user-role {
  font-size: 12px;
  color: var(--ink-light);
  text-transform: capitalize;
}

.portal-logout {
  font-size: 13px;
  color: var(--ink-light);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all 0.15s;
}

.portal-logout:hover { background: var(--parchment); color: var(--ink); }

/* ---- Message Thread ---- */
.portal-content {
  flex: 1;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px;
}

.messages-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.message {
  display: flex;
  flex-direction: column;
  max-width: 72%;
}

.message.user {
  align-self: flex-end;
  align-items: flex-end;
}

.message.agent {
  align-self: flex-start;
  align-items: flex-start;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.message.user .message-bubble {
  background: var(--teal);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.message.agent .message-bubble {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--parchment-dark);
  border-bottom-left-radius: 4px;
}

.message-time {
  font-size: 11px;
  color: var(--ink-light);
  margin-top: 4px;
  padding: 0 4px;
}

.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.message.user .message-avatar { background: var(--teal); color: var(--white); }
.message.agent .message-avatar { background: var(--amber); color: var(--white); }

/* ---- Chat Input ---- */
.chat-input-area {
  position: sticky;
  bottom: 0;
  background: var(--parchment);
  padding: 16px 0 8px;
  border-top: 1px solid var(--parchment-dark);
}

.chat-input-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Source Sans 3', sans-serif;
  border: 1.5px solid var(--parchment-dark);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  resize: none;
  min-height: 48px;
  max-height: 140px;
  transition: border-color 0.15s;
}

.chat-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13, 94, 94, 0.06); }

.btn-send {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal);
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}

.btn-send:hover { background: var(--teal-dark); }
.btn-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* Typing indicator */
.typing-dots {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-light);
  animation: bounce 1.2s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}

/* ---- Notification Bell ---- */
.notif-bell-wrap {
  position: relative;
}

.notif-bell-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: var(--ink-mid);
  display: flex;
  align-items: center;
  transition: background 0.15s;
}
.notif-bell-btn:hover { background: var(--parchment); color: var(--ink); }

.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  background: #D9534F;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.notif-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  background: var(--white);
  border: 1.5px solid var(--parchment-dark);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(13,94,94,0.12);
  z-index: 100;
  overflow: hidden;
}

.notif-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--parchment-dark);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.notif-mark-all {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--teal);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}
.notif-mark-all:hover { text-decoration: underline; }

.notif-list { max-height: 360px; overflow-y: auto; }

.notif-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-light);
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--parchment-dark);
  transition: background 0.1s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--parchment); }

.notif-item-body { flex: 1; min-width: 0; }

.notif-subject {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-content {
  font-size: 12px;
  color: var(--ink-mid);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-time {
  font-size: 11px;
  color: var(--ink-light);
  margin-top: 4px;
}

.notif-dismiss {
  background: none;
  border: 1.5px solid var(--parchment-dark);
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ink-light);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}
.notif-dismiss:hover { background: var(--teal); border-color: var(--teal); color: white; }

/* Empty state */
.messages-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--ink-light);
}

.messages-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.messages-empty h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.messages-empty p {
  font-size: 15px;
  max-width: 340px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-header { padding: 16px 24px; }
  .auth-card { padding: 32px 24px; }
  .portal-header { padding: 0 24px; }
  .portal-content { padding: 24px 16px; }
  .message { max-width: 85%; }
}

@media (max-width: 480px) {
  .auth-title { font-size: 24px; }
  .portal-nav .link-text { display: none; }
}
