/* Design Theme: RemindPilot Brand Colors */
:root {
    /* Brand Colors */
    --brand-orange: #FF6B35;
    --brand-orange-dark: #E85C12;
    --brand-accent: #F5B82E;
    --brand-dark: #1F2937;
    --brand-dark-soft: #374151;
    --brand-text-secondary: #6B7280;
    --bg-warm: #FFF8F4;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --border-soft: #E7E5E4;
    --border-light: #E5E7EB;

    /* Status Colors */
    --success: #16A34A;
    --success-bg: rgba(22, 163, 74, 0.12);
    --warning: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.14);
    --danger: #DC2626;
    --danger-bg: rgba(220, 38, 38, 0.12);
    --info: #2563EB;
    --info-bg: rgba(37, 99, 235, 0.12);

    /* Design Tokens */
    --section-padding-y: 5rem;
    --section-padding-y-sm: 3rem;
    --radius-card: 16px;
    --radius-card-sm: 12px;
    --radius-btn: 10px;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.10);
    --shadow-glass: 0 12px 28px rgba(0, 0, 0, 0.06);

    /* Legacy support */
    --primary-orange: #FF6B35;
    --dark-gray: #F5F6F7;
    --light-bg: #F8FAFC;
    --white-bg: #FFFFFF;
}

html {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Typography Scale */
h1, .h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; color: var(--brand-dark); }
h2, .h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700; line-height: 1.25; color: var(--brand-dark); }
h3, .h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); font-weight: 600; line-height: 1.3; color: var(--brand-dark); }
p { color: var(--brand-text-secondary); line-height: 1.7; }
.text-max-width { max-width: 65ch; }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-orange);
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--bg-warm);
  color: var(--brand-dark);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}
.lang-switch .btn {
    line-height: 1;
}

.lang-switch img {
    display: inline-block;
    vertical-align: -2px;
}


.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.hero-section {
  background: var(--bg-warm);
  padding: var(--section-padding-y) 0;
}

/* Public landing sections */
.landing-section {
  padding: var(--section-padding-y) 0;
}

.landing-section-alt {
  padding: var(--section-padding-y) 0;
  background: var(--bg-white);
}

.landing-section-warm {
  padding: var(--section-padding-y) 0;
  background: var(--bg-warm);
}

/* Section headings */
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--brand-text-secondary);
  max-width: 55ch;
  line-height: 1.7;
}

/* Hero specific */
.hero-headline {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
}

.hero-subtext {
  font-size: 1.1rem;
  color: var(--brand-text-secondary);
  line-height: 1.7;
  max-width: 50ch;
}

.hero-trust-row {
  font-size: 0.82rem;
  color: var(--brand-text-secondary);
}

.hero-image-wrap {
  position: relative;
  padding: 1.5rem;
}

.hero-image-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 55% 45%, rgba(255, 107, 53, 0.14), transparent 70%);
  border-radius: 24px;
  z-index: 0;
}

.hero-main-img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.hero-images {
  min-height: 320px;
}

.hero-image {
  width: 100%;
  object-fit: cover;
}

.hero-image-primary {
  position: relative;
  z-index: 2;
}

.hero-image-secondary {
  position: absolute;
  right: 8%;
  bottom: -18%;
  width: 70%;
  z-index: 1;
  opacity: 0.95;
  border: 4px solid #fff;
}

/* Feature Cards (landing page benefits) */
.feature-card {
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.feature-card .feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 107, 53, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Use-case cards */
.use-case-card {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card-sm);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: default;
}

.use-case-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.10);
  border-color: rgba(255, 107, 53, 0.3);
}

.use-case-card .use-case-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: block;
}

.use-case-card .use-case-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-dark);
}

/* Step cards */
.step-card {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  position: relative;
  text-align: center;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* Pain-point cards */
.pain-card {
  background: var(--bg-white);
  border-left: 4px solid var(--brand-orange);
  border-radius: 0 var(--radius-card-sm) var(--radius-card-sm) 0;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card);
}

