@font-face {
  font-family: 'Twemoji Country Flags';
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
  src: url('https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2') format('woff2');
}

#active-lang-flag,
#stand-details-flag,
.lang-option .flag,
.stand-flag,
.stand-details-flag-large,
.flag-avatar,
.flag-icon {
  font-family: "Twemoji Country Flags", sans-serif !important;
}




/* --- Global Variables & Themes --- */
:root {
  /* Common Design Tokens */
  --font-family: "Twemoji Country Flags", 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  /* HSL Color Tokens */
  --primary-h: 224;
  --primary-s: 100%;
  --primary-l: 11%; /* #00113a */

  --secondary-h: 150;
  --secondary-s: 100%;
  --secondary-l: 21%; /* #006d36 - Emerald */

  --tertiary-h: 358;
  --tertiary-s: 60%;
  --tertiary-l: 65%; /* #db6f70 - Soft Coral */

  --warning-h: 35;
  --warning-s: 100%;
  --warning-l: 50%; /* Amber/Orange */
}

/* --- Dark Theme (Default) --- */
.theme-dark {
  --bg-base: hsl(var(--primary-h), 70%, 7%);
  --bg-surface: hsl(var(--primary-h), 50%, 11%);
  --bg-surface-low: hsl(var(--primary-h), 45%, 15%);
  --bg-surface-lowest: hsl(var(--primary-h), 40%, 18%);
  
  --text-primary: #f8f9fa;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  
  --color-primary: hsl(var(--primary-h), 100%, 65%);
  --color-primary-container: rgba(0, 35, 102, 0.4);
  --color-secondary: hsl(var(--secondary-h), 90%, 45%);
  --color-secondary-container: rgba(0, 109, 54, 0.2);
  --color-tertiary: hsl(var(--tertiary-h), 90%, 65%);
  --color-tertiary-container: rgba(85, 9, 17, 0.4);
  
  --border-color: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  --glass-bg: rgba(8, 20, 50, 0.65);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-highlight: rgba(255, 255, 255, 0.12);
  --gradient-card: linear-gradient(135deg, rgba(13, 27, 62, 0.6) 0%, rgba(8, 19, 48, 0.6) 100%);
  --scrollbar-bg: #1a202c;
  --scrollbar-thumb: #4a5568;
}

/* --- Light Theme --- */
.theme-light {
  --bg-base: #f7fafc;
  --bg-surface: #ffffff;
  --bg-surface-low: #edf2f7;
  --bg-surface-lowest: #e2e8f0;
  
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  
  --color-primary: hsl(var(--primary-h), 100%, 25%);
  --color-primary-container: rgba(0, 35, 102, 0.1);
  --color-secondary: hsl(var(--secondary-h), 100%, 25%);
  --color-secondary-container: rgba(0, 109, 54, 0.1);
  --color-tertiary: hsl(var(--tertiary-h), 80%, 45%);
  --color-tertiary-container: rgba(219, 111, 112, 0.15);
  
  --border-color: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(0, 0, 0, 0.05);
  --glass-border-highlight: rgba(255, 255, 255, 0.60);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(247, 250, 252, 0.7) 100%);
  --scrollbar-bg: #edf2f7;
  --scrollbar-thumb: #cbd5e0;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--scrollbar-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--radius-sm);
}

/* Material Symbols Outlined Fallback */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
}

/* --- Helper Classes --- */
.hidden {
  display: none !important;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-highlight);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Buttons --- */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, hsl(var(--primary-h), 100%, 40%) 100%);
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 17, 58, 0.25);
  transition: transform 0.15s ease, filter var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-primary:active {
  transform: scale(0.97);
}
.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--bg-surface-low);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-secondary:active {
  transform: scale(0.97);
}
.btn-secondary:hover {
  background-color: var(--bg-surface-lowest);
}

.btn-text-only {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem;
  transition: color var(--transition-fast);
}
.btn-text-only:hover {
  color: var(--text-primary);
}

.btn-danger {
  background: var(--color-tertiary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  transition: opacity var(--transition-fast);
}
.btn-danger:hover {
  opacity: 0.9;
}

/* --- Connectivity Banner --- */
.connectivity-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0.35rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color var(--transition-normal), transform var(--transition-normal);
}
.connectivity-banner.online {
  background-color: rgba(0, 109, 54, 0.9);
  color: #ffffff;
  transform: translateY(-100%); /* Hidden when online by default */
}
.connectivity-banner.offline {
  background-color: rgba(219, 111, 112, 0.95);
  color: #ffffff;
  transform: translateY(0);
}
.connectivity-banner.syncing {
  background-color: rgba(245, 158, 11, 0.95);
  color: #ffffff;
  transform: translateY(0);
}
.banner-content {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.banner-content .icon {
  font-size: 1rem;
}

/* --- Header --- */
.main-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 90;
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-header.header-hidden {
  transform: translateY(-110%);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.app-logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.logo-text {
  display: flex;
  flex-col: column;
  flex-direction: column;
  line-height: 1.15;
}
.app-title-prefix {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}
.app-title-main {
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#admin-access-btn .btn-text {
  display: none;
}
#admin-access-btn {
  padding: 0.5rem;
  min-height: auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
}
.header-btn {
  background: var(--bg-surface-low);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  overflow: hidden;
}
.header-btn span {
  font-size: 1.15rem;
}
.header-btn:hover {
  background: var(--bg-surface-lowest);
}
.header-btn.secondary-btn {
  width: auto;
  padding: 0 0.85rem;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.75rem;
}

/* --- Main Layout Container --- */
.app-main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 6.5rem 1.25rem; /* Padding bottom for bottom nav */
}

/* --- View Loader --- */
.view-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  gap: 1.25rem;
  color: var(--text-secondary);
}

