/* ========================================
   IMPORTS & FONTS
   ======================================== */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* ========================================
   CSS VARIABLES & ROOT STYLES
   ======================================== */
:root {
  --green-dark: #354e41;
  --green-deep: #0b3a28;
  --green-medium: #5a7c5a;
  --cream: #faf3e0;
  --gray-dark: #2f2f2f;
  --green-light: #7b9e7c;
  --brown: #6e4b3a;
  --green-primary: #5a7c5a;
  --text-primary: #2f2f2f;
  --text-secondary: #6b7280;
  /* Dynamic layout vars set by JS */
  --header-height: 0px;
  --bottom-button-height: 0px;

  /* Spacing Scale */
  --space-0: 0rem; /* 0px */
  --space-1: 0.5rem; /* 8px */
  --space-2: 1rem; /* 16px */
  --space-3: 1.5rem; /* 24px */
  --space-4: 2rem; /* 32px */
  --space-5: 2.5rem; /* 40px */
  --space-6: 3rem; /* 48px */
  --space-8: 4rem; /* 64px */
  --space-10: 5rem; /* 80px */
  --space-12: 6rem; /* 96px */
  --space-16: 8rem; /* 128px */
  --space-20: 10rem; /* 160px */

  /* Sizing Scale */
  --size-1: 0.5rem; /* 8px */
  --size-2: 1rem; /* 16px */
  --size-3: 1.5rem; /* 24px */
  --size-4: 2rem; /* 32px */
  --size-5: 2.5rem; /* 40px */
  --size-6: 3rem; /* 48px */
  --size-8: 4rem; /* 64px */
  --size-10: 5rem; /* 80px */
  --size-12: 6rem; /* 96px */
  --size-16: 8rem; /* 128px */
  --size-20: 10rem; /* 160px */

  /* Border Radius Scale */
  --radius-1: 0.25rem; /* 4px */
  --radius-2: 0.5rem; /* 8px */
  --radius-3: 0.75rem; /* 12px */
  --radius-4: 1rem; /* 16px */
  --radius-6: 1.5rem; /* 24px */
  --radius-8: 2rem; /* 32px */
  --radius-12: 3rem; /* 48px */

  /* Font Size Scale */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --text-2xl: 1.5rem; /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem; /* 36px */
  --text-5xl: 3rem; /* 48px */
  --text-6xl: 3.75rem; /* 60px */
}

/* ========================================
   BASE STYLES & LAYOUT
   ======================================== */

/* Remove mobile tap highlights */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Allow text selection for inputs and text areas */
input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}

body {
  margin: 0;
  display: flex;
  justify-content: center;
  min-height: 100dvh;
  overflow-x: hidden;
}

.app-shell {
  /* Responsive until desktop breakpoint; constrain only on large screens */
  max-width: 100%;
  width: 100%;
  min-height: 100dvh;
  position: relative;
  overflow-x: visible;
  border: none;
  outline: none;
}

html,
body {
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  font-family: "Playfair Display", serif;
  background-color: transparent;
  color: var(--cream);
  overflow-x: visible;
}

/* ========================================
   LOGIN PAGE STYLES
   ======================================== */
#login {
  height: 100dvh;
  width: 100%;
  position: relative;
  font-family: "Playfair Display", serif;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  overflow: hidden;
}

#login .background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: url("/img/mshop-bg/background.jpg") center center/cover no-repeat;
  z-index: 1;
}

#login .background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1;
}

#login .content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100dvh;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

#login .login-page-header {
  width: 100%;
  margin-top: 14vh;
  margin-bottom: var(--space-2);
}

#login .login-page-header .page-header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 16px;
}

#login .login-page-logo {
  width: 48px;
  height: 48px;
  opacity: 1;
  display: block;
  margin-bottom: var(--space-2);
}

#login .login-page-header .page-title {
  color: #ffffff;
  margin: 0 0 var(--space-1) 0;
}

#login .login-page-header .page-subtitle {
  color: rgba(255, 255, 255, 0.85);
  opacity: 1;
}

#login .loginForm {
  width: 100%;
  position: absolute;
  bottom: 0;
  margin: 0;
  padding: 0;
  padding-bottom: 2rem;
}

#login .forms-container {
  width: 200%;
  display: flex;
  transition: transform 0.5s ease-in-out;
  position: absolute;
  bottom: 0;
  left: 0;
  padding-bottom: 0;
}

#login .form {
  margin: 0;
  padding: 0;
  width: 50%;
  flex-shrink: 0;
}

/* Login Form Labels */
#login label {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.7rem;
  margin-left: 2rem;
  font-weight: 400;
  text-align: left;
  letter-spacing: 0.01em;
  display: block;
  position: relative;
  z-index: 3;
}

/* Login Form Input Groups */
#login .input-group {
  width: 100%;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  box-sizing: border-box;
  min-height: 60px;
  font-size: 20px;
}

#login .input-group input {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

#login .country-select-wrapper {
  position: relative;
  margin-right: 0.3rem;
}

#login .country-trigger,
#login .country-trigger-text {
  font-size: 20px;
}

/* ========================================
   COUNTRY SELECTION TRIGGER & OPTION STYLES (Used in index.html)
   ======================================== */

.country-trigger {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  border: none;
  border-radius: var(--radius-2);
  padding-left: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 24px;
  color: #333;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 400;
}

.country-trigger:hover {
  background: rgba(0, 0, 0, 0.02);
}

.country-trigger-text {
  font-size: 1.5rem;
  font-weight: 400;
  color: #333;
  font-family: "Playfair Display", serif;
}

.country-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #f3f4f6;
  width: 100%;
  box-sizing: border-box;
}

.country-option:last-child {
  border-bottom: none;
}

.country-option:hover {
  background: #f9fafb;
}

.country-option.active {
  background: rgba(0, 0, 0, 0.01);
  color: #333;
}

.country-option-text {
  font-size: var(--text-sm);
  font-weight: 500;
  color: #333;
  flex: 1;
  margin-right: 8px;
}

.country-option-check {
  display: none;
}

/* ========================================
   ADD CARDS COUNTRY SELECTION DROPDOWN STYLES
   ======================================== */

.add-cards-country-select-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
}

.form-group:has(.add-cards-country-select-wrapper) {
  overflow: visible;
}

.add-cards-country-dropdown {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
}

.add-cards-country-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #333;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 400;
  width: 100%;
  box-sizing: border-box;
}

.add-cards-country-trigger:hover {
  background: #fff;
}

.add-cards-country-trigger:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(123, 158, 124, 0.1);
}

.add-cards-country-trigger svg {
  color: #6b7280;
  transition: transform 0.2s ease;
}

.add-cards-country-trigger.active svg {
  transform: rotate(180deg);
}

.add-cards-country-trigger-text {
  font-size: 1rem;
  font-weight: 400;
  color: #333;
  font-family: "Playfair Display", serif;
}

.add-cards-country-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: white;
  border: none;
  border-radius: var(--radius-2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 50;
  box-sizing: border-box;
  max-height: 300px;
  overflow-y: auto;
}

.add-cards-country-dropdown-menu.upward {
  top: auto;
  bottom: calc(100% + 4px);
  transform: translateY(8px);
}

.add-cards-country-dropdown-menu.upward.show {
  transform: translateY(0);
}

.add-cards-country-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.add-cards-country-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #f3f4f6;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
}

.add-cards-country-option:last-child {
  border-bottom: none;
}

.add-cards-country-option:hover {
  background: #f9fafb;
}

.add-cards-country-option.active {
  background: rgba(0, 0, 0, 0.01);
  color: #333;
}

.add-cards-country-option-text {
  font-size: 1rem;
  font-weight: 400;
  color: #333;
  font-family: "Playfair Display", serif;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 8px;
}

.add-cards-country-option-check {
  opacity: 0;
  color: #333;
  transition: opacity 0.15s ease;
}

.add-cards-country-option.active .add-cards-country-option-check {
  opacity: 1;
}

#login .country-code {
  background: transparent;
  border: none;
  color: transparent;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  padding: 0;
  text-align: left;
  font-size: 1.5rem;
  outline: none;
  cursor: pointer;
  width: 80px;
  appearance: none;
  -webkit-appearance: none;
}

#login .country-code:focus {
  color: var(--green-dark);
  width: auto;
  min-width: 200px;
}

#login .code-display {
  position: absolute;
  top: 50%;
  left: 0;
  color: var(--green-dark);
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  pointer-events: none;
  z-index: 1;
  padding-left: 1.4rem;
  transform: translateY(-50%);
}

#login .country-code:focus + .code-display {
  display: none;
}

/* Login Form Inputs */
#login input {
  flex: 1;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  background: #fff;
  color: #333;
  transition: all 0.3s ease;
  box-sizing: border-box;
  min-width: 0;
  outline: none;
}

#login input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

/* Password input specific styling to match mobile number input */
#login .password-form input {
  flex: 1;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  background: #fff;
  color: #333;
  transition: all 0.3s ease;
  box-sizing: border-box;
  min-width: 0;
  outline: none;
}

#login .password-form input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

/* Login Form Buttons */
#login button {
  width: 100%;
  padding: 1.5rem 1rem 1.8rem 1.5rem;
  background: var(--green-dark);
  color: #fff;
  border: none;
  font-size: 20px;
  font-family: "Playfair Display", serif;
  font-weight: 400;
}

#login button:hover {
  background: #4a5f52;
  color: #fff;
}

#login button:active {
  background: #3d4f44;
  color: #fff;
  transform: translateY(1px);
}

/* ========================================
   MAIN HEADER STYLES
   ======================================== */
#mainContent .header {
  width: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
  min-height: 60px;
  /* Ensure complete stability - no flickering */
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
  will-change: auto !important;
  /* Force display */
  display: flex !important;
  /* Prevent any CSS interference */
  position: relative !important;
  z-index: 10 !important;
}

/* Ensure logo and menu icon are stable */
#mainContent .header .logo-link,
#mainContent .header .menuIcon {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

#mainContent .logoLeft {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

#mainContent .logoLeft .logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

#mainContent .logoLeft .logo-link:hover {
  opacity: 0.8;
}

#mainContent .logoLeft .logo {
  height: 45px; /* Reduced from 60px */
  width: auto;
  display: block;
}

#mainContent .navRight {
  display: flex;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

#mainContent .menuIcon {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  color: #0b3a28;
}

#mainContent .menuIcon:hover {
  background-color: rgba(11, 58, 40, 0.05);
  transform: scale(1.05);
  color: var(--green-deep) !important;
}

#mainContent .menuIcon:active {
  transform: scale(0.95);
  color: var(--green-deep) !important;
}

#mainContent .menuIcon svg,
#mainContent .menuIcon i {
  width: 20px;
  height: 20px;
  color: var(--green-dark);
}

/* Allow loading state for menu icon */
#mainContent .menuIcon[style*="opacity: 0"] {
  opacity: 0 !important;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
   ======================================== */
@media (max-width: 600px) {
  #mainContent .header {
    min-height: 60px;
    padding: 0 1rem;
  }
  #mainContent .logoLeft .logo {
    height: 40px; /* Reduced from 50px */
  }
  #mainContent .menuIcon {
    padding: 0.4rem;
  }
  #mainContent .menuIcon svg,
  #mainContent .menuIcon i {
    width: 18px;
    height: 18px;
  }

  /* Allow loading state for menu icon on mobile */
  #mainContent .menuIcon[style*="opacity: 0"] {
    opacity: 0 !important;
  }
  #mainContent .content {
    padding: 1rem;
    font-size: 1.1rem;
  }

  /* Header back button mobile styles */
  .header-back-button {
    padding: 1rem;
  }

  /* Scanner page back button mobile styles */
  .scanner-page .back-button-container {
    padding: 0 1rem;
  }

  .scanner-page .back-button-label {
    padding: 1rem;
  }
}

/* ========================================
   DASHBOARD PAGE STYLES
   ======================================== */
#mainContent {
  min-height: 100dvh;
  width: 100%;
  position: relative;
  font-family: "Playfair Display", serif;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #ffffff;
}

#mainContent .content {
  box-sizing: border-box;
  overflow-wrap: break-word;
  color: #0b3a28;
  font-size: 1.5rem;
  z-index: 2;
  width: 100%;
  display: block;
  /* Fill viewport minus header; extend background under fixed bottom via padding */
  min-height: calc(100vh - var(--header-height, 80px));
  padding: 16px;
  padding-bottom: calc(
    16px + var(--bottom-button-height, 0px)
  ); /* leave space so content is not covered by fixed button */
  text-align: left;
  overflow-y: auto;
  overflow-x: visible;
}

/* Full-bleed override for scanner page */
#mainContent .content.scanner-page {
  padding: 0;
  padding-bottom: 0;
}

/* ========================================
   SCANNER PAGE STYLES
   ======================================== */
.scanner-page {
  position: relative;
}

.scanner-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--gray-dark);
  overflow: hidden;
}

#qrVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scan-frame {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vmin;
  height: 70vmin; /* perfect square */
  max-width: calc(100% - 3rem);
  max-height: calc(100% - 3rem);
  border: 2px solid var(--green-light);
  border-radius: 16px;
  /* Darken outside the square, keep inside clear */
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* Subtle scanning animation */
.scan-line {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--green-light),
    transparent
  );
  border-radius: 2px;
  animation: scanSweep 2.6s ease-in-out infinite;
}

@keyframes scanSweep {
  0% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(calc(70vmin - 16px));
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
}

.scanner-alert {
  position: absolute;
  bottom: 7rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(75% - 2rem);
  min-height: 24px;
  padding: 0.4rem 0.6rem;
  font-size: 0.95rem;
  color: var(--cream);
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  z-index: 3;
}
.scanner-alert.error {
  color: var(--cream);
}
.scanner-alert.info {
  color: var(--cream);
}