/* Trust/security strip */
.trust-section {
  background: var(--brand-dark);
  color: #D1D5DB;
  padding: 1.5rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-dark) 100%);
  padding: var(--section-padding-y) 0;
  color: #fff;
}

.cta-section h2,
.cta-section .section-title {
  color: #fff;
}

.cta-section p,
.cta-section .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border-soft);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-weight: 600;
  color: var(--brand-dark);
  cursor: pointer;
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  gap: 1rem;
}

.faq-answer {
  color: var(--brand-text-secondary);
  padding-bottom: 1rem;
  line-height: 1.7;
}

/* Public Section Styling */
.public-navbar {
  background: rgba(255, 248, 244, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: 70px;
}

    .public-navbar .navbar-brand,
    .public-navbar .nav-link {
        color: var(--brand-dark) !important;
    }

    .public-navbar .nav-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0.55rem 0.85rem;
        border-radius: 8px;
        font-weight: 500;
        font-size: 0.95rem;
        transition: background 0.15s ease, color 0.15s ease;
    }

        .public-navbar .nav-link:hover,
        .public-navbar .nav-link.active {
            background: rgba(255, 107, 53, 0.10);
            color: var(--brand-orange) !important;
        }

/* CTA nav button */
.btn-nav-cta {
  background: var(--brand-orange);
  color: #fff !important;
  border-radius: var(--radius-btn);
  padding: 0.5rem 1.1rem !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  min-height: 40px !important;
  transition: background 0.15s ease, transform 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
}

.btn-nav-cta:hover {
  background: var(--brand-orange-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Profile/account chip in navbar */
.nav-profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 106, 26, 0.10);
    color: var(--brand-dark) !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(255, 106, 26, 0.20);
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-profile-chip:hover {
    background: rgba(255, 106, 26, 0.18);
    color: var(--brand-orange) !important;
}

/* Admin Section Styling */
.admin-navbar {
  background-color: #F8FAFC !important;
  border-bottom: 1px solid var(--border-soft);
}

.admin-navbar .nav-link {
  color: var(--brand-dark) !important;
}

.admin-navbar .nav-link:hover {
  color: var(--brand-orange) !important;
}

/* Brand/logo sizing */
.brand-logo {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
  image-rendering: auto;
}

@media (min-width: 992px) {
  .brand-logo {
    height: 84px;
  }
}

.admin-sidebar {
  min-height: calc(100vh - 56px);
  background-color: var(--brand-dark) !important;
  border-right: none;
}

.admin-sidebar .nav-link {
  color: #D1D5DB !important;
  padding: 0.75rem 1rem;
  min-height: 44px;
  border-radius: 0.65rem;
  margin-bottom: 0.2rem;
  border-left: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.admin-sidebar .nav-link:hover {
  background-color: rgba(255, 106, 26, 0.2);
  color: #FFFFFF !important;
  border-left-color: rgba(255, 255, 255, 0.7);
}

.admin-sidebar .nav-link.active {
  background: linear-gradient(90deg, rgba(255, 106, 26, .28), rgba(255, 106, 26, .18));
  color: #FFFFFF !important;
  border-left-color: var(--brand-orange);
  font-weight: 600;
}

.admin-sidebar .nav-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;
}

.admin-sidebar .admin-sub-link {
  padding-left: 1rem;
  font-size: 0.95rem;
}

.admin-sidebar .sidebar-heading {
  color: var(--brand-orange) !important;
}

.admin-content {
  padding: 2rem;
  background-color: var(--bg-light);
}

.admin-content .form-check.form-switch {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding-left: 0;
}

.admin-content .form-check.form-switch .form-check-input {
  margin-left: 0;
  margin-top: .1rem;
  width: 2.45rem;
  height: 1.3rem;
  cursor: pointer;
}

.admin-content .form-check.form-switch .form-check-label {
  cursor: pointer;
}

.admin-content .form-check.form-switch .form-check-input:disabled {
  opacity: .55;
}

/* Card Styling for both sections */
.card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.card-header.bg-primary {
  background-color: var(--brand-dark) !important;
  border-color: var(--brand-dark) !important;
}

/* Button Styling */
.btn-primary {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
  border: none;
  border-radius: var(--radius-btn);
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  color: var(--bg-white);
  letter-spacing: 0.01em;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--brand-orange-dark);
  border-color: var(--brand-orange-dark);
  color: var(--bg-white);
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

.btn-outline-primary {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  border-radius: var(--radius-btn);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
  color: var(--bg-white);
}

.btn-white-outline {
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  border-radius: var(--radius-btn);
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  background: transparent;
}

.btn-white-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

.btn-cta-white {
  background: #fff;
  color: var(--brand-orange);
  font-weight: 700;
  border-radius: var(--radius-btn);
  border: none;
}

.btn-cta-white:hover {
  background: rgba(255,255,255,0.92);
  color: var(--brand-orange-dark);
}

/* Alert/Badge Styling - Orange for "don't forget" emphasis */
.badge.bg-info,
.alert-info {
  background-color: var(--brand-orange) !important;
  color: var(--bg-white) !important;
}

.badge.bg-primary {
  background-color: var(--brand-orange) !important;
  color: var(--bg-white) !important;
}

/* Footer */
.footer,
.app-footer {
  background-color: var(--brand-dark);
  color: #9CA3AF;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.app-footer .footer-brand-text {
  font-size: 0.9rem;
  color: #9CA3AF;
  line-height: 1.6;
  max-width: 28ch;
}

.app-footer .footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B7280;
  margin-bottom: 1rem;
}