/* --- BOTTOM NAVIGATION BAR --- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 80;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-top: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.65rem 1rem calc(0.5rem + env(safe-area-inset-bottom)) 1rem;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color var(--transition-normal);
}
.bottom-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-border-highlight);
  pointer-events: none;
}
.bottom-nav.nav-hidden {
  transform: translateY(110%);
}
.nav-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.nav-item {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 0.85rem;
  position: relative;
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.nav-item svg.nav-icon {
  width: 22px;
  height: 22px;
  stroke: var(--text-muted);
  stroke-width: 1.8;
  fill: none;
  transition: stroke var(--transition-fast), fill var(--transition-fast), stroke-width var(--transition-fast), transform var(--transition-fast);
}
.nav-item:hover svg.nav-icon {
  stroke: var(--text-primary);
  transform: scale(1.08);
}
.nav-item:active svg.nav-icon {
  transform: scale(0.92);
}
.nav-label {
  font-size: 0.6rem;
  font-weight: 600;
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.nav-item:hover .nav-label {
  color: var(--text-primary);
}
.nav-item.active {
  color: var(--color-primary);
}
.nav-item.active svg.nav-icon {
  stroke: var(--color-primary);
  stroke-width: 2.2;
  transform: scale(1.05);
}
.nav-item.active[data-view="home"] svg.nav-icon {
  fill: var(--color-primary);
}
.nav-item.active .nav-label {
  color: var(--color-primary);
}
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0.05rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 6px var(--color-primary), 0 0 12px var(--color-primary);
}
.nav-badge {
  position: absolute;
  top: 0.2rem;
  right: 0.5rem;
  background-color: var(--color-tertiary);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-full);
}

/* --- QR Floating Action Button --- */
.global-qr-fab {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  z-index: 79;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary) 0%, hsl(var(--primary-h), 100%, 35%) 100%);
  color: white;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 17, 58, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.global-qr-fab span {
  font-size: 1.75rem;
}
.global-qr-fab.fab-shifted {
  transform: translateY(4.5rem);
}
.global-qr-fab:active {
  transform: scale(0.92);
}
.global-qr-fab.fab-shifted:active {
  transform: translateY(4.5rem) scale(0.92);
}

/* 
=========================================
  VIEWS
=========================================
*/

