/* ========================================
   SecureBank Premium Design System
   Sharp, Classy, Sophisticated
   ======================================== */

:root {
  /* Premium Color Palette */
  --navy-900: #0A1628;
  --navy-800: #0F1F3A;
  --navy-700: #1A2B47;
  --navy-600: #243754;
  --navy-500: #2F4461;
  
  --gold-500: #D4AF37;
  --gold-400: #E5C158;
  --gold-300: #F0D679;
  
  --blue-500: #2563EB;
  --blue-400: #3B82F6;
  
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  
  /* Spacing & Layout */
  --max-width: 1280px;
  --section-padding: 120px;
  --section-padding-mobile: 80px;
  
  /* Typography */
  --font-display: 'Crimson Pro', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(10, 22, 40, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(10, 22, 40, 0.08), 0 2px 4px -1px rgba(10, 22, 40, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(10, 22, 40, 0.1), 0 4px 6px -2px rgba(10, 22, 40, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(10, 22, 40, 0.1), 0 10px 10px -5px rgba(10, 22, 40, 0.04);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Base Styles
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   Theme: Dark Mode (toggle adds .theme-dark to <html>)
   ======================================== */

html.theme-dark body {
  background: var(--navy-900);
  color: var(--gray-100);
}

html.theme-dark .header {
  background: rgba(10, 22, 40, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.12);
}

html.theme-dark .nav-brand,
html.theme-dark .nav-menu a,
html.theme-dark .btn-text {
  color: var(--gray-100);
}

html.theme-dark .nav-menu a:hover {
  color: var(--gold-400);
}

html.theme-dark .service-card,
html.theme-dark .product-card,
html.theme-dark .access-card,
html.theme-dark .testimonial-card,
html.theme-dark .security-feature,
html.theme-dark .contact-card,
html.theme-dark .calculator-panel,
html.theme-dark .faq-item,
html.theme-dark .pwa-content,
html.theme-dark .rates-table,
html.theme-dark .exchange-converter {
  background: rgba(15, 31, 58, 0.9);
  border-color: rgba(226, 232, 240, 0.12);
  box-shadow: var(--shadow-md);
}

html.theme-dark .section-title {
  color: var(--gray-100);
}

html.theme-dark .section-subtitle {
  color: var(--gray-300);
}

html.theme-dark .footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(226, 232, 240, 0.12);
}

html.theme-dark input,
html.theme-dark select,
html.theme-dark textarea {
  background: rgba(10, 22, 40, 0.55);
  color: var(--gray-100);
  border-color: rgba(226, 232, 240, 0.16);
}

html.theme-dark input::placeholder,
html.theme-dark textarea::placeholder {
  color: rgba(226, 232, 240, 0.6);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding-mobile) 0;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: 48px;
  color: var(--navy-900);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 20px;
  color: var(--gray-600);
  max-width: 600px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ========================================
   Navigation - Premium Design
   ======================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--gold-500) 50%, 
    transparent
  );
  opacity: 0;
  transition: opacity var(--transition-base);
}

.header:hover::before {
  opacity: 0.3;
}

.navbar {
  padding: 0;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy-900);
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--gold-500);
  transition: transform var(--transition-base);
}

.nav-brand:hover .brand-icon {
  transform: scale(1.05);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Desktop Navigation Menu */
.nav-menu {
  display: none;
  list-style: none;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.nav-menu li {
  display: inline-block;
}

.nav-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border-radius: 8px;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.nav-menu a:hover {
  color: var(--navy-900);
  background: var(--gray-50);
}

.nav-menu a:hover::before {
  transform: scaleX(1);
}

.nav-menu a.active {
  color: var(--navy-900);
  background: var(--gray-50);
}

.nav-menu a.active::before {
  transform: scaleX(1);
}

/* Navigation Actions */
.nav-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.btn-text {
  padding: 10px 20px;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.btn-text:hover {
  color: var(--navy-900);
  background: var(--gray-50);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--navy-900);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--navy-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--white);
  color: var(--navy-900);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  border: 2px solid var(--gray-300);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-outline:hover {
  border-color: var(--navy-900);
  background: var(--gray-50);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--gray-100);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.mobile-menu-toggle:hover {
  background: var(--gray-200);
}

.hamburger {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--navy-900);
  transition: all var(--transition-base);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--navy-900);
  transition: all var(--transition-base);
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  bottom: -6px;
}