.app-footer a {
  color: #D1D5DB;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.app-footer a:hover {
  color: var(--brand-orange);
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-divider {
  border-color: rgba(255,255,255,0.08);
}

.footer-bottom {
  font-size: 0.82rem;
  color: #6B7280;
}

.required-field::after {
  content: " *";
  color: var(--bs-danger);
  font-weight: 600;
}

.required-indicator {
  color: var(--bs-danger);
  font-weight: 600;
}

.form-required-note {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

@media (max-width: 991.98px) {
  .hero-images {
    min-height: auto;
  }

  .hero-image-secondary {
    position: static;
    width: 100%;
    margin-top: 1.5rem;
  }

  .landing-section,
  .landing-section-alt,
  .landing-section-warm {
    padding: var(--section-padding-y-sm) 0;
  }
}

/* Glassmorphism Dashboard Cards */
.dashboard-surface {
  background: radial-gradient(1200px 600px at 20% 0%, rgba(255, 107, 53, 0.08), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(31, 41, 55, 0.06), transparent 55%),
              var(--bg-warm);
}

.glass-card {
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.glass-card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
  transition: 180ms ease;
}

/* Harmonized Status Alerts */
.alert-success {
  background: var(--success-bg);
  border-color: rgba(22, 163, 74, 0.25);
  color: var(--success);
}

.alert-warning {
  background: var(--warning-bg);
  border-color: rgba(245, 158, 11, 0.25);
  color: #92400E;
}

.alert-danger {
  background: var(--danger-bg);
  border-color: rgba(220, 38, 38, 0.25);
  color: var(--danger);
}

/* Badge System for Reminders */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  font-size: 0.85rem;
}

.badge-brand {
  background: rgba(255, 106, 26, 0.14);
  color: #B54708;
  border-color: rgba(255, 106, 26, 0.25);
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(22, 163, 74, 0.25);
}

.badge-warning {
  background: var(--warning-bg);
  color: #92400E;
  border-color: rgba(245, 158, 11, 0.25);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.25);
}

.badge-info {
  background: var(--info-bg);
  color: #1D4ED8;
  border-color: rgba(37, 99, 235, 0.25);
}