/* Dashboard Header */
#mainContent .dashboardheader {
  position: relative;
  width: calc(100% - 32px); /* Account for 16px margin on each side */
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("../img/mshop-bg/background.jpg") center center/cover
    no-repeat;
  color: #fff !important;
  font-size: 1.4em;
  font-family: "Playfair Display", serif;
  text-align: center;
  z-index: 1;
  margin: 0 16px 16px 16px; /* Standard 16px left/right padding + 16px bottom */
  border-radius: 12px; /* Rounded border */
  overflow: hidden;
  box-sizing: border-box;
}

#mainContent .dashboardheader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 21, 21, 0.5); /* increased darkness */
  z-index: 1;
}

#mainContent .dashboardheader * {
  position: relative;
  z-index: 2;
}

#mainContent .dashboardheader,
#mainContent .dashboardheader span {
  color: #fff !important;
}

#mainContent .dashboardheader span {
  color: #fff !important;
}

/* Greeting Container Styling */
.greeting-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.2;
}

.greeting-time {
  font-size: 1.1em; /* Smaller, more appropriate size */
  font-weight: 600; /* Medium weight, not too bold */
  margin-bottom: 0.2em;
  color: #fff !important;
}

.greeting-message {
  font-size: 1em; /* Slightly smaller for second line */
  font-weight: 400; /* Normal weight for second line */
  color: #fff !important;
  text-transform: lowercase;
}

/* ========================================
   BOTTOM BUTTON STYLES
   ======================================== */
.bottomButton {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.unlock-btn {
  width: 100vw;
  max-width: 100vw;
  border-radius: 0;
  margin: 0;
  border: none;
}

/* Main Content Buttons */
#mainContent button {
  width: 100%;
  padding: 1.5rem 1rem 1.8rem 1.5rem;
  background: var(--green-dark);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  font-family: "Playfair Display", serif;
  font-weight: 100;
  letter-spacing: 0.02em;
  box-shadow: none;
  display: block;
  transition: background 0.2s;
  cursor: pointer;
  margin: 0;
}

/* Primary bottom action (e.g., Create Account, Update Password) */
#mainContent #mainButton {
  font-size: 20px;
}

#mainContent button img {
  height: 1.5em;
  margin-bottom: -0.25em;
  margin-left: -0.4em;
  padding-right: 0.25em;
}

#mainContent button:hover {
  background: #4a5f52;
  color: #fff;
}

#mainContent button:active {
  background: #3d4f44;
  color: #fff;
  transform: translateY(1px);
}

/* ========================================
   ANIMATIONS & EFFECTS
   ======================================== */
#buttonHighlight {
  width: 0;
  height: 0;
  border-left: 32px solid transparent;
  border-right: 32px solid transparent;
  border-top: 40px solid var(--cream);
  margin: 0 auto;
  position: relative;
  top: 30px;
  animation: bounce 1.2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-18px);
  }
  60% {
    transform: translateY(-8px);
  }
}

/* Access page unlock fill animation */
@keyframes fillBackground {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 100%;
  }
}

/* When animating, slide a 2-color gradient down to fill with green */
#mainContent .content.animating {
  position: relative;
}

#mainContent .content.animating::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    var(--green-dark) 50%
  );
  background-size: 100% 200%;
  animation: fillBackground 2s ease forwards;
  z-index: 10;
  pointer-events: none;
}

/* Ensure unlock button stays above the animation overlay */
.bottomButton {
  z-index: 100 !important;
}

/* Loading dots used inside the main button */
.loading-dots {
  display: none;
  margin-left: 4px;
}
.loading-dots.active {
  display: inline-block !important;
}
.loading-dots span {
  opacity: 0;
  animation: loadingDots 1.4s infinite;
  animation-fill-mode: both;
}
.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes loadingDots {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* ========================================
   ACCESS PAGE STYLES
   ======================================== */
.accessStage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.locationTitle h1 {
  font-size: 2rem;
  font-weight: 100;
  padding-bottom: 0;
  margin-bottom: 0;
}

.locationTitle h3 {
  padding-top: 0;
  margin-top: 0;
  font-size: 1.2rem;
  font-weight: 100;
}

.locationImage img {
  height: 200px;
  width: 200px;
  border-radius: 50%;
  border: 4px solid var(--green-light);
  margin-top: 3rem;
  padding: 3px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Location Image Skeleton Loader */
.location-image-skeleton {
  height: 200px;
  width: 200px;
  border-radius: 50%;
  border: 4px solid var(--green-light);
  padding: 3px;
  margin-top: 3rem;
  margin-left: auto;
  margin-right: auto;
  background: var(--cream);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.location-image-skeleton::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.accessStageColored {
  background: var(--green-dark);
  color: #fff;
}

.accessStageColored * {
  color: #fff;
}

.accessStageColored .bottomButton button:hover {
  background: #4a5f52;
  color: #fff;
}

.accessStageColored .bottomButton button:active {
  background: #3d4f44;
  color: #fff;
  transform: translateY(1px);
}

/* ========================================
   ONGOING STATUS STYLES
   ======================================== */
.ongoingStatuses img {
  margin-top: 10vh;
  width: 100px;
  margin-bottom: 0px;
}

.ongoingStatuses h3 {
  font-size: 2rem;
  font-weight: 1;
  font-family: "Playfair Display", serif;
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.ongoingStatuses h4 {
  font-size: 1.4rem;
  font-weight: 1;
  margin-top: 0;
  padding-top: 0;
}

/* ========================================
   ONGOING STAGE STYLES
   ======================================== */
.ongoingStage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
}

.ongoingTitle h1 {
  font-size: 2rem;
  font-weight: 100;
  padding-bottom: 0;
  margin-bottom: 0;
  color: var(--green-dark);
}

.ongoingTitle h3 {
  padding-top: 0;
  margin-top: 0;
  font-size: 1.2rem;
  font-weight: 100;
  color: var(--gray-dark);
}

.ongoingTitle h4 {
  padding-top: 0;
  margin-top: 0;
  font-size: 1rem;
  font-weight: 100;
  color: var(--gray-dark);
  opacity: 0.8;
}

/* ========================================
   DASHBOARD NAVIGATION GRID
   ======================================== */
#mainContent .dashboardnavgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem; /* 8px following 8-point grid */
  justify-items: center;
  align-items: start;
  margin-top: 0px;
  padding-bottom: 2rem; /* 32px following 8-point grid */
  padding-top: 2rem; /* 32px following 8-point grid */
  padding-left: 0.5rem; /* 8px following 8-point grid */
  margin-bottom: 1rem; /* 16px following 8-point grid */
}

#mainContent .dashboardnavbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0.5rem 0.25rem 0.25rem 0.25rem; /* 8px, 4px, 4px, 4px following 8-point grid */
  cursor: pointer;
  transition: color 0.18s;
  font-family: "Playfair Display", serif;
  font-size: 1.1em;
  color: var(--green-dark);
  min-width: 0;
  width: 100%;
  max-width: 120px;
}

#mainContent .dashboardnavbtn:hover {
  color: #4a5f52;
  background: transparent;
  border-radius: var(--radius-2);
}

#mainContent .dashboardnavbtn:active {
  color: #3d4f44;
  background: transparent;
  transform: translateY(1px);
}

#mainContent .dashboardnavicon {
  width: 32px; /* 4 × 8px = 32px following 8-point grid */
  height: 32px; /* 4 × 8px = 32px following 8-point grid */
  margin-bottom: 0.5rem; /* 8px following 8-point grid */
  display: block;
  stroke-width: 1.5; /* Reduce thickness from default 2 to 1.5 */
}

#mainContent .dashboardnavbtn span {
  font-size: 1.08em;
  font-weight: 500;
  text-align: center;
  margin-top: 0.1em;
  letter-spacing: 0.01em;
}

/* ========================================
   HIGHLIGHTS TAB STYLES
   ======================================== */
#mainContent .highlightstab {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  white-space: nowrap;
  gap: 1.5rem; /* 24px following 8-point grid */
  padding: 0.5rem 1rem 0.25rem 1rem; /* 8px, 16px, 4px, 16px following 8-point grid */
  background: none;
  margin-bottom: 1.5rem; /* 24px following 8-point grid */
  scrollbar-width: none; /* Firefox */
}

#mainContent .highlightstab::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

#mainContent .highlightstab .tabitem {
  display: inline-block;
  font-family: "Playfair Display", serif;
  font-size: 1.1em;
  color: var(--green-dark);
  background: none;
  border: none;
  outline: none;
  padding-top: 0.25rem; /* 4px following 8-point grid */
  padding-right: 0.5rem; /* 8px following 8-point grid */
  padding-bottom: 0.5rem; /* 8px following 8-point grid */
  padding-left: 0.5rem; /* 8px following 8-point grid */
  margin: 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition:
    color 0.18s,
    border-bottom 0.18s;
  min-width: 120px;
  text-align: center;
}

#mainContent .highlightstab .tabitem.active {
  color: var(--green-deep);
  border-bottom: 2.5px solid var(--green-deep);
  font-weight: 600;
}

/* ========================================
   ADS GRID STYLES
   ======================================== */
.adsgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem; /* 16px following 8-point grid */
  padding-left: 1rem; /* 16px following 8-point grid */
  padding-right: 1rem; /* 16px following 8-point grid */
  justify-items: center; /* Center items in grid cells */
  position: relative;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  max-width: 100%;
  overflow: hidden;
}

.adsgrid img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 200px; /* 25 × 8px = 200px following 8-point grid */
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-sizing: border-box;
}

.adsgrid.is-fading {
  opacity: 0.3;
  pointer-events: none;
}

/* ========================================
   CONTENTFUL CONTENT STYLES
   ======================================== */
.content-section {
  padding: 1rem;
  min-height: 200px;
}

.content-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.card-content {
  padding: 1rem;
}

.card-content h3 {
  margin: 0 0 0.5rem 0;
  color: var(--green-dark);
  font-size: 1.1rem;
  font-weight: 600;
}

.card-content p {
  margin: 0 0 0.5rem 0;
  color: var(--gray-dark);
  font-size: 0.9rem;
  line-height: 1.4;
}

.price {
  color: var(--green-dark);
  font-weight: 600;
  font-size: 1rem;
}

.card-link {
  display: inline-block;
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  background: var(--cream);
  border-radius: 6px;
  transition: background 0.2s ease;
}

.card-link:hover {
  background: var(--green-light);
  color: var(--green-deep);
}

.card-categories {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--green-light);
  font-weight: 500;
}

.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: #f5f5f5;
  color: #999;
  font-size: 0.9rem;
  font-style: italic;
}

.no-content {
  text-align: center;
  color: var(--gray-dark);
  font-style: italic;
  padding: 2rem;
}

.fallback-content {
  text-align: center;
  color: var(--gray-dark);
  padding: 2rem;
}

.fallback-content p {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.fallback-content small {
  color: #666;
  font-size: 0.8rem;
}

/* ========================================
   TAB SWITCHING FUNCTIONALITY
   ======================================== */
.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

/* ========================================
   SIGNUP FORM STYLES - Use same as card-form-container
   ======================================== */

/* Signup Form Container - exact same styles as card-form-container */
.signup-form-container {
  max-width: none;
  margin: 0;
  padding: 24px 16px; /* Same as card-form-container */
}

.signup-form {
  background: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.signup-form h2 {
  color: var(--green-dark);
  font-size: 2rem;
  font-weight: 700;
  text-align: left;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  color: var(--gray-dark);
  text-align: left;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
  width: 100%;
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  background: #fff;
  color: var(--green-dark);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(123, 158, 124, 0.1);
}

/* Password input container with toggle button */
.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
  background: none !important; /* Ensure no background on container */
  background-color: transparent !important;
  background-image: none !important;
}

.password-input-container input {
  padding-right: 40px; /* Make space for the toggle button */
  background: white !important; /* Ensure white background */
}

/* Specific override for password input to remove any background */
#password {
  background: white !important;
  background-color: white !important;
  color: var(--green-dark) !important;
}

/* More specific override for signup form password input */
.signup-form #password,
.signup-form-container #password,
.form-group #password {
  background: white !important;
  background-color: white !important;
  background-image: none !important;
  color: var(--green-dark) !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* Override any background on form group containing password */
.form-group:has(#password) {
  background: none !important;
  background-color: transparent !important;
}

/* Override any background on password input container and its parents */
.password-input-container,
.password-input-container *,
.form-group:has(.password-input-container) {
  background: none !important;
  background-color: transparent !important;
}

.password-toggle-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
  font-size: 16px;
}

.password-toggle-icon i {
  width: 20px;
  height: 20px;
}

/* Override for card details container to match billing address focus */
.card-details-container .form-group input:focus,
.card-details-container .form-group select:focus {
  border-color: var(--green-light) !important;
  box-shadow: 0 0 0 3px rgba(123, 158, 124, 0.1) !important;
}

.checkbox-group {
  margin-top: var(--space-2);
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.checkbox-container input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 2px solid #e0e0e0;
  background: #fff;
  box-shadow: none;
  flex-shrink: 0;
  margin-top: 0.1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked {
  background-color: var(--green-dark);
  border-color: var(--green-dark);
}

.checkbox-container input[type="checkbox"]:focus {
  outline: 2px solid var(--green-light);
  outline-offset: 2px;
  border-radius: 4px;
}

.checkbox-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--gray-dark);
  font-weight: 300;
  text-align: left;
  flex: 1;
}

.field-error {
  color: #dc2626;
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
  font-weight: 500;
}

.terms-link {
  color: var(--green-dark);
  text-decoration: underline;
  font-weight: 600;
}

.terms-link:hover {
  color: var(--green-deep);
}