/* --- Landing / Home View --- */
.home-welcome-card {
  padding: 2.25rem 1.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-highlight);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.home-welcome-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.home-welcome-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(var(--primary-h), 100%, 65%, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.welcome-badge {
  background-color: var(--color-primary-container);
  color: var(--color-primary);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.85rem;
}
.welcome-title {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.welcome-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  max-width: 500px;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.bento-item {
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  position: relative;
  overflow: hidden;
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-highlight);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.bento-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
.bento-icon-bg {
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  font-size: 8rem !important;
  opacity: 0.04;
  pointer-events: none;
}
.bento-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.bento-icon-wrapper {
  background-color: var(--color-primary-container);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bento-icon-wrapper span {
  font-size: 1.25rem;
}
.bento-title {
  font-size: 1rem;
  font-weight: 700;
}
.bento-info {
  display: flex;
  flex-direction: column;
}
.bento-value {
  font-size: 1.75rem;
  font-weight: 800;
}
.bento-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Sliders / Carousels inside Bento */
.slider-section {
  margin-top: 2rem;
}
.section-header-title {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}
.section-header-title span {
  color: var(--color-primary);
}
.slider-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem;
}
.slider-card {
  flex: 0 0 85%;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-highlight);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.slider-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.slider-text {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.4;
}
.slider-author {
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.85rem;
  color: var(--color-primary);
}

/* Missionary Fields list */
.mission-fields-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.stands-list-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .stands-list-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.field-card {
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

/* Hover effect ONLY for PC (min-width 768px) */
@media (min-width: 768px) {
  .field-card:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  }
}

/* On mobile, keep it static without scale to avoid sticky hover states on touch */
@media (max-width: 767px) {
  .field-card:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  }
}

/* Card gradients in dark theme with forced high contrast white text */
.theme-dark .stand-card-g1 { background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); border-color: rgba(44, 83, 100, 0.4); color: #ffffff !important; }
.theme-dark .stand-card-g2 { background: linear-gradient(135deg, #1f1c2c, #2b3a67); border-color: rgba(43, 58, 103, 0.4); color: #ffffff !important; }
.theme-dark .stand-card-g3 { background: linear-gradient(135deg, #0d324d, #7f5a83); border-color: rgba(127, 90, 131, 0.4); color: #ffffff !important; }
.theme-dark .stand-card-g4 { background: linear-gradient(135deg, #114b3e, #1a936f); border-color: rgba(26, 147, 111, 0.4); color: #ffffff !important; }
.theme-dark .stand-card-g5 { background: linear-gradient(135deg, #5b1525, #9c2a41); border-color: rgba(156, 42, 65, 0.4); color: #ffffff !important; }
.theme-dark .stand-card-g6 { background: linear-gradient(135deg, #373b44, #4286f4); border-color: rgba(66, 134, 244, 0.4); color: #ffffff !important; }

/* Card gradients in light theme with forced high contrast dark text */
.theme-light .stand-card-g1 { background: linear-gradient(135deg, #e3f2fd, #bbdefb, #90caf9); border-color: #64b5f6; color: #002171 !important; }
.theme-light .stand-card-g2 { background: linear-gradient(135deg, #f3e5f5, #e1bee7, #ce93d8); border-color: #ba68c8; color: #4a0072 !important; }
.theme-light .stand-card-g3 { background: linear-gradient(135deg, #efebe9, #d7ccc8, #bcaaa4); border-color: #8d6e63; color: #3e2723 !important; }
.theme-light .stand-card-g4 { background: linear-gradient(135deg, #e8f5e9, #c8e6c9, #a5d6a7); border-color: #81c784; color: #1b5e20 !important; }
.theme-light .stand-card-g5 { background: linear-gradient(135deg, #ffebee, #ffcdd2, #ef9a9a); border-color: #e57373; color: #b71c1c !important; }
.theme-light .stand-card-g6 { background: linear-gradient(135deg, #e0f7fa, #b2ebf2, #80deea); border-color: #4dd0e1; color: #006064 !important; }

/* Force correct text color inside stand cards in both themes */
.field-card .stand-card-title-text {
  color: inherit !important;
}
.field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.field-country {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.field-country span {
  color: var(--color-secondary);
}
.field-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.field-needs {
  font-size: 0.75rem;
  background-color: var(--bg-surface-low);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-primary);
  margin-top: 0.35rem;
}

/* Prayer Topics list */
.prayer-card {
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-highlight);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.prayer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.prayer-content {
  flex: 1;
}
.prayer-category {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-tertiary);
  margin-bottom: 0.25rem;
}
.prayer-title {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.prayer-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.prayer-btn {
  background: var(--bg-surface-low);
  border: 1px solid var(--border-color);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.prayer-btn span {
  font-size: 1.25rem;
  color: var(--text-muted);
}
.prayer-btn.prayed {
  background: var(--color-tertiary-container);
  border-color: var(--color-tertiary);
}
.prayer-btn.prayed span {
  color: var(--color-tertiary);
  font-variation-settings: 'FILL' 1;
}

/* --- PASAPORTE DIGITAL VIEW --- */
.passport-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-highlight);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}
.radial-progress-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: 1.25rem;
}
.radial-progress-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.radial-progress-bg {
  fill: none;
  stroke: var(--bg-surface-low);
  stroke-width: 8;
}
.radial-progress-bar {
  fill: none;
  stroke: var(--color-secondary);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.radial-progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
}
.radial-number {
  font-size: 2.25rem;
  font-weight: 900;
}
.radial-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  font-weight: 600;
}
.passport-hero-info h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}
.passport-hero-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

/* Stands Grid */
.stands-grid-container {
  margin-top: 1.5rem;
}
.stands-grid-header {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stands-section-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1.1rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--primary);
  padding-left: 0.65rem;
  letter-spacing: 0.02em;
}
.stands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.stand-card {
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-highlight);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-fast);
}
.stand-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.stand-card.locked {
  opacity: 0.65;
  background: rgba(8, 20, 50, 0.4);
  cursor: default !important;
}
.stand-card.unlocked {
  border-color: var(--color-secondary);
  background: var(--gradient-card);
  opacity: 1 !important;
}

/* Theme-specific styles for active/unlocked stand cards */
.theme-dark .stand-card.unlocked {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(12, 40, 20, 0.5) 100%) !important;
  border: 1.5px solid #22c55e !important;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.15) !important;
}

.theme-dark .stand-card.unlocked .stand-name {
  color: #ffffff !important;
}

.theme-dark .stand-card.unlocked .stand-number {
  color: #4ade80 !important;
}

.theme-dark .stand-card.unlocked .stamp-visual {
  background-color: rgba(34, 197, 94, 0.2) !important;
  color: #4ade80 !important;
}

.theme-light .stand-card.unlocked {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
  border: 1.5px solid #16a34a !important;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.12) !important;
}

.theme-light .stand-card.unlocked .stand-name {
  color: #14532d !important;
}

.theme-light .stand-card.unlocked .stand-number {
  color: #16a34a !important;
}

.theme-light .stand-card.unlocked .stamp-visual {
  background-color: rgba(22, 163, 74, 0.2) !important;
  color: #16a34a !important;
}
.stand-card.unlocked::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 0 15px rgba(0, 109, 54, 0.1) inset;
  pointer-events: none;
}
.stand-number {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.stand-card.unlocked .stand-number {
  color: var(--color-secondary);
}
.stand-name {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.stand-status-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.stamp-visual {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stand-card.locked .stamp-visual {
  background-color: var(--bg-surface-low);
  color: var(--text-muted);
}
.stand-card.unlocked .stamp-visual {
  background-color: var(--color-secondary-container);
  color: var(--color-secondary);
  animation: shine-gold 2s infinite;
}
.sync-badge {
  font-size: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.sync-badge.pending {
  background-color: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.sync-badge.synced {
  background-color: rgba(0, 109, 54, 0.15);
  color: #10b981;
}

@keyframes shine-gold {
  0% { box-shadow: 0 0 0 0 rgba(0, 109, 54, 0.3); }
  70% { box-shadow: 0 0 0 8px rgba(0, 109, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 109, 54, 0); }
}

/* Passport Completion celebration */
.completion-banner-card {
  background: linear-gradient(135deg, var(--color-secondary-container) 0%, rgba(0, 17, 58, 0.6) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 109, 54, 0.15);
}
.completion-banner-card .celebrate-icon {
  font-size: 3rem !important;
  color: #fbbf24;
  margin-bottom: 0.75rem;
  display: block;
}
.completion-banner-card h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.completion-banner-card p {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* --- EVENTOS ESPECIALES VIEW --- */
.event-card {
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  border-left: 5px solid var(--color-primary);
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border-highlight);
  border-right: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.event-card.requires-passport {
  border-left-color: var(--color-primary);
}
.event-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.event-badge-req {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}
.event-badge-req.required {
  background-color: var(--color-primary-container);
  color: var(--color-primary);
}
.event-badge-req.free {
  background-color: var(--color-secondary-container);
  color: var(--color-secondary);
}
.event-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.event-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.event-meta-item span {
  font-size: 0.95rem;
}
.event-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.event-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.event-locked-msg {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* --- FORMULARIO DE CONTACTO VIEW --- */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
}
.form-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-highlight);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.form-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.form-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}
.form-group input:not([type="checkbox"]), .form-group select, .form-group textarea {
  width: 100%;
  background-color: var(--bg-surface-low);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}
.form-group input:not([type="checkbox"]):focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--color-primary);
  background-color: var(--bg-surface-lowest);
}
.form-error {
  background-color: var(--color-tertiary-container);
  color: var(--color-tertiary);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.form-success-state {
  text-align: center;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.form-success-state span {
  font-size: 4rem !important;
  color: var(--color-secondary);
}

/* --- ADMIN PANEL VIEW --- */
.admin-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.admin-tab-nav {
  position: fixed;
  top: var(--header-height, 70px);
  left: 0;
  bottom: 0;
  width: 250px;
  max-width: 80%;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: var(--bg-surface-low);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-right: 1px solid var(--glass-border);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
  border-radius: 0;
}
.admin-tab-nav.drawer-open {
  transform: translateX(0);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
}
.theme-light .admin-tab-nav {
  background: rgba(255, 255, 255, 0.95);
}
.admin-tab-btn {
  background: transparent;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}
.admin-tab-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}
.theme-light .admin-tab-btn:hover {
  background-color: rgba(0, 0, 0, 0.04);
}
.admin-tab-btn.active {
  background-color: var(--color-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(59, 127, 245, 0.3);
}

/* Dashboard statistics panels */
.stats-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  align-items: center;
}
.stats-filter-btn {
  background: var(--bg-surface-low);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.stats-filter-btn.active {
  background-color: var(--color-secondary-container);
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}
.export-reports-section {
  margin-left: auto;
}

.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.stat-card-mini {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-highlight);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
}

/* Charts & Histograms with pure CSS */
.dashboard-block {
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-highlight);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
.dashboard-block-title {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.css-chart-bar-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.css-chart-bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
}
.css-chart-bar-label {
  width: 80px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.css-chart-bar-outer {
  flex: 1;
  background-color: var(--bg-surface-low);
  height: 12px;
  border-radius: var(--radius-full);
  overflow: hidden;
}
.css-chart-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, hsl(var(--primary-h), 100%, 70%) 100%);
  border-radius: var(--radius-full);
}
.css-chart-bar-value {
  width: 40px;
  text-align: right;
  font-weight: 700;
}

/* Passport distribution histogram styling */
.histogram-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 150px;
  padding-top: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.histogram-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 0.25rem;
}
.histogram-bar {
  width: 70%;
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  min-height: 2px;
  transition: height 0.5s ease;
  position: relative;
}
.histogram-bar:hover::after {
  content: attr(data-value);
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  background-color: var(--bg-surface-lowest);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--border-color);
}
.histogram-label {
  font-size: 0.6rem;
  color: var(--text-muted);
}

/* Admin CRUD tables styling */
.admin-table-container {
  overflow-x: auto;
  margin-top: 1rem;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}
.admin-table th, .admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
}
.admin-table th {
  font-weight: 700;
  color: var(--text-secondary);
  background-color: var(--bg-surface-low);
}
.admin-table tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}
.btn-edit-sm {
  background-color: var(--color-primary-container);
  color: var(--color-primary);
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
}
.btn-delete-sm {
  background-color: var(--color-tertiary-container);
  color: var(--color-tertiary);
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
}

/* 
=========================================
  MODALS & OVERLAYS
=========================================
*/
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-content {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.close-modal-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--text-secondary);
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.close-modal-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(90deg);
}
.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: 80vh;
}

/* PWA Install Banner */
.pwa-install-prompt {
  position: fixed;
  bottom: 5rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 95;
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.pwa-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.app-icon-pwa {
  font-size: 2.25rem !important;
  color: var(--color-primary);
}
.pwa-title {
  font-size: 0.9rem;
  font-weight: 700;
}
.pwa-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
}
.pwa-actions {
  display: flex;
  gap: 0.5rem;
}
.btn-primary-small {
  background: var(--color-primary);
  color: white;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
}

/* --- QR SCANNER MODAL SPECIFICS --- */
.scanner-modal-content {
  max-width: 450px;
}
.scanner-help {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1rem;
}
.scanner-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background-color: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#scanner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scanner-overlay-laser {
  position: absolute;
  top: 15%;
  left: 15%;
  right: 15%;
  bottom: 15%;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.scanner-overlay-laser::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-tertiary);
  box-shadow: 0 0 8px var(--color-tertiary);
  animation: scan-laser 2s linear infinite;
}
@keyframes scan-laser {
  0% { top: 5%; }
  50% { top: 95%; }
  100% { top: 5%; }
}
.scanner-status {
  position: absolute;
  bottom: 1rem;
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 500;
}
.manual-code-entry {
  margin-top: 1.25rem;
  text-align: center;
}
.divider-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  position: relative;
}
.input-group-row {
  display: flex;
  gap: 0.5rem;
}
.input-group-row input {
  flex: 1;
  background-color: var(--bg-surface-low);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
}
.input-group-row button {
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
}

/* 
=========================================
  RESPONSIVE ADAPTATIONS (DESKTOP)
=========================================
*/
@media (min-width: 768px) {
  /* Layout adjustments */
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .bento-item {
    min-height: 180px;
  }
  .stands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .stands-grid-header {
    font-size: 1.15rem;
  }
  .stats-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  .stats-filter-bar {
    gap: 1rem;
  }
  
  /* Layout for Admin Dashboard on Desktop */
  .admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    align-items: start;
    gap: 2rem;
  }
  .admin-tab-nav {
    position: static;
    width: auto;
    max-width: none;
    flex-direction: column;
    overflow-x: visible;
    border-bottom: none;
    border: 1px solid var(--glass-border);
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem;
    height: auto;
    border-radius: var(--radius-md);
    gap: 0.4rem;
    transform: none;
    transition: none;
    box-shadow: none;
  }
  .admin-tab-btn {
    text-align: left;
    width: 100%;
    font-size: 0.9rem;
    padding: 0.75rem 1.1rem;
    border-radius: var(--radius-md);
  }
  .admin-tab-btn.active {
    background-color: var(--color-primary);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(59, 127, 245, 0.35);
  }
  
  /* Double column sliders on large screens */
  .slider-card {
    flex: 0 0 45%;
  }

  /* Keep bottom nav fixed and centered at the bottom on desktop */
  .bottom-nav {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-top: 1px solid var(--border-color);
  }
  .nav-container {
    max-width: 600px;
    margin: 0 auto;
  }

  /* Reposition floating scan action button */
  .global-qr-fab {
    bottom: 6.5rem;
    right: 2.5rem;
  }

  /* Main padding adjustment */
  .app-main-container {
    padding-bottom: 7rem;
    padding-top: 2.5rem;
  }
  
  /* Header adjustments for Desktop */
  .main-header {
    border-radius: 0;
    padding: 0.75rem 2.5rem;
  }
  .main-header .header-btn[onclick="app.openContactModal()"] {
    display: inline-flex !important;
  }
  #admin-access-btn .btn-text {
    display: inline;
  }
  #admin-access-btn {
    padding: 0.5rem 1rem;
    min-height: auto;
    width: auto;
    height: auto;
    border-radius: var(--radius-full);
  }
}

@media (min-width: 1024px) {
  .stands-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-item:first-child {
    grid-column: span 2;
  }
}

/* Active users pulse animation */
@keyframes active-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 0 0 8px rgba(46, 204, 113, 0);
  }
  100% {
    transform: scale(0.95);
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

/* Stand Details Modal Premium Styling */
.stand-details-modal-content {
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
  background: var(--bg-surface) !important; /* Forces solid opaque background to prevent behind-modal text overlap */
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stand-details-modal-content .modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0; /* Prevent header from shrinking on small screens */
  background: var(--bg-surface);
}

.stand-details-tabs {
  display: flex;
  background: var(--bg-surface-low); /* Slate background capsule */
  border-radius: 30px;
  padding: 6px;
  margin: 1.25rem 1.5rem 0.5rem;
  gap: 0.35rem;
  overflow: visible;
  flex-shrink: 0; /* Prevent tabs container from collapsing on mobile */
  border: 1px solid var(--border-color);
}

.stand-tab-btn {
  background: transparent;
  border: none;
  padding: 0.65rem 1.25rem;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 25px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1.2;
  flex: 1;
  text-align: center;
  border-bottom: none !important; /* Remove old underline-style border */
}

.stand-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.stand-tab-btn.active {
  color: #ffffff !important;
  background: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-light .stand-tab-btn.active {
  color: #ffffff !important;
}

.stand-details-body {
  overflow-y: auto;
  padding: 1.5rem;
  flex: 1;
  background: var(--bg-surface);
}

@media (min-width: 768px) {
  .stand-details-body {
    padding: 2rem;
  }
}

/* Immersive Full Screen Mobile Sheet Details for Screens <= 767px */
@media (max-width: 767px) {
  #stand-details-modal.modal-overlay {
    padding: 0;
  }
  .stand-details-modal-content {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    border: none;
    background: var(--bg-surface) !important;
  }
  .stand-details-modal-content .modal-header {
    padding: 1rem 1.25rem;
    background: var(--bg-surface);
  }
  .stand-details-tabs {
    margin: 0.75rem 0.5rem;
    padding: 3px;
    border-radius: 20px;
    gap: 0.15rem;
  }
  .stand-tab-btn {
    padding: 0.55rem 0.15rem;
    font-size: 0.8rem;
    border-radius: 16px;
  }
  .stand-details-body {
    padding: 1.25rem 1rem;
    background: var(--bg-surface);
  }
}

@media (max-width: 370px) {
  .stand-tab-btn {
    font-size: 0.73rem;
    padding: 0.5rem 0.1rem;
  }
  .stand-details-tabs {
    margin: 0.75rem 0.35rem;
    gap: 0.1rem;
  }
}

.stand-tab-content-area {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-primary);
}

/* For mobile devices, ensure the font is large and readable as requested */
@media (max-width: 640px) {
  .stand-tab-content-area {
    font-size: 1.125rem;
  }
}

.stand-section-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.stand-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.6rem;
}

.stand-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .stand-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stand-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stand-info-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.stand-info-value {
  font-size: 1.15rem;
  font-weight: 500;
}

.stand-image-showcase {
  display: flex;
  overflow-x: auto;
  gap: 0.85rem;
  padding-bottom: 0.75rem;
  margin-top: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}

.stand-image-showcase::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

@media (min-width: 768px) {
  .stand-image-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }
}

.stand-showcase-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 0 0 85%; /* Peek of next image on mobile */
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .stand-showcase-card {
    flex: none;
  }
}