.badge-neutral {
  background: rgba(31, 41, 55, 0.06);
  color: #374151;
  border-color: rgba(31, 41, 55, 0.12);
}

/* Brand/Logo styling */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  height: 100%;
}

.brand__text {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.2px;
  color: inherit;
}

/* Navbar adjustments */
.navbar {
  min-height: 64px;
}

.navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-top: .25rem;
  padding-bottom: .25rem;
}

.navbar .navbar-brand img {
  max-height: none;
}

/* Guide wizard styles */
.guide-wizard-steps {
    list-style: none;
    padding-left: 0;
}

.guide-wizard-date-input {
    max-width: 220px;
}

.guide-wizard-select {
    max-width: 280px;
}

/* Dashboard KPI Cards */
.kpi-card {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.kpi-card .kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-text-secondary);
  margin-bottom: 0.4rem;
}

.kpi-card .kpi-value {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-dark);
  margin-bottom: 0.25rem;
}

.kpi-card .kpi-sub {
  font-size: 0.82rem;
  color: var(--brand-text-secondary);
}

.kpi-card.kpi-orange {
  border-left: 4px solid var(--brand-orange);
}

.kpi-card.kpi-warning {
  border-left: 4px solid var(--warning);
}

.kpi-card.kpi-success {
  border-left: 4px solid var(--success);
}

/* Dashboard greeting */
.dashboard-greeting {
  padding: 1.75rem 0 0.5rem;
}

.dashboard-greeting h1 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 0.25rem;
}

.dashboard-greeting .greeting-sub {
  font-size: 1rem;
  color: var(--brand-text-secondary);
}

/* Welcome heading (used in auth pages) */
.welcome-heading {
  word-break: break-word;
  hyphens: auto;
}

/* ==========================================
   App Shell – Authenticated Content System
   ========================================== */

.dashboard-surface {
  flex-grow: 1;
}

/* Page-level header */
.app-page-header {
  padding: 1.75rem 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.app-page-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.app-page-subtitle {
  font-size: 0.95rem;
  color: var(--brand-text-secondary);
  margin-bottom: 0;
  max-width: 65ch;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* Sections */
.app-section {
  margin-bottom: 2rem;
}

.app-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-text-secondary);
  margin-bottom: 0.75rem;
}

/* App Cards – same glass aesthetic as dashboard */
.app-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.app-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.55);
}

.app-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 0;
}

.app-card-body {
  padding: 1.25rem;
}

/* Toolbar (search / filter strip) */
.app-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card-sm);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Empty state */
.app-empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--brand-text-secondary);
}

.app-empty-state .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.app-empty-state .empty-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
}

.app-empty-state .empty-desc {
  font-size: 0.9rem;
  max-width: 44ch;
  margin: 0 auto 1.5rem;
}

/* Reminder rows inside app-card */
.reminder-row-title {
  font-weight: 600;
  color: var(--brand-dark);
  font-size: 0.95rem;
}

.reminder-row-meta {
  font-size: 0.82rem;
  color: var(--brand-text-secondary);
}

/* Toggle pill – replaces anonymous btn-outline-secondary */
.btn-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  border: 1.5px solid;
  cursor: pointer;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1.4;
}

.btn-toggle-pill.active {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(22, 163, 74, 0.3);
}

.btn-toggle-pill.inactive {
  background: rgba(31, 41, 55, 0.05);
  color: var(--brand-text-secondary);
  border-color: var(--border-light);
}

/* Plan badge in navbar – brand-toned pill */
.nav-plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 106, 26, 0.12);
  color: #B54708;
  border: 1px solid rgba(255, 106, 26, 0.22);
  white-space: nowrap;
}

.nav-plan-badge.premium {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(22, 163, 74, 0.25);
}

/* Active nav link – stronger marker */
.public-navbar .nav-link.active {
  background: rgba(255, 107, 53, 0.12) !important;
  color: var(--brand-orange) !important;
  font-weight: 600;
}

