/* Design Theme: RemindPilot Brand Colors */
:root {
    /* Brand Colors */
  --brand-orange: #0B8F5F;
  --brand-orange-dark: #076C49;
  --brand-accent: #74D39A;
    --brand-dark: #1F2937;
    --brand-dark-soft: #374151;
    --brand-text-secondary: #6B7280;
    --bg-warm: #F7FAF8;
    --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: clamp(3.5rem, 6vw, 4.5rem);
    --section-padding-y-sm: clamp(2.25rem, 5vw, 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: #0B8F5F;
    --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: linear-gradient(180deg, #f7fbfa 0%, #ffffff 100%);
  padding: clamp(1.25rem, 3vw, 2.25rem) 0 clamp(2.75rem, 5vw, 3.75rem);
}

/* 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;
}

.hero-subtext {
  font-size: 1.1rem;
  color: var(--brand-text-secondary);
  line-height: 1.7;
  max-width: 50ch;
}

.hero-section--compact .hero-surface {
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: 28px;
  border: 1px solid rgba(11, 143, 95, 0.14);
  background:
    radial-gradient(circle at top left, rgba(11, 143, 95, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
  box-shadow: 0 18px 48px rgba(31, 41, 55, 0.08);
}

.hero-login-card {
  height: 100%;
  padding: 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(11, 143, 95, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(31, 41, 55, 0.08);
}

.hero-login-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(11, 143, 95, 0.1);
  color: #b54708;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-login-title {
  margin: 1rem 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 800;
  line-height: 1.15;
}

.hero-login-copy {
  margin-bottom: 1rem;
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 30ch;
}

.hero-login-form .form-control {
  background: #fff;
}

.hero-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-login-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand-orange);
  text-decoration: none;
}

.hero-login-link:hover {
  color: var(--brand-orange-dark);
}

.hero-login-footer {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.94rem;
  color: var(--brand-text-secondary);
}

.hero-standalone-note {
  display: none;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(31, 41, 55, 0.05);
  color: var(--brand-dark-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.hero-story-card {
  height: 100%;
}

.hero-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: center;
}

.hero-copy {
  padding: 0.5rem;
}

.hero-section--compact .hero-headline {
  max-width: 12ch;
}

.hero-section--compact .hero-subtext {
  max-width: 44ch;
}

.hero-action-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-image-wrap--compact {
  padding: 0.75rem;
}

.hero-image-wrap--compact .hero-main-img {
  border-radius: 24px;
}

.hero-proof-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.hero-proof-card {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(229, 231, 235, 0.85);
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.05);
}

.hero-proof-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
  line-height: 1.3;
}

.hero-proof-card p {
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.hero-trust-row {
  font-size: 0.82rem;
  color: var(--brand-text-secondary);
}

.landing-product-preview {
  max-width: 620px;
  margin: 0 auto;
  border: 1px solid rgba(17, 24, 39, 0.10);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(31, 41, 55, 0.10);
  overflow: hidden;
  text-align: left;
}

.landing-product-preview__top,
.landing-product-preview__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: #fbfdfd;
}

.landing-product-preview__top {
  border-bottom: 1px solid var(--border-light);
}

.landing-product-preview__top strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1rem;
}

.landing-product-preview__eyebrow {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--brand-text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.landing-product-preview__status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.10);
  color: #15803d;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.landing-product-preview__rows {
  display: grid;
}

.landing-product-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border-light);
}

.landing-product-row__icon,
.landing-line-icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(11, 143, 134, 0.09);
  color: var(--brand-orange-dark);
  font-weight: 800;
  letter-spacing: 0;
}

.landing-product-row__icon {
  width: 42px;
  height: 42px;
  font-size: 0.8rem;
}

.landing-product-row strong {
  display: block;
  color: var(--brand-dark);
  font-size: 0.96rem;
}

.landing-product-row span {
  display: block;
  color: var(--brand-text-secondary);
  font-size: 0.86rem;
}

.landing-product-row time {
  color: var(--brand-dark-soft);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.landing-product-preview__foot {
  color: var(--brand-text-secondary);
  font-size: 0.86rem;
}

.landing-line-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.8rem;
  font-size: 0.82rem;
}

.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(11, 143, 95, 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(11, 143, 95, 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: 8px;
  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(11, 143, 134, 0.10);
  border-color: rgba(11, 143, 134, 0.28);
}

.use-case-card .use-case-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  margin: 0 auto 0.75rem;
  display: grid;
  place-items: center;
  background: rgba(11, 143, 134, 0.09);
  color: var(--brand-orange-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.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: 1px solid var(--border-soft);
  border-top: 3px solid var(--brand-orange);
  border-radius: 8px;
  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(11, 143, 95, 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(11, 143, 95, 0.10);
    color: var(--brand-dark) !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(11, 143, 95, 0.20);
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-profile-chip:hover {
    background: rgba(11, 143, 95, 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(11, 143, 95, 0.2);
  color: #FFFFFF !important;
  border-left-color: rgba(255, 255, 255, 0.7);
}

.admin-sidebar .nav-link.active {
  background: linear-gradient(90deg, rgba(11, 143, 95, .28), rgba(11, 143, 95, .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-story-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-section--compact .hero-headline {
    max-width: none;
  }

  .hero-proof-grid {
    grid-template-columns: 1fr;
  }

  .landing-product-preview__top,
  .landing-product-preview__foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .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(11, 143, 95, 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;
}

/* RemindPilot Admin workspace */
.admin-app { --admin-teal:#0b918c; --admin-ink:#18202b; --admin-muted:#6f7885; --admin-line:#dfe4e8; margin:0; display:block; min-height:100vh; background:#fff; color:var(--admin-ink); font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif; }
.admin-app *, .admin-app *::before, .admin-app *::after { box-sizing:border-box; }
.admin-shell__sidebar { position:fixed; inset:0 auto 0 0; z-index:1030; width:234px; display:flex; flex-direction:column; background:#fff; border-right:1px solid var(--admin-line); transition:width .22s ease, transform .22s ease; overflow:hidden; }
.admin-brand { height:92px; padding:13px 18px; display:flex; align-items:center; border-bottom:1px solid var(--admin-line); flex:0 0 auto; }
.admin-brand img { width:180px; height:68px; object-fit:contain; object-position:left center; }
.admin-menu { flex:1; padding:12px 7px; overflow-y:auto; scrollbar-width:thin; }
.admin-menu__group { margin-bottom:9px; }
.admin-menu__heading { width:100%; border:0; background:none; color:var(--admin-ink); min-height:32px; padding:5px 12px; display:flex; align-items:center; justify-content:space-between; font-size:13px; font-weight:600; text-align:left; }
.admin-menu__heading i { font-size:11px; transition:transform .18s ease; }
.admin-menu__group.is-collapsed .admin-menu__heading i { transform:rotate(180deg); }
.admin-menu__group.is-collapsed .admin-menu__items { display:none; }
.admin-menu__link { position:relative; min-height:38px; margin:1px 0; padding:8px 11px 8px 18px; border:1px solid transparent; border-radius:7px; color:#44505d; display:grid; grid-template-columns:22px minmax(0,1fr) auto; align-items:center; gap:8px; font-size:12.5px; text-decoration:none; transition:background .15s,color .15s,border-color .15s; }
.admin-menu__link i { font-size:15px; color:#52606e; }
.admin-menu__link:hover { color:var(--admin-teal); background:#f1faf9; }
.admin-menu__link.active { color:#087c78; background:#e7f6f5; border-color:#87c9c6; font-weight:500; box-shadow:inset 4px 0 0 var(--admin-teal); }
.admin-menu__link.active i { color:var(--admin-teal); }
.admin-menu__badge, .admin-notification-count { display:inline-grid; place-items:center; min-width:19px; height:19px; padding:0 5px; border-radius:999px; color:#fff; background:#ef4136; font-size:10px; font-weight:700; }
.admin-sidebar-collapse { flex:0 0 48px; margin:0 11px 12px; padding:0 12px; border:0; border-top:1px solid var(--admin-line); background:#fff; color:#59636e; display:flex; align-items:end; gap:14px; font-size:12px; }
.admin-sidebar-collapse i { font-size:15px; }
.admin-shell__main { min-height:100vh; margin-left:234px; display:flex; flex-direction:column; transition:margin-left .22s ease; }
.admin-topbar { position:sticky; top:0; z-index:1020; height:70px; padding:0 31px 0 25px; display:flex; align-items:center; gap:24px; background:rgba(255,255,255,.97); border-bottom:1px solid var(--admin-line); backdrop-filter:blur(10px); }
.admin-mobile-menu { display:flex !important; flex:0 0 34px; }
.admin-search { position:relative; width:min(520px,46vw); height:40px; }
.admin-search > i { position:absolute; z-index:1; left:14px; top:50%; transform:translateY(-50%); color:#64707d; }
.admin-search input { width:100%; height:100%; padding:0 76px 0 40px; border:1px solid #d9dfe4; border-radius:7px; outline:0; color:var(--admin-ink); font-size:12.5px; box-shadow:0 1px 5px rgba(30,41,59,.04); }
.admin-search input:focus { border-color:#74bfbc; box-shadow:0 0 0 3px rgba(11,145,140,.12); }
.admin-search kbd { position:absolute; right:10px; top:50%; transform:translateY(-50%); padding:4px 7px; border:1px solid #dce1e5; border-radius:5px; background:#fbfcfd; color:#7a828d; font:10px Inter,sans-serif; }
.admin-search__results { position:absolute; top:46px; width:100%; padding:6px; border:1px solid var(--admin-line); border-radius:8px; background:#fff; box-shadow:0 16px 40px rgba(22,32,43,.14); }
.admin-search__results a, .admin-search__results > span { padding:9px 10px; color:#3f4b57; border-radius:5px; display:flex; align-items:center; gap:9px; text-decoration:none; font-size:12px; }
.admin-search__results a:hover { background:#edf8f7; color:var(--admin-teal); }
.admin-topbar__actions { margin-left:auto; display:flex; align-items:center; gap:16px; }
.admin-topbar__button, .admin-profile, .admin-icon-button { border:0; background:transparent; color:#202934; display:flex; align-items:center; gap:9px; font-size:12px; }
.admin-topbar__button i { font-size:17px; }.admin-topbar__divider { width:1px; height:28px; background:var(--admin-line); }
.admin-icon-button { width:34px; height:34px; justify-content:center; border-radius:6px; }.admin-icon-button:hover { background:#f3f6f7; }.admin-icon-button > i { font-size:17px; }
.admin-notification-count { position:absolute; top:-4px; right:-4px; min-width:17px; height:17px; font-size:9px; }
.admin-profile { padding:4px 0; }.admin-avatar { width:35px; height:35px; border-radius:50%; display:grid; place-items:center; color:#167775; background:#ccecef; font-size:11px; font-weight:600; }
.admin-notifications { width:280px; padding:14px; }.admin-notifications h6 { font-size:13px; }.admin-notifications a { display:block; padding:9px 0; color:#42505d; border-top:1px solid #edf0f2; font-size:11px; text-decoration:none; }
.admin-content { flex:1; padding:19px 26px 28px; background:#fff; }
.admin-footer { min-height:64px; padding:0 32px; border-top:1px solid var(--admin-line); display:flex; align-items:center; justify-content:space-between; color:#7a8390; font-size:10px; }.admin-footer nav { display:flex; gap:26px; }.admin-footer a { color:inherit; text-decoration:none; }
.admin-sidebar-backdrop { display:none; }
.admin-page-heading { min-height:61px; display:flex; justify-content:space-between; align-items:flex-start; }
.admin-page-heading h1 { margin:0 0 2px; color:#111820; font-size:23px; line-height:1.25; font-weight:700; letter-spacing:-.025em; }.admin-page-heading p { margin:0; color:var(--admin-muted); font-size:12px; line-height:1.5; }
.admin-last-updated { margin-top:12px; border:0; background:none; color:#7b8490; display:flex; gap:9px; align-items:center; font-size:11px; }.admin-last-updated i { font-size:15px; }.admin-last-updated.is-refreshing i { animation:admin-spin .65s linear infinite; }
@keyframes admin-spin { to { transform:rotate(360deg); } }
.admin-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:2px 0 18px; }
.admin-metric { min-height:126px; padding:20px 17px; display:grid; grid-template-columns:52px minmax(0,1fr); align-items:start; gap:14px; color:var(--admin-ink); border:1px solid var(--admin-line); border-radius:7px; text-decoration:none; box-shadow:0 1px 3px rgba(15,23,42,.025); transition:transform .16s,box-shadow .16s,border-color .16s; }.admin-metric:hover { color:var(--admin-ink); border-color:#9ccfcd; transform:translateY(-1px); box-shadow:0 6px 18px rgba(15,23,42,.07); }
.admin-metric__icon { width:49px; height:49px; border-radius:7px; display:grid; place-items:center; background:#e8f7f6; color:var(--admin-teal); }.admin-metric__icon i { font-size:24px; }.admin-metric--attention .admin-metric__icon { color:#ff531e; background:#fff3ed; }
.admin-metric small { display:block; margin:1px 0 4px; color:#48525e; font-size:11px; }.admin-metric strong { display:block; margin-bottom:10px; font-size:23px; line-height:1.1; letter-spacing:.01em; }.admin-metric em { display:flex; gap:10px; color:#7b8490; font-size:10px; font-style:normal; white-space:nowrap; }.admin-metric em b { color:#16933b; font-size:11px; }
.admin-dashboard__grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1.1fr) minmax(290px,.9fr); gap:18px; }
.admin-panel { min-width:0; border:1px solid var(--admin-line); border-radius:7px; background:#fff; box-shadow:0 1px 3px rgba(15,23,42,.02); }.admin-chart-panel { grid-column:span 2; min-height:297px; }.admin-queue-panel { min-height:297px; }.admin-list-panel,.admin-premium-panel { min-height:290px; }
.admin-panel__heading { min-height:52px; padding:0 16px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid #e6eaed; }.admin-panel__heading h2,.admin-premium-panel h2 { margin:0; color:#151c25; font-size:14px; font-weight:650; }.admin-panel__heading h2 span { font-weight:400; }
.admin-button--small { padding:6px 10px; border:1px solid #d8dfe4; border-radius:5px; color:#3d4752; background:#fff; font-size:10px; text-decoration:none; }.admin-button--small:hover { border-color:#87c9c6; color:var(--admin-teal); }
.chart-legend { display:flex; gap:20px; color:#68727e; font-size:9px; }.chart-legend span { display:flex; align-items:center; gap:5px; }.chart-legend i { width:7px; height:7px; border-radius:50%; display:block; }.chart-legend .teal { background:#0b918c; }.chart-legend .green { background:#55ad48; }.chart-legend .orange { background:#dc2626; }
.admin-chart { height:235px; padding:12px 16px 14px 10px; }.admin-chart canvas { width:100% !important; height:100% !important; display:block; }
.admin-queue-panel dl { margin:11px 16px 5px; }.admin-queue-panel dl div { min-height:35px; display:flex; align-items:center; justify-content:space-between; }.admin-queue-panel dt { color:#64707d; font-size:11px; font-weight:400; }.admin-queue-panel dd { margin:0; color:#25303c; font-size:11px; font-weight:600; }.admin-status { padding:4px 10px; border-radius:20px; color:#20823f; background:#e3f7e9; font-weight:500; }.admin-progress { height:5px; margin:5px 16px 14px; border-radius:4px; background:#e9edef; overflow:hidden; }.admin-progress span { height:100%; display:block; background:var(--admin-teal); border-radius:inherit; }.admin-processing { padding:0 16px; color:#707b87; display:flex; justify-content:space-between; font-size:10px; }.admin-processing strong { color:#3a4652; font-weight:500; }
.admin-table { padding:0 15px; }.admin-table__head,.admin-table a { min-height:40px; display:grid; grid-template-columns:1.35fr 1fr; align-items:center; gap:10px; border-bottom:1px solid #e9ecef; color:#495461; font-size:10px; text-decoration:none; }.admin-table__head { min-height:36px; color:#252e38; }.admin-table__head span:last-child,.admin-table a strong { text-align:right; }.admin-table a strong { font-weight:500; }.admin-table a em { min-width:48px; margin-left:15px; color:var(--admin-teal); font-style:normal; }.admin-table a:hover { color:var(--admin-teal); }.admin-empty { padding:28px 0; color:#7b8490; font-size:11px; }.admin-panel__note { display:block; margin:13px 15px; color:#88919c; font-size:9px; font-style:italic; }
.admin-premium-panel { padding:16px; border-color:#ffb28f; background:linear-gradient(145deg,#fff 50%,#fffaf6); }.admin-premium-panel__title { display:flex; align-items:center; justify-content:space-between; }.admin-premium-panel__title h2 { color:#f14f19; }.admin-premium-panel__title h2 i { margin-right:5px; }.admin-premium-panel__title h2 span { display:inline-grid; place-items:center; width:19px; height:19px; margin-left:8px; border-radius:50%; background:#ef4136; color:#fff; font-size:10px; }.admin-premium-panel__title > a { color:#5c6671; }.admin-premium-panel > p { margin:12px 0; color:#5f6975; font-size:10px; }.admin-premium-placeholder { min-height:82px; padding:14px 9px; border-top:1px solid #eee6e0; border-bottom:1px solid #eee6e0; display:flex; align-items:center; justify-content:space-between; gap:10px; }.admin-premium-placeholder strong,.admin-premium-placeholder small { display:block; }.admin-premium-placeholder strong { font-size:11px; }.admin-premium-placeholder small { margin-top:5px; color:#7a8490; font-size:9px; }.admin-review-pill { padding:6px 10px; border-radius:20px; color:#b56b00; background:#fff0ca; font-size:9px; white-space:nowrap; }.admin-button--outline { display:inline-flex; margin-top:16px; padding:9px 15px; color:#f05420; border:1px solid #ff8b62; border-radius:5px; background:#fff; font-size:10px; text-decoration:none; }.admin-button--outline:hover { color:#fff; background:#f05420; }
.admin-ops-strip { min-height:62px; margin:-3px 0 18px; padding:0 12px; display:grid; grid-template-columns:150px repeat(4,minmax(0,1fr)); align-items:stretch; border:1px solid var(--admin-line); border-radius:7px; background:#fbfcfc; }
.admin-ops-strip__label,.admin-ops-strip a { min-width:0; display:flex; align-items:center; gap:9px; }
.admin-ops-strip__label { color:#4e5965; font-size:11px; font-weight:600; }.admin-ops-strip__label i { color:var(--admin-teal); font-size:16px; }
.admin-ops-strip a { padding:10px 13px; border-left:1px solid #e7ebee; color:#55606c; text-decoration:none; font-size:10px; }.admin-ops-strip a:hover { color:var(--admin-teal); background:#f1faf9; }.admin-ops-strip a strong { color:#17202a; font-size:17px; }.admin-ops-strip a span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.admin-ops-strip a i { margin-left:auto; font-size:10px; }
.admin-status--warning { color:#a66500; background:#fff0ca; }

/* Shared admin-page language */
.admin-content > .container-fluid,.admin-content > .container { max-width:none; padding:0 !important; }
.admin-content h1:not(.admin-page-heading h1) { margin:0 0 22px; color:#111820; font-size:23px; line-height:1.25; font-weight:700; letter-spacing:-.025em; }
.admin-content h2,.admin-content h3,.admin-content h4,.admin-content h5,.admin-content h6 { color:#1c2631; }
.admin-content > .d-flex:first-child,.admin-content > nav + .d-flex { padding-bottom:17px; margin-bottom:18px !important; border-bottom:1px solid #e7ebee; }
.admin-content .card { border:1px solid #dfe4e8 !important; border-radius:8px; box-shadow:0 1px 3px rgba(15,23,42,.025); overflow:hidden; }
.admin-content .card:hover { box-shadow:0 3px 12px rgba(15,23,42,.045); }
.admin-content .card .card { background:#fbfcfc; box-shadow:none; }
.admin-content .card-header { min-height:50px; padding:13px 17px; display:flex; align-items:center; background:#fff !important; border-bottom:1px solid #e5e9ec; color:#1c2631 !important; }
.admin-content .card-header.bg-primary,.admin-content .card-header.bg-success,.admin-content .card-header.bg-info,.admin-content .card-header.bg-warning,.admin-content .card-header.bg-secondary { background:#fff !important; color:#1c2631 !important; }
.admin-content .card-header h2,.admin-content .card-header h3,.admin-content .card-header h4,.admin-content .card-header h5,.admin-content .card-header h6 { margin:0; color:inherit !important; font-size:14px; font-weight:650; }
.admin-content .card-body { padding:18px; }.admin-content .card-footer { padding:13px 18px; background:#fbfcfc; border-top:1px solid #e7ebee; }
.admin-content .table { --bs-table-bg:transparent; margin-bottom:0; color:#35414d; font-size:12px; vertical-align:middle; }
.admin-content .table > :not(caption) > * > * { padding:11px 13px; border-bottom-color:#e6eaed; }.admin-content .table thead th { color:#65707c; background:#f8fafb !important; font-size:10px; font-weight:600; letter-spacing:.035em; text-transform:uppercase; white-space:nowrap; }.admin-content .table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-bg-type:#fbfcfc; }.admin-content .table-hover > tbody > tr:hover > * { --bs-table-bg-state:#f0f9f8; }
.admin-content .form-label { margin-bottom:6px; color:#3d4854; font-size:11px; font-weight:600; }.admin-content .form-text { color:#7b8590; font-size:10px; }.admin-content .form-control,.admin-content .form-select { min-height:40px; border-color:#d8dfe4; border-radius:6px; color:#26313c; font-size:12px; box-shadow:none; }.admin-content textarea.form-control { min-height:90px; }.admin-content .form-control:focus,.admin-content .form-select:focus { border-color:#69bab6; box-shadow:0 0 0 3px rgba(11,145,140,.12); }
.admin-content .form-check-input:checked { background-color:var(--admin-teal); border-color:var(--admin-teal); }.admin-content .form-check-input:focus { border-color:#69bab6; box-shadow:0 0 0 3px rgba(11,145,140,.14); }
.admin-content .btn { min-height:36px; padding:8px 13px; border-radius:6px; font-size:11px; font-weight:600; box-shadow:none !important; }.admin-content .btn-sm { min-height:30px; padding:5px 9px; font-size:10px; }.admin-content .btn-lg { min-height:44px; padding:10px 17px; }.admin-content .btn-primary,.admin-content .btn-info { color:#fff; background:var(--admin-teal); border-color:var(--admin-teal); }.admin-content .btn-primary:hover,.admin-content .btn-info:hover { background:#087975; border-color:#087975; }.admin-content .btn-secondary { color:#45515e; background:#fff; border-color:#cfd6dc; }.admin-content .btn-secondary:hover { color:#202a34; background:#f4f7f8; border-color:#bfc8cf; }.admin-content .btn-warning { color:#895200; background:#fff7df; border-color:#f2cd75; }.admin-content .btn-danger { background:#d83a32; border-color:#d83a32; }
.admin-content .alert { padding:12px 15px; border-width:1px; border-radius:7px; font-size:11px; }.admin-content .alert-info { color:#185c6a; background:#edf9fb; border-color:#bce3e8; }.admin-content .alert-secondary { color:#4b5662; background:#f6f8f9; border-color:#dce2e6; }
.admin-content .badge { border-radius:999px; padding:5px 8px; font-size:9px; font-weight:600; }.admin-content .bg-primary { background-color:var(--admin-teal) !important; }.admin-content .text-primary { color:var(--admin-teal) !important; }.admin-content .border-primary,.admin-content .border-info,.admin-content .border-success,.admin-content .border-warning,.admin-content .border-secondary { border-color:#dfe4e8 !important; }
.admin-content .nav-tabs { gap:4px; border-bottom-color:#dfe4e8; }.admin-content .nav-tabs .nav-link { padding:9px 13px; border:0; border-bottom:2px solid transparent; color:#66717d; font-size:11px; }.admin-content .nav-tabs .nav-link:hover { color:var(--admin-teal); }.admin-content .nav-tabs .nav-link.active { color:var(--admin-teal); background:transparent; border-bottom-color:var(--admin-teal); font-weight:600; }
.admin-content .accordion { --bs-accordion-border-color:#dfe4e8; --bs-accordion-border-radius:8px; --bs-accordion-inner-border-radius:7px; --bs-accordion-btn-focus-box-shadow:0 0 0 3px rgba(11,145,140,.12); --bs-accordion-active-color:#087975; --bs-accordion-active-bg:#edf8f7; }.admin-content .accordion-item { margin-bottom:9px; border-radius:8px !important; overflow:hidden; }.admin-content .accordion-button { min-height:48px; padding:13px 16px; font-size:12px; font-weight:600; }.admin-content .accordion-body { padding:18px; }
.admin-content .modal-content { border:0; border-radius:10px; box-shadow:0 22px 60px rgba(18,31,43,.2); }.admin-content .modal-header,.admin-content .modal-footer { border-color:#e4e8eb; }.admin-content .modal-title { font-size:16px; }
.admin-content .breadcrumb { margin-bottom:15px; font-size:10px; }.admin-content .breadcrumb a { color:var(--admin-teal); text-decoration:none; }
.admin-content details > summary { padding:8px 0; color:#56616d !important; font-size:11px; font-weight:600; }
.admin-content .display-4 { font-size:28px; font-weight:700; letter-spacing:-.025em; }
@media (max-width:1100px) { .admin-ops-strip { grid-template-columns:130px repeat(2,1fr); }.admin-ops-strip a:nth-of-type(3) { border-left:0; }.admin-ops-strip__label { grid-row:span 2; } }
@media (max-width:767.98px) { .admin-ops-strip { grid-template-columns:1fr 1fr; padding:0; }.admin-ops-strip__label { grid-column:1/-1; grid-row:auto; padding:12px; }.admin-ops-strip a,.admin-ops-strip a:nth-of-type(3) { border-top:1px solid #e7ebee; border-left:0; }.admin-ops-strip a:nth-of-type(even) { border-left:1px solid #e7ebee; }.admin-content h1:not(.admin-page-heading h1) { font-size:21px; }.admin-content .card-body { padding:15px; }.admin-content .table-responsive { border:1px solid #e2e7ea; border-radius:7px; } }
.admin-sidebar-collapsed .admin-shell__sidebar { width:72px; }.admin-sidebar-collapsed .admin-shell__main { margin-left:72px; }.admin-sidebar-collapsed .admin-brand { padding:11px; }.admin-sidebar-collapsed .admin-brand img { width:50px; object-fit:cover; object-position:left; }.admin-sidebar-collapsed .admin-menu__heading span,.admin-sidebar-collapsed .admin-menu__heading i,.admin-sidebar-collapsed .admin-menu__link span,.admin-sidebar-collapsed .admin-sidebar-collapse span { display:none; }.admin-sidebar-collapsed .admin-menu__link { grid-template-columns:1fr; padding:9px; text-align:center; }.admin-sidebar-collapsed .admin-menu__link i { font-size:18px; }.admin-sidebar-collapsed .admin-menu__badge { position:absolute; top:2px; right:2px; display:grid !important; }.admin-sidebar-collapsed .admin-sidebar-collapse { justify-content:center; padding:0; }.admin-sidebar-collapsed .admin-sidebar-collapse i { transform:rotate(180deg); }
@media (max-width:1100px) { .admin-dashboard__grid { grid-template-columns:1fr 1fr; }.admin-chart-panel { grid-column:span 2; }.admin-queue-panel,.admin-premium-panel { grid-column:auto; }.admin-metrics { grid-template-columns:1fr 1fr; } }
@media (max-width:767.98px) { .admin-shell__sidebar { transform:translateX(-100%); width:234px; box-shadow:18px 0 45px rgba(18,31,43,.14); }.admin-shell__main { margin-left:0; }.admin-sidebar-open .admin-shell__sidebar { transform:translateX(0); }.admin-sidebar-open .admin-sidebar-backdrop { position:fixed; inset:0; z-index:1025; display:block; background:rgba(20,30,40,.35); }.admin-topbar { padding:0 14px; gap:10px; }.admin-mobile-menu { display:flex !important; }.admin-search { flex:1; width:auto; }.admin-search kbd { display:none; }.admin-search input { padding-right:12px; }.admin-topbar__button span,.admin-profile > span:last-child,.admin-topbar__divider { display:none; }.admin-topbar__actions { margin-left:0; gap:5px; }.admin-content { padding:18px 14px 24px; }.admin-metrics,.admin-dashboard__grid { grid-template-columns:1fr; }.admin-chart-panel,.admin-queue-panel,.admin-premium-panel { grid-column:auto; }.admin-page-heading { gap:15px; }.admin-last-updated span { display:none; }.admin-footer { padding:18px; gap:12px; flex-direction:column; }.admin-footer nav { gap:18px; }.chart-legend { display:none; } }

/* 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(11, 143, 95, 0.14);
  color: #B54708;
  border-color: rgba(11, 143, 95, 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;
}

.app-actions .btn {
  white-space: nowrap;
}

/* 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);
}

.reminder-list {
  display: grid;
}

.reminder-item-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(130px, .75fr) minmax(190px, 1.1fr) minmax(105px, .6fr) minmax(170px, .8fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.38);
}

.reminder-item-row:first-child {
  border-top: 0;
}

.reminder-item-row:hover {
  background: rgba(255, 255, 255, 0.72);
}

.reminder-item-main,
.reminder-item-date,
.reminder-item-schedule,
.reminder-item-cost,
.reminder-item-actions {
  min-width: 0;
}

.reminder-item-main .reminder-row-title,
.reminder-item-main .reminder-row-meta {
  overflow-wrap: anywhere;
}

.detail-row-list {
  display: grid;
  gap: .75rem;
}

.detail-row {
  padding: .9rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: rgba(248, 250, 252, .72);
}

.detail-currency {
  max-width: 82px;
}

.reminder-detail-lines {
  display: grid;
  gap: .25rem;
}

.reminder-extra-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.reminder-extra-meta span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: .78rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.reminder-detail-line {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--text-muted);
}

.reminder-detail-line__title {
  color: var(--text-primary);
  font-weight: 700;
}

.reminder-item-date,
.reminder-item-schedule {
  font-size: 0.88rem;
}

.reminder-item-schedule .badge-pill,
.reminder-item-date .badge-pill,
.reminder-item-main .badge-pill {
  white-space: nowrap;
}

.reminder-item-cost {
  text-align: right;
}

.reminder-item-cost .reminder-row-title,
.reminder-item-cost .reminder-row-meta {
  white-space: nowrap;
}

.reminder-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.reminder-item-actions__buttons {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.reminder-item-actions .btn,
.reminder-item-actions .btn-toggle-pill {
  white-space: nowrap;
}

@media (max-width: 1199.98px) {
  .reminder-item-row {
    grid-template-columns: minmax(220px, 1.5fr) minmax(125px, .75fr) minmax(170px, 1fr) minmax(145px, .9fr);
  }

  .reminder-item-cost {
    text-align: right;
  }

  .reminder-item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }
}

/* 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);
}

/* Reminder product pages: list and budget surfaces */
.reminder-product-page {
  color: #101827;
}

.reminder-product-page .app-page-header {
  padding-top: 1.35rem;
  margin-bottom: 1.35rem;
}

.reminder-product-page .app-page-title {
  font-size: clamp(2rem, 4vw, 2.7rem);
  color: #0f172a;
}

.reminder-product-page .app-page-subtitle {
  color: #4b5565;
  font-size: 1rem;
  line-height: 1.55;
  max-width: 58ch;
}

.reminder-product-page .btn {
  border-radius: 8px;
  font-weight: 700;
}

.reminder-product-page .btn-primary {
  background: linear-gradient(135deg, #2f8f46, #1f7138);
  border-color: #2f8f46;
  box-shadow: 0 10px 22px rgba(47, 143, 70, .18);
}

.reminder-product-page .btn-outline-primary {
  border-color: rgba(47, 143, 70, .72);
  color: #236b35;
  background: rgba(255, 255, 255, .78);
}

.reminder-product-page .btn-outline-primary:hover,
.reminder-product-page .btn-outline-primary:focus {
  background: #2f8f46;
  border-color: #2f8f46;
  color: #fff;
}

.reminder-product-page .app-toolbar,
.reminder-product-page .app-card,
.reminder-product-page .kpi-card {
  border-radius: 8px;
  border-color: #dfe5eb;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 14px 38px rgba(15, 23, 42, .055);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.reminder-product-page .app-card-header {
  background: #fff;
  border-color: #e2e8f0;
  padding: 1.05rem 1.35rem;
}

.reminder-product-page .app-card-title {
  color: #111827;
  font-size: 1.05rem;
  font-weight: 800;
}

.reminder-product-page .badge-pill {
  border: 0;
  padding: .35rem .75rem;
  font-size: .86rem;
  font-weight: 800;
}

.reminder-product-page .badge-brand {
  background: #fff0e5;
  color: #d45b00;
}

.reminder-product-page .badge-neutral {
  background: #f1f3f5;
  color: #111827;
}

.reminder-product-page .badge-success {
  background: #e9f5ec;
  color: #23743a;
}

.reminder-product-page .badge-info {
  background: #eef3ff;
  color: #0f58d0;
}

.reminder-product-page .kpi-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 126px;
  padding: 1.45rem 1.55rem;
  overflow: hidden;
}

.reminder-product-page .kpi-card.kpi-orange,
.reminder-product-page .kpi-card.kpi-success,
.reminder-product-page .kpi-card.kpi-warning {
  border-left: 4px solid #2f8f46;
}

.reminder-product-page .kpi-icon,
.reminder-item-main__icon,
.budget-category-icon,
.budget-help-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: #eaf5ed;
  color: #23743a;
  font-size: 1.65rem;
  flex: 0 0 auto;
}

.reminder-product-page .kpi-card .kpi-label {
  margin-bottom: .35rem;
  color: #4b5565;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: .84rem;
  font-weight: 700;
}

.reminder-product-page .kpi-card .kpi-value {
  color: #0b1020;
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  line-height: 1.1;
}

.reminder-product-page .kpi-card .kpi-sub,
.budget-card-foot {
  color: #344054;
  font-size: .9rem;
}

.reminder-search-toolbar {
  padding: .65rem;
}

.reminder-search-toolbar form {
  gap: .65rem;
}

.reminder-search-input {
  max-width: 560px;
  flex: 1 1 420px;
  min-width: 260px;
  border: 1px solid #dfe5eb;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.reminder-search-input .input-group-text,
.reminder-search-input .form-control {
  min-height: 48px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.reminder-toolbar-filter {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}

.reminder-toolbar-filter .form-select {
  width: min(250px, 50vw);
  min-height: 48px;
  border-color: #dfe5eb;
  border-radius: 8px;
  font-weight: 700;
}

.reminder-items-page .reminder-list {
  border-left: 4px solid #2f8f46;
}

.reminder-items-page .reminder-item-row {
  grid-template-columns: minmax(340px, 2.1fr) minmax(150px, .75fr) minmax(220px, 1fr) minmax(120px, .6fr) minmax(230px, .9fr);
  gap: 1.1rem;
  padding: 1rem 1.35rem;
  background: #fff;
}

.reminder-items-page .reminder-item-row:hover {
  background: #fbfdfb;
}

.reminder-items-page .reminder-item-main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.reminder-items-page .reminder-row-title {
  color: #101827;
  font-size: .98rem;
  font-weight: 800;
}

.reminder-items-page .reminder-row-meta {
  color: #4b5565;
}

.reminder-items-page .reminder-item-date,
.reminder-items-page .reminder-item-schedule {
  color: #344054;
}

.reminder-items-page .reminder-item-cost .reminder-row-title {
  font-size: 1rem;
  font-weight: 850;
}

.reminder-items-page .btn-toggle-pill.active {
  background: #e9f5ec;
  color: #23743a;
  border-color: rgba(47, 143, 70, .38);
}

.reminder-items-page .btn-outline-danger {
  min-width: 38px;
  border: 0;
  color: #ef3f34;
  background: transparent;
}

.budget-toolbar {
  padding: 1rem 1.15rem;
}

.budget-filter-chip {
  min-height: 38px;
}

.budget-card-foot {
  grid-column: 1 / -1;
  margin-top: .45rem;
}

.budget-mini-bar {
  grid-column: 1 / -1;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e7eb;
}

.budget-mini-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f8f46, #4f9f61);
}

.budget-detail-table {
  color: #101827;
}

.budget-detail-table th {
  padding: 1rem 1.35rem;
  color: #111827;
  font-size: .88rem;
  font-weight: 800;
  border-bottom: 1px solid #dfe5eb;
  background: #fbfcfd;
}

.budget-detail-table td {
  padding: 1rem 1.35rem;
  vertical-align: middle;
  border-color: #e7ebef;
}

.budget-detail-table td:first-child {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
}

.budget-category-icon {
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
}

.budget-total-row td {
  font-weight: 850;
  background: #fbfcfd;
}

.budget-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 1.25rem;
}

.budget-panel {
  min-height: 340px;
}

.budget-distribution {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: center;
  padding: 1.45rem;
}

.budget-donut {
  position: relative;
  display: grid;
  place-items: center;
  width: min(245px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
}

.budget-donut::after {
  content: "";
  position: absolute;
  inset: 29%;
  border-radius: 50%;
  background: #fff;
}

.budget-donut > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .2rem;
  text-align: center;
}

.budget-donut strong {
  color: #101827;
  font-size: 1.35rem;
  line-height: 1.1;
}

.budget-donut span,
.budget-legend span,
.budget-upcoming-item span,
.budget-help-strip p {
  color: #4b5565;
}

.budget-legend {
  display: grid;
  gap: 1rem;
}

.budget-legend-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
}

.budget-legend-row i {
  width: 12px;
  height: 12px;
  margin-top: .3rem;
  border-radius: 50%;
  background: #2f8f46;
}

.budget-legend-row--1 i { background: #f5a623; }
.budget-legend-row--2 i { background: #ff5138; }
.budget-legend-row--3 i { background: #697386; }

.budget-legend-row strong,
.budget-legend-row span,
.budget-upcoming-item strong,
.budget-upcoming-item span {
  display: block;
}

.budget-upcoming-list {
  display: grid;
  gap: 1rem;
  padding: 1.45rem;
}

.budget-upcoming-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.budget-panel-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  margin-top: .75rem;
  color: #23743a;
  font-weight: 850;
  text-decoration: none;
}

.budget-help-strip {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.65rem;
}

.budget-help-strip h2 {
  margin: 0 0 .25rem;
  color: #101827;
  font-size: 1.25rem;
}

.budget-help-strip p {
  margin: 0;
}

.app-home-page {
  max-width: 1280px;
}

.app-home-page .app-home-hero {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-home-page .control-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.app-home-page .control-eyebrow {
  margin: 0 0 .45rem;
  color: #4b5565 !important;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 0;
}

.app-home-page h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.1;
}

.app-home-page .control-hero__top p:not(.control-eyebrow) {
  margin: .65rem 0 0;
  color: #4b5565;
  font-size: 1rem;
}

.app-home-greeting {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: .8rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: #eaf5ed;
  color: #23743a;
  font-weight: 800;
}

.app-home-page .pilot-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
}

.app-home-page .pilot-mode-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: .35rem;
  padding: .25rem;
  border: 1px solid #dfe5eb;
  border-radius: 8px;
  background: #fff;
}

.app-home-page .pilot-mode-toggle button {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #4b5565;
  font-weight: 800;
}

.app-home-page .pilot-mode-toggle button.is-active {
  background: linear-gradient(135deg, #2f8f46, #1f7138);
  color: #fff;
}

.app-home-page .control-add-button,
.app-home-page .control-mobile-add {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #2f8f46, #1f7138);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(47, 143, 70, .18);
}

.app-home-page .control-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1rem;
}

.app-home-page[data-dashboard-mode="advanced"] .control-summary-grid {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
}

.app-home-page .control-summary.kpi-card {
  min-height: 126px;
}

.app-home-page .control-summary > i {
  display: none;
}

.app-home-page .control-summary span:not(.kpi-icon),
.app-home-page .control-summary strong,
.app-home-page .control-summary small {
  display: block;
}

.app-home-page .control-summary span:not(.kpi-icon) {
  color: #4b5565;
  font-size: .84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.app-home-page .control-summary strong {
  margin-top: .25rem;
  color: #0b1020;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.1;
}

.app-home-page .control-summary small {
  margin-top: .25rem;
  color: #344054;
}

.app-home-page .control-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}

.app-home-page .control-section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: 1.1rem;
  font-weight: 850;
}

.app-home-page .control-section-heading a,
.app-home-page .smart-recommendations__toggle {
  color: #23743a;
  font-weight: 850;
  text-decoration: none;
}

.app-home-page .control-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.25rem;
  align-items: start;
}

.app-home-page[data-dashboard-mode="advanced"] .control-content-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.app-home-page .control-sidebar-stack {
  display: grid;
  gap: 1.25rem;
}

.app-home-page .contract-list,
.app-home-page .budget-glance,
.app-home-page .smart-recommendations,
.app-home-page .plan-usage-card,
.app-home-page .pilot-panel {
  border-radius: 8px;
  border-color: #dfe5eb;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .055);
}

.app-home-page .budget-glance,
.app-home-page .smart-recommendations,
.app-home-page .plan-usage-card,
.app-home-page .pilot-panel {
  padding: 1.25rem;
}

.app-home-page .contract-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1.15fr) minmax(96px, .6fr) minmax(150px, .95fr) auto 16px;
  gap: .9rem;
  align-items: center;
  min-height: 84px;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #e7ebef;
  color: #101827;
  text-decoration: none;
}

.app-home-page .contract-row:last-child {
  border-bottom: 0;
}

.app-home-page .contract-row:hover {
  background: #fbfdfb;
}

.app-home-page .contract-row__icon,
.app-home-page .smart-recommendation__icon,
.app-home-page .control-action-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #eaf5ed;
  color: #23743a;
  font-size: 1.35rem;
}

.app-home-page .contract-row__identity strong,
.app-home-page .contract-row__identity small,
.app-home-page .contract-row__cost strong,
.app-home-page .contract-row__cost small,
.app-home-page .contract-row__date strong {
  display: block;
}

.app-home-page .contract-row__identity strong,
.app-home-page .contract-row__cost strong,
.app-home-page .contract-row__date strong {
  color: #101827;
  font-weight: 850;
}

.app-home-page .contract-row__identity small,
.app-home-page .contract-row__cost small,
.app-home-page .budget-glance p,
.app-home-page .budget-glance small,
.app-home-page .smart-recommendation small,
.app-home-page .plan-usage-card__intro,
.app-home-page .plan-usage-row small {
  color: #4b5565;
}

.app-home-page .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 850;
  white-space: nowrap;
}

.app-home-page .status-pill--safe {
  background: #e9f5ec;
  color: #23743a;
}

.app-home-page .status-pill--soon {
  background: #fff0e5;
  color: #d45b00;
}

.app-home-page .control-action-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.35rem;
  padding: 1.15rem 1.25rem;
  border-left: 4px solid #f5a623;
}

.app-home-page .control-action-card p,
.app-home-page .control-action-card span {
  margin: 0;
  color: #4b5565;
}

.app-home-page .control-action-card h2 {
  margin: .15rem 0;
  color: #101827;
  font-size: 1.25rem;
}

.app-home-page .pilot-advanced-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 1.25rem;
  margin-bottom: 1.35rem;
}

.app-home-page .pilot-panel--wide {
  grid-row: span 2;
}

.app-home-page .budget-glance__amount {
  display: block;
  color: #101827;
  font-size: 2rem;
  line-height: 1.05;
}

.app-home-page .budget-progress,
.app-home-page .plan-usage-row .progress {
  height: 9px;
  border-radius: 999px;
  background: #e4e7eb;
}

.app-home-page .budget-progress .progress-bar,
.app-home-page .plan-usage-row .progress-bar {
  background: linear-gradient(90deg, #2f8f46, #4f9f61);
}

.app-home-page .smart-recommendation {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: .85rem;
  padding: .85rem;
  border: 1px solid #e7ebef;
  border-radius: 8px;
  color: #101827;
  text-decoration: none;
}

.app-home-page .smart-recommendation + .smart-recommendation {
  margin-top: .65rem;
}

.app-home-page .smart-recommendation em {
  grid-column: 2;
  color: #23743a;
  font-style: normal;
  font-weight: 850;
}

.reminder-expense-page .expense-year-switch {
  display: inline-flex;
  margin-bottom: .25rem;
}

.reminder-expense-page .card-header.bg-primary,
.reminder-expense-page .card-header.bg-info,
.reminder-expense-page .app-card-header {
  color: #111827 !important;
  background: #fff !important;
  border-bottom: 1px solid #e2e8f0;
}

.reminder-expense-page .expense-summary-card .card-body {
  display: grid;
  place-items: center;
  min-height: 140px;
}

.reminder-expense-page .table {
  color: #101827;
}

.reminder-expense-page .table th {
  color: #111827;
  font-weight: 850;
  background: #fbfcfd;
}

.reminder-expense-page .table td,
.reminder-expense-page .table th {
  padding: .95rem 1rem;
  border-color: #e7ebef;
}

.reminder-form-page {
  max-width: 1240px;
  margin: 0 auto;
}

.reminder-form-page > h1 {
  margin-top: 1.35rem;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 2.45rem);
  font-weight: 850;
}

.reminder-form-page > p.text-muted {
  max-width: 62ch;
  color: #4b5565 !important;
  font-size: 1rem;
}

.reminder-form-page .card,
.reminder-form-page .accordion-item,
.reminder-form-page #liveSummary {
  border: 1px solid #dfe5eb !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .055);
  overflow: hidden;
}

.reminder-form-page .card-header,
.reminder-form-page .accordion-button {
  min-height: 54px;
  border-color: #e2e8f0 !important;
  background: #fff !important;
  color: #111827 !important;
  font-weight: 850;
}

.reminder-form-page .card-header h5,
.reminder-form-page .card-header h6 {
  color: #111827;
  font-weight: 850;
}

.reminder-form-page .form-control,
.reminder-form-page .form-select,
.quick-reminder-drawer .form-control,
.quick-reminder-drawer .form-select {
  min-height: 46px;
  border-color: #dfe5eb;
  border-radius: 8px;
}

.reminder-form-page .form-control:focus,
.reminder-form-page .form-select:focus,
.quick-reminder-drawer .form-control:focus,
.quick-reminder-drawer .form-select:focus {
  border-color: rgba(47, 143, 70, .65);
  box-shadow: 0 0 0 .2rem rgba(47, 143, 70, .14);
}

.reminder-form-page .create-mode-picker,
.reminder-form-page .quick-stepper,
.reminder-form-page .quick-type-grid,
.reminder-form-page .item-role-grid {
  gap: .75rem;
}

.reminder-form-page .create-mode-button,
.reminder-form-page .quick-type-option,
.reminder-form-page .item-role-option,
.quick-reminder-drawer .quick-category > span,
.quick-reminder-drawer .quick-role-option > span {
  border: 1px solid #dfe5eb !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

.reminder-form-page .create-mode-button.is-active,
.reminder-form-page .quick-type-option.is-selected,
.reminder-form-page .btn-check:checked + .item-role-option,
.quick-reminder-drawer .quick-category input:checked + span,
.quick-reminder-drawer .quick-role-option input:checked + span {
  border-color: rgba(47, 143, 70, .65) !important;
  background: #eaf5ed !important;
  box-shadow: 0 0 0 2px rgba(47, 143, 70, .14);
}

.reminder-form-page .create-mode-button i,
.reminder-form-page .quick-type-option i,
.reminder-form-page .item-role-option i,
.quick-reminder-drawer .quick-category i,
.quick-reminder-drawer .quick-role-option i {
  color: #23743a !important;
}

.reminder-form-page .form-action-bar {
  border-radius: 8px;
  border-color: #dfe5eb;
  background: rgba(255, 255, 255, .96);
}

@media (max-width: 1199.98px) {
  .reminder-items-page .reminder-item-row {
    grid-template-columns: minmax(300px, 1.5fr) minmax(145px, .75fr) minmax(190px, 1fr) minmax(170px, .8fr);
  }

  .reminder-items-page .reminder-item-actions {
    grid-column: 1 / -1;
  }

  .budget-lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .reminder-product-page .app-page-title {
    font-size: 1.75rem;
  }

  .reminder-product-page .kpi-card {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 104px;
    padding: 1rem;
  }

  .reminder-product-page .kpi-icon,
  .reminder-item-main__icon {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }

  .reminder-search-input {
    flex-basis: 100%;
    min-width: 0;
  }

  .reminder-toolbar-filter {
    width: 100%;
  }

  .reminder-toolbar-filter .form-select {
    width: 100%;
  }

  .reminder-items-page .reminder-list {
    border-left-width: 3px;
  }

  .reminder-items-page .reminder-item-row {
    grid-template-columns: 1fr;
  }

  .reminder-items-page .reminder-item-main {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .budget-distribution {
    grid-template-columns: 1fr;
  }

  .budget-donut {
    width: min(240px, 76vw);
    margin: 0 auto;
  }

  .budget-upcoming-item {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .budget-upcoming-item > strong {
    grid-column: 2;
  }

  .budget-help-strip {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .budget-help-strip .btn {
    width: 100%;
  }
}

/* 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(11, 143, 95, 0.12);
  color: #B54708;
  border: 1px solid rgba(11, 143, 95, 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(11, 143, 95, 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(11, 143, 95, 0.06);
}

.guide-scenario-card[open] summary {
  border-bottom-color: var(--border-light);
  background: rgba(11, 143, 95, 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(11, 143, 95, 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(11, 143, 95, 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) {
  .hero-login-card {
    padding: 1rem;
  }

  .hero-login-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-action-row .btn {
    width: 100%;
  }

  .landing-product-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .landing-product-row time {
    grid-column: 2;
  }

  .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(11, 143, 95, 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 dense desktop grid into a controlled mobile layout */
  .reminder-item-row {
    grid-template-columns: 1fr;
    padding: 0.875rem 1rem;
    gap: 0.65rem;
  }

  /* Make all reminder row child divs full width on mobile */
  .reminder-item-row > div {
    width: 100%;
  }

  /* Cost and status inline on mobile */
  .reminder-item-cost {
    text-align: left;
  }

  /* Status + actions inline row on mobile */
  .reminder-item-actions {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
  }

  .reminder-item-actions__buttons {
    width: 100%;
    flex-wrap: wrap;
  }

  .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;
  }
}

body.standalone-mode .hero-section--compact {
  padding-top: 0.6rem;
}

body.standalone-mode .hero-standalone-note {
  display: block;
}

body.standalone-mode .hero-story-grid {
  grid-template-columns: 1fr;
}

body.standalone-mode .hero-visual-panel {
  display: none;
}

body.standalone-mode .app-footer {
  display: none;
}

/* ===== CONTRACT CONTROL DASHBOARD ===== */
:root {
  --control-teal: #0b8f86;
  --control-teal-dark: #08736d;
  --control-teal-soft: #e9f7f5;
  --control-canvas: #f7f9f8;
  --control-safe: #147d58;
  --control-safe-soft: #e9f7ef;
  --control-soon: #a96500;
  --control-soon-soft: #fff4dd;
  --control-urgent: #b42318;
  --control-border: #e3e8e6;
}

.onboarding-wizard .modal-content { border: 0; border-radius: 24px; box-shadow: 0 28px 80px rgba(19, 37, 55, .22); }
.onboarding-wizard .modal-header, .onboarding-wizard .modal-body, .onboarding-wizard .modal-footer { padding-left: clamp(1.25rem, 4vw, 2.5rem); padding-right: clamp(1.25rem, 4vw, 2.5rem); }
.onboarding-wizard .modal-header { padding-top: 2rem; }
.onboarding-wizard .modal-body { min-height: 350px; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.onboarding-wizard__eyebrow { display: block; margin-bottom: .45rem; color: var(--control-teal, #11847c); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.onboarding-wizard__progress { display: flex; align-items: center; gap: 1rem; color: #6c757d; font-size: .85rem; font-weight: 600; }
.onboarding-wizard__progress .progress { flex: 1; height: 7px; }
.onboarding-wizard__progress .progress-bar { background: var(--control-teal, #11847c); }
.onboarding-wizard__welcome-icon { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 1.25rem; border-radius: 20px; background: rgba(17, 132, 124, .1); color: var(--control-teal, #11847c); font-size: 1.75rem; }
.onboarding-wizard__benefits { display: grid; gap: .75rem; margin-top: 1.5rem; }
.onboarding-wizard__benefits span { display: flex; align-items: center; gap: .65rem; }
.onboarding-wizard__benefits i { color: var(--control-teal, #11847c); }
.onboarding-wizard__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.onboarding-wizard__choices button { min-height: 94px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; padding: .9rem; border: 2px solid #e4e9ed; border-radius: 16px; background: #fff; color: #263746; font-weight: 700; }
.onboarding-wizard__choices button:hover, .onboarding-wizard__choices button:focus-visible { border-color: var(--control-teal, #11847c); }
.onboarding-wizard__choices button.is-selected { border-color: var(--control-teal, #11847c); background: rgba(17, 132, 124, .08); color: var(--control-teal-dark, #0b6862); box-shadow: 0 0 0 3px rgba(17, 132, 124, .1); }
.onboarding-wizard__choices i { font-size: 1.35rem; }

.control-dashboard { max-width: 1260px; margin: 0 auto; color: #202a35; }
.control-hero { margin: -1rem -1rem 2rem; padding: 2.25rem max(1rem, calc((100vw - 1260px) / 2)); color: #fff; background: linear-gradient(135deg, var(--control-teal), var(--control-teal-dark)); }
.control-hero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.control-hero h1 { color: #fff; margin: 0 0 .25rem; font-size: clamp(2rem, 4vw, 3rem); }
.control-hero p { color: rgba(255,255,255,.82); margin: 0; }
.control-eyebrow { margin: 0 0 .35rem !important; color: var(--control-teal) !important; font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.control-hero .control-eyebrow { color: rgba(255,255,255,.72) !important; }
.control-add-button { background: #fff; color: var(--control-teal-dark); font-weight: 700; padding: .75rem 1.1rem; border-radius: 12px; }
.control-add-button:hover { background: var(--control-teal-soft); color: var(--control-teal-dark); }
.control-add-button--locked { color: #8a5a00; background: #fff5d6; border-color: #ffe3a3; text-decoration: none; }
.control-add-button--locked:hover { color: #744900; background: #ffedbd; }
.control-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.75rem; }
.control-summary { display: flex; align-items: center; gap: .9rem; padding: 1rem; border-radius: 14px; background: rgba(255,255,255,.12); }
.control-summary > i { font-size: 1.5rem; }
.control-summary div { display: flex; flex-direction: column; min-width: 0; }
.control-summary span, .control-summary small { color: rgba(255,255,255,.75); }
.control-summary strong { color: #fff; font-size: 1.45rem; line-height: 1.15; }

.control-action-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem; padding: 1.35rem 1.5rem; margin-bottom: 2rem; background: #fff; border: 1px solid #f2c76e; border-left: 6px solid #e9ad29; border-radius: 16px; box-shadow: 0 8px 24px rgba(30,50,45,.06); }
.control-action-card__icon { display: grid; place-items: center; width: 54px; height: 54px; color: var(--control-soon); background: var(--control-soon-soft); border-radius: 50%; font-size: 1.5rem; }
.control-action-card p, .control-action-card span { margin: 0; color: #68727d; }
.control-action-card h2 { margin: .15rem 0; font-size: clamp(1.35rem, 3vw, 2rem); color: #202a35; }
.control-action-card .btn-primary, .quick-reminder-drawer .btn-primary { background: var(--control-teal); border-color: var(--control-teal); }
.control-action-card .btn-primary:hover, .quick-reminder-drawer .btn-primary:hover { background: var(--control-teal-dark); border-color: var(--control-teal-dark); }

.control-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.control-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.control-section-heading h2 { margin: 0; font-size: 1.35rem; }
.control-section-heading a { color: var(--control-teal); font-weight: 700; text-decoration: none; }
.contract-list, .budget-glance, .smart-recommendations { background: #fff; border: 1px solid var(--control-border); border-radius: 16px; overflow: hidden; }
.contract-row { display: grid; grid-template-columns: 46px minmax(150px, 1.25fr) minmax(100px, .65fr) minmax(150px, 1fr) auto 20px; gap: .9rem; align-items: center; min-height: 86px; padding: 1rem 1.1rem; border-bottom: 1px solid var(--control-border); color: #202a35; text-decoration: none; }
.contract-row:last-child { border-bottom: 0; }
.contract-row:hover { background: #fafcfb; color: #202a35; }
.contract-row__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--control-teal); background: var(--control-teal-soft); font-size: 1.25rem; }
.contract-row__identity, .contract-row__cost, .contract-row__date { display: flex; flex-direction: column; min-width: 0; }
.contract-row small { color: #75808b; }
.status-pill { padding: .38rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 750; white-space: nowrap; }
.status-pill--safe { color: var(--control-safe); background: var(--control-safe-soft); }
.status-pill--soon { color: var(--control-soon); background: var(--control-soon-soft); }
.contract-row__chevron { color: #8b969f; }
.control-empty { padding: 2.5rem 1.5rem; text-align: center; }
.control-empty i { color: var(--control-safe); font-size: 2rem; }
.budget-glance { padding: 1.25rem; }
.control-sidebar-stack { display: grid; gap: 1rem; }
.plan-usage-card { padding: 1.25rem; background: #fff; border: 1px solid var(--control-border); border-radius: 16px; }
.plan-usage-card__intro { margin: -.25rem 0 1rem; color: #68727d; font-size: .88rem; }
.plan-usage-list { display: grid; gap: .9rem; }
.plan-usage-row__heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .35rem; font-size: .88rem; }
.plan-usage-row__heading strong { color: #263746; }
.plan-usage-row .progress { height: 7px; background: #edf0ef; }
.plan-usage-row .progress-bar { background: var(--control-teal); }
.plan-usage-row .plan-usage-row__bar--warning { background: #d79219; }
.plan-usage-row small { display: block; margin-top: .25rem; color: #75808b; }
.budget-glance__amount { display: block; margin-top: 1.5rem; font-size: 2rem; }
.budget-glance p, .budget-glance small { color: #68727d; }
.budget-progress { height: 9px; margin: 1rem 0 .6rem; background: #edf0ef; }
.budget-progress .progress-bar { background: var(--control-teal); }
.smart-recommendations { padding: 1.25rem; }
.smart-recommendations .control-section-heading { align-items: flex-start; }
.smart-recommendations__toggle { padding: 0; border: 0; background: transparent; color: #75808b; font-size: .82rem; font-weight: 750; }
.smart-recommendations__toggle:hover { color: var(--control-teal); }
.smart-recommendation-list { display: grid; gap: .75rem; }
.smart-recommendation { display: grid; grid-template-columns: 38px 1fr; gap: .75rem; padding: .85rem; color: #202a35; text-decoration: none; border: 1px solid #e7eeec; border-radius: 10px; background: #fbfdfc; }
.smart-recommendation:hover { color: #202a35; border-color: rgba(17,132,124,.45); background: #f3fbf9; }
.smart-recommendation__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--control-teal-dark); background: var(--control-teal-soft); font-size: 1.05rem; }
.smart-recommendation span:not(.smart-recommendation__icon) { display: grid; gap: .18rem; min-width: 0; }
.smart-recommendation strong { font-size: .92rem; line-height: 1.2; }
.smart-recommendation small { color: #68727d; line-height: 1.35; }
.smart-recommendation em { grid-column: 2; color: var(--control-teal); font-size: .82rem; font-style: normal; font-weight: 800; }
.smart-recommendations__empty { margin: 0; color: #68727d; font-size: .9rem; line-height: 1.45; }

.quick-reminder-drawer { --bs-offcanvas-width: min(560px, 100vw); }
.quick-reminder-drawer .offcanvas-header { align-items: flex-start; border-bottom: 1px solid var(--control-border); padding: 1.35rem 1.5rem; background: linear-gradient(180deg, #f8fbfb, #fff); }
.quick-reminder-drawer .offcanvas-header h2 { font-size: 1.45rem; color: #16212c; }
.quick-reminder-drawer .offcanvas-header p { max-width: 420px; margin: .25rem 0 0; color: #68727d; }
.quick-reminder-drawer .offcanvas-body { padding: 1.4rem 1.5rem 2rem; }
.quick-drawer-heading > span { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .35rem; color: #b42345; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.quick-reminder-drawer form > h3 { display: flex; align-items: center; margin: 0 0 .75rem; color: #25313d; font-size: .92rem; }
.quick-reminder-drawer form > h3:not(:first-child) { margin-top: 1.5rem; }
.quick-role-block { margin-top: 1.15rem; padding: .95rem; border: 1px solid #dfe7e6; border-radius: 8px; background: #fbfcfc; }
.quick-role-block h3 { margin: 0 0 .35rem !important; }
.quick-role-intro { margin: 0 0 .75rem; color: #68727d; font-size: .82rem; line-height: 1.45; }
.quick-role-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.quick-role-option input { position: absolute; opacity: 0; pointer-events: none; }
.quick-role-option > span { display: grid; min-height: 104px; align-content: start; gap: .25rem; padding: .75rem; border: 1px solid var(--control-border); border-radius: 8px; color: #53606c; background: #fff; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.quick-role-option i { color: var(--control-teal); font-size: 1.15rem; }
.quick-role-option strong { color: #25313d; font-size: .86rem; line-height: 1.15; }
.quick-role-option small { color: #75808b; font-size: .72rem; line-height: 1.2; }
.quick-role-option input:checked + span { border-color: var(--control-teal); background: #f3fbf9; box-shadow: 0 0 0 2px rgba(17,132,124,.14); }
.quick-role-option.is-disabled > span { opacity: .45; cursor: not-allowed; background: #f7f9fa; }
.quick-role-hint { margin: .55rem 0 0; color: #68727d; font-size: .8rem; }
.quick-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.quick-category input { position: absolute; opacity: 0; pointer-events: none; }
.quick-category > span { position: relative; display: flex; min-height: 86px; flex-direction: column; align-items: flex-start; justify-content: center; gap: .4rem; padding: .75rem .8rem; border: 1px solid var(--control-border); border-radius: 8px; color: #53606c; font-size: .78rem; text-align: left; cursor: pointer; background: #fff; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; }
.quick-category > span::after { content: "\F417"; position: absolute; top: .55rem; right: .6rem; font-family: bootstrap-icons; color: #d92d5c; font-size: .9rem; opacity: .38; }
.quick-category > span i,
.quick-category > span img,
.quick-category-emoji { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--control-teal-dark); background: var(--control-teal-soft); font-size: 1.05rem; }
.quick-category > span img { object-fit: cover; padding: 0; }
.quick-category > span strong { color: #25313d; font-size: .82rem; line-height: 1.18; }
.quick-category > span:hover { transform: translateY(-1px); border-color: rgba(17,132,124,.45); box-shadow: 0 8px 20px rgba(16, 26, 47, .07); }
.quick-category input:checked + span { color: var(--control-teal-dark); border-color: var(--control-teal); background: #f3fbf9; box-shadow: 0 0 0 2px rgba(17,132,124,.14); }
.quick-category input:checked + span::after { opacity: 1; content: "\F415"; }
.quick-suggestions { display: grid; gap: .35rem; margin-top: .65rem; }
.quick-suggestion-group { display: grid; gap: .35rem; }
.quick-suggestion-label { margin: 0; color: #6a7580; font-size: .78rem; font-weight: 650; }
.quick-service-presets { display: flex; gap: .45rem; padding: .75rem 0 .15rem; overflow-x: auto; }
.quick-service-presets button { padding: .4rem .7rem; white-space: nowrap; color: #53606c; background: #fff; border: 1px solid var(--control-border); border-radius: 999px; }
.quick-service-presets button.active { color: #fff; background: var(--control-teal); border-color: var(--control-teal); }
.quick-field-grid, .quick-advanced-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.quick-advanced { margin: 1.2rem 0; padding: .9rem; border: 1px solid var(--control-border); border-radius: 8px; background: #fbfcfc; }
.quick-advanced summary { font-weight: 750; cursor: pointer; }
.quick-advanced summary span { font-weight: 400; color: #75808b; }
.quick-advanced[open] summary { margin-bottom: 1rem; }
.cancellation-result { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; padding: .8rem; color: var(--control-safe); background: var(--control-safe-soft); border-radius: 10px; }
.cancellation-result i { font-size: 1.35rem; }
.cancellation-result div { display: flex; flex-direction: column; }
.quick-save-hint { margin: .7rem 0 0; color: #75808b; font-size: .8rem; text-align: center; }
.control-mobile-add { position: fixed; z-index: 1025; right: 1rem; bottom: calc(74px + env(safe-area-inset-bottom)); padding: .8rem 1.05rem; color: #fff; background: var(--control-teal); border: 0; border-radius: 999px; box-shadow: 0 8px 24px rgba(11,143,134,.3); font-weight: 750; }
.control-mobile-add--locked { background: #8a5a00; text-decoration: none; }

@media (max-width: 991.98px) {
  .control-hero { margin-top: -1rem; }
  .control-content-grid { grid-template-columns: 1fr; }
  .budget-glance { order: -1; }
  .control-sidebar-stack { order: -1; }
  .contract-row { grid-template-columns: 42px 1fr auto; gap: .65rem; }
  .contract-row__cost, .contract-row__date { grid-column: 2; }
  .status-pill { grid-column: 3; grid-row: 1 / span 2; }
  .contract-row__chevron { grid-column: 3; }
}

@media (max-width: 575.98px) {
  .onboarding-wizard .modal-dialog { margin: .75rem; }
  .onboarding-wizard .modal-body { min-height: 390px; }
  .onboarding-wizard__choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onboarding-wizard .modal-footer { gap: .5rem; }
  .onboarding-wizard .modal-footer form { width: 100%; order: 3; text-align: center; }
  body { background: var(--control-canvas); }
  .control-hero { margin-left: -0.75rem; margin-right: -0.75rem; padding: 1.4rem 1rem 4.25rem; border-radius: 0 0 18px 18px; }
  .control-hero__top { gap: 1rem; }
  .control-hero h1 { font-size: 2rem; }
  .control-hero .control-eyebrow, .control-add-button { display: none; }
  .control-summary-grid { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .control-summary { align-items: flex-start; padding: .8rem; }
  .control-summary strong { font-size: 1.15rem; }
  .control-summary small { display: none; }
  .control-action-card { grid-template-columns: auto 1fr; margin: -3.1rem .15rem 1.6rem; padding: 1rem; }
  .control-action-card__icon { width: 42px; height: 42px; }
  .control-action-card .btn { grid-column: 2; width: fit-content; }
  .control-action-card h2 { font-size: 1.25rem; }
  .control-content-grid { gap: 1rem; }
  .control-section-heading h2 { font-size: 1.2rem; }
  .budget-glance { padding: 1rem; }
  .contract-row { min-height: 94px; padding: .85rem; }
  .contract-row__cost { display: none; }
  .contract-row__date strong { font-size: .82rem; }
  .status-pill { padding: .32rem .55rem; }
  .quick-reminder-drawer { top: 10vh; border-radius: 20px 20px 0 0; }
  .quick-reminder-drawer .offcanvas-body { padding: 1rem; }
  .quick-role-picker { grid-template-columns: 1fr; }
  .quick-role-option > span { min-height: 76px; }
  .quick-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-category > span { min-height: 72px; font-size: .72rem; padding: .6rem; }
  .quick-field-grid, .quick-advanced-grid { grid-template-columns: 1fr; }
}

/* ===== 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;
  }
}

/* ===== SEMANTIC UTILITY CLASSES ===== */
.text-brand { color: var(--brand-dark) !important; }
.text-brand-accent { color: var(--brand-orange) !important; }
.text-muted-sm { font-size: 0.82rem; color: var(--brand-text-secondary); }
.heading-kpi { font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--brand-dark); }
.trust-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(11, 143, 95, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== CHANNEL ICON BADGES ===== */
.channel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(31, 41, 55, 0.07);
  border: 1px solid var(--border-light);
  color: var(--brand-text-secondary);
  font-size: 0.72rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.channel-badge:hover {
  background: rgba(11, 143, 134, 0.12);
  color: var(--control-teal);
}

.channel-badge--email { color: #1D4ED8; background: rgba(37, 99, 235, 0.1); border-color: rgba(37, 99, 235, 0.2); }
.channel-badge--sms   { color: var(--success); background: var(--success-bg); border-color: rgba(22, 163, 74, 0.2); }
.channel-badge--push  { color: var(--brand-orange); background: rgba(11, 143, 95, 0.1); border-color: rgba(11, 143, 95, 0.22); }

/* ===== URGENCY LEFT BORDERS FOR REMINDER ROWS ===== */
.reminder-urgency--danger {
  border-left: 4px solid var(--danger) !important;
  padding-left: calc(1rem - 4px) !important;
}

.reminder-urgency--warning {
  border-left: 4px solid var(--warning) !important;
  padding-left: calc(1rem - 4px) !important;
}

.reminder-urgency--safe {
  border-left: 4px solid var(--success) !important;
  padding-left: calc(1rem - 4px) !important;
}

/* ===== MOBILE KPI HORIZONTAL SCROLL ===== */
.kpi-scroll-wrapper {
  display: flex;
  flex-wrap: wrap;
}

@media (max-width: 767.98px) {
  .kpi-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .kpi-scroll-wrapper::-webkit-scrollbar {
    display: none;
  }

  .kpi-scroll-wrapper .kpi-col {
    flex: 0 0 160px;
    min-width: 160px;
  }

  .kpi-scroll-wrapper .kpi-col .kpi-card {
    height: 100%;
  }
}

/* ===== LOGIN MODAL ===== */
.login-modal .modal-content {
  border: none;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(19, 37, 55, 0.22);
  overflow: hidden;
}

.login-modal .modal-header {
  border-bottom: none;
  padding: 1.75rem 2rem 0.5rem;
}

.login-modal .modal-body {
  padding: 0.75rem 2rem 2rem;
}

/* ===== CENTERED HERO (LANDING PAGE) ===== */
.hero-section--centered .hero-surface {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1rem, 3vw, 2.5rem);
  border-radius: 28px;
  border: 1px solid rgba(11, 143, 95, 0.14);
  background:
    radial-gradient(circle at top center, rgba(11, 143, 95, 0.10), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
  box-shadow: 0 18px 48px rgba(31, 41, 55, 0.08);
}

.hero-section--centered .hero-headline {
  max-width: none;
}

.hero-section--centered .hero-subtext {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-section--centered .hero-action-row {
  justify-content: center;
}

.hero-section--centered .hero-main-img {
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
  display: block;
}

/* ===== ONBOARDING SUCCESS ANIMATION ===== */
@keyframes onboarding-checkmark-scale {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.onboarding-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--control-teal-soft);
  color: var(--control-teal);
  display: grid;
  place-items: center;
  font-size: 2.25rem;
  margin: 0 auto 1.25rem;
  animation: onboarding-checkmark-scale 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ===== DASHBOARD ACTION BANNER ===== */
.dashboard-action-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.25rem;
  background: var(--warning-bg);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-left: 5px solid var(--warning);
  border-radius: 12px;
}

.dashboard-action-banner__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #92400E;
}

.dashboard-action-banner__body {
  flex: 1;
}

.dashboard-action-banner__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #92400E;
  margin-bottom: 0.1rem;
}

.dashboard-action-banner__sub {
  font-size: 0.82rem;
  color: #a16207;
}

/* ===== NAV DROPDOWN STYLES ===== */
.nav-more-dropdown .dropdown-menu {
  border-radius: 14px;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.10);
  padding: 0.5rem;
  min-width: 170px;
}

.nav-more-dropdown .dropdown-item {
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--brand-dark);
  transition: background 0.12s ease, color 0.12s ease;
}

.nav-more-dropdown .dropdown-item:hover,
.nav-more-dropdown .dropdown-item:focus {
  background: rgba(11, 143, 95, 0.10);
  color: var(--brand-orange);
}

/* ===== LANG DROPDOWN ===== */
.lang-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-dark);
  cursor: pointer;
  transition: background 0.12s ease;
}

.lang-dropdown-toggle:hover {
  background: rgba(11, 143, 95, 0.08);
}

.lang-dropdown-menu {
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.10);
  padding: 0.4rem;
  min-width: 140px;
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--brand-dark);
  border: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
  transition: background 0.12s ease;
}

.lang-dropdown-item:hover {
  background: rgba(11, 143, 95, 0.08);
}

.lang-dropdown-item.active-lang {
  font-weight: 700;
  color: var(--brand-orange);
}

/* ===== REMINDPILOT 2026 USER DASHBOARD ===== */
.brand-logo--horizontal {
  max-width: min(230px, 52vw);
  height: auto;
  max-height: 46px;
}

@media (min-width: 992px) {
  .brand-logo--horizontal {
    max-height: 52px;
  }
}

.dashboard-surface {
  background: #f7f9fc;
}

.control-dashboard {
  --pilot-blue: #0f6fe8;
  --pilot-blue-dark: #0b56c8;
  --pilot-green: #0f876d;
  --pilot-ink: #101a2f;
  --pilot-muted: #647089;
  --pilot-line: #e1e8f0;
  --pilot-soft: #f6f9fc;
  max-width: 1380px;
}

.control-dashboard[data-dashboard-mode="simple"] .pilot-advanced-only {
  display: none !important;
}

.control-dashboard[data-dashboard-mode="advanced"] .control-content-grid {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.pilot-overview-hero {
  margin: -1rem -1rem 1.4rem;
  color: var(--pilot-ink);
  background:
    linear-gradient(90deg, rgba(15, 111, 232, 0.08), rgba(15, 135, 109, 0.08)),
    #fff;
  border-bottom: 1px solid var(--pilot-line);
}

.pilot-overview-hero h1 {
  color: var(--pilot-ink);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.pilot-overview-hero p {
  color: var(--pilot-muted);
}

.pilot-overview-hero .control-eyebrow {
  color: var(--pilot-green) !important;
}

.pilot-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
}

.pilot-mode-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: .35rem;
  padding: .35rem;
  border: 1px solid var(--pilot-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 26, 47, .05);
}

.pilot-mode-toggle button {
  min-height: 40px;
  padding: .45rem .8rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--pilot-ink);
  font-size: .88rem;
  font-weight: 800;
  white-space: nowrap;
}

.pilot-mode-toggle button.is-active {
  background: var(--pilot-blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 111, 232, .22);
}

.pilot-overview-hero .control-add-button {
  color: #fff;
  background: var(--pilot-green);
  border-radius: 8px;
}

.pilot-overview-hero .control-add-button:hover {
  background: #0b705b;
  color: #fff;
}

.pilot-overview-hero .control-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pilot-overview-hero .control-summary {
  min-height: 110px;
  border: 1px solid var(--pilot-line);
  border-radius: 8px;
  background: #fff;
  color: var(--pilot-ink);
  box-shadow: 0 10px 26px rgba(16, 26, 47, .05);
}

.pilot-overview-hero .control-summary > i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 135, 109, .1);
  color: var(--pilot-green);
}

.pilot-overview-hero .control-summary:nth-child(3) > i,
.pilot-overview-hero .control-summary:nth-child(4) > i {
  background: rgba(15, 111, 232, .1);
  color: var(--pilot-blue);
}

.pilot-overview-hero .control-summary span,
.pilot-overview-hero .control-summary small {
  color: var(--pilot-muted);
}

.pilot-overview-hero .control-summary strong {
  color: var(--pilot-ink);
}

.pilot-overview-hero .control-summary:nth-child(1) strong {
  color: var(--pilot-green);
}

.pilot-overview-hero .control-summary:nth-child(4) strong {
  color: var(--pilot-blue);
}

.pilot-advanced-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr) minmax(240px, .65fr);
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.pilot-panel {
  padding: 1.15rem;
  border: 1px solid var(--pilot-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 26, 47, .045);
}

.pilot-panel--wide {
  grid-row: span 2;
}

.pilot-bar-chart {
  height: 230px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: .8rem;
  padding: 1rem .25rem .25rem;
  border-bottom: 1px solid var(--pilot-line);
}

.pilot-bar-chart__item {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: .55rem;
  text-align: center;
}

.pilot-bar-chart__item span {
  width: min(54px, 72%);
  justify-self: center;
  border-radius: 6px 6px 0 0;
  background:
    linear-gradient(to top, #1f78ff 0 34%, #f04438 34% 58%, #11847c 58% 100%);
  box-shadow: inset 0 18px 22px rgba(255, 255, 255, .18);
}

.pilot-bar-chart__item small,
.pilot-muted {
  color: var(--pilot-muted);
}

.pilot-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: .85rem;
  color: var(--pilot-muted);
  font-size: .8rem;
}

.pilot-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.pilot-chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.pilot-category-bars {
  display: grid;
  gap: .8rem;
}

.pilot-category-bar > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .35rem;
  color: var(--pilot-ink);
  font-size: .88rem;
}

.pilot-category-bar span {
  color: var(--pilot-muted);
}

.pilot-category-bar__track {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: #edf3f8;
  overflow: hidden;
}

.pilot-category-bar__track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--pilot-green), var(--pilot-blue));
}

.pilot-expense-list {
  display: grid;
  gap: .65rem;
  margin: 0;
  padding-left: 1.2rem;
}

.pilot-expense-list li {
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--pilot-line);
}

.pilot-expense-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pilot-expense-list span {
  color: var(--pilot-ink);
}

.pilot-expense-list strong {
  float: right;
  color: var(--pilot-ink);
}

.pilot-guide-card {
  background: linear-gradient(180deg, #fff, #f6fbff);
}

.pilot-guide-card > i {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: .8rem;
  border-radius: 50%;
  background: rgba(15, 111, 232, .1);
  color: var(--pilot-blue);
  font-size: 1.45rem;
}

.pilot-guide-card h2 {
  font-size: 1.15rem;
}

.control-dashboard .contract-list,
.control-dashboard .budget-glance,
.control-dashboard .plan-usage-card,
.control-dashboard .control-action-card {
  border-color: var(--pilot-line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(16, 26, 47, .045);
}

.control-dashboard .contract-row__icon {
  border-radius: 8px;
  color: var(--pilot-green);
  background: rgba(15, 135, 109, .09);
}

.control-dashboard .control-section-heading h2 {
  color: var(--pilot-ink);
}

.control-dashboard .control-section-heading a,
.control-dashboard .budget-progress .progress-bar,
.control-dashboard .plan-usage-row .progress-bar {
  color: var(--pilot-blue);
}

.control-dashboard .budget-progress .progress-bar,
.control-dashboard .plan-usage-row .progress-bar {
  background: var(--pilot-blue);
}

@media (max-width: 1199.98px) {
  .pilot-advanced-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
  }

  .pilot-guide-card {
    grid-column: span 2;
  }
}

@media (max-width: 991.98px) {
  .pilot-overview-hero .control-summary-grid,
  .pilot-advanced-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pilot-panel--wide,
  .pilot-guide-card {
    grid-column: span 2;
  }
}

@media (max-width: 575.98px) {
  .pilot-overview-hero {
    padding-bottom: 1.25rem;
  }

  .pilot-hero-actions {
    width: 100%;
    justify-content: stretch;
  }

  .pilot-mode-toggle {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .pilot-mode-toggle button {
    min-width: 0;
    padding-inline: .4rem;
    font-size: .78rem;
  }

  .pilot-overview-hero .control-summary-grid,
  .pilot-advanced-grid {
    grid-template-columns: 1fr;
  }

  .pilot-panel--wide,
  .pilot-guide-card {
    grid-column: auto;
  }

  .pilot-overview-hero .control-summary {
    min-height: 94px;
  }
}

/* ===== SIMPLE PUBLIC SITE REFRESH ===== */
body {
  background: #ffffff;
}

.public-navbar {
  min-height: 78px;
  background: rgba(255, 255, 255, .96) !important;
  border-bottom: 1px solid #e8edf3;
}

.public-navbar .container {
  max-width: 1240px;
}

.public-navbar .navbar-nav {
  justify-content: center;
  gap: .35rem;
}

.public-navbar .nav-link {
  color: #0d1830 !important;
  font-weight: 750;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
  background: rgba(15, 111, 232, .07);
  color: #0f6fe8 !important;
}

.public-login-link {
  font-weight: 750 !important;
}

.btn-nav-cta,
.btn-primary {
  background: #0b8f5f;
  border-color: #0b8f5f;
}

.btn-nav-cta:hover,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: #08764f !important;
  border-color: #08764f !important;
}

.btn-outline-primary {
  border-color: #0b8f5f;
  color: #0b8f5f;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background: #0b8f5f;
  border-color: #0b8f5f;
}

.app-footer {
  background: #f7fafc;
  color: #526177;
  border-top: 1px solid #e8edf3;
}

.app-footer .footer-heading,
.app-footer .footer-links a,
.app-footer .footer-brand-text,
.app-footer .footer-bottom {
  color: #526177 !important;
}

.app-footer .footer-heading {
  color: #101a2f !important;
}

.footer-divider {
  border-color: #dce4ee;
}

.rp-landing-hero,
.rp-start-paths,
.rp-category-strip,
.rp-how-it-works,
.rp-info-row {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.rp-landing-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: min(720px, calc(100vh - 110px));
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem);
}

.rp-landing-hero__copy h1 {
  margin: 0;
  max-width: 11ch;
  color: #07132d;
  font-size: clamp(3rem, 6.5vw, 4.45rem);
  line-height: 1.08;
  font-weight: 850;
}

.rp-landing-hero__copy h1 span {
  color: #0b8f5f;
}

.rp-landing-hero__copy p {
  max-width: 43ch;
  margin: 1.65rem 0 0;
  color: #33415c;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.72;
}

.rp-landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.rp-landing-actions .btn {
  min-width: 170px;
  border-radius: 8px;
  padding: .85rem 1.35rem;
  font-size: 1rem;
}

.rp-trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.4rem;
  color: #24324b;
  font-size: .95rem;
}

.rp-trust-points span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.rp-trust-points i {
  color: #0b8f5f;
}

.rp-product-mockup {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 1.4rem;
  min-height: 510px;
  padding: 1.4rem;
  border: 1px solid #dfe7ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(9, 20, 45, .10);
}

.rp-product-mockup__sidebar {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1rem .7rem;
  border-right: 1px solid #e8edf3;
}

.rp-product-mockup__sidebar img {
  width: 126px;
  height: auto;
  margin-bottom: .8rem;
}

.rp-product-mockup__sidebar span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 36px;
  padding: .45rem .65rem;
  border-radius: 7px;
  color: #4d5b73;
  font-size: .78rem;
  font-weight: 750;
}

.rp-product-mockup__sidebar span.active {
  background: #eef8f3;
  color: #0b8f5f;
}

.rp-product-mockup__phone {
  position: absolute;
  z-index: 2;
  left: -74px;
  bottom: 2rem;
  width: 172px;
  min-height: 330px;
  padding: 2.25rem .85rem 1rem;
  border: 5px solid #141821;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(9, 20, 45, .20);
}

.rp-phone-top {
  position: absolute;
  top: .55rem;
  left: 50%;
  width: 56px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #141821;
}

.rp-product-mockup__phone h2 {
  margin-bottom: .85rem;
  font-size: .82rem;
}

.rp-reminder-mini {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: .45rem;
  align-items: center;
  padding: .65rem 0;
  border-bottom: 1px solid #eef2f6;
}

.rp-reminder-mini i {
  color: #0b8f5f;
  font-size: 1rem;
}

.rp-reminder-mini span,
.rp-reminder-mini small,
.rp-reminder-mini strong {
  display: block;
}

.rp-reminder-mini span {
  color: #101a2f;
  font-size: .72rem;
  font-weight: 800;
}

.rp-reminder-mini small,
.rp-reminder-mini strong {
  color: #657188;
  font-size: .62rem;
  font-weight: 650;
}

.rp-product-mockup__phone > a {
  display: block;
  margin-top: .8rem;
  color: #0f6fe8;
  font-size: .7rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.rp-product-mockup__charts {
  grid-column: 2;
  display: grid;
  gap: 1.2rem;
  align-content: center;
}

.rp-product-mockup__charts article {
  min-height: 190px;
  padding: 1.35rem;
  border: 1px solid #e7edf4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(9, 20, 45, .06);
}

.rp-product-mockup__charts span,
.rp-product-mockup__charts small {
  display: block;
  color: #657188;
  font-weight: 750;
}

.rp-product-mockup__charts article > strong {
  display: block;
  margin-top: .55rem;
  color: #0b8f5f;
  font-size: 2rem;
  line-height: 1;
}

.rp-mini-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: .9rem;
  height: 82px;
  margin-top: 1.6rem;
}

.rp-mini-bars i {
  display: block;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, #1f78ff 0 28%, #2F80ED 28% 58%, #0b8f5f 58% 100%);
}

.rp-mini-bars i:nth-child(1) { height: 38%; }
.rp-mini-bars i:nth-child(2) { height: 64%; }
.rp-mini-bars i:nth-child(3) { height: 70%; }
.rp-mini-bars i:nth-child(4) { height: 78%; }
.rp-mini-bars i:nth-child(5) { height: 72%; }
.rp-mini-bars i:nth-child(6) { height: 56%; }

.rp-category-preview {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.15rem;
}

.rp-donut {
  width: 112px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#0b8f5f 0 36%, #1f78ff 36% 58%, #2F80ED 58% 74%, #9aa7b8 74% 100%);
  position: relative;
}

.rp-donut::after {
  content: "";
  position: absolute;
  inset: 27px;
  border-radius: 50%;
  background: #fff;
}

.rp-category-preview ul {
  display: grid;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #33415c;
  font-size: .78rem;
}

.rp-category-preview li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: .45rem;
}

.rp-category-preview li strong {
  display: inline;
  margin: 0;
  color: #33415c;
  font-size: .78rem;
  line-height: 1.2;
  white-space: nowrap;
}

.rp-category-preview li i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0b8f5f;
}

.rp-category-preview li:nth-child(2) i { background: #1f78ff; }
.rp-category-preview li:nth-child(3) i { background: #2F80ED; }
.rp-category-preview li:nth-child(4) i { background: #9aa7b8; }

.rp-start-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  padding: 2.4rem .5rem 3.4rem;
}

.rp-start-paths article,
.rp-category-strip a,
.rp-info-row article {
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(9, 20, 45, .055);
}

.rp-start-paths article {
  position: relative;
  min-height: 300px;
  padding: 1.8rem;
}

.rp-card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.55rem;
  border-radius: 50%;
  font-size: 1.55rem;
}

.rp-card-icon--blue { color: #0f6fe8; background: #edf5ff; }
.rp-card-icon--green { color: #0b8f5f; background: #eef8f3; }
.rp-card-icon--orange { color: #0B8F5F; background: #E8F6EE; }

.rp-start-paths h3 {
  margin-bottom: .85rem;
  color: #101a2f;
  font-size: 1.35rem;
}

.rp-start-paths p {
  max-width: 34ch;
  margin-bottom: 2.2rem;
  color: #33415c;
}

.rp-text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 850;
  text-decoration: none;
}

.rp-text-link--blue { color: #0f6fe8; }
.rp-text-link--green { color: #0b8f5f; }
.rp-text-link--orange { color: #0B8F5F; }

.rp-recommend-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.45rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: #E8F6EE;
  color: #e65100;
  font-size: .75rem;
  font-weight: 850;
}

.rp-category-strip {
  padding: 1.8rem 0 3.4rem;
  text-align: center;
}

.rp-category-strip h2,
.rp-how-it-works h2 {
  margin-bottom: 1.6rem;
  color: #101a2f;
  font-size: 1.45rem;
}

.rp-category-strip > div {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: .9rem;
}

.rp-category-strip a {
  display: grid;
  place-items: center;
  gap: .75rem;
  min-height: 126px;
  padding: .9rem .65rem;
  color: #101a2f;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}

.rp-category-strip i {
  font-size: 1.75rem;
  color: #0d1830;
}

.rp-how-it-works {
  margin-top: 1.2rem;
  padding: 2rem;
  border-radius: 8px;
  background: #f5faf8;
  text-align: center;
}

.rp-how-it-works > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.rp-how-it-works article {
  position: relative;
  padding: 2.2rem 1.4rem 1.1rem;
}

.rp-how-it-works article + article {
  border-left: 1px solid #dbe6e2;
}

.rp-how-it-works article > span {
  position: absolute;
  top: 0;
  left: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #0b8f5f;
  color: #fff;
  font-weight: 850;
}

.rp-how-it-works i {
  color: #101a2f;
  font-size: 2.2rem;
}

.rp-how-it-works h3 {
  margin: .85rem 0 .5rem;
  font-size: 1rem;
}

.rp-how-it-works p {
  max-width: 28ch;
  margin: 0 auto;
  color: #33415c;
  font-size: .94rem;
}

.rp-info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  margin-bottom: 3.5rem;
}

.rp-info-row article {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: #f9fbfd;
}

.rp-info-row i {
  color: #101a2f;
  font-size: 1.8rem;
}

.rp-info-row strong,
.rp-info-row span {
  display: block;
}

.rp-info-row strong {
  color: #101a2f;
}

.rp-info-row span {
  color: #526177;
  font-size: .9rem;
}

@media (max-width: 1199.98px) {
  .rp-landing-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .rp-product-mockup {
    max-width: 720px;
    margin: 0 auto;
  }

  .rp-category-strip > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .public-navbar .navbar-nav {
    justify-content: flex-start;
  }

  .rp-start-paths,
  .rp-how-it-works > div,
  .rp-info-row {
    grid-template-columns: 1fr;
  }

  .rp-how-it-works article + article {
    border-left: 0;
    border-top: 1px solid #dbe6e2;
  }
}

@media (max-width: 767.98px) {
  .rp-landing-hero {
    padding-top: 2rem;
  }

  .rp-product-mockup {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 1rem;
  }

  .rp-product-mockup__sidebar {
    display: none;
  }

  .rp-product-mockup__charts {
    grid-column: auto;
  }

  .rp-product-mockup__phone {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(230px, 85vw);
    margin: 0 auto;
  }

  .rp-category-preview {
    grid-template-columns: 1fr;
  }

  .rp-category-strip > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .rp-landing-hero__copy h1 {
    font-size: 2.7rem;
  }

  .rp-landing-actions .btn {
    width: 100%;
  }

  .rp-trust-points {
    gap: .75rem;
  }

  .rp-start-paths article {
    min-height: 0;
  }
}

/* ===== DASHBOARD LAYOUT CORRECTION ===== */
.dashboard-surface .container {
  max-width: 1320px;
}

.control-dashboard {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.pilot-overview-hero {
  display: block;
  width: 100%;
  margin: 0 0 1.5rem;
  padding: 1.5rem;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(11, 143, 95, .09), rgba(15, 111, 232, .05) 56%, rgba(255, 255, 255, .9)),
    #fff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .06);
}

.pilot-overview-hero .control-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1.25rem;
  width: 100%;
  margin-bottom: 1.3rem;
}

.pilot-overview-hero .control-eyebrow {
  display: block;
  margin-bottom: .45rem;
}

.pilot-overview-hero h1 {
  max-width: none;
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.15rem, 4vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: 0;
  white-space: normal;
}

.pilot-overview-hero p {
  max-width: 46ch;
  margin-top: .65rem;
  color: #526177;
  font-size: 1.02rem;
}

.pilot-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .85rem;
  min-width: 300px;
}

.pilot-mode-toggle {
  width: 100%;
  max-width: 300px;
}

.pilot-overview-hero .control-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  min-height: 46px;
}

.pilot-overview-hero .control-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: none;
}

.control-dashboard[data-dashboard-mode="advanced"] .pilot-overview-hero .control-summary-grid {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
}

.pilot-overview-hero .control-summary {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-width: 0;
  min-height: 116px;
  padding: 1.15rem;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.pilot-overview-hero .control-summary::before {
  position: static;
  width: 44px;
  height: 44px;
  align-self: center;
}

.pilot-overview-hero .control-summary span,
.pilot-overview-hero .control-summary strong,
.pilot-overview-hero .control-summary small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pilot-overview-hero .control-summary span {
  color: #526177;
  font-size: .9rem;
  line-height: 1.25;
}

.pilot-overview-hero .control-summary strong {
  margin-top: .15rem;
  color: #0f172a;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.05;
}

.pilot-overview-hero .control-summary small {
  margin-top: .2rem;
  color: #526177;
  font-size: .84rem;
  line-height: 1.25;
}

.control-dashboard .control-section-title {
  margin-top: .2rem;
}

@media (max-width: 1199.98px) {
  .control-dashboard[data-dashboard-mode="advanced"] .pilot-overview-hero .control-summary-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 991.98px) {
  .pilot-overview-hero .control-hero__top {
    grid-template-columns: 1fr;
  }

  .pilot-hero-actions {
    align-items: stretch;
    min-width: 0;
  }

  .pilot-mode-toggle {
    max-width: none;
  }

  .pilot-overview-hero .control-add-button {
    width: 100%;
  }

  .pilot-overview-hero .control-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .dashboard-surface .container {
    padding-right: .85rem;
    padding-left: .85rem;
  }

  .pilot-overview-hero {
    padding: 1rem;
  }

  .pilot-overview-hero h1 {
    font-size: 2.2rem;
  }

  .pilot-overview-hero .control-summary-grid,
  .control-dashboard[data-dashboard-mode="advanced"] .pilot-overview-hero .control-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* Final authenticated app cohesion overrides */
.app-home-page .pilot-overview-hero {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-home-page .pilot-overview-hero .control-hero__top {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 1.25rem;
}

.app-home-page .pilot-overview-hero h1 {
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.app-home-page .pilot-hero-actions {
  flex-direction: row;
  align-items: center;
}

.app-home-page .control-summary-grid,
.app-home-page .pilot-overview-hero .control-summary-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1rem;
}

.app-home-page[data-dashboard-mode="advanced"] .pilot-overview-hero .control-summary-grid {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
}

.app-home-page .pilot-overview-hero .control-summary {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 126px;
  padding: 1.45rem 1.55rem;
  border-left: 4px solid #2f8f46;
}

.app-home-page .pilot-overview-hero .control-summary::before {
  display: none;
}

.app-home-page .pilot-overview-hero .control-summary span:not(.kpi-icon) {
  color: #4b5565;
  font-size: .84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.app-home-page .pilot-overview-hero .control-summary strong {
  color: #0b1020;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.app-home-page .pilot-overview-hero .control-summary small {
  color: #344054;
}

.dashboard-next-title {
  max-width: 100%;
}

.dashboard-next-meta {
  display: flex !important;
  flex-wrap: wrap;
  gap: .25rem;
  margin-top: .25rem;
}

.dashboard-next-meta span {
  display: inline-flex;
  max-width: 100%;
  padding: .12rem .45rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #334155;
  overflow-wrap: anywhere;
}

.app-home-page .contract-list,
.app-home-page .budget-glance,
.app-home-page .smart-recommendations,
.app-home-page .plan-usage-card,
.app-home-page .control-action-card,
.app-home-page .pilot-panel {
  border-radius: 8px;
  border-color: #dfe5eb;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .055);
}

.app-home-page .control-content-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.25rem;
}

@media (max-width: 1199.98px) {
  .app-home-page[data-dashboard-mode="advanced"] .pilot-overview-hero .control-summary-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .app-home-page .control-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .app-home-page .pilot-overview-hero .control-hero__top {
    grid-template-columns: 1fr;
  }

  .app-home-page .pilot-hero-actions {
    align-items: stretch;
    width: 100%;
  }

  .app-home-page .pilot-mode-toggle {
    flex: 1 1 auto;
    max-width: none;
  }

  .app-home-page .control-add-button {
    flex: 0 0 auto;
  }

  .app-home-page .pilot-overview-hero .control-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .app-home-page .pilot-overview-hero {
    padding: 0;
  }

  .app-home-page .pilot-overview-hero h1 {
    font-size: 1.9rem;
  }

  .app-home-page .pilot-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .app-home-page .control-add-button {
    width: 100%;
  }

  .app-home-page .pilot-overview-hero .control-summary-grid,
  .app-home-page[data-dashboard-mode="advanced"] .pilot-overview-hero .control-summary-grid {
    grid-template-columns: 1fr;
  }

  .app-home-page .pilot-overview-hero .control-summary {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 104px;
    padding: 1rem;
  }

  .app-home-page .contract-row {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
  }

  .app-home-page .contract-row__cost,
  .app-home-page .contract-row__date,
  .app-home-page .status-pill,
  .app-home-page .contract-row__chevron {
    grid-column: 2;
  }

  .app-home-page .control-action-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .app-home-page .control-action-card .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Authenticated app shell: left menu + green RemindPilot identity */
body:not(.admin-app) .admin-shell__sidebar,
body:not(.admin-app) .admin-sidebar,
body:not(.admin-app) .admin-sidebar-backdrop {
  display: none !important;
}

body:not(.admin-app) .admin-shell__main {
  margin-left: 0 !important;
}

body:has(.user-app-shell) {
  background: #f7f9fc;
}

.user-app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  background:
    radial-gradient(circle at 85% 8%, rgba(11, 143, 95, .05), transparent 32%),
    #f7f9fc;
}

.user-app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.55rem 1.15rem;
  background: rgba(255, 255, 255, .92);
  border-right: 1px solid #e6ebf1;
  box-shadow: 12px 0 32px rgba(15, 23, 42, .04);
  z-index: 1020;
}

.user-app-brand {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: .15rem .45rem 1rem;
  text-decoration: none;
}

.user-app-brand img {
  width: 196px;
  max-width: 100%;
  height: auto;
}

.user-app-menu {
  display: grid;
  gap: .35rem;
}

.user-app-menu a {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-height: 50px;
  padding: .75rem .85rem;
  color: #172033;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.user-app-menu a i {
  width: 22px;
  text-align: center;
  color: #56637a;
  font-size: 1.12rem;
}

.user-app-menu a:hover,
.user-app-menu a.active {
  color: #0a6f4b;
  background: linear-gradient(135deg, rgba(11, 143, 95, .12), rgba(11, 143, 95, .05));
  border-color: rgba(11, 143, 95, .2);
  transform: translateX(2px);
}

.user-app-menu a:hover i,
.user-app-menu a.active i {
  color: #0a6f4b;
}

.user-app-help-card {
  margin-top: auto;
  display: grid;
  gap: .55rem;
  justify-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  border: 1px solid rgba(11, 143, 95, .12);
  border-radius: 8px;
  background:
    radial-gradient(circle at top, rgba(11, 143, 95, .11), transparent 58%),
    #f8fbf9;
}

.user-app-help-card > i {
  font-size: 2.15rem;
  color: #0b8f5f;
}

.user-app-help-card strong {
  color: #162033;
}

.user-app-help-card span {
  color: #5a6678;
  font-size: .9rem;
  line-height: 1.55;
}

.user-app-help-card .btn {
  width: 100%;
  margin-top: .35rem;
}

.user-app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.user-app-topbar {
  position: sticky;
  top: 0;
  z-index: 1010;
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(280px, 470px) auto auto auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 2.6vw, 2.5rem);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid #e6ebf1;
  backdrop-filter: blur(16px);
}

.user-app-search {
  height: 46px;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0 1rem;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .025);
}

.user-app-search i {
  color: #667085;
}

.user-app-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #172033;
  background: transparent;
  font-weight: 600;
}

.user-app-add {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  white-space: nowrap;
}

.user-app-plan {
  display: grid;
  line-height: 1.2;
  white-space: nowrap;
}

.user-app-plan strong {
  color: #172033;
  font-weight: 800;
}

.user-app-plan span {
  color: #5f6b7a;
  font-size: .88rem;
}

.user-app-profile {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 46px;
  color: #172033;
  text-decoration: none;
  font-weight: 800;
}

.user-app-profile span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #0b8f5f, #076c49);
  box-shadow: 0 8px 18px rgba(11, 143, 95, .22);
}

.user-app-profile i {
  color: #4b5563;
  font-size: .85rem;
}

.user-app-main .dashboard-surface {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 2.6vw, 2.5rem) 5.5rem;
}

body:not(.admin-app) .public-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: 76px;
  background: rgba(255, 255, 255, .96) !important;
  border-bottom: 1px solid #e8edf3;
  box-shadow: 0 8px 26px rgba(15, 23, 42, .045) !important;
}

body:not(.admin-app) .public-navbar .container {
  max-width: 1320px;
}

body:not(.admin-app) .public-navbar .nav-link.active,
body:not(.admin-app) .public-navbar .nav-link:hover {
  color: var(--brand-orange) !important;
  background: rgba(11, 143, 95, .10) !important;
}

body:not(.admin-app) .btn-primary,
body:not(.admin-app) .btn-nav-cta,
.reminder-product-page .btn-primary,
.app-home-page .control-add-button,
.app-home-page .control-mobile-add {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark)) !important;
  border-color: var(--brand-orange) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(11, 143, 95, .20);
}

body:not(.admin-app) .btn-primary:hover,
body:not(.admin-app) .btn-nav-cta:hover,
.reminder-product-page .btn-primary:hover,
.app-home-page .control-add-button:hover,
.app-home-page .control-mobile-add:hover {
  background: linear-gradient(135deg, var(--brand-orange-dark), #055b3d) !important;
  border-color: var(--brand-orange-dark) !important;
}

body:not(.admin-app) .btn-outline-primary,
.reminder-product-page .btn-outline-primary {
  border-color: rgba(11, 143, 95, .72) !important;
  color: var(--brand-orange-dark) !important;
}

body:not(.admin-app) .btn-outline-primary:hover,
.reminder-product-page .btn-outline-primary:hover {
  background: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  color: #fff !important;
}

.reminder-product-page .kpi-card.kpi-orange,
.reminder-product-page .kpi-card.kpi-success,
.reminder-product-page .kpi-card.kpi-warning,
.app-home-page .pilot-overview-hero .control-summary,
.reminder-items-page .reminder-list {
  border-left-color: var(--brand-orange) !important;
}

.reminder-product-page .kpi-icon,
.reminder-item-main__icon,
.budget-category-icon,
.budget-help-icon,
.app-home-page .contract-row__icon,
.app-home-page .smart-recommendation__icon,
.app-home-page .control-action-card__icon {
  color: var(--brand-orange-dark) !important;
  background: rgba(11, 143, 95, .11) !important;
}

.reminder-product-page .badge-brand,
.app-home-greeting,
.app-home-page .status-pill--soon {
  background: rgba(11, 143, 95, .12) !important;
  color: var(--brand-orange-dark) !important;
}

.reminder-product-page .badge-success,
.app-home-page .status-pill--safe {
  background: var(--success-bg) !important;
  color: var(--success) !important;
}

.budget-mini-bar span,
.app-home-page .budget-progress .progress-bar,
.app-home-page .plan-usage-row .progress-bar {
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-orange-dark)) !important;
}

.budget-legend-row i {
  background: var(--brand-orange) !important;
}

.budget-legend-row--1 i { background: #2F80ED !important; }
.budget-legend-row--2 i { background: #22A06B !important; }
.budget-legend-row--3 i { background: #697386 !important; }

.app-home-page .pilot-mode-toggle button.is-active {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark)) !important;
}

.app-home-page .control-section-heading a,
.app-home-page .smart-recommendations__toggle,
.budget-panel-link,
.rp-product-mockup__charts article > strong,
.rp-reminder-mini i,
.rp-trust-points i,
.rp-text-link--green {
  color: var(--brand-orange-dark) !important;
}

.rp-donut {
  background: conic-gradient(var(--brand-orange) 0 36%, #1f78ff 36% 58%, #22A06B 58% 74%, #9aa7b8 74% 100%) !important;
}

.rp-mini-bars i {
  background: linear-gradient(to top, #1f78ff 0 28%, var(--brand-orange) 28% 58%, #22A06B 58% 100%) !important;
}

.rp-product-mockup {
  grid-template-columns: minmax(0, 1fr);
}

.rp-product-mockup__sidebar {
  position: static;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .5rem;
  padding: 0 0 1rem;
  border-right: 0;
  border-bottom: 1px solid #e8edf3;
  overflow-x: auto;
}

.rp-product-mockup__sidebar img {
  width: 130px;
  margin: 0 .5rem 0 0;
  flex: 0 0 auto;
}

.rp-product-mockup__sidebar span {
  flex: 0 0 auto;
}

.rp-product-mockup__sidebar span.active {
  background: rgba(11, 143, 95, .10);
  color: var(--brand-orange-dark);
}

.rp-product-mockup__charts {
  grid-column: auto;
}

.rp-product-mockup__phone {
  left: auto;
  right: 1.4rem;
  bottom: 1.4rem;
}

@media (max-width: 991.98px) {
  .user-app-shell {
    display: block;
    min-height: 100vh;
  }

  .user-app-sidebar {
    display: none;
  }

  .user-app-topbar {
    min-height: auto;
    position: sticky;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: .75rem .9rem;
    gap: .7rem;
  }

  .user-app-search {
    grid-column: 1 / -1;
    order: 2;
    height: 42px;
  }

  .user-app-add {
    min-height: 40px;
    padding-inline: .85rem;
  }

  .user-app-plan,
  .user-app-profile strong,
  .user-app-profile i {
    display: none;
  }

  .user-app-main .dashboard-surface {
    padding: 1rem .9rem 5.8rem;
  }

  .rp-product-mockup__phone {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(230px, 85vw);
    margin: 0 auto;
  }
}
