/* ==========================================
   MANNAN / HASSANA - Professional Redesign
   A premium Islamic Q&A experience
   ========================================== */

/* ==========================================
   Typography - Google Fonts
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&display=swap');

/* ==========================================
   Design Tokens
   ========================================== */
:root {
  /* Color Palette - from the Islamic aesthetic */
  --emerald-deep: #0a3d34;
  --emerald: #0f4d42;
  --emerald-light: #1a5c4f;
  --gold: #d4af37;
  --gold-light: #e8c55a;
  --gold-muted: #b8963c;
  --parchment: #f7f0e3;
  --parchment-dark: #efe5d4;
  --parchment-overlay: rgba(247, 240, 227, 0.92);
  --ink: #1c1917;
  --ink-muted: rgba(28, 25, 23, 0.7);
  --ink-faint: rgba(28, 25, 23, 0.5);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
  --shadow-bubble: 0 2px 8px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  
  /* Typography */
  --font-arabic: 'IBM Plex Sans Arabic', 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  
  /* Layout */
  --composer-height: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ==========================================
   Reset & Base
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  height: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--parchment);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

/* ==========================================
   Background Layer
   ========================================== */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('./assets/hassana-bg.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

@supports (background-image: image-set(url('x') 1x)) {
  .bg {
    background-image: image-set(
      url('./assets/hassana-bg.webp') type('image/webp') 1x,
      url('./assets/background.png') type('image/png') 1x
    );
  }
}

/* Mobile: disable fixed attachment for performance */
@media (pointer: coarse) {
  .bg {
    background-attachment: scroll;
  }
}

/* ==========================================
   App Container
   ========================================== */
.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: min(480px, 100%);
  height: min(92vh, 900px);
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

/* ==========================================
   Quran Player - Elegant Mini Bar
   ========================================== */
.quran-player {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-sm) var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, var(--emerald-deep) 0%, var(--emerald) 100%);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.player-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.player-title {
  display: none;
}

.player-surah-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--parchment);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.player-status {
  font-size: 11px;
  color: var(--gold-light);
  opacity: 0.8;
}

/* Player Controls */
.player-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.player-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.player-btn:hover {
  background: rgba(255,255,255,0.2);
}

.player-btn:active {
  transform: scale(0.94);
}

.player-btn-main {
  width: 36px;
  height: 36px;
  background: var(--gold);
  color: var(--emerald-deep);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.player-btn-main:hover {
  background: var(--gold-light);
}

.player-btn.attention {
  animation: pulse-attention 2s ease-in-out infinite;
}

@keyframes pulse-attention {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); }
}

.player-btn svg.hidden { display: none; }

/* Progress Bar - Integrated elegantly */
.player-progress-wrap {
  flex: 1;
  max-width: 140px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.player-progress-bar {
  position: relative;
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  overflow: visible;
}

.player-progress-bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--gold-muted), var(--gold-light));
  border-radius: var(--radius-pill);
  transition: width 0.15s linear;
}

.player-seek {
  position: absolute;
  inset: -10px 0;
  width: 100%;
  height: 24px;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.player-time {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: right;
}

/* Hide time on small screens */
@media (max-width: 400px) {
  .player-time { display: none; }
  .player-surah-name { max-width: 80px; }
}

/* ==========================================
   Chat Area
   ========================================== */
.chat {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-md);
  padding-bottom: calc(var(--space-lg) + 20px);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  
  /* Subtle scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 61, 52, 0.3) transparent;
}

.chat::-webkit-scrollbar {
  width: 6px;
}

.chat::-webkit-scrollbar-track {
  background: transparent;
}

.chat::-webkit-scrollbar-thumb {
  background: rgba(10, 61, 52, 0.3);
  border-radius: var(--radius-pill);
}

.chat::-webkit-scrollbar-thumb:hover {
  background: rgba(10, 61, 52, 0.5);
}

/* ==========================================
   Messages
   ========================================== */
.msg {
  display: flex;
  width: 100%;
  animation: msg-enter 0.3s ease-out;
}

@keyframes msg-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg.user {
  justify-content: flex-end;
}

.msg.assistant {
  justify-content: flex-start;
}

/* Bubble Base */
.bubble {
  max-width: 88%;
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  box-shadow: var(--shadow-bubble);
}

/* User Bubble */
.user-bubble {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--emerald-deep);
  font-weight: 500;
  border: 1px solid rgba(180, 140, 40, 0.3);
  border-radius: var(--radius-lg) var(--radius-lg) 6px var(--radius-lg);
}

