
/* Firebase / Stripe integration helpers */
.phone-verification {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.phone-verification .btn {
    width: 100%;
}

.phone-verification .verification-step {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    width: 100%;
}

.phone-verification .verification-step[hidden] {
    display: none;
}

.phone-verification .verification-status {
    font-size: 0.85rem;
    min-height: 1.1rem;
    color: rgba(20, 20, 20, 0.75);
}

.recaptcha-container {
    width: 0;
    height: 0;
    overflow: hidden;
}

.payment-element-wrapper {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(128, 128, 160, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
}

.payment-messages {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #d14d4d;
    min-height: 1.1rem;
}

@media (min-width: 768px) {
    .phone-verification {
        align-self: stretch;
    }

    .phone-verification .btn {
        width: auto;
    }

    .phone-verification .verification-step {
        flex-direction: row;
    }
}

/* Box sizing from Bootstrap/template */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --brand-navy: #0c2236;
  --brand-aqua: #4ed4c8;
  --brand-aqua-dark: #3bb8a8;
  --text-primary: #0c2236;
  --text-secondary: rgba(12, 34, 54, 0.7);
  --text-muted: rgba(12, 34, 54, 0.5);
  --surface: #ffffff;
  --surface-muted: #f8fafb;

  /* Safe area insets for iOS */
  --sat: env(safe-area-inset-top, 0px);
}

/* Hide the Google reCAPTCHA badge (we show our own notice) */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* Input note styling - matches Landing .field-note */
.input-note {
  margin-top: 4px;
  font-size: 0.85rem;
  color: rgba(12, 34, 54, 0.6);
  display: block;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overscroll-behavior: none;
    position: fixed;
    width: 100%;
    overflow: hidden;
}

body {
  font-family: var(--font-sans, 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  background: var(--surface-muted, #f8fafb);
  color: var(--text-primary, #0c2236);
}

/* Prevent iOS zoom on input focus - set minimum 16px font-size */
input,
textarea,
select {
  font-size: 16px !important;
}

#root {
  height: 100%;
  width: 100%;
  position: relative;
}

.app-container {
  height: 100%;
  width: 100%;
  position: relative;
  /* Use modern viewport units with fallback chain */
  /*height: 100vh; /* Fallback for old browsers */
  /*height: 100svh; /* Small viewport height - best for browser mode */
  /*height: 100dvh; /* Dynamic viewport height - best for PWA */
  background: var(--surface-muted, #f8fafb);
  /* Prevent overscroll bounce */
  overscroll-behavior: none;
  overflow: hidden;
}

/* Mobile menu button */
.mobile-menu-btn {
  position: fixed;
  top: calc(16px + var(--sat));
  left: 16px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-aqua);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(78, 212, 200, 0.3);
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(78, 212, 200, 0.4);
}

.mobile-menu-btn i {
  font-size: 18px;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 240px;
  /* Use dynamic viewport height with fallback */
  height: 100vh;
  height: 100dvh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(12, 34, 54, 0.08);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  /* Enable momentum scrolling on iOS */
  -webkit-overflow-scrolling: touch;
  /* Contain overscroll within sidebar */
  overscroll-behavior: contain;
}

.sidebar--open {
  transform: translateX(0);
}

.sidebar-header {
  /* Adjust padding to account for safe-area already on sidebar */
  padding: calc(24px + var(--sat)) 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(12, 34, 54, 0.08);
}

.sidebar-logo {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 4px 12px rgba(78, 212, 200, 0.2));
}

.sidebar-brand {
  text-align: center;
}

.sidebar-brand-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: -0.5px;
}

.sidebar-brand-motto {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-nav {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  background: rgba(78, 212, 200, 0.1);
  color: var(--brand-aqua-dark);
}

.sidebar-link.active {
  background: linear-gradient(135deg, rgba(78, 212, 200, 0.15), rgba(78, 212, 200, 0.1));
  color: var(--brand-aqua-dark);
}

.sidebar-link i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.sidebar-link span {
  font-weight: 500;
  font-size: 0.95rem;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(12, 34, 54, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s ease;
  cursor: pointer;
  width: 100%;
}

.sidebar-logout:hover {
  background: rgba(78, 212, 200, 0.1);
  color: var(--brand-aqua-dark);
}

.sidebar-logout i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.sidebar-logout span {
  font-weight: 500;
  font-size: 0.95rem;
}

.sidebar-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.75rem;
}

.sidebar-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sidebar-legal-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-legal-links a:hover {
  color: var(--brand-aqua-dark);
}

.sidebar-legal-divider {
  color: var(--text-muted);
}

.sidebar-copyright {
  margin: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.sidebar-version {
  margin: 4px 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.65rem;
  opacity: 0.7;
}

/* Desktop: Show sidebar, hide menu button */
@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }

  .sidebar {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: none;
  }
}

/* Header - copy template .header exactly */
.app-header {
  padding: 15px;
  padding-top: calc(15px + var(--sat));
  line-height: 44px;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 8;
  position: fixed !important;
  text-align: center;
}

.app-header > * {
  z-index: 1;
  position: relative;
}

.app-header:after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  border-radius: 0 0 20px 20px;
  background-color: #ffffff;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
  z-index: 0;
  opacity: 0.95;
}