/* Mobile display container styles */
.mobile-display-container {
  position: relative;
  width: 100%;
}

.mobile-display-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f5f5f5;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  pointer-events: none;
  z-index: 1;
}

.mobile-display-overlay span {
  color: var(--green-dark);
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 500;
}

.label-with-change {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.label-with-change label {
  margin-bottom: 0;
}

.change-mobile-link {
  color: var(--green-dark);
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: normal;
}

.change-mobile-link:hover {
  color: var(--green-deep);
}

/* Mobile responsiveness for signup form */
@media (max-width: 600px) {
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group input[type="password"] {
    padding: 16px;
    font-size: 0.95rem;
  }

  .mobile-display-overlay {
    padding: 0 0.875rem;
  }

  .mobile-display-overlay span {
    font-size: 0.95rem;
  }
}

/* ========================================
   MODAL SYSTEM
   ======================================== */

/* Modal Backdrop */
.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 150;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop.closing {
  opacity: 0;
  visibility: hidden;
}

/* Modal Container */
.modal-container {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}

/* Modal Backdrop */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.show {
  opacity: 1;
}

.modal-backdrop.closing {
  opacity: 0;
}

/* Modal Content */
.modal-content {
  background: #ffffff;
  border-radius: 12px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  max-width: 90vw;
  width: 100%;
  max-width: 24rem;
  pointer-events: auto;
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 170;
  visibility: hidden;
}

.modal-content.show {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Smooth closing animation for modals */
.modal-content.closing {
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  visibility: hidden;
}

/* Modal Header */
.modal-header {
  padding: 1.5rem 1.5rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--green-dark);
  text-align: center;
  width: 100%;
  font-family: "Playfair Display", serif;
}

.modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background-color: #f3f4f6;
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
  color: #6b7280;
}

/* Modal Body */
.modal-body {
  padding: 0.75rem 1.5rem;
  overflow: auto;
}

.modal-body p {
  margin: 0;
  padding-top: 1rem; /* Add top padding to separate from header */
  color: #6b7280;
  line-height: 1.6;
  text-align: center;
  font-family: "Playfair Display", serif;
}

/* Modal Footer */
.modal-footer {
  padding: 0.75rem 0rem 0rem;
}

/* Drawer */
.drawer-container {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.drawer-container.show {
  display: flex;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-container.show .drawer-backdrop {
  opacity: 1;
}

.drawer-content {
  background: white;
  border-radius: 0;
  box-shadow:
    0 -20px 25px -5px rgba(0, 0, 0, 0.1),
    0 -10px 10px -5px rgba(0, 0, 0, 0.04);
  border: none;
  width: 100%;
  height: 100dvh;
  pointer-events: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 170;
  overflow: hidden;
}

.drawer-container.show .drawer-content {
  transform: translateY(0);
}

.drawer-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
}

.drawer-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--green-dark);
}

.drawer-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-close-btn:hover {
  background-color: #f3f4f6;
}

.drawer-close-btn svg {
  width: 20px;
  height: 20px;
  color: #6b7280;
}

.drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  height: calc(100vh - 60px); /* Reduced height to allow more content space */
  padding-bottom: 4rem; /* Extra bottom padding to ensure category is visible */
  box-sizing: border-box; /* Ensure padding is included in height calculation */
}

/* Mobile Button Layout */
.modal-buttons-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.modal-buttons-mobile .modal-btn {
  width: 100%;
  justify-content: center;
}

/* Modal Buttons */
.modal-btn {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 2.75rem;
  display: flex;
  font-family: "Playfair Display", serif;
}

/* ========================================
   SCROLL AREA STYLES
   ======================================== */
.scroll-area {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.scroll-area-viewport {
  width: 100%;
  height: 100%;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll-area-viewport::-webkit-scrollbar {
  display: none;
}

/* Scrollbar completely hidden */
.scroll-area-scrollbar,
.scroll-area-thumb {
  display: none !important;
}

/* ========================================
   CONTENT PREVIEW MODAL STYLES
   ======================================== */
.loading-content {
  text-align: center;
  padding: 2rem;
  color: var(--gray-dark);
  font-size: var(--text-base);
}

.content-title {
  color: var(--green-dark);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: "Playfair Display", serif;
}

.content-description {
  color: var(--gray-dark);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.content-rich-text {
  color: var(--gray-dark);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.content-rich-text h1,
.content-rich-text h2,
.content-rich-text h3 {
  color: var(--green-dark);
  font-family: "Playfair Display", serif;
  margin-bottom: 0.5rem;
}

.content-rich-text p {
  margin-bottom: 1rem;
}

.content-rich-text strong {
  font-weight: 600;
}

.content-rich-text em {
  font-style: italic;
}

.content-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.content-image-container {
  margin: -1.5rem -1.5rem 0 -1.5rem; /* Break out of drawer body padding */
  padding: 0;
  overflow: hidden;
}

.content-main-image {
  width: 100%;
  height: auto;
  padding: 0;
  border-radius: 0;
  border: none;
  display: block;
}

.content-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius-2);
  border: 1px solid #e5e7eb;
}

.content-category {
  color: var(--gray-dark);
  font-size: var(--text-sm);
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  border-radius: var(--radius-2);
  display: inline-block;
}

.content-fallback,
.content-not-found,
.content-error {
  text-align: center;
  padding: 2rem;
  color: var(--gray-dark);
}

.content-fallback h3,
.content-not-found h3,
.content-error h3 {
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.modal-btn-primary {
  background-color: #364e41;
  color: white;
}

.modal-btn-primary:hover {
  background-color: #4a5f52;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 95, 82, 0.3);
}

.modal-btn-primary:active {
  background-color: #3d4f44;
  color: #fff;
  transform: translateY(0);
}

.modal-btn-secondary {
  background-color: #f9fafb;
  color: #374151;
  border: 1px solid #d1d5db;
}

.modal-btn-secondary:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
  transform: translateY(-1px);
}

.modal-btn-secondary:active {
  background-color: #e9ecef;
  transform: translateY(0);
}

/* OTP Modal Specific Styles */
.otp-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}

.otp-modal-content {
  background: #ffffff;
  border-radius: 12px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  max-width: 90vw;
  width: 100%;
  max-width: 24rem;
  pointer-events: auto;
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 170;
  visibility: hidden;
}

.otp-modal-content.show {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

.otp-modal-content p {
  margin: 0 0 1.5rem 0;
  color: #6b7280;
  line-height: 1.6;
  text-align: center;
}

.otp-inputs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.otp-input {
  width: 3rem;
  border: none;
  border-bottom: 2px solid #d1d5db;
  background: transparent;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  font-family: "Playfair Display", serif;
  color: var(--gray-dark);
  transition: all 0.2s ease;
}

.otp-input:focus {
  outline: none;
  border-bottom-color: var(--green-dark);
  color: var(--green-dark);
}

.otp-input:valid {
  border-bottom-color: var(--green-dark);
}

#verifyOtpBtn {
  background-color: #364e41;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 1rem;
}

#verifyOtpBtn:hover {
  background-color: #2d4035;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(54, 78, 65, 0.3);
}

#verifyOtpBtn:active {
  transform: translateY(0);
}

/* Legacy Modal Support (keeping for backward compatibility) */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #ffffff;
  padding: 24px 20px;
  border-radius: 12px;
  text-align: center;
  min-width: 280px;
  max-width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin: 0 20px;
}

.modal-content h3 {
  color: var(--green-dark);
  margin-bottom: 16px;
  font-size: 1.2rem;
  font-weight: 600;
}

.modal-content p {
  color: #6b7280;
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.4;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  min-width: 80px;
}

.modal-btn-primary {
  background-color: #364e41;
  color: white;
}

.modal-btn-primary:hover {
  background-color: #4a5f52;
  color: #fff;
}

.modal-btn-primary:active {
  background-color: #3d4f44;
  color: #fff;
  transform: translateY(1px);
}

.modal-btn-secondary {
  background-color: #f5f5f5;
  color: #374151;
  border: 1px solid #e0e0e0;
}

.modal-btn-secondary:hover {
  background-color: #e8e8e8;
  transform: translateY(-1px);
}

.modal-btn-secondary:active {
  background-color: #d0d0d0;
  transform: translateY(0);
}

/* Verified icon styling for OTP success button */
.verified-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #d1fae5;
  color: #059669;
  margin-right: 8px;
  flex-shrink: 0;
}

/* OTP Verification Success Button - specific styling */
.modal-btn-otp-success {
  background-color: #d1fae5 !important;
  color: #059669 !important;
  border: 1px solid #059669 !important;
}

.modal-btn-otp-success:hover {
  background-color: #a7f3d0 !important;
  color: #047857 !important;
  border-color: #047857 !important;
}

.modal-btn-otp-success:active {
  background-color: #86efac !important;
  color: #065f46 !important;
  border-color: #065f46 !important;
}

/* ========================================
   CARDS & WALLETS PAGE STYLES
   - Modern card-based layout
   - Sleek payment method cards
   - Detailed card information modal
   ======================================== */

/* Page Header */
.page-header {
  background: transparent;
  margin-bottom: var(--space-1);
  padding: 0 0px;
}

.page-header-content {
  text-align: left;
}

.page-title {
  color: var(--green-dark);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 0 0 var(--space-1) 0;
  font-family: "Playfair Display", serif;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin: 0;
  font-weight: 400;
  opacity: 0.8;
}

/* Cards & Wallets Container */
.cards-wallets-container {
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius-2);
  overflow: hidden;
  padding-top: var(--space-2);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-2);
}

/* Payment Card Styles */
.payment-card {
  background: white;
  border-radius: 0;
  padding: var(--space-2) var(--space-1);
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}

/* First and last cards get border radius for container effect */
.payment-card:first-child {
  border-top-left-radius: var(--radius-2);
  border-top-right-radius: var(--radius-2);
}

.payment-card:last-child {
  border-bottom-left-radius: var(--radius-2);
  border-bottom-right-radius: var(--radius-2);
}

.payment-card:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.02);
}

/* Card Separator */
.card-separator {
  height: 1px;
  background: #e5e7eb;
  margin: 0;
  flex-shrink: 0;
}

.payment-card::before {
  display: none;
}

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: var(--space-3);
  gap: var(--space-3);
}

.card-icon {
  width: var(--size-5);
  height: var(--size-5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-base);
  flex-shrink: 0;
}

.gcash-icon {
  background: transparent;
}

.maya-icon {
  background: transparent;
}

.card-type {
  font-size: var(--text-xs);
  color: #065f46;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

/* Card Body */
.card-body {
  margin-bottom: var(--space-3);
}

.card-content-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.card-content-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.card-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--green-dark);
  margin: 0 0 var(--space-1) 0;
}

.card-bank-info {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-1);
}

.bank-name {
  color: var(--gray-dark);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Card Footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-1);
}

.card-status {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-status.active {
  color: #065f46;
}

.bank-name {
  color: var(--gray-dark);
  font-size: 0.875rem;
  font-weight: 500;
}

.card-status.default {
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Add Card */
.add-card {
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--size-4);
  padding: 8px 8px;
}

.add-card:hover {
  border: none;
  background: none;
}

.add-card-content {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-content: flex-start;
  width: 100%;
}

.add-icon-small {
  width: var(--size-3);
  height: var(--size-3);
  border-radius: 0;
  background: none;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.add-card-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--green-dark);
  margin: 0;
}

.add-card-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

/* Card Details Modal */
.card-details-modal {
  max-width: 600px;
  width: 90vw;
}

.modal-back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.modal-back-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

/* Card Details Content */
.card-details-content {
  padding: 1rem 0;
}

/* Set Default Modal Styles */
.set-default-content {
  text-align: center;
  padding: 1rem 0;
}

.set-default-content .modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
}

.set-default-content h4 {
  color: var(--green-dark);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.set-default-content p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}

.detail-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.detail-card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.detail-card-info {
  flex: 1;
}

.detail-card-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.25rem 0;
  font-family: "Playfair Display", serif;
}

.detail-card-type {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-card-status {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-card-status.active {
  color: #059669;
}

/* Detail Sections */
.detail-section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.balance-display {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
}

.balance-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-dark);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.detail-value {
  font-size: 0.875rem;
  color: #111827;
  font-weight: 500;
  font-family: "Courier New", monospace;
}

/* Activity Item */
.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
}

.activity-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--green-medium);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.activity-amount {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

.activity-date {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Linked Account */
.linked-account {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
}

.bank-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #3b82f6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bank-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
}

/* Add Payment Modal */
.add-payment-modal {
  max-width: 28rem !important;
  width: 90vw;
}

.add-payment-modal .modal-header h3 {
  color: var(--green-dark) !important;
}

/* Amount Input Modal Styles */
.amount-input-section {
  padding: var(--space-4);
}

.amount-input-section label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--green-dark);
  margin-bottom: var(--space-2);
}

.amount-input {
  width: 100%;
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  background: #fff;
  color: var(--green-dark);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.amount-input:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(123, 158, 124, 0.1);
}

.amount-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.peso-symbol {
  position: absolute;
  left: 16px;
  top: 35%;
  transform: translateY(-50%);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 1rem;
  z-index: 1;
  pointer-events: none;
  line-height: 1.5;
  font-family: "Playfair Display", serif;
}

.amount-input-wrapper .amount-input {
  padding-left: 40px;
  text-align: left;
  line-height: 1.5;
}

/* Amount Input Error State */
.amount-input.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.amount-input.error:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.amount-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.preset-btn {
  padding: var(--space-3);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  background: white;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--green-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  border-color: var(--green-primary);
  background: var(--green-light);
}

.preset-btn:active {
  transform: scale(0.98);
}