/* Budget number typography */
.budget-total {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-dark);
}

.budget-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-text-secondary);
  margin-bottom: 0.3rem;
}

.budget-sub {
  font-size: 0.82rem;
  color: var(--brand-text-secondary);
  margin-top: 0.2rem;
}

/* View mode toggle buttons */
.view-mode-toggle .btn {
  border-radius: 999px !important;
  padding: 0.35rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Guide scenario cards */
.guide-scenario-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: box-shadow 0.18s ease;
}

.guide-scenario-card summary {
  padding: 1.25rem 1.5rem;
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.15s ease;
}

.guide-scenario-card summary::-webkit-details-marker { display: none; }

.guide-scenario-card summary:hover {
  background: rgba(255, 107, 53, 0.06);
}

.guide-scenario-card[open] summary {
  border-bottom-color: var(--border-light);
  background: rgba(255, 107, 53, 0.04);
}

.guide-scenario-card .scenario-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.guide-scenario-card .scenario-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.guide-scenario-card .scenario-desc {
  font-size: 0.88rem;
  color: var(--brand-text-secondary);
}

.guide-scenario-card .scenario-chevron {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.1);
  color: var(--brand-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.guide-scenario-card[open] .scenario-chevron {
  transform: rotate(180deg);
}

.guide-scenario-card .card-body-inner {
  padding: 1.5rem;
}

/* Guide wizard steps */
.guide-step {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
}

.guide-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.guide-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.12);
  color: var(--brand-orange);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.guide-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 0.35rem;
}

.guide-step-help {
  font-size: 0.88rem;
  color: var(--brand-text-secondary);
  margin-bottom: 0.75rem;
}

@media (max-width: 767.98px) {
  .app-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .app-actions {
    justify-content: flex-start;
  }
}

/* ===== MOBILE-FIRST RESPONSIVE IMPROVEMENTS ===== */

/* Bottom navigation bar for mobile authenticated users */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: stretch;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.6rem 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--brand-text-secondary);
  text-decoration: none;
  min-height: 60px;
  transition: color 0.15s ease;
  letter-spacing: 0.01em;
}

.mobile-bottom-nav__item.active,
.mobile-bottom-nav__item:hover {
  color: var(--brand-orange);
}

.mobile-bottom-nav__item--add {
  position: relative;
  flex: 0 0 52px;
  background: var(--brand-orange);
  color: #fff !important;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  min-height: 52px;
  flex-direction: row;
  padding: 0;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.45);
  align-self: center;
  margin: 0 0.5rem;
  margin-bottom: 10px;
}

.mobile-bottom-nav__item--add:hover {
  background: var(--brand-orange-dark);
  color: #fff !important;
}

/* Add bottom padding to main content when bottom nav is visible */
.mobile-main-content {
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}

@media (min-width: 992px) {
  .mobile-main-content {
    padding-bottom: 1rem;
  }
}

/* Offline toast indicator */
.offline-toast {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1040;
  background: var(--brand-dark);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .offline-toast {
    bottom: 1.5rem;
  }
}

/* PWA install banner */
.pwa-install-banner {
  position: fixed;
  bottom: 64px;
  left: 1rem;
  right: 1rem;
  z-index: 1035;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 0.875rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .pwa-install-banner {
    bottom: 1.5rem;
    left: auto;
    right: 1.5rem;
    margin: 0;
  }
}

.pwa-install-banner__content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pwa-install-banner__content img {
  border-radius: 10px;
  flex-shrink: 0;
}

.pwa-install-banner__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.pwa-install-banner__desc {
  font-size: 0.78rem;
  color: var(--brand-text-secondary);
}