/* Logo in header - copy template .logo-small exactly */
.logo-small {
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto;
  line-height: 44px;
}

.logo-small img {
  width: 40px;
  margin: 0;
  border-radius: 12px;
  margin-right: 8px;
  border: 0;
  vertical-align: middle;
}

.logo-small h5 {
  font-size: 18px;
  line-height: 18px;
  display: inline-block;
  margin: 0 auto;
  vertical-align: middle;
  color: var(--brand-aqua);
  font-weight: 700;
}

/* Desktop: Hide header and account for sidebar */
@media (min-width: 768px) {
  .app-header {
    display: none;
    margin-left: 240px;
  }
}

.offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  z-index: 998;
}

/* Main element - copy template .h-100 exactly */
.app-main {
  height: 100vh; /* Fallback for old browsers */
  height: 100svh; /* Small viewport height - best for browser mode */
  height: 100dvh;
}

/* Desktop: Account for sidebar */
@media (min-width: 768px) {
  .app-main {
    margin-left: 240px;
  }
}

.loading-state {
  width: 100%;
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  color: var(--text-secondary, rgba(12, 34, 54, 0.7));
}

.toast-host {
  position: fixed;
  left: 50%;
  /* Add safe area offset for iOS home indicator */
  bottom: calc(24px + var(--sab));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: min(90vw, 420px);
  z-index: 30;
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(12, 34, 54, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary, #0c2236);
}

.toast--error {
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.toast--success {
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.toast__close {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: transparent;
  border: 0;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
}

/* Main container - matches template pattern */
.main-container {
  height: 100vh; /* Fallback for old browsers */
  height: 100svh; /* Small viewport height - best for browser mode */
  height: 100dvh; /* Dynamic viewport height - best for PWA */
  padding: 20px 15px;
  /* Add bottom padding for fixed footer */
  padding-bottom: 120px;
  /* Add top padding for fixed header on mobile */
  padding-top: 80px;
  overflow-y: auto;
}

/* Desktop: No header padding needed */
@media (min-width: 768px) {
  .main-container {
    padding-top: 20px;
  }
}

.chat-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
  font-size: 0.95rem;
}

.chat-day-group {
  margin-bottom: 24px;
}

.chat-day-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 16px 0 12px;
  padding: 4px 12px;
  display: inline-block;
  background: rgba(12, 34, 54, 0.05);
  border-radius: 12px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.chat-message {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.chat-message.bot {
  align-items: flex-start;
}

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

.message-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  word-wrap: break-word;
  position: relative;
}

.chat-message.bot .message-bubble {
  background: rgba(78, 212, 200, 0.1);
  border: 1px solid rgba(78, 212, 200, 0.2);
  color: #0c2236;
}

.chat-message.user .message-bubble {
  background: var(--brand-aqua);
  color: white;
}

.message-bubble p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.message-text {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.message-time {
  font-size: 0.7rem;
  opacity: 0.6;
  display: block;
  margin-top: 4px;
  padding: 0 12px;
}

.message-actions {
  margin-top: 8px;
  margin-bottom: 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.message-action-button {
  display: inline-block;
  padding: 8px 16px;
  background: var(--brand-aqua);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.message-action-button:hover {
  background: var(--brand-aqua-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(78, 212, 200, 0.3);
}

/* Footer - copy template .footer exactly */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  border-radius: 20px 20px 0 0;
  background-color: #ffffff;
  box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.07);
  padding: 0px 15px 20px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}

/* Desktop: Account for sidebar */
@media (min-width: 768px) {
  .footer {
    left: 240px;
    width: calc(100% - 240px);
  }
}

/* FAQ Section */
.faq-collapse-wrapper {
  margin-bottom: 12px;
  position: relative;
}

.faq-toggle-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  padding: 6px;
  color: rgba(12, 34, 54, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  border-radius: 4px;
}

.faq-toggle-btn:hover {
  color: rgba(12, 34, 54, 0.8);
  background: rgba(12, 34, 54, 0.05);
}

.faq-toggle-icon {
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.suggested-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  max-height: 300px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.suggested-questions.collapsed {
  max-height: 32px;
  overflow: hidden;
}

.question-btn {
  background: rgba(78, 212, 200, 0.1);
  border: 1px solid rgba(78, 212, 200, 0.3);
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: #0c2236;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.question-btn:hover {
  background: rgba(78, 212, 200, 0.2);
  border-color: rgba(78, 212, 200, 0.5);
}

.question-btn:active {
  background: rgba(78, 212, 200, 0.3);
  transform: translateY(1px);
}

.chat-input-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(12, 34, 54, 0.2);
  border-radius: 20px;
  font-size: 0.9rem;
  font-family: inherit;
  background: white;
  outline: none;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  resize: none;
  overflow: hidden;
  min-height: 44px;
  max-height: 120px;
  line-height: 1.5;
}

.chat-input:focus {
  border-color: var(--brand-aqua);
}

.chat-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(12, 34, 54, 0.05);
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-aqua);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover:not(:disabled) {
  background: var(--brand-aqua-dark);
  transform: scale(1.05);
}

.chat-send-btn:disabled {
  background: rgba(12, 34, 54, 0.2);
  cursor: not-allowed;
  transform: none;
}

.settings-page {
  background: white;
  padding: calc(1.5rem + var(--sat)) 1.5rem 1.5rem;
  height: 100%;
  overflow-y: auto;
}

.settings-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1.5rem 0;
}

/* Mobile: center the title */
@media (max-width: 767px) {
  .settings-title {
    text-align: center;
  }
}

.muted {
  color: var(--text-muted, rgba(12, 34, 54, 0.5));
}

.headline {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.auth-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.75rem;
  padding-block: 3rem;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.input-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-label > span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(6, 34, 53, 0.45);
  font-weight: 500;
}

.input-control {
  border-radius: 10px;
  border: none;
  padding: 9px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  background: rgba(6, 34, 53, 0.04);
  color: rgba(6, 34, 53, 0.8);
  transition: all 0.2s ease;
}

.input-control:focus {
  outline: none;
  background: rgba(78, 212, 200, 0.06);
  box-shadow: 0 0 0 2px rgba(78, 212, 200, 0.2);
}

.login-button--ghost {
  background: transparent;
  border: 1px solid rgba(12, 34, 54, 0.12);
  color: var(--text-secondary, rgba(12, 34, 54, 0.7));
}


.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.settings-notifications {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border: 1px solid rgba(12, 34, 54, 0.08);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
}

.fieldset-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary, rgba(12, 34, 54, 0.7));
  cursor: pointer;
}