.amount-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.amount-actions .modal-btn {
  flex: 1;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.amount-actions .modal-btn-secondary {
  background: var(--gray-light);
  color: var(--green-dark);
}

.amount-actions .modal-btn-secondary:hover {
  background: var(--gray-medium);
}

.amount-actions .modal-btn-primary {
  background: var(--green-primary);
  color: white;
}

.amount-actions .modal-btn-primary:hover {
  background: var(--green-deep);
}

/* Amount Drawer Styles */
.amount-drawer-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  opacity: 1;
  visibility: visible;
  transition: none;
}

.amount-drawer-container.show {
  opacity: 1;
  visibility: visible;
}

.amount-drawer-container .drawer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.amount-drawer-container.show .drawer-backdrop {
  opacity: 1;
}

.amount-drawer-content {
  background: white;
  border-radius: 16px 16px 0 0;
  padding: 0px;
  width: 100%;
  max-width: 100%;
  transform: translate3d(0, 100%, 0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  will-change: transform;
  -webkit-transform: translate3d(0, 100%, 0);
  -webkit-transition: -webkit-transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.amount-drawer-container.show .amount-drawer-content {
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

.amount-continue-btn {
  width: 100%;
  padding: 16px;
  background: var(--green-dark);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: "Playfair Display", serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 16px;
}

.amount-continue-btn:hover {
  background: var(--green-deep);
}

.amount-continue-btn:active {
  transform: scale(0.98);
}

.amount-continue-btn .btn-spinner {
  margin-right: 0.25rem;
}

.add-payment-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-2) 0;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.18s ease;
  background: white;
  position: relative;
  overflow: hidden;
  justify-content: flex-start;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
  text-align: left;
  will-change: transform;
  --hover-transform: translateY(-1px);
  --active-transform: translateY(1px);
}

.payment-option:nth-child(1) {
  animation-delay: 0.1s;
  border-radius: var(--radius-2);
}
.payment-option:nth-child(2) {
  animation-delay: 0.2s;
  border-radius: var(--radius-2);
}
.payment-option:nth-child(3) {
  animation-delay: 0.3s;
  border-radius: var(--radius-2);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure hover effects work after animation completes */
.payment-option.animated {
  animation: none;
  opacity: 1;
  transform: translateY(0) !important;
}

/* Hover and active states for payment options */
.payment-option:hover {
  transform: var(--hover-transform) !important;
  background: rgba(0, 0, 0, 0.02);
}

.payment-option:active {
  transform: var(--active-transform) !important;
  transition: transform 0.1s ease;
}

/* Force hover effects to work by using higher specificity */
.payment-option:hover,
.payment-option.animated:hover {
  transform: var(--hover-transform) !important;
  background: rgba(0, 0, 0, 0.02);
}

.payment-option:active,
.payment-option.animated:active {
  transform: var(--active-transform) !important;
  transition: transform 0.1s ease;
}

.option-icon {
  width: var(--size-5);
  height: var(--size-5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-base);
  flex-shrink: 0;
}

.option-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.gcash-icon {
  background: transparent;
}

.maya-icon {
  background: transparent;
}

.cards-icon {
  color: var(
    --green-dark
  ) !important; /* Override white color for Lucide icon */
}

.option-details {
  flex: 1;
  z-index: 2;
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.option-details h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--green-dark);
  margin: 0 0 0.25rem 0;
  text-align: left;
  width: 100%;
}

.option-details p {
  font-size: var(--text-sm);
  color: #6b7280;
  margin: 0;
  text-align: left;
  width: 100%;
}

/* Option arrow styles removed as they're no longer used */

/* Payment option separators removed since we're using gaps */

/* Remove old add-payment-btn styles as they're no longer used */

/* ========================================
   ADD E-WALLET & ADD CARDS PAGES
   ======================================== */

/* Form Container Styles */
.ewallet-form-container,
.card-form-container {
  max-width: none;
  margin: 0;
  padding: 24px 16px;
}

/* Icon Container */
.ewallet-icon-container {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-6);
}

/* Modal-specific icon styles - more specific to avoid affecting main cards */
.ewallet-form-container .ewallet-icon,
.card-form-container .card-icon {
  width: var(--size-16);
  height: var(--size-16);
  border-radius: var(--radius-6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.ewallet-form-container .ewallet-icon.gcash-icon {
  background: transparent;
}

.ewallet-form-container .ewallet-icon.maya-icon {
  background: transparent;
}

.card-form-container .card-icon.cards-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ewallet-form-container .ewallet-icon svg,
.card-form-container .card-icon svg {
  width: var(--size-8);
  height: var(--size-8);
}

/* Form Styles */
.ewallet-form,
.card-form {
  background: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* Form Row for Card Form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3); /* Back to 24px */
  margin-bottom: var(--space-4); /* Back to 32px */
}

/* Specific spacing adjustments for targeted inputs */
.expiry-row {
  margin-bottom: var(--space-2); /* Reduce gap before "Name on card" input */
}

.state-zip-row {
  margin-bottom: var(--space-2); /* Reduce gap before "Select country" input */
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }

  /* Mobile-specific form improvements */
  .form-group input,
  .form-group select {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .form-group label {
    font-size: var(--text-sm);
    margin-bottom: var(--space-1);
  }
}

/* Select Input Styles - Updated to match app's dropdown design */
.form-group select {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-2);
  font-family: "Playfair Display", serif;
  font-size: var(--text-sm);
  font-weight: 500;
  background: white;
  color: var(--green-dark);
  transition: all 0.2s ease;
  box-sizing: border-box;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right var(--space-2) center;
  background-size: 16px;
  padding-right: calc(var(--space-3) + 20px);
}

.form-group select:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(123, 158, 124, 0.1);
  background-color: #f9fafb;
}

.form-group select:hover {
  border-color: var(--green-light);
  background-color: #f9fafb;
}

/* Form Actions */
.form-actions {
  margin-top: var(--space-3);
  display: flex;
  justify-content: center;
}

/* Add Button Styles - Copying delete button design */
.add-ewallet-btn,
.form-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-2);
  background: white;
  border-top: 1px solid #e5e7eb;
  z-index: 100;
}

.add-card-btn {
  padding: 12px 24px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  min-height: 2.75rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--space-2) !important;
  width: 100% !important;
  background-color: var(--green-dark) !important;
  color: white !important;
  font-family: "Playfair Display", serif !important;
  min-width: 80px !important;
}

.add-card-btn i {
  width: 20px;
  height: 20px;
}

.add-card-btn {
  position: relative !important;
  z-index: 100 !important;
}

.add-ewallet-btn:hover,
.add-card-btn:hover {
  background-color: var(--green-deep) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(53, 78, 65, 0.3) !important;
}

.add-ewallet-btn:active,
.add-card-btn:active {
  background-color: var(--green-deep) !important;
  color: #fff !important;
  transform: translateY(1px) !important;
}

/* SVG styles removed since buttons no longer have icons */

/* Danger Button */
.modal-btn-danger {
  background-color: #dc2626 !important;
  color: white !important;
  border: 1px solid #dc2626 !important;
}

.modal-btn-danger:hover {
  background-color: #b91c1c !important;
  border-color: #b91c1c !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .add-payment-modal {
    max-width: 95vw !important;
    margin: var(--space-2);
  }

  .add-payment-options {
    gap: var(--space-1);
    padding: var(--space-1) 0;
  }

  .payment-option {
    padding: var(--space-2) var(--space-1);
    gap: var(--space-2);
    text-align: left;
  }

  .option-icon {
    width: var(--size-5);
    height: var(--size-5);
  }

  .option-details h4 {
    font-size: var(--text-base);
    text-align: left;
  }

  .option-details p {
    font-size: var(--text-sm);
    text-align: left;
  }

  /* Mobile responsiveness for add e-wallet and cards pages */
  .ewallet-form-container,
  .card-form-container {
    padding: 16px;
  }

  .ewallet-form,
  .card-form {
    padding: 0;
  }

  .ewallet-form-container .ewallet-icon,
  .card-form-container .card-icon {
    width: var(--size-12);
    height: var(--size-12);
  }

  .ewallet-form-container .ewallet-icon svg,
  .card-form-container .card-icon svg {
    width: var(--size-6);
    height: var(--size-6);
  }

  .cards-wallets-container {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    padding: 0;
  }

  .payment-card {
    padding: var(--space-3);
  }

  .add-card {
    padding: 8px 1rem;
  }

  .card-details-modal {
    width: 95vw;
    margin: var(--space-2);
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   CARD DETAILS PAGE STYLES
   ======================================== */
.back-button-container {
  margin-bottom: var(--space-2);
}

.back-button-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: none;
  color: var(--green-dark);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-2);
  transition: all 0.2s ease;
  text-decoration: none;
}

.back-button-label:hover {
  background: rgba(74, 95, 82, 0.05);
}

.back-arrow {
  display: none !important;
}

.back-arrow-icon {
  color: var(--green-dark);
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-top: 4px;
}

/* Header back button - replaces logo in all pages except dashboard */
.header-back-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: none;
  border: none;
  color: var(--green-dark);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-2);
  transition: all 0.2s ease;
  text-decoration: none;
}

.header-back-button:hover {
  background: rgba(74, 95, 82, 0.05);
}

.header-back-button .back-arrow {
  display: none !important;
}

.header-back-button .back-arrow-icon {
  color: var(--green-dark);
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-top: 4px;
}

/* Scanner page back button - transparent with white text */
.scanner-page .back-button-container {
  margin-bottom: var(--space-2);
  padding: 0 16px;
}

.scanner-page .back-button-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: none;
  color: var(--cream);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  padding: 16px;
  border-radius: 0;
  transition: all 0.2s ease;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.scanner-page .back-button-label:hover {
  background: none;
}

.scanner-page .back-button-label:focus {
  background: none;
  outline: none;
}

.scanner-page .back-button-label:active {
  background: none;
}

.scanner-page .back-arrow {
  display: none !important;
}

.scanner-page .back-arrow-icon {
  color: var(--cream);
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-top: 4px;
}

.card-image-container {
  display: flex;
  justify-content: center;
  margin: var(--space-6) 0;
}

.card-detail-icon {
  width: var(--size-16);
  height: var(--size-16);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-base);
  flex-shrink: 0;
}

.card-detail-icon.gcash-icon {
  background: transparent;
}

.card-detail-icon.maya-icon {
  background: transparent;
}

.card-details-container {
  background: white;
  border-radius: var(--radius-2);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  border: 1px solid #e5e7eb;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid #f3f4f6;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--gray-dark);
  font-size: var(--text-sm);
  font-weight: 500;
}

.detail-value {
  color: var(--green-dark);
  font-size: var(--text-sm);
  font-weight: 600;
}

.status-active {
  color: #059669;
  font-size: var(--text-xs);
  font-weight: 500;
}

.action-buttons-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.toggle-container {
  background: white;
  border-radius: var(--radius-2);
  padding: var(--space-4);
  border: 1px solid #e5e7eb;
}

.toggle-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--green-dark);
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 24px;
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.toggle-input:checked + .toggle-slider {
  background-color: #065f46;
}

.toggle-input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.delete-button,
#mainContent .delete-button,
.action-buttons-container .delete-button {
  padding: 12px 24px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  min-height: 2.75rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--space-2) !important;
  width: 100% !important;
  background-color: #dc2626 !important;
  color: white !important;
  font-family: "Playfair Display", serif !important;
  min-width: 80px !important;
}

.delete-button:hover,
#mainContent .delete-button:hover,
.action-buttons-container .delete-button:hover {
  background-color: #b91c1c !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

.delete-button:active,
#mainContent .delete-button:active,
.action-buttons-container .delete-button:active {
  background-color: #b91c1c !important;
  color: #fff !important;
  transform: translateY(1px) !important;
}

.delete-button svg {
  color: white;
}

/* ========================================
   PAGE TRANSITION: SCAN SUCCESS OVERLAY
   - Minimalist fade-in dark overlay
   - Cream dot expands from center using project colors
   ======================================== */
.transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--green-dark);
  opacity: 0;
  z-index: 10000;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.transition-overlay.show {
  opacity: 1;
}

.transition-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--cream);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.001);
  transition: transform 0.8s ease-in-out;
}

.transition-dot.expand {
  transform: translate(-50%, -50%) scale(120);
}

@media (prefers-reduced-motion: reduce) {
  .transition-overlay {
    transition: none;
  }
  .transition-dot {
    transition: none;
  }
}

/* Modern Toast Component */
.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 1rem;
  max-width: 24rem;
  transform: translateY(-100%);
  opacity: 0;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #374151;
}

.toast.show {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.toast-icon.success {
  background: #d1fae5;
  color: #059669;
}

.toast-icon.error {
  background: #fee2e2;
  color: #dc2626;
}

.toast-icon.info {
  background: #dbeafe;
  color: #2563eb;
}

.toast-icon.warning {
  background: #fef3c7;
  color: #d97706;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-message {
  margin: 0;
  font-weight: 500;
}

.toast-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.toast-close:hover {
  background: #f3f4f6;
  color: #6b7280;
}

.toast-close:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.toast-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.toast-action {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.75rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 3rem;
}

.toast-action:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

.toast-action:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.toast-action:active {
  background: #f3f4f6;
  transform: translateY(1px);
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .toast {
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    max-width: none;
    transform: translateY(-100%) !important;
  }

  .toast.show {
    transform: translateY(0) !important;
  }
}

/* Animation keyframes for smooth entrance */
@keyframes toastSlideIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toastSlideInMobile {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Check icon SVG styles */
.toast-icon svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: currentColor;
}

/* Loading state for primary buttons */
#mainContent button.is-loading {
  position: relative;
  cursor: wait;
}
#mainContent button:disabled {
  cursor: not-allowed;
  /* Ensure full opacity when disabled */
  opacity: 1 !important;
}