.mobile-menu-toggle.active .hamburger {
  background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: var(--white);
  padding: 24px;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.mobile-menu-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--gray-100);
  border: none;
  border-radius: 10px;
  color: var(--navy-900);
  font-size: 20px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.mobile-menu-close:hover {
  background: var(--gray-200);
}

.mobile-nav-links {
  list-style: none;
  margin-bottom: 32px;
}

.mobile-nav-links li {
  margin-bottom: 4px;
}

.mobile-nav-links a {
  display: block;
  padding: 16px 20px;
  color: var(--gray-900);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  border-radius: 12px;
  transition: all var(--transition-fast);
}

.mobile-nav-links a:hover {
  background: var(--gray-50);
  color: var(--navy-900);
}

.mobile-nav-links a.active {
  background: var(--gray-50);
  color: var(--navy-900);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.mobile-nav-actions .btn-primary,
.mobile-nav-actions .btn-outline {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  font-size: 16px;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.4;
  background: 
    radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.hero-badge i {
  color: var(--gold-500);
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--gray-600);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--navy-900);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-radius: 12px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.btn-hero-primary:hover {
  background: var(--navy-800);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--white);
  color: var(--navy-900);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-radius: 12px;
  border: 2px solid var(--gray-300);
  transition: all var(--transition-base);
}

.btn-hero-outline:hover {
  border-color: var(--navy-900);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  box-shadow: var(--shadow-sm);
}

.feature-pill i {
  color: var(--gold-500);
  font-size: 16px;
}

/* Quick Access Cards */
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.access-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--gray-900);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.access-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-500);
  transform: scaleY(0);
  transition: transform var(--transition-base);
}

.access-card:hover::before {
  transform: scaleY(1);
}

.access-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-500);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--gold-500);
  border-radius: 14px;
  font-size: 24px;
  flex-shrink: 0;
}

.card-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--navy-900);
}

.card-content p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
}

.card-arrow {
  margin-left: auto;
  color: var(--gray-400);
  font-size: 18px;
  transition: all var(--transition-base);
}

.access-card:hover .card-arrow {
  color: var(--gold-500);
  transform: translateX(4px);
}

/* ========================================
   Services Section
   ======================================== */

.services-section {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-500);
}

.service-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  border-radius: 16px;
  color: var(--navy-900);
  font-size: 28px;
  margin-bottom: 20px;
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--gold-500);
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--navy-900);
}

.service-card p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

/* ========================================
   Products Section
   ======================================== */

.products-section {
  background: var(--gray-50);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.product-card {
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.product-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-400) 100%);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-name {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--navy-900);
}

.product-rate {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--gold-500);
  margin-bottom: 16px;
  line-height: 1;
}

.product-description {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 28px;
}

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--navy-900);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  transition: all var(--transition-base);
}

.product-cta:hover {
  background: var(--navy-800);
  transform: translateX(4px);
}

/* ========================================
   Calculators Section
   ======================================== */

.calculators-section {
  background: var(--white);
}

.calculator-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.calculator-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--gray-200);
}

.tab-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--gray-600);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-bottom: -2px;
}

.tab-button:hover {
  color: var(--navy-900);
  background: var(--gray-50);
}

.tab-button.active {
  color: var(--navy-900);
  border-bottom-color: var(--gold-500);
  background: transparent;
}

.calculator-content {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.calculator-panel {
  display: none;
}

.calculator-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.calculator-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.calculator-header h3 {
  font-size: 28px;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.calculator-header p {
  font-size: 15px;
  color: var(--gray-600);
  margin: 0;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: 0.2px;
}

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

.input-prefix,
.input-suffix {
  position: absolute;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-500);
  pointer-events: none;
}

.input-prefix {
  left: 16px;
}

.input-suffix {
  right: 16px;
}

input[type="number"],
select {
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray-900);
  transition: all var(--transition-base);
}