.pwa-install-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== MOBILE REMINDER ROWS ===== */
@media (max-width: 767.98px) {
  /* Page header: tighten top padding */
  .app-page-header {
    padding: 1rem 0 0.75rem;
    margin-bottom: 1rem;
  }

  .app-page-title {
    font-size: 1.4rem;
  }

  /* App toolbar: full width search */
  .app-toolbar {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }

  .app-toolbar .input-group {
    max-width: 100% !important;
    flex: 1 1 100%;
  }

  /* KPI cards: 2-up grid with less padding */
  .kpi-card {
    padding: 0.85rem 1rem;
  }

  .kpi-card .kpi-value {
    font-size: 1.6rem;
  }

  /* Action buttons min touch target */
  .app-actions .btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.85rem;
    min-height: 44px;
  }

  .app-actions {
    width: 100%;
  }

  .app-actions .btn,
  .view-mode-toggle {
    width: 100%;
  }

  /* Forms: bigger touch targets */
  .form-control,
  .form-select {
    min-height: 48px;
    font-size: 1rem;
  }

  .form-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
  }

  /* Ensure primary action buttons are easy to tap */
  .btn-primary,
  .btn-outline-primary,
  .btn-success {
    min-height: 48px;
  }

  /* Toggle pill touch target */
  .btn-toggle-pill {
    min-height: 40px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }

  /* Hide footer on mobile for authenticated users (bottom nav replaces it) */
  body:has(.mobile-bottom-nav) .app-footer {
    display: none;
  }

  /* Budget toolbar: wrap category pills */
  .view-mode-toggle .btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
  }

  /* Compact subtitle on mobile */
  .app-page-header .app-page-subtitle {
    display: none;
  }

  /* Dashboard greeting tighter */
  .dashboard-greeting h1 {
    font-size: 1.35rem;
  }

  /* Cards: reduce padding on mobile */
  .app-card-header {
    padding: 0.75rem 1rem;
  }

  /* Reminder rows: stack horizontally-laid columns to vertical on mobile */
  .reminder-item-row {
    flex-direction: column;
    padding: 0.875rem 1rem !important;
    gap: 0.5rem !important;
  }

  /* Make all reminder row child divs full width on mobile */
  .reminder-item-row > div {
    min-width: 0 !important;
    width: 100%;
    flex: 1 1 100% !important;
  }

  /* Cost and status inline on mobile */
  .reminder-item-cost {
    text-align: left !important;
    flex: 0 1 auto !important;
    width: auto;
  }

  /* Status + actions inline row on mobile */
  .reminder-item-actions {
    align-items: stretch !important;
    flex-wrap: wrap;
    gap: 0.5rem !important;
    width: 100%;
  }

  .reminder-item-actions__buttons {
    width: 100%;
  }

  .reminder-edit-btn,
  .reminder-item-actions .btn-toggle-pill,
  .reminder-item-actions .btn-outline-warning {
    width: 100%;
    justify-content: center;
  }

  .upcoming-reminder-entry .d-flex.w-100 {
    gap: 0.75rem;
  }

  .upcoming-reminder-entry .btn {
    min-height: 38px;
    padding: 0.35rem 0.8rem;
  }

  .expense-year-switch {
    display: flex;
    width: 100%;
  }

  .expense-year-switch .btn {
    flex: 1 1 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .budget-toolbar {
    align-items: flex-start;
  }

  .budget-toolbar__label {
    width: 100%;
  }

  .budget-filter-chip {
    min-height: 38px;
    font-size: 0.82rem;
    padding: 0.35rem 0.8rem;
  }

  /* Navbar collapse shows better on mobile */
  .public-navbar .navbar-collapse {
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-light);
    margin-top: 0.5rem;
  }

  .public-navbar .nav-link {
    padding: 0.65rem 0.25rem;
    font-size: 1rem;
  }

  /* Lang switch: reduce padding */
  .lang-switch .btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
  }

  .mobile-bottom-nav__item span {
    line-height: 1.15;
    text-align: center;
  }
}

/* ===== TABLET ADJUSTMENTS (768px – 991px) ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
  .app-page-header {
    padding: 1.25rem 0 1rem;
  }

  .app-actions .btn {
    min-height: 44px;
  }
}