.stand-showcase-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.stand-showcase-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.stand-bullets {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stand-bullets li {
  position: relative;
  padding-left: 1.75rem;
}

.stand-bullets li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  color: var(--color-primary);
  font-size: 1.3rem;
  line-height: 1;
  top: 0.1rem;
}

.stand-bullets.prayer-motives li {
  padding-left: 2rem;
}

.stand-bullets.prayer-motives li::before {
  content: "🙏";
  position: absolute;
  left: 0.15rem;
  font-size: 1.1rem;
  top: 0.1rem;
}

.stand-testimonial {
  font-style: italic;
  border-left: 3px solid var(--color-primary);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ==================== COUNTDOWN SECTION ==================== */
.home-countdown-card {
  padding: 1.5rem 1.25rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--color-primary);
}

.countdown-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(var(--color-primary-rgb, 59,127,245), 0.12);
  border: 1px solid rgba(var(--color-primary-rgb, 59,127,245), 0.3);
  border-radius: 30px;
  padding: 0.25rem 0.75rem;
}

.countdown-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: active-pulse 1.5s infinite ease-in-out;
}

.countdown-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-top: 0.4rem;
  margin-bottom: 0.15rem;
  color: var(--text-primary);
  line-height: 1.15;
}

.countdown-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0;
  margin-bottom: 1.1rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
  line-height: 1.4;
}