.input-wrapper input {
  padding-left: 40px;
}

.input-wrapper input:has(+ .input-suffix) {
  padding-right: 40px;
}

input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: var(--navy-900);
  box-shadow: 0 0 0 3px rgba(10, 22, 40, 0.1);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.btn-calculate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--navy-900);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-top: 8px;
}

.btn-calculate:hover {
  background: var(--navy-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.result-box {
  margin-top: 32px;
  padding: 28px;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-box h4 {
  font-size: 18px;
  color: var(--navy-900);
  margin-bottom: 16px;
}

.result-box .result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.result-box .result-item:last-child {
  border-bottom: none;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 2px solid var(--gold-500);
}

.result-box .result-label {
  font-size: 15px;
  color: var(--gray-700);
  font-weight: 500;
}

.result-box .result-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
}

.result-box .result-item:last-child .result-value {
  font-size: 24px;
  color: var(--gold-500);
}

/* ========================================
   Exchange Section
   ======================================== */

.exchange-section {
  background: var(--gray-50);
}

.exchange-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.exchange-converter {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.converter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.converter-header h3 {
  font-size: 28px;
  color: var(--navy-900);
}

.converter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-400) 100%);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
}

.converter-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.currency-input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.currency-input-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: 0.2px;
}

.currency-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.currency-input input {
  padding: 14px 16px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  transition: all var(--transition-base);
}

.currency-input input:focus {
  outline: none;
  border-color: var(--navy-900);
  box-shadow: 0 0 0 3px rgba(10, 22, 40, 0.1);
}

.currency-input select {
  min-width: 140px;
  padding: 14px 40px 14px 16px;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
}

.swap-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  color: var(--navy-900);
  font-size: 20px;
  cursor: pointer;
  transition: all var(--transition-base);
  align-self: center;
  margin: 8px 0;
}

.swap-button:hover {
  background: var(--navy-900);
  color: var(--gold-500);
  transform: rotate(180deg);
}

.btn-convert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--navy-900);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-top: 8px;
}

.btn-convert:hover {
  background: var(--navy-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.rates-meta {
  margin-top: 20px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--gray-600);
  text-align: center;
}

.exchange-table {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.exchange-table h3 {
  font-size: 22px;
  color: var(--navy-900);
  margin-bottom: 24px;
}

.table-wrapper {
  overflow-x: auto;
  margin-bottom: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--gray-50);
}

th {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--gray-200);
}

td {
  padding: 16px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 15px;
  color: var(--gray-900);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background: var(--gray-50);
}

.loading-cell {
  text-align: center;
  padding: 40px 16px;
  color: var(--gray-500);
}

.loading-cell .spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--navy-900);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 12px;
  vertical-align: middle;
}

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

/* ========================================
   Icon button (dark mode toggle)
   ======================================== */

.btn-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy-900);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn-icon:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-icon:active { transform: translateY(0); }

html.theme-dark .btn-icon {
  background: rgba(15, 31, 58, 0.9);
  border-color: rgba(226, 232, 240, 0.2);
  color: var(--gray-100);
}

/* ========================================
   Collapsible contact form
   ======================================== */

.contact-form-wrap {
  margin-top: 28px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

html.theme-dark .contact-form-wrap {
  border-color: rgba(226, 232, 240, 0.12);
  background: rgba(15, 31, 58, 0.9);
}

.collapse-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy-900);
}

.collapse-toggle i.fa-chevron-down {
  transition: transform var(--transition-base);
  color: var(--gray-500);
}

.collapse-toggle[aria-expanded="true"] i.fa-chevron-down {
  transform: rotate(180deg);
}

html.theme-dark .collapse-toggle { color: var(--gray-100); }