.btn-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.5rem;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

/* Lucide icon animation for loading spinners */
.animate-spin {
  animation: spin 1.5s linear infinite;
}

/* Lucide loader icon sizing for buttons */
.btn-spinner[data-lucide] {
  width: 1em;
  height: 1em;
}

/* Enhanced button loading states */
button.is-loading {
  position: relative;
  cursor: wait;
  pointer-events: none;
  /* Ensure full opacity during loading */
  opacity: 1 !important;
}

button.is-loading:hover {
  transform: none;
  box-shadow: none;
}

/* Spinner positioning for different button types */
.unlock-btn .btn-spinner,
.modal-btn .btn-spinner {
  margin-right: 0.5rem;
}

/* Ensure button text and spinner are properly aligned */
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Smooth transitions for button states */
button {
  transition: all 0.2s ease-in-out;
}

button:disabled {
  cursor: not-allowed;
  /* Ensure full opacity when disabled */
  opacity: 1 !important;
}

/* Loading state animations */
button.is-loading .btn-spinner {
  animation: spin 1.2s linear infinite;
}

/* Ensure spinner is visible during loading */
button.is-loading .btn-spinner {
  display: inline-block !important;
}

/* Mobile-specific modal adjustments */
@media (max-width: 600px) {
  .modal-container {
    padding: 0.75rem;
  }

  .modal-content {
    max-width: 95vw;
    margin: 0 0.5rem;
  }

  .otp-modal-content {
    max-width: 95vw;
    margin: 0 0.5rem;
    padding: 1.25rem;
  }

  .modal-header {
    padding: 1rem 1rem 0.5rem;
  }

  .modal-body {
    padding: 0.5rem 1rem;
  }

  .modal-footer {
    padding: 0.5rem 0rem 0rem;
  }

  .modal-buttons-mobile {
    gap: 0.5rem;
  }

  .modal-btn {
    padding: 0.875rem 1rem;
    min-height: 3rem;
    font-size: 1rem;
  }
}

/* ========================================
   MOBILE SIDEBAR STYLES
   ======================================== */

.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 9999;
  display: none;
  pointer-events: none;
}

/* Allow sidebar to work on tablet/desktop too (only shows when `.show` is added) */
@media (min-width: 768px) {
  .mobile-sidebar {
    display: none;
  }

  .mobile-sidebar.show {
    display: block;
    pointer-events: auto;
  }
}

/* Desktop layout - centered content with max-width */
/* Only constrain (fixed width + centered bottom button/drawers) AFTER 1024px */
@media (min-width: 1025px) {
  .app-shell {
    max-width: 36rem; /* 576px - equivalent to Tailwind's max-w-xl */
  }

  .bottomButton {
    left: 50%;
    transform: translateX(-50%);
    width: 36rem; /* Same as app-shell max-width */
    max-width: 36rem;
  }

  .unlock-btn {
    width: 100%;
    max-width: 36rem;
  }

  .drawer-container {
    justify-content: center;
  }

  .drawer-content {
    width: 36rem; /* Same as app-shell max-width */
    max-width: 36rem;
    margin: 0 auto;
    transform: translateY(100%);
  }

  .drawer-container.show .drawer-content {
    transform: translateY(0);
  }
}

.mobile-sidebar.show {
  display: block;
  pointer-events: auto;
}

/* Sidebar Backdrop */
.sidebar-backdrop {
  position: absolute;
  inset: 0;
  display: block;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.mobile-sidebar.show .sidebar-backdrop {
  opacity: 1;
}

.mobile-sidebar.closing .sidebar-backdrop {
  opacity: 0;
}

/* Sidebar Content */
.sidebar-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #ffffff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.mobile-sidebar.show .sidebar-content {
  transform: translateX(0);
  animation: sidebarSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Sidebar Header */
.sidebar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 1rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.sidebar-user-details h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--green-dark);
  line-height: 1.4;
}

.sidebar-user-details p {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.4;
}

.sidebar-close-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease-in-out;
  flex-shrink: 0;
}

.sidebar-close-btn:hover {
  background: rgba(53, 78, 65, 0.06);
  color: #475569;
}

.sidebar-close-btn:active {
  transform: scale(0.95);
}

.sidebar-close-btn svg,
.sidebar-close-btn i {
  width: 20px;
  height: 20px;
  color: inherit;
}

/* Sidebar Body */
.sidebar-body {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}

.sidebar-menu {
  padding: 0 1.5rem 0 1rem;
}

.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--green-dark);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  margin-bottom: 0.25rem;
}

.sidebar-menu-item:hover {
  background: rgba(53, 78, 65, 0.1) !important;
  color: var(--green-deep) !important;
  transform: translateY(-1px);
}

.sidebar-menu-item.active,
.sidebar-menu-item.selected {
  background: rgba(53, 78, 65, 0.04) !important;
  color: var(--green-dark) !important;
  transform: translateY(0);
}

.sidebar-menu-item.active svg,
.sidebar-menu-item.selected svg,
.sidebar-menu-item.active .sidebar-icon,
.sidebar-menu-item.selected .sidebar-icon,
.sidebar-menu-item.active .sidebar-text,
.sidebar-menu-item.selected .sidebar-text {
  color: var(--green-dark) !important;
}

.sidebar-menu-item:active,
.sidebar-menu-item:focus,
.sidebar-menu-item:focus-visible {
  background: rgba(53, 78, 65, 0.04) !important;
  color: var(--green-dark) !important;
  transform: translateY(0);
}

.sidebar-menu-item svg {
  width: 20px;
  height: 20px;
  color: var(--green-dark);
  transition: color 0.2s ease-in-out;
}

.sidebar-menu-item:hover svg {
  color: var(--green-deep);
}

/* Sidebar icon styles for Lucide icons */
.sidebar-icon {
  width: 20px;
  height: 20px;
  color: var(--green-dark);
  transition: color 0.2s ease-in-out;
}

.sidebar-menu-item:hover .sidebar-icon {
  color: var(--green-deep);
}

/* Sidebar text styles */
.sidebar-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green-dark);
  transition: color 0.2s ease-in-out;
}

.sidebar-menu-item:hover .sidebar-text {
  color: var(--green-deep);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .sidebar-content {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    margin-left: 24px;
  }

  .sidebar-header {
    padding: 1.25rem 1.25rem 0.75rem 1rem;
  }

  .sidebar-menu {
    padding: 0 1.25rem 0 1rem;
  }

  .sidebar-menu-item {
    padding: 0.875rem 1rem;
  }
}

/* Animation for sidebar items */
.sidebar-menu-item {
  opacity: 0;
  transform: translateX(20px);
  animation: slideInFromRight 0.6s ease forwards;
}

.sidebar-menu-item:nth-child(1) {
  animation-delay: 0.2s;
}

.sidebar-menu-item:nth-child(2) {
  animation-delay: 0.3s;
}

.sidebar-menu-item:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes slideInFromRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes sidebarSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0.8;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes sidebarSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0.8;
  }
}

/* Smooth exit animations */
.mobile-sidebar.closing .sidebar-content {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: sidebarSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mobile-sidebar:not(.show):not(.closing) .sidebar-content {
  transform: translateX(100%);
}

/* Ensure smooth animations on mobile */
@media (prefers-reduced-motion: reduce) {
  .sidebar-content,
  .sidebar-menu-item {
    transition: none;
    animation: none;
  }
}

/* Logout Item Styling */
.logout-item {
  color: var(--green-dark) !important;
}

.logout-item:hover {
  background: rgba(53, 78, 65, 0.1) !important;
  color: var(--green-deep) !important;
}

.logout-item .logout-text {
  color: var(--green-dark);
  font-weight: 500;
  font-size: 0.875rem;
}

.logout-item:hover .logout-text {
  color: var(--green-deep);
}

.logout-item svg {
  color: var(--green-dark) !important;
}

.logout-item:hover svg {
  color: var(--green-deep) !important;
}

/* Back Button */
.back-button {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  background: transparent !important;
  border: none !important;
  color: var(--green-dark);
  font-family: "Playfair Display", serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 0;
  margin: 0.5rem 0.2em 0.5rem 0.2em;
  transition: color 0.18s ease;
  text-align: left;
  width: fit-content;
  box-shadow: none !important;
  outline: none !important;
}

.back-button:hover {
  color: var(--green-deep);
  background: transparent !important;
}

.back-button:focus {
  background: transparent !important;
  outline: none !important;
}

/* Default Badge */
.default-badge {
  background: var(--green-dark);
  color: white;
  padding: var(--space-1) var(--space-1);
  border-radius: var(--radius-2);
  font-size: var(--text-xs);
  font-weight: 500;
}

/* Card Bank Info */
.card-bank-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.bank-name {
  color: var(--gray-dark);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Cards & Wallets Container */

/* ========================================
   TRANSACTION HISTORY STYLES
   ======================================== */

/* ========================================
   STATUS FILTER DROPDOWN STYLES
   ======================================== */

/* Page Header Layout - Default (for cards-wallets) */
.page-header-content {
  /* Uses default margin-based spacing like card details page */
  padding: 0 16px;
}

/* Page Header Layout - Transaction History (with filter) */
.page-header-content.txn-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  position: relative;
  z-index: 999998;
  overflow: visible;
}

.page-header-left {
  flex: 1;
  padding-top: 12px;
  padding-bottom: 12px;
}

.page-header-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 999999;
}

.filter-dropdown {
  position: relative;
  z-index: 999999;
}

.filter-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 6px 0 0 0;
  position: relative;
  z-index: 999999;
}

.filter-trigger:hover {
  color: var(--green-dark);
}

.filter-trigger.active {
  color: var(--green-dark);
}

.filter-dropdown-menu {
  position: fixed;
  top: auto;
  right: auto;
  min-width: 200px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 999999;
  overflow: visible;
}

.filter-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-1) var(--space-2);
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #f3f4f6;
}

.filter-option:last-child {
  border-bottom: none;
}

.filter-option:hover {
  background: #f9fafb;
}

.filter-option.active {
  background: rgba(0, 0, 0, 0.01);
  color: var(--green-dark);
}

.filter-option-text {
  font-size: var(--text-sm);
  font-weight: 500;
}

.filter-option-check {
  opacity: 0;
  color: var(--green-primary);
  transition: opacity 0.15s ease;
}

.filter-option.active .filter-option-check {
  opacity: 1;
  color: var(--green-dark);
}

/* Transaction List Container */
.txn-list {
  padding: 0 0px;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 0;
}

/* Transaction Card */
.txn-card {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  opacity: 1;
  transform: translateY(0);
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.txn-card:has(.txn-view-all-container) {
  overflow: visible;
}

.txn-card:last-child {
  border-bottom: none;
}

.txn-card:hover {
  background: rgba(0, 0, 0, 0.02);
}

.txn-card.expanded {
  background: rgba(0, 0, 0, 0.01);
  overflow: hidden;
}

/* Transaction Main Section */
.txn-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--space-3) var(--space-2);
  gap: var(--space-2);
  min-height: 60px;
}

/* Transaction Info */
.txn-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.txn-location {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--green-dark);
  line-height: 1.4;
}

.txn-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-top: 4px;
}

.txn-id {
  font-size: var(--text-sm);
  color: var(--gray-dark);
  font-weight: 500;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
}

.txn-time {
  font-size: var(--text-sm);
  color: #6b7280;
  font-weight: 400;
}

/* Transaction Right Section */
.txn-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  min-width: 80px;
  height: 100%;
  align-self: stretch;
}

.txn-amount {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--green-dark);
  margin-top: 0;
  margin-bottom: var(--space-2);
}

.txn-status {
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  margin-top: auto;
  margin-bottom: 0;
}

.txn-status {
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

/* Status Styles */
.txn-status-processing {
  color: #92400e;
  font-style: italic;
}

.txn-status:not(.txn-status-processing) {
  color: #065f46;
}

/* Transaction Details (Collapsible) */
.txn-details {
  max-height: 0;
  overflow: hidden;
  padding: 0 var(--space-2);
  background: #fafafa;
  transition: all 0.3s ease-in-out;
  opacity: 0;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.txn-card.expanded .txn-details {
  max-height: 500px;
  padding: var(--space-2) var(--space-2) var(--space-3) var(--space-2);
  opacity: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

/* View All Container */
.txn-view-all-container {
  position: relative;
  width: 100%;
  min-height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-2) 0;
  pointer-events: none;
  z-index: 10;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 30%,
    rgba(255, 255, 255, 0.7) 70%,
    rgba(255, 255, 255, 1) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.txn-view-all-btn {
  position: relative;
  z-index: 11;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  width: auto !important;
  height: auto;
  background: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none !important;
  color: var(--green-dark) !important;
  font-size: var(--text-base) !important;
  font-weight: 500 !important;
  font-family: "Playfair Display", serif !important;
  cursor: pointer;
  padding: 8px !important;
  border-radius: var(--radius-2);
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: none !important;
  margin: 0 !important;
  letter-spacing: normal !important;
  pointer-events: auto;
  touch-action: auto;
}

.txn-view-all-btn:hover {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.98) 50%,
    rgba(255, 255, 255, 1) 100%
  ) !important;
}

.txn-view-all-btn:active {
  background: rgba(74, 95, 82, 0.1) !important;
}

/* Transaction Notice and Hint */
.txn-notice {
  font-size: var(--text-sm);
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: var(--space-1);
  font-style: italic;
}

.txn-notice.txn-transaction-code {
  color: #6b7280;
  font-weight: 500;
}

.txn-hint {
  font-size: var(--text-xs);
  color: #6b7280;
  line-height: 1.4;
}

/* Transaction Items */
.txn-items {
  margin-bottom: var(--space-3);
}

.txn-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  column-gap: var(--space-4);
  padding: var(--space-2) 0;
}

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