/* Assistant Bubble */
.assistant-bubble {
  background: var(--parchment-overlay);
  color: var(--ink);
  border: 1px solid rgba(180, 160, 120, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 6px;
}

/* Greeting Styles */
.assistant-greeting {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}

.muted {
  color: var(--ink-muted);
  font-size: 13px;
}

/* RTL Support for Arabic */
.rtl {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
}

/* Answer Text */
.answer {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Thinking Animation */
.thinking {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
}

.thinking .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  animation: thinking-bounce 1.4s ease-in-out infinite;
}

.thinking .dot:nth-child(2) { animation-delay: 0.16s; }
.thinking .dot:nth-child(3) { animation-delay: 0.32s; }

@keyframes thinking-bounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==========================================
   Sources Widget
   ========================================== */
.sources {
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}

.sources-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.sources-title:hover {
  background: rgba(0,0,0,0.02);
}

.sources-title-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.sources-title-right {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 12px;
  color: var(--ink-muted);
}

.caret {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.sources:not(.collapsed) .caret {
  transform: rotate(90deg);
}

.sources.collapsed .source-item {
  display: none;
}

.source-item {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid rgba(0,0,0,0.05);
  font-size: 13px;
}

.source-meta {
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.source-snippet {
  color: var(--ink-faint);
  line-height: 1.4;
}

/* ==========================================
   Guard Badge
   ========================================== */
.guard {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.06);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
}

.badge.ok {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.badge.warn {
  background: rgba(234, 179, 8, 0.12);
  color: #854d0e;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.badge.err {
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ==========================================
   Change Tradition Button
   ========================================== */
.change-tradition {
  display: inline-flex;
  align-items: center;
  margin-left: var(--space-sm);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-muted);
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.change-tradition:hover {
  background: rgba(212, 175, 55, 0.25);
  color: var(--gold);
}

/* ==========================================
   Scroll to Bottom FAB
   ========================================== */
.scroll-fab {
  position: absolute;
  bottom: calc(var(--composer-height) + var(--safe-bottom) + 16px);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--emerald);
  color: white;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: all 0.2s ease;
  opacity: 1;
  transform: scale(1);
}

.scroll-fab.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.scroll-fab:hover {
  background: var(--emerald-light);
  transform: scale(1.05);
}

.scroll-fab:active {
  transform: scale(0.95);
}

/* ==========================================
   Composer
   ========================================== */
.composer {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  gap: var(--space-sm);
  margin: var(--space-sm) var(--space-md);
  margin-bottom: calc(var(--space-sm) + var(--safe-bottom));
  padding: var(--space-sm);
  min-height: var(--composer-height);
  background: var(--parchment-overlay);
  border: 1px solid rgba(180, 160, 120, 0.4);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Mic Button */
.mic {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(10, 61, 52, 0.15);
  background: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mic:hover {
  background: rgba(255,255,255,0.9);
}

.mic:active {
  transform: scale(0.95);
}

.mic img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

/* Text Input */
.input {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  padding: 12px 4px;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  resize: none;
  overflow-y: auto;
  
  /* Critical for proper text handling */
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  
  /* RTL/LTR auto-detection */
  unicode-bidi: plaintext;
}

.input::placeholder {
  color: var(--ink-faint);
  font-weight: 500;
}

/* Hide scrollbar in input but keep functional */
.input::-webkit-scrollbar {
  width: 4px;
}

.input::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius-pill);
}

/* Send Button */
.send {
  flex-shrink: 0;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--emerald);
  color: white;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(10, 61, 52, 0.3);
}

.send:hover:not(:disabled) {
  background: var(--emerald-light);
}

.send:active:not(:disabled) {
  transform: scale(0.97);
}

.send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.send img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* ==========================================
   Modal
   ========================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal.show {
  display: flex;
}

.modal-card {
  width: min(400px, 100%);
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: modal-enter 0.2s ease-out;
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-md);
}

.modal-actions {
  display: flex;
  gap: var(--space-sm);
}

.modal-btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.1);
  background: var(--parchment);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.modal-btn.primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: rgba(180, 140, 40, 0.3);
  color: var(--emerald-deep);
}