.collapse-panel {
  padding: 18px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

html.theme-dark .collapse-panel { border-top-color: rgba(226, 232, 240, 0.12); }

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

@media (min-width: 768px) {
  .contact-form .form-row { grid-template-columns: 1fr 1fr; }
}

.contact-form .form-field { margin-bottom: 14px; }

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.contact-form textarea { resize: vertical; }

.contact-form .form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.contact-form .form-note {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

html.theme-dark .contact-form .form-note { color: var(--gray-300); }

/* ========================================
   Toasts + Offline banner
   ======================================== */

.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 10px;
  z-index: 9999;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

html.theme-dark .toast {
  background: rgba(15, 31, 58, 0.95);
  border-color: rgba(226, 232, 240, 0.12);
}

.toast strong { display: block; font-weight: 800; }
.toast p { margin: 2px 0 0; color: var(--gray-600); }
html.theme-dark .toast p { color: var(--gray-300); }

.toast .toast-icon { margin-top: 2px; }
.toast .toast-close { margin-left: auto; background: transparent; border: 0; cursor: pointer; color: var(--gray-500); }

.offline-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.95);
  color: var(--white);
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 9998;
  box-shadow: var(--shadow-lg);
}

.offline-banner i { opacity: 0.9; }

.back-to-top {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.3);
  background: rgba(10, 22, 40, 0.95);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 9997;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

html.theme-dark .back-to-top { border-color: rgba(226, 232, 240, 0.12); }


.table-note {
  font-size: 13px;
  color: var(--gray-500);
  text-align: center;
  margin: 0;
}

/* ========================================
   Testimonials Section
   ======================================== */

.testimonials-section {
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.testimonial-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.testimonial-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  color: var(--gold-500);
  font-size: 16px;
}

.testimonial-content {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray-900);
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.author-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--gold-500);
  font-size: 20px;
  font-weight: 700;
  border-radius: 50%;
}

.author-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-900);
}

.author-role {
  font-size: 14px;
  color: var(--gray-600);
}

/* ========================================
   Security Section
   ======================================== */

.security-section {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.security-feature {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-base);
}

.security-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.security-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--gold-500);
  font-size: 32px;
  border-radius: 50%;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(10, 22, 40, 0.15);
}

.security-feature h3 {
  font-size: 20px;
  color: var(--navy-900);
  margin-bottom: 12px;
}

.security-feature p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

/* ========================================
   FAQ Section
   ======================================== */

.faq-section {
  background: var(--gray-50);
}

.faq-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.faq-search {
  max-width: 900px;
  margin: 0 auto 18px;
}

.faq-search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.faq-search-input i { color: var(--gray-500); }

.faq-search-input input {
  border: 0;
  outline: none;
  width: 100%;
  font-size: 16px;
  background: transparent;
}

html.theme-dark .faq-section { background: rgba(10, 22, 40, 0.25); }
html.theme-dark .faq-search-input { background: rgba(15, 31, 58, 0.9); border-color: rgba(226, 232, 240, 0.12); }
html.theme-dark .faq-search-input input { color: var(--gray-100); }

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-900);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-base);
}

.faq-question:hover {
  color: var(--gold-500);
}

.faq-question i {
  font-size: 20px;
  color: var(--gray-400);
  transition: all var(--transition-base);
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
  color: var(--gold-500);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 28px 28px;
  margin: 0;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ========================================
   Contact Section
   ======================================== */

.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.contact-card {
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-base);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.contact-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  color: var(--navy-900);
  font-size: 28px;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.contact-card h3 {
  font-size: 22px;
  color: var(--navy-900);
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.7;
  margin: 0 0 8px;
}

.contact-card a {
  color: var(--navy-900);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.contact-card a:hover {
  color: var(--gold-500);
}

.contact-hours {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 8px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: var(--navy-900);
  color: var(--gray-300);
  padding: 64px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  max-width: 400px;
}

.footer-brand .brand-icon {
  margin-bottom: 16px;
  color: var(--gold-500);
}

.footer-brand h3 {
  font-size: 24px;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--gray-400);
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--gray-300);
  font-size: 18px;
  text-decoration: none;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--gold-500);
  color: var(--white);
  border-color: var(--gold-500);
  transform: translateY(-2px);
}

.footer-links-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-section a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 15px;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-section a:hover {
  color: var(--gold-500);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

/* ========================================
   PWA Modal
   ======================================== */

.pwa-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: blur(8px);
  padding: 24px;
}

.pwa-modal.open {
  display: flex;
}