.switch input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 2px solid rgba(6, 34, 53, 0.3);
  border-radius: 4px;
  background: white;
  position: relative;
  transition: all 0.2s ease;
}

.switch input[type="checkbox"]:checked {
  background: var(--brand-aqua);
  border-color: var(--brand-aqua);
}

.switch input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.switch input[type="checkbox"]:disabled {
  background: #e5e7eb;
  border-color: #d1d5db;
  cursor: not-allowed;
}

.switch input[type="checkbox"]:disabled:checked {
  background: #9ca3af;
  border-color: #9ca3af;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary {
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--brand-aqua), var(--brand-aqua-dark));
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(78, 212, 200, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 212, 200, 0.4);
}

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  border-radius: 12px;
  padding: 14px 28px;
  border: 1px solid rgba(12, 34, 54, 0.2);
  background: transparent;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(12, 34, 54, 0.05);
  border-color: rgba(12, 34, 54, 0.3);
}

.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  border: 1px solid rgba(12, 34, 54, 0.08);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  padding: 1.5rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Login Page Styles */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

@keyframes floatBackdrop {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 10px) scale(0.95); }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.login-screen {
  height: 100vh; /* Fallback for old browsers */
  height: 100svh; /* Small viewport height - best for browser mode */
  height: 100dvh; 
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  /* background: linear-gradient(135deg, var(--brand-navy) 0%, #0a1929 100%); */
  /* overflow: hidden; */
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(78, 212, 200, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(78, 212, 200, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(56, 178, 172, 0.1) 0%, transparent 50%);
  animation: floatBackdrop 20s ease infinite;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 48px 40px;
  /* background: rgba(255, 255, 255, 0.95); */
  /* backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.2),
    0 0 80px rgba(78, 212, 200, 0.15); */
  text-align: center;
  animation: slideInUp 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.login-logo img {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 4px 12px rgba(78, 212, 200, 0.3));
  animation: pulse 2s ease infinite;
}

.login-title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-aqua) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.login-subtitle {
  margin: 0 0 32px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--brand-aqua) 0%, var(--brand-aqua-dark) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  box-shadow: 0 4px 12px rgba(78, 212, 200, 0.3);
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(78, 212, 200, 0.4);
  background: linear-gradient(135deg, #3bc4b8 0%, var(--brand-aqua) 100%);
}

