/* ==========================================
   PREMIUM DESIGN SYSTEM & CUSTOM TOKENS
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --primary-olive: #738a43;
  --primary-olive-light: #8ba358;
  --primary-olive-dark: #586b31;
  --primary-olive-alpha: rgba(115, 138, 67, 0.1);
  --accent-yellow: #c2d154;
  --accent-yellow-light: #d6e469;
  --text-dark: #1c1c1e;
  --text-muted: #8e8e93;
  --text-light-muted: #c7c7cc;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  
  /* Metallic Black Card Gradient */
  --card-gradient: linear-gradient(135deg, #2b2b2b 0%, #171717 60%, #0d0d0d 100%);
  --card-glow: 0 15px 35px rgba(0, 0, 0, 0.25), 0 5px 15px rgba(0, 0, 0, 0.15);
  --pill-bg: #80963f;
  
  /* Fonts */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Motion */
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-page: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: #f1f2f5;
  color: var(--text-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==========================================
   PREMIUM MOBILE DEVICE WRAPPER (DESKTOP)
   ========================================== */
.app-container {
  width: 100%;
  max-width: 430px; /* iPhone 15 Pro / Max width standard */
  height: 900px;
  background-color: var(--bg-white);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (max-width: 480px) {
  .app-container {
    max-width: 100%;
    height: 100vh;
    border-radius: 0;
  }
  body {
    background-color: var(--bg-white);
  }
}

/* Desktop Only Frame Styling */
@media (min-width: 481px) {
  .app-container {
    border-radius: 40px;
    border: 10px solid #222;
  }
  
  /* Mock Speaker notch */
  .app-container::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 25px;
    background-color: #222;
    border-radius: 20px;
    z-index: 100;
  }
}

/* ==========================================
   PAGE ROUTING & TRANSITIONS
   ========================================== */
.view-viewport {
  flex: 1;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.view-wrapper {
  display: flex;
  width: 200%; /* For sliding transitions */
  height: 100%;
  transform: translateX(0);
  transition: var(--transition-page);
}

.view-wrapper.show-benefits {
  transform: translateX(-50%);
}

.page-view {
  width: 50%;
  height: 100%;
  overflow-y: auto;
  padding: 24px 20px 100px 20px; /* Bottom padding for bottom navigation */
  scroll-behavior: smooth;
}

/* Hide scrollbars but keep functionality */
.page-view::-webkit-scrollbar {
  display: none;
}
.page-view {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================
   REWARDS CARD (BLACK MEMBER)
   ========================================== */
.rewards-card {
  width: 100%;
  height: 220px;
  background: var(--card-gradient);
  border-radius: 24px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--card-glow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 10px;
}

/* Holographic / Light Reflection Overlay */
.rewards-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0) 45%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0) 55%
  );
  transform: rotate(25deg);
  transition: transform 0.8s ease-in-out;
  pointer-events: none;
}

.rewards-card:hover::after {
  transform: translate(25%, 25%) rotate(25deg);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  z-index: 2;
}

.card-logo {
  height: 32px;
  object-fit: contain;
}

.card-tier {
  font-family: var(--font-display);
  color: var(--bg-white);
  text-align: right;
  z-index: 2;
}

.card-tier .tier-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card-tier .tier-sub {
  font-size: 9px;
  color: var(--text-light-muted);
  font-weight: 500;
  letter-spacing: 1px;
  display: block;
  margin-top: -2px;
}

.card-holder {
  text-align: center;
  margin: 15px 0;
  z-index: 2;
}

.card-holder .name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--bg-white);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.card-holder .expiry {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  z-index: 2;
}

.points-display {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.points-pill {
  background-color: var(--pill-bg);
  color: var(--bg-white);
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 10px rgba(115, 138, 67, 0.3);
  display: inline-block;
  transition: var(--transition-smooth);
}

/* .points-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(115, 138, 67, 0.4);
} */

.points-label {
  font-size: 9px;
  color: var(--accent-yellow);
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 4px;
  align-self: center;
  text-transform: uppercase;
}

.benefits-link {
  font-family: var(--font-body);
  margin-bottom: 13px;
  font-size: 12px;
  color: var(--accent-yellow);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.benefits-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-yellow);
  color: var(--bg-white);
  transform: translateY(-1px);
}