/* Mobile: 2x2 grid */
.countdown-timer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  max-width: 320px;
  margin: 0 auto;
}

.timer-box {
  background: rgba(59, 127, 245, 0.07);
  border: 1px solid rgba(59, 127, 245, 0.18);
  border-radius: 16px;
  padding: 0.9rem 0.5rem 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.15s ease;
}

.timer-num {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  font-family: 'Outfit', monospace, sans-serif;
  letter-spacing: -0.02em;
}

/* Seconds tile: highlighted color */
.timer-box--seconds .timer-num {
  color: var(--color-primary);
}

.timer-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

.countdown-status-badge {
  display: inline-block;
  margin-top: 1rem;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #2ecc71;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  animation: active-pulse 2s infinite ease-in-out;
}

/* Light theme overrides — mobile */
.theme-light .timer-box {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.05);
}

.theme-light .timer-num {
  color: #1a1a2e;
}

.theme-light .timer-box--seconds .timer-num {
  color: var(--color-primary);
}

/* Desktop: 4 tiles in a row */
@media (min-width: 640px) {
  .home-countdown-card {
    padding: 2rem 2rem 1.75rem;
  }

  .countdown-title {
    font-size: 1.75rem;
  }

  .countdown-timer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 520px;
  }

  .timer-box {
    background: rgba(59, 127, 245, 0.08);
    border: 1px solid rgba(59, 127, 245, 0.2);
    border-radius: 18px;
    padding: 1.2rem 0.75rem 1rem;
  }

  .timer-num {
    font-size: 3rem;
    color: #3b7ff5;
  }

  /* On desktop all numbers go blue — matches reference image */
  .timer-box--seconds .timer-num {
    color: #3b7ff5;
  }

  .timer-label {
    font-size: 0.65rem;
  }

  /* Light theme desktop */
  .theme-light .timer-box {
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.15);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.06);
  }

  .theme-light .timer-num {
    color: #2563eb;
  }

  .theme-light .timer-box--seconds .timer-num {
    color: #2563eb;
  }
}

/* Language Selector Styles */
.lang-selector-container {
  position: relative;
  display: inline-block;
}
.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-highlight);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  min-width: 140px;
  overflow: hidden;
  padding: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
}
.theme-light .lang-option:hover {
  background: rgba(0, 0, 0, 0.05);
}
.lang-option .flag {
  font-size: 1.1rem;
  line-height: 1;
}
.lang-option .name {
  font-weight: 500;
}

/* --- Audit Log Badges --- */
.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: var(--radius-sm);
  color: #fff;
}
.badge-success {
  background-color: #2ecc71;
}
.badge-warning {
  background-color: #f1c40f;
  color: #333;
}
.badge-danger {
  background-color: #e74c3c;
}

/* ==================== PASSWORD EYE FIELD ==================== */
.password-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field-wrapper input {
  flex: 1;
  padding-right: 2.8rem;
}

.password-eye-btn {
  position: absolute;
  right: 0.6rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: 6px;
  transition: color 0.2s;
  line-height: 1;
}