.txn-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.txn-item-name {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--green-dark);
}

.txn-item-qty {
  font-size: var(--text-xs);
  color: #6b7280;
}

.txn-item-price {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--green-dark);
  flex-shrink: 0;
  text-align: right;
}

/* Transaction Summary */
.txn-summary {
  margin-bottom: var(--space-3);
}

.txn-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
}

.txn-summary-row span:first-child {
  color: #6b7280;
}

.txn-summary-row span:last-child {
  font-weight: 600;
  color: var(--green-dark);
}

.txn-summary-total {
  border-top: 1px solid #e5e7eb;
  padding-top: var(--space-2);
  margin-top: var(--space-1);
  font-weight: 700;
  font-size: var(--text-base);
}

.txn-adjustment-negative span:last-child {
  color: #dc2626;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .txn-main {
    padding: var(--space-2);
    gap: var(--space-1);
  }

  .txn-location {
    font-size: var(--text-sm);
  }

  .txn-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }

  .txn-amount {
    font-size: var(--text-base);
  }

  .txn-details {
    padding: 0 var(--space-2) var(--space-2) var(--space-2);
  }
}

/* Ensure logo and menu icon are stable */
#mainContent .header .logo-link,
#mainContent .header .menuIcon {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* Override any logo transitions that might cause flickering */
#mainContent .logoLeft .logo-link {
  transition: none !important;
}

#mainContent .logoLeft .logo-link:hover {
  opacity: 1 !important;
}

/* Override any menu icon transitions that might cause flickering */
#mainContent .menuIcon {
  transition: none !important;
}

#mainContent .menuIcon:hover {
  transform: none !important;
  color: var(--green-deep) !important;
}

#mainContent .menuIcon:active {
  transform: none !important;
  color: var(--green-deep) !important;
}

/* ========================================
   TRANSACTION LOADING, EMPTY & ERROR STATES
   ======================================== */

/* Loading State */
.txn-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  text-align: center;
  color: var(--gray-dark);
  min-height: 200px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.loading-spinner {
  width: var(--size-8);
  height: var(--size-8);
  margin: 0 auto var(--space-3) auto;
  display: block;
  color: rgba(53, 78, 65, 0.3);
}

.loading-spinner[data-lucide] {
  width: var(--size-8);
  height: var(--size-8);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.txn-loading p {
  font-size: var(--text-sm);
  color: var(--gray-dark);
  margin: 0;
}

/* Empty State */
.txn-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  text-align: center;
  color: var(--gray-dark);
  position: relative;
  z-index: -1;
}

.txn-empty .empty-icon {
  font-size: var(--size-16);
  margin-bottom: var(--space-4);
  opacity: 0.6;
  width: auto;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.txn-empty .empty-icon i,
.txn-empty .empty-icon svg {
  width: 32px !important;
  height: 32px !important;
  stroke-width: 1.5;
  display: block;
}

.empty-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: var(--space-4);
  opacity: 0.7;
}

.txn-empty h3 {
  font-size: var(--text-2xl);
  margin: 0;
  color: var(--gray-dark);
}

.txn-empty p {
  font-size: var(--text-lg);
  color: var(--gray-dark);
  margin: 0;
  opacity: 0.8;
  max-width: 300px;
  line-height: 1.5;
}

/* Error State */
.txn-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 24px;
  text-align: center;
  color: var(--gray-dark);
  position: relative;
  z-index: -1;
}

.txn-error .empty-icon {
  font-size: var(--size-16);
  opacity: 0.6;
  width: auto;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.txn-error .empty-icon i,
.txn-error .empty-icon svg {
  width: 32px !important;
  height: 32px !important;
  stroke-width: 1.5;
  display: block;
}

.txn-error .empty-text {
  font-size: var(--text-lg);
  color: var(--gray-dark);
  margin: 0;
  opacity: 0.8;
  margin-top: -24px;
  text-align: center;
  width: 100%;
  display: block;
  max-width: none !important;
}

.txn-error .error-description {
  font-size: var(--text-sm);
  color: var(--gray-dark);
  margin: 0;
  margin-top: var(--space-1);
  padding-left: 20px;
  padding-right: 20px;
  opacity: 0.8;
  text-align: center !important;
  width: 100%;
  display: block;
  max-width: none !important;
  box-sizing: border-box;
  align-self: center;
}

.error-icon {
  font-size: var(--size-12);
  margin-bottom: var(--space-3);
  opacity: 0.6;
}

.txn-error h3 {
  font-size: var(--text-2xl);
  margin: 0 0 var(--space-2) 0;
  color: var(--gray-dark);
}

.txn-error p:not(.empty-text):not(.error-description) {
  font-size: var(--text-lg);
  color: var(--gray-dark);
  margin: 0 0 var(--space-3) 0;
  opacity: 0.8;
  max-width: 300px;
  line-height: 1.5;
}

.retry-button {
  background: var(--green-medium);
  color: white;
  border: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-2);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.retry-button:hover {
  background: var(--green-dark);
}

.retry-button:active {
  transform: translateY(1px);
}

/* ========================================
   TRANSACTION DETAILS STYLES
   ======================================== */

/* Small loading spinner for transaction details */
.loading-spinner-small {
  width: var(--size-4);
  height: var(--size-4);
  margin: 0 auto var(--space-2) auto;
  display: block;
  color: rgba(53, 78, 65, 0.3);
}

.loading-spinner-small[data-lucide] {
  width: var(--size-4);
  height: var(--size-4);
}

.txn-loading-details {
  text-align: center;
  padding: var(--space-4);
  color: var(--gray-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.txn-loading-details .loading-spinner-small {
  margin-bottom: var(--space-2);
}

.txn-loading-details p {
  font-size: var(--text-sm);
  margin: 0;
  opacity: 0.8;
}

/* Error state in transaction details */
.txn-error-details {
  text-align: center;
  padding: var(--space-4);
  color: var(--gray-dark);
}

.txn-error-details p {
  font-size: var(--text-sm);
  margin: 0 0 var(--space-2) 0;
  opacity: 0.8;
}

/* Processing state in expanded transaction details */
.txn-processing-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--gray-dark);
  padding: var(--space-4) var(--space-2);
}

.txn-processing-details .empty-icon {
  opacity: 0.6;
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  height: auto;
  margin: 0 0 4px 0 !important;
}

.txn-processing-details .empty-icon i,
.txn-processing-details .empty-icon svg {
  width: 28px !important;
  height: 28px !important;
  stroke-width: 1.5;
  display: block;
}

.txn-processing-details .empty-text {
  font-size: var(--text-base);
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

.txn-processing-details .processing-description {
  font-size: var(--text-sm);
  color: #6b7280;
  margin: var(--space-1) 0 0 0;
  opacity: 0.8;
}

.retry-button-small {
  background: var(--green-medium);
  color: white;
  border: none;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-2);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.retry-button-small:hover {
  background: var(--green-dark);
}

.retry-button-small:active {
  transform: translateY(1px);
}

/* Maya Card Vaulting Integration Styles */
.cards-section {
  margin-top: var(--space-6);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.add-payment-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--green-primary);
  color: white;
  border: none;
  border-radius: var(--radius-2);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-payment-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.add-payment-btn svg {
  width: 16px;
  height: 16px;
}

.cards-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cards-section {
  background: white;
  border-radius: var(--radius-3);
  padding: var(--space-4);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cards-section .section-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  padding: 0 16px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
}

.card-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-2);
  padding: var(--space-4);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.card-item:hover {
  border-color: var(--green-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-item.verified-card {
  border-left: 4px solid var(--green-primary);
}

.card-item.pending-card {
  border-left: 4px solid #f59e0b;
}

.card-item.failed-card {
  border-left: 4px solid #ef4444;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: var(--text-primary);
}

.card-icon.visa-icon {
  background: #1a1f71;
  color: white;
}

.card-icon.mastercard-icon {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
}

.card-icon.amex-icon {
  background: #006fcf;
  color: white;
}

.card-icon.jcb-icon {
  background: #0b4ea2;
  color: white;
}

.status-badge {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.verified {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.pending {
  background: #fef3c7;
  color: #92400e;
  font-style: italic;
}

.status-badge.failed {
  background: #fee2e2;
  color: #991b1b;
}

.card-body {
  margin-bottom: var(--space-3);
}

.card-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-1) 0;
}

.card-number {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0 0 var(--space-1) 0;
  font-family: "Courier New", monospace;
}

.card-expiry {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-type {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-transform: capitalize;
}

.default-badge {
  background: var(--green-primary);
  color: white;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-1);
}

.empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--text-secondary);
}

.empty-icon:not(.txn-empty .empty-icon) {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4) auto;
  color: #d1d5db;
}

.empty-state h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-2) 0;
}

.empty-state p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin: 0 0 var(--space-4) 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.add-first-card-btn {
  background: var(--green-primary);
  color: white;
  border: none;
  border-radius: var(--radius-2);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-first-card-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* Card Details Modal Enhancements */
.verification-status {
  text-align: center;
  padding: var(--space-3);
  background: #f9fafb;
  border-radius: var(--radius-2);
  margin-bottom: var(--space-3);
}

.verification-date {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: var(--space-2) 0 0 0;
}

.verification-note {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: var(--space-2) 0 0 0;
  font-style: italic;
}

.card-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.action-btn {
  padding: var(--space-2) var(--space-3);
  border: none;
  border-radius: var(--radius-2);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 120px;
}

.set-default-btn {
  background: var(--green-primary);
  color: white;
}

.set-default-btn:hover:not(:disabled) {
  background: var(--green-dark);
}

.set-default-btn:disabled {
  background: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
}

/* Disabled country select styling */
#country:disabled {
  background-color: #f9fafb;
  color: #6b7280;
  cursor: not-allowed;
  opacity: 0.7;
}

#country:disabled option {
  color: #6b7280;
}

.delete-btn {
  background: #ef4444;
  color: white;
}

.delete-btn:hover {
  background: #dc2626;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .add-payment-btn {
    justify-content: center;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .card-actions {
    flex-direction: column;
  }

  .action-btn {
    min-width: auto;
  }
}

/* Wallet-style cards */
.wallet-card {
  display: flex;
  align-items: center;
  padding: var(--space-3) 16px;
  background: transparent;
  border: none;
  margin-bottom: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.wallet-card:hover {
  background: transparent;
  box-shadow: none;
}

.wallet-card:last-child {
  margin-bottom: 0;
}

/* Balance Card Styles for Access Page */
.balance-section {
  margin: var(--space-3) 0;
  padding: 0 var(--space-2);
  margin-left: calc(-1 * var(--space-2));
  margin-right: calc(-1 * var(--space-2));
  width: calc(100% + 2 * var(--space-2));
  max-width: 100vw;
  box-sizing: border-box;
}

.balance-card {
  background: white;
  border-radius: var(--radius-2);
  overflow: hidden;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
  padding: 0;
}

.balance-card:hover {
  background: rgba(0, 0, 0, 0.02);
}

.balance-card-content {
  display: flex;
  align-items: center;
  padding: var(--space-3);
}

.balance-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-2);
  flex-shrink: 0;
  color: white !important;
  fill: white !important;
  stroke: white !important;
}

.balance-icon i {
  width: 24px;
  height: 24px;
}

.balance-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.balance-status {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.balance-status.default {
  color: var(--green-dark);
  font-weight: 600;
}

.balance-status.error {
  color: #e74c3c;
  font-weight: 600;
}

.balance-name {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  font-family: "Playfair Display", serif;
}

.balance-number {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-family: "Playfair Display", serif;
}

.balance-error {
  display: flex;
  align-items: center;
  padding: var(--space-3);
}

.balance-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  color: var(--text-secondary);
}

.balance-loading .loading-spinner {
  width: 24px;
  height: 24px;
  margin-bottom: var(--space-2);
  color: rgba(53, 78, 65, 0.3);
}

.balance-loading .loading-spinner[data-lucide] {
  width: 24px;
  height: 24px;
}

.balance-loading p {
  margin: 0;
  font-size: var(--text-sm);
  font-family: "Playfair Display", serif;
}

.balance-arrow {
  color: var(--text-secondary);
  flex-shrink: 0;
  opacity: 0.6;
}

.balance-arrow i {
  width: 16px;
  height: 16px;
}

.wallet-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-2);
  flex-shrink: 0;
  color: white !important;
  fill: white !important;
  stroke: white !important;
}

.wallet-icon i {
  width: 24px;
  height: 24px;
}

.wallet-icon.gcash {
  background: #00d4aa;
  color: white;
}

.wallet-icon.maya {
  background: #ff6b35;
  color: white;
}

.wallet-icon.visa {
  /* Background removed - using PNG image */
  color: white;
}

.wallet-icon.mastercard {
  /* Background removed - using PNG image */
  color: white;
}

.wallet-icon.amex {
  /* Background removed - using PNG image */
  color: white;
}

.wallet-icon.discover {
  background: #ff6000;
  color: white;
}

.wallet-icon.jcb {
  /* Background removed - using PNG image */
  color: white;
}

.wallet-icon.unknown {
  background: #6b7280;
  color: white;
}

.wallet-card .wallet-icon.balance {
  background: var(--green-dark) !important;
  color: white !important;
  fill: white !important;
  stroke: white !important;
}

.wallet-card .wallet-icon.balance i {
  width: 24px !important;
  height: 24px !important;
}

/* Card network icon styling for PNG images */
.card-network-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.wallet-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0; /* prevent flex overflow */
}