/* ==========================================
   UPGRADE PROGRESS BAR
   ========================================== */
.progress-container {
  width: 100%;
  margin: 28px 0;
  text-align: center;
}

.progress-track {
  width: 90%;
  height: 10px;
  background-color: #d1d5db;
  border-radius: 5px;
  margin: 0 auto 8px auto;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 0; /* Animated dynamically or set in HTML */
  background-color: var(--primary-olive);
  border-radius: 5px;
  transition: width 1s ease-out;
}

.progress-text {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.progress-text span {
  color: var(--primary-olive);
  font-weight: 700;
}

/* ==========================================
   PROMO BANNER
   ========================================== */
.promo-banner-container {
  width: 100%;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  margin-bottom: 28px;
  transition: var(--transition-smooth);
}

.promo-banner-container::before {
  content: "";
  display: block;
  padding-top: 100%; /* Creates a perfect 1:1 aspect ratio square */
}

/* .promo-banner-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
} */

.promo-slider-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.promo-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.promo-slide:nth-child(2) {
  transform: translateX(100%);
}

.promo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 91.5%;
  transform: translateY(-50%);
  width: 40px; /* Larger tap target */
  height: 40px; /* Larger tap target */
  background-color: #ffffff; /* Solid white background for perfect compatibility */
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  color: var(--primary-olive-dark);
  font-size: 15px; /* Larger arrow size */
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100 !important; /* Force on top */
  opacity: 0.5; /* 50% transparent default */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.promo-banner-container:hover .slider-arrow {
  opacity: 0.7;
}

.slider-arrow:hover {
  opacity: 0.9 !important;
  background-color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.prev-arrow {
  left: 12px;
}

.next-arrow {
  right: 12px;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 100 !important; /* Force on top */
  background-color: rgba(0,0,0,0.4); /* Solid semi-transparent dark background (no backdrop-filter bug) */
  padding: 6px 10px;
  border-radius: 20px;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background-color: #ffffff;
  width: 16px;
  border-radius: 10px;
}

/* ==========================================
   PARTNERS SECTION
   ========================================== */
.partners-section {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
}

.partners-title {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--primary-olive);
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
  padding: 0 4px;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.partner-item:hover {
  transform: translateY(-3px);
}

.partner-logo-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-white);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid #ededed;
  margin-bottom: 6px;
  padding: 4px;
  transition: var(--transition-smooth);
}

.partner-item:hover .partner-logo-wrapper {
  border-color: var(--primary-olive-light);
  box-shadow: 0 8px 16px rgba(115, 138, 67, 0.12);
}

.partner-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner-name {
  font-size: 8px;
  font-weight: 600;
  color: #333333;
  line-height: 1.2;
  text-align: center;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   BENEFITS CONTENT VIEW
   ========================================== */
.benefits-header {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 16px;
}

.benefits-page-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-olive);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.benefits-description {
  font-size: 11px;
  color: #555555;
  line-height: 1.6;
  padding: 0 10px;
  font-weight: 400;
}

.benefits-description strong {
  color: var(--primary-olive-dark);
  font-weight: 600;
}

/* ==========================================
   BENEFITS COMPARISON MATRIX (TABLE)
   ========================================== */
.benefits-matrix-container {
  width: 100%;
  overflow-x: auto;
  background-color: var(--bg-white);
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  margin-top: 10px;
  margin-bottom: 20px;
}

/* Hide horizontal scrollbar but preserve swipe */
.benefits-matrix-container::-webkit-scrollbar {
  display: none;
}
.benefits-matrix-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.benefits-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 10px;
  min-width: 100px; /* Force overflow spacing for responsive swipe */
}

