/* ==========================================================================
   AstroVedham Exact Flutter App UI - Mobile & Responsive
   Theme: Sacred Emerald (#064E3B, #022C22) & Sacred Gold (#D97706, #FFB300)
   ========================================================================== */

:root {
  --primary-green: #064E3B;
  --dark-bg: #022C22;
  --sacred-gold: #D97706;
  --accent-gold: #FFB300;
  --sheet-bg: #ECFDF5;
  --white: #FFFFFF;
  --text-primary: #022C22;
  --text-secondary: #047857;
  --text-hint: #68736F;
  --light-border: #D1FAE5;
  --success-green: #10B981;
  --alert-red: #DC2626;
  --container-max: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--sheet-bg);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  padding-bottom: 90px;
}

/* ==========================================================================
   App Header (Minimalist Centered Title)
   ========================================================================== */
header {
  background-color: var(--sheet-bg);
  color: var(--text-primary);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--light-border);
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar {
  width: 100%;
  max-width: var(--container-max);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  flex: 1;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo-title span {
  color: var(--sacred-gold);
}

.lang-btn {
  background: var(--white);
  border: 1px solid var(--light-border);
  color: var(--primary-green);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 36px;
}

/* ==========================================================================
   Main Container & Content
   ========================================================================== */
.main-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px;
  width: 100%;
  flex: 1;
}

/* Celestial Welcome Banner */
.welcome-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(2, 44, 34, 0.12);
  border: 1.5px solid rgba(217, 119, 6, 0.25);
  background: #FFFDF9;
  line-height: 0;
  display: block;
}

.welcome-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 22px;
}

.welcome-banner h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--white);
}

.welcome-banner p {
  font-size: 0.85rem;
  color: #A7F3D0;
  line-height: 1.4;
}

/* Section Header */
.section-header {
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.3px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.825rem;
  font-weight: 500;
  margin-top: 2px;
}

/* Services List (HoroscopeServiceCard Row Layout) */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: 28px;
  padding: 16px;
  border: 1.5px solid var(--light-border);
  box-shadow: 0 8px 20px rgba(2, 44, 34, 0.04);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
}