.wallet-status {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--green-primary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wallet-status.pending {
  font-style: italic;
}

.wallet-status.default {
  color: var(--green-dark);
  font-weight: 600;
}

.wallet-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-number {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  font-family: "Courier New", monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-chevron {
  color: var(--text-secondary);
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.6;
}

.wallet-chevron i {
  width: 16px;
  height: 16px;
}

/* Add Payment Method Link */
.add-payment-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) 16px;
  color: var(--green-dark);
  cursor: pointer;
  transition: color 0.2s ease;
  border: none;
  background: none;
  font-size: var(--text-base);
  font-weight: 500;
  text-align: left;
  width: 100%;
}

.add-payment-link:hover {
  color: var(--green-primary);
}

.add-payment-link svg,
.add-payment-link i {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* Coming Soon Label */
.coming-soon-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--green-primary);
  margin-bottom: 4px;
  text-transform: uppercase;
  font-style: italic;
  display: block;
  width: 100%;
  padding: 0 16px;
  text-align: left;
}

/* Disabled Payment Option */
.payment-option.cards-option-disabled {
  position: relative;
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.payment-option.cards-option-disabled:hover {
  background: var(--background-secondary);
  transform: none;
  box-shadow: none;
}

/* Divider line */
.wallet-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 1px 0;
}

/* Update existing cards container */
.cards-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--space-2);
  padding: 0;
}

/* Update cards section to remove borders and padding */
.cards-section {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
}

/* Empty state styling */
.empty-state {
  text-align: center;
  padding: var(--space-8) 16px;
  color: var(--text-secondary);
}

.empty-icon:not(.txn-empty .empty-icon) {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  color: var(--text-secondary);
  opacity: 0.5;
}

.empty-state h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  font-size: var(--text-lg);
}

.empty-state p {
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
}

/* Verification Notice Styles */
.verification-notice {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.verification-content {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.verification-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.verification-text {
  flex: 1;
  min-width: 0;
}

.verification-title {
  font-weight: 600;
  font-size: var(--text-base);
  color: #92400e;
  margin-bottom: 4px;
}

.verification-description {
  font-size: var(--text-sm);
  color: #a16207;
  line-height: 1.4;
}

.verification-btn {
  background: #f59e0b;
  color: white;
  border: none;
  border-radius: 8px;
  padding: var(--space-2) var(--space-3);
  font-weight: 500;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.verification-btn:hover {
  background: #d97706;
}

.verification-btn:active {
  background: #b45309;
}

/* ========================================
   CARDS & WALLETS LOADING STATES
   ======================================== */

/* Loading state for cards */
.cards-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) 16px;
  text-align: center;
  color: var(--text-secondary);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-3);
  color: rgba(53, 78, 65, 0.3);
}

.loading-spinner[data-lucide] {
  width: 40px;
  height: 40px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.cards-loading p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Empty state for cards */
.cards-empty {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  color: var(--text-secondary);
}

.cards-empty .empty-state-container {
  background-color: #fafafa;
  border: 2px dashed var(--green-dark);
  border-radius: var(--radius-2);
  padding: var(--space-6) var(--space-2);
  width: calc(100% - 32px);
  margin: 0 auto;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cards-empty .empty-state-text h3 {
  color: var(--green-dark);
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0 0 var(--space-1) 0;
  text-align: center;
}

/* Empty state text container */
.cards-empty .empty-state-text {
  text-align: center;
  margin-bottom: var(--space-1);
}

/* Button inside empty state */
.cards-empty .empty-state-button {
  margin-top: var(--space-0);
  width: 100%;
  justify-content: center;
}

/* Error state for cards */
.cards-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 24px;
  text-align: center;
  color: var(--gray-dark);
  position: relative;
  z-index: -1;
}

.cards-error .empty-icon {
  font-size: var(--size-16);

  opacity: 0.6;
  width: auto;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cards-error .empty-icon i,
.cards-error .empty-icon svg {
  width: 32px !important;
  height: 32px !important;
  stroke-width: 1.5;
  display: block;
}

.cards-error .empty-text {
  font-size: var(--text-lg);
  color: var(--gray-dark);
  margin: 0;
  opacity: 0.8;
  margin-top: -24px;
}

.cards-error .error-description {
  font-size: var(--text-sm);
  color: var(--gray-dark);
  margin: 0;
  margin-top: var(--space-1);
  padding-left: 20px;
  padding-right: 20px;
  opacity: 0.8;
  text-align: center;
}

.cards-error h3 {
  color: var(--green-dark);
  margin-bottom: var(--space-2);
  font-size: var(--text-lg);
}

.cards-error p {
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.retry-button {
  background: var(--green-primary);
  color: white;
  border: none;
  border-radius: var(--radius-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.retry-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* ========================================
   WIDTH OVERFLOW FIXES
   ======================================== */

/* Ensure cards container doesn't overflow */
.cards-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Ensure wallet cards don't overflow */
.wallet-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.wallet-content {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.wallet-name,
.wallet-number {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Ensure modals don't overflow */
.modal-content {
  max-width: 90vw;
  width: 100%;
  box-sizing: border-box;
}

.card-details-modal,
.add-payment-modal {
  max-width: 500px;
  width: 90vw;
}

/* Responsive fixes for small screens */
@media (max-width: 480px) {
  .wallet-card {
    padding: var(--space-3) 12px;
  }

  .wallet-card .wallet-icon.balance {
    background: var(--green-dark) !important;
    color: white !important;
    fill: white !important;
    stroke: white !important;
  }

  .wallet-card .wallet-icon.balance i {
    width: 24px !important;
    height: 24px !important;
  }

  .wallet-name {
    font-size: var(--text-sm);
  }

  .wallet-number {
    font-size: var(--text-xs);
  }

  .detail-label,
  .detail-value {
    font-size: var(--text-sm);
  }

  .modal-content {
    max-width: 95vw;
    margin: 20px;
  }
}

/* ========================================
   ADDITIONAL OVERFLOW PREVENTION
   ======================================== */

/* Ensure content area doesn't overflow */
.content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: visible;
  padding: 0 16px;
}

/* Ensure page header doesn't overflow */
.page-header {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.page-header-content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.page-title {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-subtitle {
  max-width: 100%;
  overflow: visible;
  white-space: normal;
  word-wrap: break-word;
}

/* Ensure add payment link doesn't overflow */
.add-payment-link {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
}

/* Ensure verification notice doesn't overflow */
.verification-notice {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 16px;
}

.verification-content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 16px;
}

/* Ensure wallet divider doesn't cause overflow */
.wallet-divider {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* ========================================
   MODAL OVERFLOW PREVENTION
   ======================================== */

/* Ensure modal container doesn't overflow */
.modal-container {
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  box-sizing: border-box;
  overflow: hidden;
}

/* Ensure modal backdrop doesn't overflow */
.modal-backdrop {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Ensure modal content is properly constrained */
.modal-content {
  width: 90vw;
  max-width: 500px;
  max-height: 90vh;
  box-sizing: border-box;
  overflow: hidden;
}

/* Ensure modal header doesn't overflow */
.modal-header {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0rem 1.5rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-header h3 {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  text-align: center;
  width: 100%;
}

/* Ensure modal body doesn't overflow */
.modal-body {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: auto;
  padding: 0.75rem 0rem;
}

/* Ensure modal footer doesn't overflow */
.modal-footer {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Ensure payment options don't overflow */
.add-payment-options {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.payment-option {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.option-details {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.option-details h4,
.option-details p {
  max-width: 100%;
  padding: 0 16px;
}

/* Allow text wrapping for all payment options */
.payment-option .option-details p {
  white-space: normal;
  text-overflow: unset;
  overflow: visible;
}

/* ========================================
   RESPONSIVE TEXT & MOBILE OPTIMIZATIONS
   ======================================== */

/* Responsive text sizing for very small screens */
@media (max-width: 360px) {
  .wallet-name {
    font-size: var(--text-sm);
  }

  .wallet-number {
    font-size: var(--text-xs);
  }

  .wallet-status {
    font-size: var(--text-xs);
  }

  .add-payment-link {
    font-size: var(--text-sm);
    padding: var(--space-2) 16px;
  }

  .modal-content {
    width: 95vw;
    margin: 10px;
  }

  .verification-notice {
    padding: var(--space-3);
  }

  .verification-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
  }

  .verification-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Ensure proper spacing on all screen sizes */
@media (max-width: 480px) {
  .content {
    padding: 0 16px;
  }

  .cards-section {
    margin-top: var(--space-2);
  }

  .wallet-card {
    padding: var(--space-3) 16px;
    margin-bottom: 1px;
  }

  .wallet-card .wallet-icon.balance {
    background: var(--green-dark) !important;
    color: white !important;
    fill: white !important;
    stroke: white !important;
  }

  .wallet-card .wallet-icon.balance i {
    width: 24px !important;
    height: 24px !important;
  }

  .wallet-chevron i {
    width: 16px;
    height: 16px;
  }
}

/* Card Details Container with Gradient */
.card-details-container {
  background: linear-gradient(135deg, #f1ffef 0%, #d4f5d0 100%);
  border-radius: var(--radius-4);
  padding: var(--space-4); /* Back to 32px */
  margin-bottom: var(--space-4);
  color: var(--green-dark);
  border: none; /* Removed border as requested */
}

.card-details-container .form-group {
  margin-bottom: 1.5rem; /* Apply signup form spacing: 24px */
}

.card-details-container .form-group label {
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 0.5rem; /* Apply signup form spacing: 8px */
}

.card-details-container .form-group input,
.card-details-container .form-group select {
  width: 100%;
  padding: 16px;
  border: 2px solid rgba(53, 78, 65, 0.2);
  border-radius: var(--radius-2);
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  background: white;
  color: var(--green-dark);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  box-sizing: border-box;
}

.card-details-container .form-group input:focus,
.card-details-container .form-group select:focus {
  outline: none;
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(53, 78, 65, 0.1);
}

/* Card Input Wrapper */
.card-input-wrapper {
  position: relative;
}

/* Card Brand */
.card-brand {
  display: none;
}

/* Expiry Date Input */
#expiryDate {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.5px;
  width: 100%;
}

#expiryDate:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(53, 78, 65, 0.1);
}

/* Input Helper Text */
.input-help {
  color: var(--gray-dark);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
  display: block;
  font-weight: 400;
}

/* Billing Address Section */
.billing-address-section {
  margin-bottom: var(--space-4);
}

.billing-address-section .form-group {
  margin-bottom: 1.5rem; /* Apply signup form spacing: 24px */
}

.billing-address-section .form-group label {
  margin-bottom: 0.5rem; /* Apply signup form spacing: 8px */
}

.section-title {
  color: var(--green-dark);
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 0 var(--space-2) 0; /* Back to 16px */
  text-transform: none;
  letter-spacing: normal;
}

/* Verification Info Box */
.verification-info {
  background: #f1ffef;
  border: none; /* Removed border as requested */
  border-radius: var(--radius-3);
  padding: var(--space-3); /* Back to 24px */
  margin-bottom: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.info-icon {
  color: var(--green-dark); /* Changed from blue to dark green */
  font-size: var(--text-xs); /* Reduced font size for smaller icon */
  font-weight: 700;
  background: transparent; /* Removed white background */
  width: 20px; /* Increased size for better visibility */
  height: 20px; /* Increased size for better visibility */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-text {
  color: var(--green-dark); /* Changed from blue to dark green */
  font-size: var(--text-sm);
  line-height: 1.5;
  font-weight: 500;
}

/* Form Row for Card Form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3); /* Back to 24px */
}

/* Add bottom padding to form to prevent overlap with fixed button */
.card-form-container {
  padding-bottom: 100px; /* Add space for fixed button */
  overflow: visible; /* Allow dropdown to show */
}

.card-form-container .add-cards-country-dropdown-menu {
  width: 100%;
}

/* Ensure add-cards country dropdown matches form input width exactly */
.form-group .add-cards-country-select-wrapper,
.form-group .add-cards-country-dropdown,
.form-group .add-cards-country-trigger {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Mobile responsive adjustments for add-cards country dropdown */
@media (max-width: 768px) {
  .add-cards-country-option {
    padding: 12px 16px;
    min-height: 44px;
  }

  .add-cards-country-option-text {
    font-size: 0.95rem;
  }

  .add-cards-country-dropdown-menu {
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  .add-cards-country-option {
    padding: 10px 12px;
    min-height: 40px;
  }

  .add-cards-country-option-text {
    font-size: 0.9rem;
  }

  .add-cards-country-dropdown-menu {
    max-height: 200px;
  }
}

/* ========================================
   ACCESS PAGE PAYMENT METHOD STYLES
   ======================================== */

/* Payment Method Section */
.payment-method-section {
  margin: var(--space-4) 0;
  padding: 0 16px;
  background: transparent;
  width: 100%;
}

.payment-method-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.payment-method-header h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  font-family: "Playfair Display", serif;
}

.change-payment-btn {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: var(--green-dark);
  color: white;
  border: none;
  border-radius: var(--radius-1);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.change-payment-btn:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
}

.change-payment-btn i {
  width: 16px;
  height: 16px;
}

/* Default Payment Card */
.default-payment-card {
  min-height: 80px;
}

.payment-card {
  display: flex;
  align-items: center;
  padding: var(--space-3);
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-card:hover {
  background: #f1f5f9;
}

.payment-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-3);
  flex-shrink: 0;
}

.payment-card-icon img,
.payment-card-icon i {
  width: 32px;
  height: 32px;
}

.payment-card-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.payment-card-status {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.payment-card-status.pending {
  font-style: italic;
}

.payment-card-status.default {
  color: var(--green-dark);
  font-weight: 600;
}

.payment-card-status.selected {
  color: var(--green-light);
  font-weight: 600;
}

.payment-card-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  font-family: "Playfair Display", serif;
}

.payment-card-number {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-family: "Playfair Display", serif;
}

.payment-card-arrow {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.payment-card-arrow i {
  width: 20px;
  height: 20px;
}

/* No Payment Method State */
.no-payment-method {
  display: flex;
  align-items: center;
  padding: var(--space-3);
  background: #f8fafc;
  border: 2px dashed #d1d5db;
}

.no-payment-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-3);
  color: var(--text-secondary);
}

.no-payment-icon i {
  width: 24px;
  height: 24px;
}

.no-payment-text p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.no-payment-text p:first-child {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

/* Payment Loading State */
.payment-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  color: var(--text-secondary);
  text-align: center;
  min-height: 80px;
}

.payment-loading .loading-spinner {
  width: 24px;
  height: 24px;
  margin-bottom: var(--space-3);
  color: rgba(53, 78, 65, 0.3);
}

.payment-loading .loading-spinner[data-lucide] {
  width: 24px;
  height: 24px;
}

.payment-loading p {
  margin: 0;
  font-size: var(--text-sm);
  text-align: center;
}

/* Payment Selection Modal Styles */
.payment-methods-list {
  max-height: 400px;
  overflow-y: auto;
}

.payment-method-option {
  display: flex;
  align-items: center;
  padding: var(--space-2) 0;
  background: transparent;
  cursor: pointer;
  gap: var(--space-3);
  width: 100%;
}

.payment-option-radio {
  flex-shrink: 0;
}

.payment-option-radio input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--green-dark);
  cursor: pointer;
}

.payment-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-option-icon img,
.payment-option-icon i {
  width: 24px;
  height: 24px;
}

.payment-option-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.payment-option-status {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.payment-option-status.pending {
  font-style: italic;
}

.payment-option-status.default {
  color: var(--green-dark);
  font-weight: 600;
}

.payment-option-status.selected {
  color: var(--green-light);
  font-weight: 600;
}

.payment-option-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  font-family: "Playfair Display", serif;
}

.payment-option-number {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-family: "Playfair Display", serif;
}

.payment-option-selection {
  flex-shrink: 0;
  margin-left: var(--space-2);
}

.selected-icon {
  color: var(--green-dark);
  width: 20px;
  height: 20px;
}

.unselected-icon {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
}

.no-payment-methods {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-6);
  text-align: center;
}

.no-payment-methods .no-payment-icon {
  margin-right: 0;
  margin-bottom: var(--space-3);
}

.no-payment-methods .no-payment-text p {
  margin: 0;
}

.no-payment-methods .no-payment-text p:first-child {
  font-weight: 600;
  margin-bottom: var(--space-1);
}

/* Specific spacing adjustments for targeted inputs */
.expiry-row {
  margin-bottom: 1.5rem; /* Apply signup form spacing: 24px */
}

.state-zip-row {
  margin-bottom: 1.5rem; /* Apply signup form spacing: 24px */
}

/* ========================================
   OTP MODAL STYLES
   ======================================== */

/* OTP Modal Container */
.otp-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}

/* OTP Modal Content */
.otp-modal-content {
  background: #ffffff;
  border-radius: 12px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  max-width: 90vw;
  width: 100%;
  max-width: 24rem;
  pointer-events: auto;
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 170;
  visibility: hidden;
}

.otp-modal-content.show {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* OTP Inputs */
.otp-inputs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.otp-input {
  width: 3rem;
  border: none;
  border-bottom: 2px solid #d1d5db;
  background: transparent;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  font-family: "Playfair Display", serif;
  color: var(--gray-dark);
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.otp-input:focus {
  outline: none;
  border-bottom-color: var(--green-dark);
  color: var(--green-dark);
}

.otp-input:valid {
  border-bottom-color: var(--green-dark);
}

/* Field Error */
.field-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: center;
  font-family: "Playfair Display", serif;
}

/* ========================================
   CARD DETAILS PAGE STYLES
   ======================================== */

/* Card Details Section */
.card-details-section {
  padding: var(--space-2);
  max-width: 600px;
  margin: 0 auto;
}

/* Loading State */
.card-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  text-align: center;
}

.card-loading .loading-spinner {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-3);
  color: rgba(53, 78, 65, 0.3);
}

.card-loading .loading-spinner[data-lucide] {
  width: 40px;
  height: 40px;
}

.card-loading p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-family: "Playfair Display", serif;
}

/* Error State */
.card-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  text-align: center;
}

.card-error .error-icon {
  font-size: 3rem;
  margin-bottom: var(--space-3);
}

.card-error h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  font-family: "Playfair Display", serif;
}

.card-error p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: var(--space-4);
  font-family: "Playfair Display", serif;
}

.card-error .retry-button {
  background: var(--green-dark);
  color: white;
  border: none;
  padding: var(--space-2) var(--space-4);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: "Playfair Display", serif;
}

.card-error .retry-button:hover {
  background: var(--green-deep);
}

/* Card Details Content */
.card-details-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Card Visual */
.card-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.card-image {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.card-image img,
.card-image i {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

/* Card Details List */
.card-details-list {
  padding: 0 var(--space-2);
}

.detail-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid #f3f4f6;
}

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

.detail-label {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: var(--text-base);
  font-family: "Playfair Display", serif;
  flex: 1;
  text-transform: none !important;
}

.detail-value {
  font-weight: 600;
  color: var(--green-dark);
  font-size: var(--text-base);
  font-family: "Playfair Display", serif;
  flex: 1;
  text-align: right;
}

/* Toggle Button */
.card-details-section .toggle-btn {
  position: relative !important;
  width: 44px !important;
  height: 24px !important;
  background: #e5e7eb !important;
  border-radius: 12px !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
  padding: 0 !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

.card-details-section .toggle-btn.active {
  background: var(--green-dark) !important;
}

.card-details-section .toggle-slider {
  position: absolute !important;
  top: 2px !important;
  left: 2px !important;
  width: 20px !important;
  height: 20px !important;
  background: white !important;
  border-radius: 50% !important;
  transition: transform 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  display: block !important;
}

.card-details-section .toggle-btn.active .toggle-slider {
  transform: translateX(20px) !important;
}

/* Remove Card Section */
.remove-card-section {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-2);
  background: white;
  border-top: 1px solid #e5e7eb;
  z-index: 100;
}

.remove-card-btn {
  padding: 12px 24px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  min-height: 2.75rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--space-2) !important;
  width: 100% !important;
  background-color: #ef4444 !important;
  color: white !important;
  font-family: "Playfair Display", serif !important;
  min-width: 80px !important;
}

.remove-card-btn:hover {
  background-color: #dc2626 !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.remove-card-btn:active {
  background-color: #b91c1c !important;
  color: #fff !important;
  transform: translateY(1px) !important;
}

.remove-card-btn i {
  width: 20px;
  height: 20px;
}

.remove-card-btn span {
  display: block;
  font-weight: 500;
}

/* Confirmation Modal Styles */
.confirmation-modal {
  max-width: 400px;
  width: 90%;
}

.confirmation-content {
  text-align: center;
  padding: var(--space-2);
}

.confirmation-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  color: #3b82f6;
}

.confirmation-icon.danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.confirmation-icon i {
  width: 30px;
  height: 30px;
}

.confirmation-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  font-family: "Playfair Display", serif;
}

.confirmation-content p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: var(--space-4);
  font-family: "Playfair Display", serif;
}

/* Card Preview in Modal */
.card-preview {
  background: #f8f9fa;
  border-radius: 8px;
  padding: var(--space-3);
  margin-top: var(--space-3);
}

.preview-card {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.preview-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
}

.preview-card-icon img,
.preview-card-icon i {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.preview-card-info {
  flex: 1;
}

.preview-card-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: "Playfair Display", serif;
}

.preview-card-number {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: "Playfair Display", serif;
}

/* Modal Buttons */
.modal-buttons {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3);
}