/* Column Header Styling */
.benefits-table th {
  padding: 12px 6px;
  font-weight: 600;
  text-align: center;
  border-bottom: 2px solid #f3f4f6;
  vertical-align: bottom;
  width: 20%;
}

.benefits-table th:first-child {
  text-align: left;
  padding-left: 12px;
  width: 28%;
}

/* Header Tier Labels */
.tier-header-name {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-olive);
  display: block;
}

.tier-header-sub {
  font-size: 7px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: lowercase;
  display: block;
  margin-top: 1px;
  line-height: 1.1;
}

/* Table Body Rows */
.benefits-table td {
  padding: 14px 6px;
  border-bottom: 1px solid #f3f4f6;
  text-align: center;
  vertical-align: middle;
  font-weight: 500;
}

.benefits-table td:first-child {
  text-align: left;
  padding-left: 12px;
  font-weight: 700;
  color: var(--primary-olive);
  font-size: 10.5px;
}

.benefits-table tr:hover {
  background-color: #fafbfc;
}

/* Highlight Active Card Tier Column */
.col-highlight {
  background-color: rgba(115, 138, 67, 0.03);
}

.benefits-table th.col-highlight {
  background-color: rgba(115, 138, 67, 0.04);
  border-bottom: 2px solid var(--primary-olive);
}

/* Checkmarks and Values */
.check-icon {
  color: var(--primary-olive);
  font-size: 12px;
  font-weight: bold;
}

.empty-cell {
  color: transparent;
}

/* Values Styles */
.perc-val {
  font-size: 11px;
  font-weight: 700;
  color: #222222;
}

/* Highlight for current status cell */
.col-highlight .perc-val {
  color: var(--primary-olive-dark);
}

/* ==========================================
   STICKY BOTTOM TAB NAVIGATION
   ========================================== */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 76px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom, 10px);
  z-index: 10;
}

.nav-tab {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  padding: 8px 0;
}

.nav-tab svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  margin-bottom: 4px;
  transition: var(--transition-smooth);
}

.nav-tab span {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

/* Active Nav State */
.nav-tab.active {
  color: var(--primary-olive);
}

.nav-tab.active svg {
  transform: translateY(-2px);
}

.nav-tab:hover {
  color: var(--primary-olive-light);
}

/* Generic Screen Placeholder */
.generic-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.generic-placeholder i {
  font-size: 40px;
  margin-bottom: 16px;
  color: var(--primary-olive-light);
}

.generic-placeholder h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.generic-placeholder p {
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.btn-back-home {
  background-color: var(--primary-olive);
  color: var(--bg-white);
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(115, 138, 67, 0.2);
  transition: var(--transition-smooth);
}

.btn-back-home:hover {
  background-color: var(--primary-olive-dark);
  transform: translateY(-1px);
}

/* ==========================================
   INSTALLATION GUIDE DRAWER
   ========================================== */
.guide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.guide-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.guide-drawer {
  width: 100%;
  max-height: 80%;
  background-color: var(--bg-white);
  border-radius: 28px 28px 0 0;
  padding: 30px 24px;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.1, 0.76, 0.55, 0.94);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
}

.guide-overlay.active .guide-drawer {
  transform: translateY(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 12px;
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.btn-close-drawer {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-close-drawer:hover {
  color: var(--text-dark);
}

.guide-step {
  margin-bottom: 18px;
}

.step-num {
  display: inline-block;
  background-color: var(--primary-olive-alpha);
  color: var(--primary-olive-dark);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  text-align: center;
  line-height: 22px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
}

.step-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-dark);
}

.step-desc {
  font-size: 11.5px;
  color: #555;
  margin-top: 6px;
  padding-left: 30px;
  line-height: 1.5;
}

.code-block {
  background-color: #f3f4f6;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 10.5px;
  color: #d11a2a;
  margin-top: 6px;
  word-break: break-all;
}

/* ==========================================
   BRANCHES DIRECTORY UI
   ========================================== */
.branches-header {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 20px;
}

.branches-page-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}

.search-bar-container {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  font-size: 11.5px;
  font-family: var(--font-body);
  background-color: #f9fafb;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-olive-light);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 4px var(--primary-olive-alpha);
}

.search-icon-wrapper {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.search-icon-wrapper svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.branches-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 120px;
}

.branch-card {
  background-color: var(--bg-white);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
  text-align: left;
}

.branch-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border-color: #e5e7eb;
}