.service-card-featured {
  border: 3px solid #FFD700 !important;
  background: linear-gradient(135deg, #064E3B 0%, #022C22 100%) !important;
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.25) !important;
  border-radius: 32px !important;
  position: relative !important;
  padding: 22px !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  text-decoration: none !important;
  color: inherit !important;
  margin-bottom: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 600px) {
  .service-card-featured {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 20px 16px 16px 16px !important;
    gap: 12px !important;
  }
  .service-card-featured .service-pricing {
    justify-content: space-between !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .service-card-featured .service-arrow {
    display: none !important;
  }
  .service-card-featured .service-thumb {
    width: 76px !important;
    height: 76px !important;
  }
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(2, 44, 34, 0.08);
}

.service-thumb {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  object-fit: cover;
  border: 1.5px solid rgba(217, 119, 6, 0.2);
  background: var(--sheet-bg);
  flex-shrink: 0;
}

.service-info {
  flex: 1;
  min-width: 0;
}

.service-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-subtitle-text {
  font-size: 0.775rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-pricing {
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-price {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--primary-green);
}

.original-price {
  font-size: 0.8rem;
  color: var(--text-hint);
  text-decoration: line-through;
  font-weight: 500;
}

.service-arrow {
  width: 36px;
  height: 36px;
  background: var(--sheet-bg);
  border-radius: 50%;
  border: 1px solid var(--light-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   My Orders Tabs & Empty State (Exact Reference)
   ========================================================================== */
.order-tabs {
  background: var(--light-border);
  border-radius: 20px;
  padding: 4px;
  display: flex;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.order-tabs::-webkit-scrollbar {
  display: none;
}

.order-tab {
  flex: 1 1 0;
  min-width: max-content;
  background: transparent;
  border: none;
  padding: 9px 6px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-tab.active {
  background: var(--white);
  color: var(--primary-green);
  box-shadow: 0 4px 12px rgba(2, 44, 34, 0.08);
}

@media (max-width: 380px) {
  .order-tab {
    font-size: 0.74rem;
    padding: 8px 4px;
  }
}

.empty-orders-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  text-align: center;
}

.empty-icon-circle {
  width: 100px;
  height: 100px;
  background: var(--light-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(2, 44, 34, 0.05);
}

.empty-text {
  color: var(--primary-green);
  font-size: 1rem;
  font-weight: 700;
}

/* ==========================================================================
   Profile Screen (Exact Reference)
   ========================================================================== */
.profile-card {
  background: var(--white);
  border-radius: 28px;
  padding: 24px 20px;
  border: 1.5px solid var(--light-border);
  box-shadow: 0 8px 20px rgba(2, 44, 34, 0.04);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
}

.profile-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  background: var(--light-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.camera-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background: var(--primary-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border: 2px solid var(--white);
}

.profile-phone {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  flex: 1;
}

.profile-edit-icon {
  font-size: 1.25rem;
  color: var(--primary-green);
  cursor: pointer;
  padding: 8px;
}

.profile-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  margin-top: 16px;
  padding-left: 4px;
}

.profile-info-card {
  background: var(--white);
  border-radius: 28px;
  padding: 8px 20px;
  border: 1.5px solid var(--light-border);
  box-shadow: 0 8px 20px rgba(2, 44, 34, 0.04);
  margin-bottom: 16px;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.profile-row-icon {
  width: 42px;
  height: 42px;
  background: var(--light-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.profile-row-content {
  flex: 1;
}

.profile-row-label {
  font-size: 0.75rem;
  color: var(--text-hint);
  font-weight: 500;
}

.profile-row-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 700;
}

.profile-row-divider {
  height: 1px;
  background: var(--light-border);
  width: 100%;
}

.profile-row-arrow {
  color: var(--text-hint);
  font-weight: bold;
  font-size: 1.1rem;
}

/* ==========================================================================
   Floating Bottom Navigation Bar (Exact App Navigation)
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  background: var(--white);
  border-radius: 36px;
  padding: 10px 24px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1.5px solid var(--light-border);
  z-index: 2000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-hint);
  font-size: 0.7rem;
  font-weight: 600;
  gap: 2px;
  transition: color 0.2s;
}

.nav-item.active {
  color: var(--primary-green);
}

.nav-item.active .nav-icon-bg {
  background: var(--primary-green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.3);
}

.nav-icon-bg {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}

/* Footer */
footer {
  background: var(--dark-bg);
  color: #A7F3D0;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  margin-top: auto;
}

/* ==========================================================================
   Extended Components: Header, Forms, Detail Views, Modals & Responsive
   ========================================================================== */

/* Enhanced Sticky App Header */
header {
  background: var(--sheet-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--light-border);
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-header-inner {
  width: 100%;
  max-width: var(--container-max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-back-btn {
  background: var(--white);
  border: 1px solid var(--light-border);
  color: var(--primary-green);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 44, 34, 0.05);
  transition: all 0.2s;
  flex-shrink: 0;
}

.header-back-btn:hover {
  background: var(--light-border);
  transform: scale(1.05);
}

.header-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  flex: 1;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.header-lang-btn {
  background: var(--white);
  border: 1.5px solid var(--light-border);
  color: var(--primary-green);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.775rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.header-lang-btn:hover {
  background: var(--sheet-bg);
  border-color: var(--primary-green);
}

/* Card Box Standard */
.card-box {
  background: var(--white);
  border-radius: 28px;
  padding: 24px;
  border: 1.5px solid var(--light-border);
  box-shadow: 0 8px 25px rgba(2, 44, 34, 0.04);
  margin-bottom: 20px;
}

/* Form Controls & Styling */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--light-border);
  border-radius: 16px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--sheet-bg);
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-green);
  background: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.gender-pills {
  display: flex;
  gap: 10px;
}

.gender-pill {
  flex: 1;
  padding: 12px;
  text-align: center;
  border-radius: 16px;
  border: 1.5px solid var(--light-border);
  background: var(--sheet-bg);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.gender-pill.active {
  background: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.2);
}

/* Primary & Action Buttons */
.btn-primary {
  display: block;
  width: 100%;
  background: var(--primary-green);
  color: var(--white);
  border: none;
  border-radius: 18px;
  padding: 15px 20px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(6, 78, 59, 0.25);
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #04382A;
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--sacred-gold), #B45309);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #B45309, #92400E);
}

.btn-secondary {
  display: block;
  width: 100%;
  background: var(--sheet-bg);
  color: var(--primary-green);
  border: 1.5px solid var(--light-border);
  border-radius: 18px;
  padding: 14px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}

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

.btn-card {
  background: var(--primary-green);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.775rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}

/* Sticky Bottom Action Bar */
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 14px 20px 24px 20px;
  border-top: 1.5px solid var(--light-border);
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.sticky-bottom-bar-inner {
  width: 100%;
  max-width: var(--container-max);
}

/* Service Detail View Components */
.service-hero-card {
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  border: 1.5px solid var(--light-border);
  box-shadow: 0 10px 25px rgba(2, 44, 34, 0.06);
  margin-bottom: 20px;
}

.service-hero-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.service-detail-header {
  padding: 20px;
}

.service-detail-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.service-detail-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.4;
}

.detail-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.highlights-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.highlight-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-primary);
  background: var(--sheet-bg);
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--light-border);
}

.highlight-check {
  color: var(--primary-green);
  font-weight: 900;
  font-size: 0.95rem;
}

.price-banner-box {
  background: linear-gradient(135deg, var(--sheet-bg), var(--light-border));
  border: 1.5px solid var(--light-border);
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.discount-tag {
  background: var(--sacred-gold);
  color: var(--white);
  font-size: 0.725rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
}

/* Contact Card */
.contact-card-box {
  background: var(--white);
  border: 1.5px solid var(--light-border);
  border-radius: 24px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.contact-card-box:hover {
  border-color: var(--primary-green);
  box-shadow: 0 4px 15px rgba(2, 44, 34, 0.06);
}

/* Orders Cards & Status Badges */
.order-card {
  background: var(--white);
  border: 1.5px solid var(--light-border);
  border-radius: 24px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 15px rgba(2, 44, 34, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.order-status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.status-success {
  background: #D1FAE5;
  color: #065F46;
}

.status-pending {
  background: #FEF3C7;
  color: #92400E;
}

.status-cancelled {
  background: #FEE2E2;
  color: #991B1B;
}

.order-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* Modals & Dialogs */
.astro-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 44, 34, 0.6);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.astro-modal {
  background: var(--white);
  border-radius: 28px;
  width: 100%;
  max-width: 440px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive Grid layouts for Tablet and Desktop */
@media (min-width: 680px) {
  .services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .services-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .main-container {
    padding: 24px;
  }
}

/* ==========================================================================
   Customer Purchased Plans & Subscriptions (Exact Flutter Reference)
   ========================================================================== */
.plans-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

.plan-card {
  background: var(--white);
  border-radius: 24px;
  padding: 20px;
  border: 1.5px solid var(--light-border);
  box-shadow: 0 8px 24px rgba(2, 44, 34, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 44, 34, 0.08);
}

.plan-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.plan-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.plan-avatar-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #E8F5E9;
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.plan-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-green);
  margin: 0;
  line-height: 1.3;
}

.plan-type-tag {
  font-size: 0.75rem;
  color: var(--text-hint);
  margin-top: 2px;
  font-family: inherit;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-badge-active {
  background: #D1FAE5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.plan-badge-inactive {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

.plan-card-body {
  background: var(--sheet-bg);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plan-stat {
  display: flex;
  flex-direction: column;
}

.plan-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.plan-stat-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary-green);
}

.plan-stat-val.highlight {
  color: var(--sacred-gold);
}

.plan-progress-wrap {
  width: 100%;
  height: 6px;
  background: var(--light-border);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 6px;
}

.plan-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-green), var(--sacred-gold));
  border-radius: 6px;
  transition: width 0.3s ease;
}

.plan-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-btn-generate {
  background: var(--primary-green);
  color: var(--white);
  border: none;
  border-radius: 14px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-btn-generate:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

/* Active plan notice in review.html */
.plan-active-notice {
  background: linear-gradient(135deg, #ECFDF5 0%, #F0FDF4 100%);
  border: 1.5px solid #6EE7B7;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(4, 120, 87, 0.08);
  animation: fadeIn 0.3s ease-out;
}

.plan-active-notice-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #065F46;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 4px 0;
}

.plan-active-notice-desc {
  font-size: 0.825rem;
  color: #047857;
  line-height: 1.4;
  margin: 0;
}

@keyframes bounce {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-8px) scale(1.1); }
}