.password-eye-btn:hover {
  color: var(--color-primary);
}

.password-eye-btn .material-symbols-outlined {
  font-size: 1.15rem;
}

.login-help-text {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted, var(--text-secondary));
  margin-top: 0.9rem;
  margin-bottom: 0;
  line-height: 1.4;
}

/* ==================== PREMIUM USERS TABLE ==================== */
.users-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.users-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.users-section-title .material-symbols-outlined {
  font-size: 1.25rem;
  color: var(--color-primary);
}

.users-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.users-table thead th {
  background: rgba(var(--color-primary-rgb, 59,127,245), 0.1);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

.users-table tbody tr {
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.15s ease;
}

.users-table tbody tr:last-child {
  border-bottom: none;
}

.users-table tbody tr:hover {
  background: rgba(var(--color-primary-rgb, 59,127,245), 0.05);
}

.users-table td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
}

.user-name-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary, #6366f1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}

.user-username {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.875rem;
}

/* Role pills */
.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.role-pill--admin {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.role-pill--colaborador {
  background: rgba(59, 127, 245, 0.12);
  color: var(--color-primary);
  border: 1px solid rgba(59, 127, 245, 0.25);
}

/* Status pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill--active {
  background: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.25);
}

.status-pill--inactive {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.2);
}

.status-pill::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* Permission chips */
.perms-chips {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.perm-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  font-size: 0.67rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  white-space: nowrap;
}

.perm-chip .material-symbols-outlined {
  font-size: 0.75rem;
}

.theme-light .perm-chip {
  background: rgba(0, 0, 0, 0.04);
}

/* Action buttons in users table */
.user-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.btn-user-edit {
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(59, 127, 245, 0.35);
  background: rgba(59, 127, 245, 0.1);
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-user-edit:hover {
  background: rgba(59, 127, 245, 0.2);
  border-color: var(--color-primary);
}

.btn-user-toggle {
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-user-toggle--disable {
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.btn-user-toggle--disable:hover {
  background: rgba(245, 158, 11, 0.2);
}

.btn-user-toggle--enable {
  border: 1px solid rgba(46, 204, 113, 0.35);
  background: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
}

.btn-user-toggle--enable:hover {
  background: rgba(46, 204, 113, 0.2);
}

.btn-user-delete {
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(231, 76, 60, 0.3);
  background: rgba(231, 76, 60, 0.08);
  color: #e74c3c;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-user-delete:hover {
  background: rgba(231, 76, 60, 0.18);
}

.btn-user-edit .material-symbols-outlined,
.btn-user-toggle .material-symbols-outlined,
.btn-user-delete .material-symbols-outlined {
  font-size: 0.9rem;
}

/* Icon-only action buttons */
.btn-action-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-action-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn-action-icon span {
  font-size: 1.15rem !important;
}

.btn-action-icon--edit {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}
.btn-action-icon--edit:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  color: #60a5fa;
}

.btn-action-icon--disable {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
}
.btn-action-icon--disable:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fbbf24;
}

.btn-action-icon--enable {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}
.btn-action-icon--enable:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
}

.btn-action-icon--delete {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}
.btn-action-icon--delete:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #f87171;
}

/* Stand scan count chip in passport */
.stand-scan-count-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(59, 127, 245, 0.1);
  border: 1px solid rgba(59, 127, 245, 0.2);
  border-radius: 20px;
  padding: 0.2rem 0.55rem;
  margin-top: 0.35rem;
  width: fit-content;
}

.stand-scan-count-chip .material-symbols-outlined {
  font-size: 0.8rem;
}

/* Event scan count chip in passport */
.event-scan-count-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-secondary);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  padding: 0.2rem 0.55rem;
  width: fit-content;
}

.event-scan-count-chip .material-symbols-outlined {
  font-size: 0.8rem;
}

/* Custom Premium Modal Styles */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 8, 20, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.custom-modal-overlay.active {
  opacity: 1;
}

.custom-modal-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-highlight);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 440px;
  padding: 2rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}

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

.custom-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(59, 127, 245, 0.15);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.custom-modal-icon.confirm {
  background: rgba(99, 102, 241, 0.15);
  color: var(--color-secondary);
}

.custom-modal-icon.warning {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.custom-modal-icon .material-symbols-outlined {
  font-size: 2.25rem;
}

.custom-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.custom-modal-message {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  word-wrap: break-word;
}

.custom-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.custom-modal-btn {
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.custom-modal-btn.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 127, 245, 0.25);
}

.custom-modal-btn.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.custom-modal-btn.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.custom-modal-btn.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Light Theme overrides for custom modals */
body.light-theme .custom-modal-overlay {
  background: rgba(220, 225, 235, 0.45);
}

body.light-theme .custom-modal-card {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

body.light-theme .custom-modal-btn.btn-secondary {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .custom-modal-btn.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* Premium Stand Details Layout Styles */
.stand-details-modal-content {
  max-width: 1050px !important;
  width: 95%;
  max-height: 92vh !important;
  background: var(--bg-surface) !important;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Hero Header */
.stand-details-hero {
  position: relative;
  height: 240px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  flex-shrink: 0;
}

.stand-details-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(4, 8, 20, 0.2) 0%, rgba(4, 8, 20, 0.9) 100%);
}

.stand-details-hero .close-modal-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
}

.stand-details-hero .close-modal-btn:hover {
  background: rgba(239, 68, 68, 0.8);
  border-color: transparent;
}

.stand-details-hero-content {
  position: relative;
  z-index: 5;
}

.stand-details-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.stand-details-hero-badge .flag-icon {
  font-size: 1.15rem;
}

.stand-details-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Two Column Layout */
.stand-details-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

@media (min-width: 860px) {
  .stand-details-layout {
    grid-template-columns: 1.8fr 1fr;
  }
}

.stand-details-main-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stand-details-side-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Tabs */
.stand-details-main-col .stand-details-tabs {
  margin: 0;
  padding: 5px;
  background: var(--bg-surface-low);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  display: flex;
  gap: 0.25rem;
}

/* Tab Header & Title */
.stand-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.stand-tab-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.stand-gallery-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.stand-gallery-link:hover {
  opacity: 0.8;
}

/* 2x2 Grid of Cards */
.stand-tab-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .stand-tab-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stand-tab-grid.single-column {
    grid-template-columns: 1fr;
  }
}

.grid-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.grid-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.grid-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
}

.grid-card-icon {
  font-size: 1.2rem;
}