.branch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 10px;
}

.branch-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.branch-status-badge {
  background-color: #ecfdf5;
  color: #059669;
  font-size: 8.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.branch-details-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.branch-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 10.5px;
  color: #555555;
  line-height: 1.4;
}

.branch-detail-item svg {
  width: 14px;
  height: 14px;
  fill: var(--primary-olive-light);
  flex-shrink: 0;
  margin-top: 1px;
}

.branch-actions {
  display: flex;
  gap: 10px;
}

.branch-btn {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.branch-btn-primary {
  background-color: var(--primary-olive);
  color: var(--bg-white);
  border: 1px solid var(--primary-olive);
  box-shadow: 0 4px 10px rgba(115, 138, 67, 0.15);
}

.branch-btn-primary:hover {
  background-color: var(--primary-olive-dark);
  border-color: var(--primary-olive-dark);
  transform: translateY(-1px);
}

.branch-btn-secondary {
  background-color: var(--bg-white);
  color: var(--primary-olive);
  border: 1px solid #e5e7eb;
}

.branch-btn-secondary:hover {
  border-color: var(--primary-olive-light);
  background-color: var(--primary-olive-alpha);
  transform: translateY(-1px);
}

.no-results {
  text-align: center;
  padding: 40px 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

/* ==========================================
   PROMOS & SERVICES SECTION (DESIGN REF 1)
   ========================================== */
.promos-services-header {
  position: sticky;
  top: 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid #ededed;
  z-index: 5;
  padding: 40px 0 10px 0;
}

.tab-btn-group {
  display: flex;
  justify-content: center;
  gap: 30px;
  width: 100%;
}

.promo-tab-btn {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-light-muted);
  cursor: pointer;
  padding: 6px 12px;
  position: relative;
  transition: var(--transition-smooth);
}

.promo-tab-btn.active {
  color: var(--primary-olive);
}

.promo-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-olive);
  border-radius: 2px 2px 0 0;
}

.promo-subheader {
  text-align: center;
  padding: 16px 16px 10px 16px;
  background-color: var(--bg-light);
}

.promo-subheader .valid-date {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-olive);
  margin-bottom: 4px;
}

.promo-subheader .promo-eval-text {
  font-size: 10px;
  color: #333333;
  line-height: 1.4;
  font-weight: 500;
}

.promo-subheader .permit-no {
  font-size: 7px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Two column layout grid */
.promos-grid-container {
  display: grid;
  grid-template-columns: 2.2fr 1fr; /* 68% and 32% */
  width: 100%;
  background-color: var(--bg-light);
  min-height: 480px;
  padding: 15px 12px 30px 12px;
}

.promos-list-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 8px;
  overflow-y: auto;
}

/* Hide scrollbars for the list */
.promos-list-column::-webkit-scrollbar {
  display: none;
}
.promos-list-column {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.promos-sidebar-column {
  display: flex;
  position: relative;
  padding-left: 8px;
}

.vertical-divider {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background-color: #d8dec9;
}

.sidebar-links-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 10px;
  width: 100%;
}

.sidebar-category-link {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  color: #7c7c80; /* Neutral grey */
  text-align: left;
  cursor: pointer;
  line-height: 1.3;
  transition: var(--transition-smooth);
  padding: 6px 4px 6px 12px;
  border-left: 2px solid transparent;
  margin-left: -1px; /* Align with the vertical divider */
  width: 100%;
  word-wrap: break-word;
}