.pwa-content {
  max-width: 480px;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pwa-header {
  text-align: center;
  margin-bottom: 24px;
}

.pwa-header .brand-icon {
  margin: 0 auto 16px;
}

.pwa-header h3 {
  font-size: 28px;
  color: var(--navy-900);
}

.pwa-content p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
  text-align: center;
}

.pwa-hint {
  font-size: 14px;
  color: var(--gray-500);
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.pwa-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pwa-actions .btn-primary,
.pwa-actions .btn-outline {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
}

/* ========================================
   Elder Mode
   ======================================== */

html.elder {
  font-size: 18px;
}

html.elder .section-title {
  font-size: 54px;
}

html.elder .btn-primary,
html.elder .btn-outline,
html.elder .btn-hero-primary,
html.elder .btn-hero-outline {
  padding: 18px 32px;
  font-size: 18px;
  min-height: 56px;
}

html.elder input,
html.elder select {
  font-size: 18px;
  padding: 16px 18px;
  min-height: 56px;
}

html.elder .nav-menu a {
  font-size: 17px;
  padding: 12px 22px;
}

/* ========================================
   Responsive Design - Desktop First
   ======================================== */

@media (min-width: 1024px) {
  .section {
    padding: var(--section-padding) 0;
  }

  .nav-menu {
    display: flex;
  }

  .nav-actions {
    display: flex;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .hero-title {
    font-size: 72px;
  }

  .exchange-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

  .footer-content {
    grid-template-columns: 1.2fr 2fr;
  }
}

@media (max-width: 1023px) {
  /* Mobile nav: collapse like a classic navbar dropdown (not a side drawer) */
  .mobile-menu-overlay {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: none;
  }

  .mobile-menu-content {
    position: absolute;
    top: 76px; /* roughly matches .navbar height */
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 76px);
    transform: translateY(-10px);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 18px 50px rgba(10, 22, 40, 0.18);
    padding: 18px 16px 22px;
  }

  .mobile-menu-overlay.active .mobile-menu-content {
    transform: translateY(0);
  }

  .mobile-menu-header {
    display: none;
  }

  .mobile-nav-links a {
    font-size: 17px;
    padding: 14px 16px;
  }

  .mobile-menu-actions {
    margin-top: 14px;
    padding-top: 14px;
  }

  .section-title {
    font-size: 36px;
  }

  .hero-title {
    font-size: 42px;
  }

  .quick-access-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .section-title {
    font-size: 32px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .quick-access-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .products-grid,
  .testimonials-grid,
  .security-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .calculator-content {
    padding: 24px;
  }

  .exchange-converter,
  .exchange-table {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .pwa-content {
    padding: 28px;
  }
}

/* ========================================
   Utility Classes
   ======================================== */

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--navy-900);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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


/* Offline banner dismiss */
#offlineBanner{position:fixed;left:16px;right:16px;bottom:18px;z-index:9999;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 14px;border-radius:18px;background:rgba(10,22,40,.92);color:#fff;backdrop-filter:blur(10px);box-shadow:0 18px 40px rgba(0,0,0,.22);} 
#offlineBanner .offline-inner{display:flex;align-items:center;gap:10px;font-weight:700;}
#offlineBanner i{opacity:.95;}
#offlineBanner .offline-close{width:40px;height:40px;border-radius:14px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff;display:grid;place-items:center;cursor:pointer;}
#offlineBanner .offline-close:active{transform:translateY(1px);}

/* Hero Elder button: mobile-friendly extra CTA without clutter */
.hero-elder{display:none;margin-top:12px;width:100%;justify-content:center;gap:10px;}
@media (max-width: 720px){.hero-elder{display:inline-flex;}}


/* OFFLINE BANNER (fix overflow + safe-area) */
.offline-banner{
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 9999;

  /* keep it inside screen */
  max-width: 560px;
  margin: 0 auto;

  /* prevent overshoot */
  transform: translateZ(0);
}

/* If you used a wrapper inside the banner */
.offline-banner .offline-inner{
  width: 100%;
  overflow: hidden;           /* no spill */
  border-radius: 18px;
}

/* Close button always visible and not floating outside */
.offline-banner .offline-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
}