.login-button:active {
  transform: translateY(0);
}

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-button i {
  font-size: 18px;
}

.login-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  color: #dc2626;
  font-size: 14px;
  animation: shake 0.5s ease;
}

.login-footer {
  padding-top: 20px;
}

.login-footer p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}

.login-version {
  margin-top: 8px !important;
  font-size: 10px !important;
  opacity: 0.5 !important;
}

.recaptcha-container {
  width: 0;
  height: 0;
  overflow: hidden;
}

.login-link {
  background: none;
  border: none;
  color: var(--brand-aqua-dark);
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px 0;
  margin-top: 8px;
  transition: color 0.2s ease;
}

.login-link:hover {
  color: var(--brand-aqua);
}

/* Install Prompt */
.install-prompt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  animation: fadeIn 0.3s ease;
}

.install-prompt-overlay.closing {
  animation: fadeOut 0.3s ease;
}

.install-prompt-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

.install-prompt {
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px 20px 0 0;
  padding: 20px 16px 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.3s ease;
  position: relative;
}

.install-prompt.closing {
  animation: slideDown 0.3s ease;
}

.install-prompt-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(12, 34, 54, 0.1);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(12, 34, 54, 0.6);
  transition: all 0.2s ease;
}

.install-prompt-close:hover {
  background: rgba(12, 34, 54, 0.15);
  color: rgba(12, 34, 54, 0.8);
}

.install-prompt-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  text-align: center;
}

.install-prompt-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  text-align: center;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.install-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.step-number {
  background: var(--brand-aqua);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.step-text {
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-icon {
  color: var(--brand-aqua);
  font-size: 1rem;
}

.ios-menu {
  background: rgba(242, 242, 247, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  overflow: hidden;
  margin-left: 34px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ios-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: white;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.12);
  font-size: 15px;
  color: #000000;
}

.ios-menu-item:last-child {
  border-bottom: none;
}

.ios-menu-item i {
  font-size: 18px;
  width: 24px;
  text-align: center;
  color: rgba(0, 0, 0, 0.6);
}

.ios-menu-item--highlight {
  font-weight: 500;
}

.ios-menu-item--highlight i {
  color: var(--brand-aqua);
}

/* Auth Loading Screen */
.auth-loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-base);
  z-index: 99999;
  animation: fadeIn 0.3s ease;
}

.auth-loading-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 80%, rgba(78, 212, 200, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(56, 178, 172, 0.1) 0%, transparent 50%);
  opacity: 1;
}

.auth-loading-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 48px 40px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(12, 34, 54, 0.1);
  text-align: center;
  animation: slideUp 0.5s ease;
}

.auth-loading-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.auth-loading-logo img {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 4px 12px rgba(78, 212, 200, 0.3));
  animation: pulse 2s ease infinite;
}

.auth-loading-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
  text-align: center;
}

.auth-loading-subtitle {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}


/*# sourceMappingURL=main.da134e18283a6e5bcfbd.css.map*/