.grid-card-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.grid-card-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

/* Sidebar General Data */
.side-col-header {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin: 0 0 0.5rem;
}

.side-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.side-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(59, 127, 245, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-card-icon span {
  font-size: 1.35rem;
}

.side-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.side-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.side-card-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Sidebar Stand Layout Photo Box */
.side-photo-card {
  position: relative;
  height: 350px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
}

.side-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.side-photo-card:hover img {
  transform: scale(1.05);
}

.side-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 8, 20, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  opacity: 0.9;
  transition: all var(--transition-fast);
}

.side-photo-card:hover .side-photo-overlay {
  background: rgba(4, 8, 20, 0.4);
}

.side-photo-overlay span:first-of-type {
  font-size: 2rem;
}

.side-photo-overlay span:last-of-type {
  font-size: 0.8rem;
  font-weight: 700;
}

/* Light Theme overrides for Stand Details */
body.light-theme .stand-details-modal-content {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

body.light-theme .grid-card,
body.light-theme .side-card {
  background: rgba(0, 0, 0, 0.02);
}

body.light-theme .grid-card:hover {
  background: rgba(0, 0, 0, 0.03);
}

body.light-theme .stand-details-hero-overlay {
  background: linear-gradient(180deg, rgba(4, 8, 20, 0.1) 0%, rgba(4, 8, 20, 0.75) 100%);
}

/* Home Welcome Banner Overlay Layout */
.home-welcome-card.has-banner {
  padding: 0;
  background: none;
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}
.welcome-text-overlay {
  position: absolute;
  top: 1.5rem;
  left: 4.5rem; /* Shifted more to the right */
  max-width: 48%;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.welcome-text-overlay .welcome-badge {
  background: #00113a;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.welcome-text-overlay .welcome-title {
  color: #00113a;
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.25;
}
.welcome-text-overlay .welcome-desc {
  color: #334155;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}
.welcome-btn-overlay {
  position: absolute;
  bottom: 0.6rem; /* Lowered a bit, still within the image */
  right: 17rem; /* Shifted to the left into the white area */
  z-index: 5;
}

@media (max-width: 768px) {
  .welcome-text-overlay {
    top: 1rem;
    left: 1rem;
    max-width: 60%;
    padding: 0.75rem 1rem;
  }
  .welcome-text-overlay .welcome-title {
    font-size: 1.2rem;
  }
  .welcome-text-overlay .welcome-desc {
    font-size: 0.8rem;
  }
  .welcome-btn-overlay {
    bottom: 1rem;
    right: 12rem;
  }
}

@media (max-width: 640px) {
  .welcome-text-overlay {
    top: 0.5rem;
    left: 0.5rem;
    max-width: 70%;
    padding: 0.5rem 0.75rem;
  }
  .welcome-text-overlay .welcome-title {
    font-size: 1rem;
  }
  .welcome-text-overlay .welcome-desc {
    font-size: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .welcome-btn-overlay {
    bottom: 0.5rem;
    right: 8rem;
  }
}

@media (max-width: 480px) {
  .home-welcome-card.has-banner {
    display: flex;
    flex-direction: column;
    background: var(--gradient-card) !important;
    border: 1px solid var(--glass-border) !important;
    padding: 0 0 1rem 0 !important;
  }
  .welcome-text-overlay {
    position: relative;
    top: auto;
    left: auto;
    max-width: 100%;
    background: none;
    box-shadow: none;
    border: none;
    padding: 1rem 1rem 0.5rem 1rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .welcome-text-overlay .welcome-title {
    color: var(--text-primary);
    font-size: 1.25rem;
  }
  .welcome-text-overlay .welcome-desc {
    color: var(--text-secondary);
    display: block;
  }
  .welcome-btn-overlay {
    position: relative;
    bottom: auto;
    right: auto;
    padding: 0 1rem;
    text-align: right;
  }
}

/* --- Mobile Splash Screen --- */
.mobile-splash-screen {
  display: none;
}

@media (max-width: 768px) {
  .mobile-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00113a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  }
  
  .mobile-splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  
  .splash-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .splash-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    animation: pulse-splash 1.8s infinite ease-in-out;
  }
  
  .splash-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    border-top-color: #00e5ff;
    animation: spin-splash 0.8s linear infinite;
  }
  
  @keyframes pulse-splash {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.2)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.4)); }
  }
  
  @keyframes spin-splash {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
}

/* --- Speakers & Themes Sections --- */
.home-section {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.home-section .section-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.home-section .section-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.speakers-scroll-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.25rem;
}

@media (max-width: 768px) {
  .speakers-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 1.25rem;
    padding: 0.5rem 0.25rem 1rem 0.25rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .speakers-scroll-container::-webkit-scrollbar {
    display: none;
  }
  .speaker-card {
    min-width: 150px;
    scroll-snap-align: start;
  }
}

.speaker-card {
  text-align: center;
}

.speaker-img-blank {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px dashed var(--border-color);
  margin: 0 auto 1rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.speaker-card:hover .speaker-img-blank {
  transform: scale(1.05);
  border-color: var(--color-primary);
}

.speaker-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  margin: 0 auto 1rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
  display: block;
}

.speaker-card:hover .speaker-img {
  transform: scale(1.05);
  border-color: var(--color-primary);
}

.speaker-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.speaker-role {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-top: 0.25rem;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.theme-card {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--radius-md);
  min-height: 100px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
}

.theme-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 15px var(--color-primary);
  border-color: var(--color-primary);
}

.theme-card--wide {
  grid-column: span 3;
}

.theme-author {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.theme-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

@media (max-width: 992px) {
  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .theme-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .themes-grid {
    grid-template-columns: 1fr;
  }
  .theme-card--wide {
    grid-column: span 1;
  }
}

/* --- Workshop Details Modal & Cards --- */
.theme-card {
  position: relative;
}

.theme-card-full {
  opacity: 0.65;
  filter: grayscale(30%);
}

.theme-full-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.workshop-detail-card {
  max-width: 600px;
  width: 90%;
  text-align: left;
  padding: 2rem;
  box-sizing: border-box;
}

.workshop-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.workshop-detail-author {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  font-weight: 700;
  display: block;
}

.workshop-detail-title {
  font-size: 1.5rem;
  margin: 0.25rem 0 0;
  color: var(--text-primary);
  font-weight: 800;
}

.workshop-modal-close {
  background: none;
  border: none;
  color: var(--text-primary);
  opacity: 0.7;
  cursor: pointer;
  padding: 0.5rem;
  margin-top: -0.5rem;
  margin-right: -0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast);
}