.sidebar-category-link.active {
  color: var(--primary-olive);
  font-weight: 700;
  border-left: 3px solid var(--primary-olive);
  background-color: rgba(115, 138, 67, 0.04);
}

/* Promo Card Styling */
.promo-item-card {
  background-color: #f2f3f0; /* Warm olive-grey matching Design Reference 1 */
  border-radius: 14px;
  padding: 16px;
  border: none;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 90px;
}

.promo-item-card:hover {
  transform: translateY(-2px);
  background-color: #ebede7;
  box-shadow: 0 4px 10px rgba(115, 138, 67, 0.1);
}

.promo-card-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 6px;
}

.promo-card-title strong {
  color: var(--text-dark);
  font-weight: 700;
}

.promo-card-price {
  font-family: var(--font-display);
  font-size: 12.5px;
  /*abbie font-weight: 800; */
  color: var(--primary-olive);
  margin-top: 2px;
}

/* ==========================================
   MINIMALIST CUSTOM ALERT DIALOG
   ========================================== */
.custom-alert-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-alert-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.custom-alert-card {
  width: 80%;
  max-width: 320px;
  background: #ffffff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.05);
  transform: scale(0.9);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.custom-alert-overlay.active .custom-alert-card {
  transform: scale(1);
}

.custom-alert-body {
  font-family: var(--font-body);
  font-size: 13px;
  color: #2c2c2e;
  line-height: 1.55;
  text-align: left;
  white-space: pre-wrap; /* Crucial: preserves all original newlines perfectly! */
  margin-bottom: 20px;
}

.custom-alert-btn {
  width: 100%;
  background-color: var(--primary-olive);
  color: var(--bg-white);
  border: none;
  padding: 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(115, 138, 67, 0.15);
}

.custom-alert-btn:hover {
  background-color: var(--primary-olive-dark);
}

/* ==========================================
   ACCOUNT VIEW STYLING
   ========================================== */
.account-page-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  text-align: left;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  background-color: transparent;
  padding: 8px 0;
}

.avatar-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background-color: #e5e5ea;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-image svg {
  width: 80%;
  height: 80%;
}

.avatar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-edit-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary-olive);
  border: 1px solid var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  padding: 0;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-field {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.info-val {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
}

.info-val.email, .info-val.phone {
  font-size: 13.5px;
  color: var(--text-muted);
}

.edit-icon {
  width: 14px;
  height: 14px;
  fill: var(--primary-olive);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.info-field:hover .edit-icon {
  opacity: 1;
}

/* Dividers */
.account-divider {
  border: none;
  border-top: 1.5px solid #d1d5db;
  margin: 16px 0;
  width: 100%;
}

/* Menus & Lists */
.account-menu, .group-items, .settings-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.menu-item:hover {
  opacity: 0.8;
}

.menu-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-icon {
  width: 22px;
  height: 22px;
  fill: var(--text-dark);
}

.menu-label {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
}

.chevron-icon {
  width: 20px;
  height: 20px;
  fill: var(--primary-olive);
}

/* Groups */
.menu-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

.group-icon {
  fill: var(--text-dark);
}

.group-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  font-family: var(--font-display);
}

.menu-item.sub-item {
  padding-left: 34px;
}

/* Settings toggles styling */
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0 6px 34px;
}

.setting-label {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
}

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

.toggle-text {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.toggle-text.active-side {
  color: var(--text-dark);
  font-weight: 700;
}

/* Toggle Switch slide button */
.toggle-switch {
  width: 46px;
  height: 24px;
  background-color: #ffffff;
  border: 1px solid #738a43;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s;
}

.toggle-knob {
  width: 18px;
  height: 18px;
  background-color: #738a43;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
}

/* Toggle Active State */
.toggle-switch.toggled-active .toggle-knob {
  transform: translateX(22px);
}

.setting-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 0 14px 34px;
}

.danger-link {
  font-size: 15px;
  color: #c94f4f;
  font-weight: 500;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.2s;
}

.danger-link:hover {
  opacity: 0.8;
}