.modal-btn.primary:hover {
  filter: brightness(1.05);
}

.modal-note {
  margin-top: var(--space-md);
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
}

/* ==========================================
   Responsive Adjustments
   ========================================== */
@media (max-width: 480px) {
  :root {
    --space-md: 12px;
  }
  
  .phone {
    height: 100%;
    border-radius: 0;
  }
  
  .bubble {
    max-width: 92%;
    font-size: 14px;
  }
  
  .send {
    padding: 0 16px;
    font-size: 14px;
  }
}

@media (max-height: 700px) {
  .quran-player {
    margin: var(--space-xs) var(--space-md);
    padding: var(--space-xs) var(--space-sm);
  }
  
  .player-btn {
    width: 28px;
    height: 28px;
  }
  
  .player-btn-main {
    width: 32px;
    height: 32px;
  }
}

/* ==========================================
   Print Styles (hide interactive elements)
   ========================================== */
@media print {
  .quran-player,
  .composer,
  .scroll-fab,
  .modal,
  .auth-modal {
    display: none !important;
  }
}

/* ==========================================
   Auth Modal - Landing Gate
   ========================================== */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.auth-modal.hidden {
  display: none;
}

/* Lock body scroll when auth modal is shown */
body.auth-locked {
  overflow: hidden;
}

body.auth-locked .stage {
  filter: blur(8px) saturate(0.8);
  pointer-events: none;
  user-select: none;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 40, 35, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.auth-modal-content {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: var(--space-xl);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(247, 240, 227, 0.98) 100%
  );
  border-radius: var(--radius-lg);
  box-shadow: 
    0 0 0 1px rgba(212, 175, 55, 0.3),
    0 24px 64px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.2);
  animation: auth-modal-enter 0.4s ease-out;
}

@keyframes auth-modal-enter {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Header */
.auth-modal-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, var(--emerald-deep) 0%, var(--emerald) 100%);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-md);
}

.auth-logo-icon {
  font-size: 20px;
}

.auth-logo-text {
  font-family: var(--font-arabic);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.auth-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px 0;
  letter-spacing: -0.5px;
}

.auth-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-muted);
  margin: 0;
  font-weight: 500;
}

/* Body */
.auth-modal-body {
  margin-bottom: var(--space-lg);
}

.auth-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  text-align: center;
  margin: 0 0 var(--space-lg) 0;
}

.auth-description strong {
  color: var(--emerald);
  font-weight: 600;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(10, 61, 52, 0.06);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.auth-feature-icon {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

/* Actions */
.auth-modal-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px var(--space-lg);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.auth-btn-primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--emerald-deep);
  border: 1px solid rgba(180, 140, 40, 0.3);
  box-shadow: 
    0 2px 8px rgba(212, 175, 55, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.auth-btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 
    0 4px 12px rgba(212, 175, 55, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.auth-btn-primary:active {
  transform: translateY(0);
}

.auth-btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--emerald);
  border: 1px solid rgba(10, 61, 52, 0.2);
}

.auth-btn-secondary:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(10, 61, 52, 0.3);
}

.auth-btn-secondary:active {
  background: rgba(245, 245, 245, 1);
}

/* Footer */
.auth-footer {
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .auth-modal-content {
    padding: var(--space-lg);
  }
  
  .auth-title {
    font-size: 24px;
  }
  
  .auth-description {
    font-size: 14px;
  }
  
  .auth-feature {
    font-size: 13px;
  }
}