.modal-btn {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: "Playfair Display", serif;
}

.modal-btn-secondary {
  background: #f3f4f6;
  color: var(--text-primary);
}

.modal-btn-secondary:hover {
  background: #e5e7eb;
}

.modal-btn-primary {
  background: var(--green-dark);
  color: white;
}

.modal-btn-primary:hover {
  background: var(--green-deep);
}

.modal-btn-danger {
  background: #ef4444;
  color: white;
}

.modal-btn-danger:hover {
  background: #dc2626;
}

/* Responsive Design */
@media (max-width: 480px) {
  .card-details-section {
    padding: var(--space-1);
  }

  .card-visual {
    padding: var(--space-3);
  }

  .card-image {
    width: 160px;
    height: 160px;
  }

  .card-image img,
  .card-image i {
    width: 120px;
    height: 120px;
  }

  .card-info {
    padding: var(--space-3);
  }

  .card-title {
    font-size: 1.25rem;
  }

  .modal-buttons {
    flex-direction: column;
  }
}

/* ========================================
   CENTER LOADING MODAL
   ======================================== */

.center-loading-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 16px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.center-loading-container:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.center-loading-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.center-loading-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
}

.center-loading-box {
  background-color: white;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
}

.center-loading-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.center-loading-spinner {
  width: 20px;
  height: 20px;
  display: block;
  color: var(--green-dark);
}

.center-loading-spinner[data-lucide] {
  width: 20px;
  height: 20px;
}

/* ========================================
   STORE LOCATIONS PAGE
   ======================================== */

.locations-section {
  margin: var(--space-3) 0;
  padding: 0 var(--space-2);
  margin-left: calc(-1 * var(--space-2));
  margin-right: calc(-1 * var(--space-2));
  width: calc(100% + 2 * var(--space-2));
  max-width: 100vw;
  box-sizing: border-box;
}

.locations-container {
  display: flex;
  flex-direction: column;
}

.location-item {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-2);
  background-color: white;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: var(--space-2);
  min-height: 80px;
}

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

.location-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.location-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.location-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0; /* Allow text truncation */
}

.location-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--green-dark);
  margin: 0;
  line-height: 1.3;
}

.location-address {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.location-arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  flex-shrink: 0;
}

.location-address.coming-soon {
  font-style: italic;
  color: #9ca3af;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .location-item {
    padding: 12px;
    gap: 12px;
  }

  .location-logo {
    width: 40px;
    height: 40px;
  }

  .location-name {
    font-size: 15px;
  }

  .location-address {
    font-size: 13px;
  }
}

/* Country Drawer Styles */
.country-drawer .amount-drawer-content {
  background: #ffffff;
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.country-drawer-handle {
  width: 56px;
  height: 4px;
  background: rgba(47, 47, 47, 0.2);
  border-radius: 999px;
  margin: 8px auto 0;
}

.country-drawer-header {
  text-align: center;
  padding: 0 8px;
}

.country-drawer-header h3 {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: var(--gray-dark);
  margin-bottom: 4px;
}

.country-drawer-header p {
  font-size: 14px;
  color: rgba(47, 47, 47, 0.7);
  margin: 0;
}

.country-drawer-selected {
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.country-selected-text {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  color: var(--gray-dark);
}

.country-selected-subtext {
  font-size: 12px;
  color: rgba(47, 47, 47, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.country-drawer-indicator {
  width: 30%;
  border-radius: 100px;
  align-self: center;
  height: 5px;
  background: rgba(47, 47, 47, 0.1);
}

.country-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 8px 8px;
}

.country-drawer-list .country-option {
  border: none;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  padding: 16px;
}

/* Hover only for pointer devices; avoids ghost highlight on touch when drawer opens */
@media (hover: hover) {
  .country-drawer-list .country-option:hover {
    background: rgba(53, 78, 65, 0.04);
  }
}

.country-drawer-list .country-option.active {
  background: rgba(53, 78, 65, 0.04);
  color: var(--green-dark);
}

.country-drawer-list .country-option.active .country-option-text {
  color: var(--green-dark);
}

.country-drawer-list .country-option-text {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  color: var(--gray-dark);
}

.country-drawer-list .country-option .country-option-check {
  display: none;
}

.country-drawer {
  opacity: 1;
  visibility: visible;
  transition: none;
}

.country-drawer .drawer-backdrop {
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.country-drawer.show .drawer-backdrop {
  opacity: 1;
}

.otp-verification-complete {
  font-style: italic;
  color: var(--green-dark);
  font-family: "Playfair Display", serif;
  font-size: 16px;
  text-align: center;
  width: 100%;
  display: block;
  padding: 12px 0;
}

/* Active/Focus state for all inputs - matching admin style with green color scheme */
/* Note: Login inputs are excluded via more specific selectors earlier in this file */
input:focus,
input:active,
input:focus-visible,
.form-control:focus,
.form-control:active,
.form-control:focus-visible,
input[type="text"]:focus,
input[type="text"]:active,
input[type="text"]:focus-visible,
input[type="number"]:focus,
input[type="number"]:active,
input[type="number"]:focus-visible,
input[type="email"]:focus,
input[type="email"]:active,
input[type="email"]:focus-visible,
input[type="password"]:focus,
input[type="password"]:active,
input[type="password"]:focus-visible,
input[type="tel"]:focus,
input[type="tel"]:active,
input[type="tel"]:focus-visible,
input[type="date"]:focus,
input[type="date"]:active,
input[type="date"]:focus-visible,
input[type="search"]:focus,
input[type="search"]:active,
input[type="search"]:focus-visible,
textarea:focus,
textarea:active,
textarea:focus-visible,
select:focus,
select:active,
select:focus-visible {
  border-color: var(--green-light) !important;
  box-shadow: 0 0 0 0.2rem rgba(123, 158, 124, 0.25) !important;
  outline: none !important;
}

/* Ensure login inputs maintain their custom styling (no border/shadow on focus) */
#login input:focus,
#login input:active,
#login input:focus-visible,
#login .password-form input:focus,
#login .password-form input:active,
#login .password-form input:focus-visible {
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