.workshop-modal-close:hover {
  opacity: 1;
}

.workshop-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.workshop-info-grid .info-card {
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--glass-border);
}

.info-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  opacity: 0.6;
  font-weight: 600;
}

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

.workshop-desc-text {
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
  opacity: 0.9;
}

.rsvp-full-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

#workshop-rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.05));
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.rsvp-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rsvp-input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.85;
}

.rsvp-input-group input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.rsvp-submit-btn {
  padding: 0.85rem;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  width: 100%;
}

/* ==================== SWITCH TOGGLE STYLES ==================== */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 22px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-secondary, #b3b3b3);
  transition: .3s;
  border-radius: 50%;
}

.switch-toggle input:checked + .switch-slider {
  background-color: rgba(0, 17, 58, 0.4);
  border-color: var(--color-primary);
}

.theme-dark .switch-toggle input:checked + .switch-slider {
  background-color: rgba(65, 127, 245, 0.3);
  border-color: var(--color-primary);
}

.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(22px);
  background-color: var(--color-primary);
}

/* Home Passport Widget Styling (Adapts to Active Theme) */
.home-passport-widget {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  margin-top: -0.75rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-primary);
  background: var(--bg-surface-low);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-bounce, ease), box-shadow 0.25s ease;
  position: relative;
  z-index: 10;
}

.home-passport-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 127, 245, 0.15);
}

.home-passport-widget .widget-icon-container {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  overflow: hidden;
  flex-shrink: 0;
}

.home-passport-widget .widget-title {
  display: block;
  font-size: 0.65rem;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-passport-widget .widget-code {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: monospace;
  letter-spacing: 0.05em;
}

.home-passport-widget .widget-action {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--color-primary);
  font-weight: 700;
}

/* Ensure options inside select dropdown are readable in all browsers */
select option {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* Argentina Theme Countdown Card */
/* Argentina Theme Countdown Card */
.home-countdown-card.argentina-theme {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(252, 191, 73, 0.4) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25) !important;
  padding: 1.75rem 1.5rem;
}

/* Light Theme Styling */
.theme-light .home-countdown-card.argentina-theme {
  background: linear-gradient(135deg, #75aadb 0%, #bce0fd 35%, #ffffff 50%, #bce0fd 65%, #75aadb 100%) !important;
  border: 2px solid #5fa2dd !important;
  box-shadow: 0 16px 40px rgba(117, 170, 219, 0.25), 0 0 15px rgba(252, 191, 73, 0.25) !important;
}

.theme-light .home-countdown-card.argentina-theme .countdown-title {
  color: #0c2340 !important;
  text-shadow: 0 1px 1px rgba(255,255,255,0.6) !important;
}

.theme-light .home-countdown-card.argentina-theme .countdown-subtitle {
  color: #2d3748 !important;
  text-shadow: none !important;
}

.theme-light .home-countdown-card.argentina-theme .timer-box {
  background: #ffffff !important;
  border: 1px solid rgba(117, 170, 219, 0.4) !important;
  box-shadow: 0 6px 16px rgba(117, 170, 219, 0.12) !important;
}

.theme-light .home-countdown-card.argentina-theme .timer-num {
  color: #1d4ed8 !important;
  text-shadow: none !important;
}

.theme-light .home-countdown-card.argentina-theme .timer-label {
  color: #334155 !important;
  text-shadow: none !important;
}

/* Dark Theme Styling (Default) */
.theme-dark .home-countdown-card.argentina-theme {
  background: linear-gradient(135deg, #102347 0%, #1e3e7c 50%, #102347 100%) !important;
  border: 2px solid #5fa2dd !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 15px rgba(252, 191, 73, 0.15) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.theme-dark .home-countdown-card.argentina-theme .countdown-title {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
}

.theme-dark .home-countdown-card.argentina-theme .countdown-subtitle {
  color: #e2e8f0 !important;
  text-shadow: none !important;
}

.theme-dark .home-countdown-card.argentina-theme .timer-box {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(117, 170, 219, 0.25) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

.theme-dark .home-countdown-card.argentina-theme .timer-num {
  color: #75aadb !important;
  text-shadow: none !important;
}

.theme-dark .home-countdown-card.argentina-theme .timer-label {
  color: #cbd5e0 !important;
  text-shadow: none !important;
}

.home-countdown-card.argentina-theme .countdown-badge {
  background: rgba(252, 191, 73, 0.15) !important;
  border: 1.5px solid rgba(252, 191, 73, 0.7) !important;
  color: #fcbf49 !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.95rem;
}

.home-countdown-card.argentina-theme .countdown-badge::before {
  background: #fcbf49 !important;
}

.home-countdown-card.argentina-theme .timer-box {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-countdown-card.argentina-theme .timer-box:hover {
  transform: translateY(-2px);
}

.home-countdown-card.argentina-theme .timer-box--seconds .timer-num {
  color: #fcbf49 !important; /* Golden yellow for the seconds highlight */
}

/* App version badge theme adjustments */
.app-version {
  margin-top: 0.5rem;
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  display: block;
}

.theme-dark .app-version {
  color: #22c55e !important; /* Green */
  opacity: 0.9;
}

.theme-light .app-version {
  color: #1d4ed8 !important; /* Blue */
  opacity: 0.9;
}




/* --- Carousel Styles --- */
.home-carousel-container {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  background: #0c2340; /* Fallback */
  aspect-ratio: 16 / 9; /* Nice aspect ratio for landscape images */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.home-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.home-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home-carousel-indicators {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.home-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.home-carousel-dot.active {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.2);
  width: 20px;
  border-radius: 6px;
}


.home-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.home-carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.home-carousel-arrow span {
  font-size: 24px;
}

.home-carousel-prev {
  left: 10px;
}

.home-carousel-next {
  right: 10px;
}

/* Ensure indicators are clickable and very visible */
.home-carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 30;
  pointer-events: none; /* Let container handle touch, but enable dots */
}

.home-carousel-dot {
  pointer-events: auto; /* Re-enable clicks on dots */
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0,0,0,0.5);
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}

.home-carousel-dot.active {
  background: #ffffff;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255,255,255,0.8);
}

/* Carousel Additions */
.carousel-fullscreen-btn:hover {
  transform: scale(1.1) !important;
  opacity: 1 !important;
}
.carousel-control-btn:hover {
  background: rgba(0,0,0,0.8) !important;
}
