@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&amp;display=swap');

:root {
  /* Brand color tokens from colors.dart */
  --primary-red: #9B111E;            /* Bloodstone Ruby Red / Brand Primary */
  --primary-container: #FFDAD6;      /* Material 3 Primary Container */
  --secondary-grey: #585F6C;         /* Charcoal-grey accent */
  --border-neutral: #E5E7EB;         /* Dividers & borders */
  --success-text: #03543F;           /* High-contrast success green text */
  --success-bg: #DEF7EC;             /* Light green success container */
  --success-border: #31C48D;         /* Success stroke accent */
  --error-text: #9B111E;             /* High-contrast error red text (App Primary) */
  --error-bg: #FFE5E5;               /* Light red error container */
  --error-border: #F05252;           /* Error stroke accent */
  --disabled-text: #9CA3AF;          /* Text fill for disabled components */
  --disabled-bg: #E5E7EB;            /* Container fill for disabled components */

  /* Adaptive color variables mapping */
  --bg-color: #F8F9FA;               /* backgroundLight */
  --surface-color: #FFFFFF;          /* surfaceWhite */
  --text-primary: #191C1D;           /* textDark */
  --text-secondary: #585F6C;         /* textMuted */
  --border-color: var(--border-neutral);
  --secondary-btn-bg: transparent;
  --secondary-btn-text: var(--text-primary);
  --secondary-btn-border: var(--border-neutral);

  /* Elevation */
  --shadow-sm: 0 1px 2px 0 rgba(25, 28, 29, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(25, 28, 29, 0.05), 0 2px 4px -1px rgba(25, 28, 29, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(25, 28, 29, 0.05), 0 4px 6px -2px rgba(25, 28, 29, 0.02);

  /* Fonts */
  --font-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Layout constraints */
  --max-width: 1200px;
  
  color-scheme: light;
}

/* Explicit class-based toggling - kept only light default config */
[data-theme="light"] {
  --bg-color: #F8F9FA;
  --surface-color: #FFFFFF;
  --text-primary: #191C1D;
  --text-secondary: #585F6C;
  --border-color: #E5E7EB;
  --border-neutral: #E5E7EB;
  --secondary-btn-bg: transparent;
  --secondary-btn-text: var(--text-primary);
  --secondary-btn-border: #E5E7EB;
  --shadow-sm: 0 1px 2px 0 rgba(25, 28, 29, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(25, 28, 29, 0.05), 0 2px 4px -1px rgba(25, 28, 29, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(25, 28, 29, 0.05), 0 4px 6px -2px rgba(25, 28, 29, 0.02);
  color-scheme: light;
}

/* --- Core Reset & Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Focus outline for keyboard navigation */
:focus-visible {
  outline: 3px solid var(--primary-red);
  outline-offset: 4px;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- Header Section --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 249, 250, 0.8);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.3s, border-color 0.3s;
}

[data-theme="dark"] .header {
  background-color: rgba(18, 16, 16, 0.8);
}

.header-container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 38px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --- Theme Toggle --- */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: background-color 0.2s, transform 0.1s;
}

.theme-toggle:hover {
  background-color: var(--surface-color);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
  fill: currentColor;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
  min-height: 48px;
  min-width: 44px;
  border: none;
}

.btn-primary {
  background-color: var(--primary-red);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(155, 17, 30, 0.2);
}

.btn-primary:hover {
  background-color: #B51E2D; /* slightly lighter red for hover */
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--secondary-btn-bg);
  border: 1px solid var(--secondary-btn-border);
  color: var(--secondary-btn-text);
}

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

.btn-sm {
  font-size: 14px;
  padding: 8px 16px;
  min-height: 38px;
}

/* --- Hero Section --- */
.hero {
  padding-top: 60px;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero {
    padding-top: 100px;
    padding-bottom: 100px;
  }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
  }
}

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

.hero-headline {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

@media (min-width: 768px) {
  .hero-headline {
    font-size: 52px;
  }
}

.hero-subheadline {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

@media (min-width: 480px) {
  .hero-cta-wrapper {
    flex-direction: row;
    align-items: center;
    width: auto;
  }
}

.trust-cue {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-cue svg {
  width: 16px;
  height: 16px;
  color: var(--success-text);
  flex-shrink: 0;
}

/* --- Smartphone Simulator UI --- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .hero-visual {
    max-width: 340px;
  }
}

/* Elegant shadow backdrop glow */
.hero-visual::before {
  content: '';
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 40px;
  background: radial-gradient(circle, rgba(155, 17, 30, 0.12) 0%, rgba(155, 17, 30, 0) 70%);
  z-index: 0;
  filter: blur(20px);
}

.phone-frame {
  width: 100%;
  aspect-ratio: 9 / 18.5;
  border-radius: 40px;
  background-color: #000000;
  padding: 10px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 0 4px rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Speaker/Camera Island (Dynamic Island style) */
.phone-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background-color: #000000;
  border-radius: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.phone-island::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #1a1a1a;
}

.phone-island::after {
  content: '';
  width: 25px;
  height: 4px;
  border-radius: 2px;
  background-color: #222;
}

.phone-screen {
  flex: 1;
  border-radius: 32px;
  background-color: #F8F9FA;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: #191C1D;
  user-select: none;
  transition: background-color 0.3s;
}

/* Handle system dark theme inside the phone screen, but we also let it match the host site toggle */
[data-theme="dark"] .phone-screen {
  background-color: #121010;
  color: #F3F4F6;
}

.phone-screen-header {
  height: 48px;
  padding-top: 14px;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  z-index: 5;
}

.phone-time {
  letter-spacing: -0.1px;
}

.phone-status-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.phone-status-icons svg {
  width: 12px;
  height: 12px;
}

/* Phone Layout Screens (Animated in JS) */
.phone-content {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px 20px 20px 20px;
  overflow: hidden;
}

.app-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 12px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  z-index: 1;
}

.app-screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 2;
}

.app-screen.exit {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
  z-index: 1;
}

/* --- Screen 1: Welcome Screen --- */
.screen-welcome {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.welcome-logo {
  width: 130px;
  margin-bottom: 24px;
  margin-top: -30px;
}

.welcome-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.welcome-desc {
  font-size: 12px;
  color: #585F6C;
  margin-bottom: 20px;
}

[data-theme="dark"] .welcome-desc {
  color: #9E9795;
}

.welcome-input-group {
  width: 100%;
  margin-bottom: 16px;
  text-align: left;
}

.welcome-label {
  font-size: 11px;
  font-weight: 700;
  color: #585F6C;
  margin-bottom: 6px;
  display: block;
}

[data-theme="dark"] .welcome-label {
  color: #9E9795;
}

.welcome-field {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  background-color: #FFFFFF;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  color: #191C1D;
  transition: border-color 0.2s;
}

[data-theme="dark"] .welcome-field {
  background-color: #1C1919;
  border-color: #2D2727;
  color: #F3F4F6;
}

.welcome-field .cursor-blink {
  display: inline-block;
  width: 2px;
  height: 16px;
  background-color: var(--primary-red);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  from, to { background-color: transparent }
  50% { background-color: var(--primary-red) }
}

.welcome-btn {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  background-color: var(--primary-red);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(155, 17, 30, 0.15);
}

/* --- Screen 2: Dashboard --- */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.dashboard-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-container);
  color: var(--primary-red);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
}

.dashboard-bell {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.balance-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.balance-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.balance-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.balance-limit-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.balance-limit-text {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-secondary);
}

.limit-progress-bg {
  height: 4px;
  width: 100%;
  background-color: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
}

.limit-progress-fill {
  height: 100%;
  width: 40%;
  background-color: var(--primary-red);
  border-radius: 2px;
  transition: width 1s ease-in-out;
}

.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.dash-btn {
  height: 42px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.dash-btn-send {
  background-color: var(--primary-red);
  color: #FFFFFF;
  border: none;
}

.dash-btn-receive {
  background-color: var(--secondary-btn-bg);
  border: 1px solid var(--secondary-btn-border);
  color: var(--secondary-btn-text);
}

.recent-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recent-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recent-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.recent-icon svg {
  width: 14px;
  height: 14px;
}

.recent-name {
  font-size: 12px;
  font-weight: 700;
}

.recent-date {
  font-size: 10px;
  color: var(--text-secondary);
}

.recent-amount {
  font-size: 12px;
  font-weight: 700;
}

.recent-amount.plus {
  color: var(--success-text);
}

/* --- Screen 3: Send Money --- */
.send-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.back-arrow {
  cursor: pointer;
  color: var(--text-primary);
}

.send-title {
  font-size: 15px;
  font-weight: 700;
}

.send-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.send-input-field {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--surface-color);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

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

.send-currency-prefix {
  position: absolute;
  left: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.send-input-amount {
  padding-left: 28px;
}

.recipient-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--success-bg);
  border: 1px solid var(--success-border);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--success-text);
  animation: fadeIn 0.3s ease;
}

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

.send-btn {
  background-color: var(--primary-red);
  color: #FFFFFF;
  height: 44px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-top: 10px;
}

/* --- Screen 4: Confirm PIN --- */
.pin-screen-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.pin-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.pin-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pin-dots {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  transition: background-color 0.1s, border-color 0.1s;
}

.pin-dot.filled {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
}

.keyboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 220px;
  margin-top: auto;
}

.key-btn {
  height: 40px;
  border-radius: 8px;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.key-btn:active {
  background-color: var(--border-color);
}

/* --- Screen 5: Success Screen --- */
.success-screen-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 10px;
}

.success-icon-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--success-bg);
  border: 2px solid var(--success-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success-text);
  margin-bottom: 20px;
  animation: scalePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scalePop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.success-message {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 20px;
}

.redirect-text {
  font-size: 10px;
  color: var(--disabled-text);
  font-style: italic;
}

/* --- How It Works Section --- */
.how-it-works {
  padding-top: 60px;
  padding-bottom: 60px;
  border-top: 1px solid var(--border-color);
  background-color: var(--surface-color);
  transition: background-color 0.3s, border-color 0.3s;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 36px;
    margin-bottom: 56px;
  }
}

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

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
}

.step-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background-color: var(--primary-container);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.2s;
}

.step-card:hover .step-icon-wrapper {
  transform: translateY(-4px);
}

.step-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.step-number {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-red);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Trust / Security Section --- */
.security-section {
  padding-top: 60px;
  padding-bottom: 60px;
  border-top: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .security-section {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .security-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.security-text-content {
  display: flex;
  flex-direction: column;
}

.security-tagline {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-red);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.security-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .security-title {
    font-size: 36px;
  }
}

.security-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.security-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sec-feat {
  display: flex;
  gap: 16px;
}

.sec-feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-red);
  flex-shrink: 0;
}

.sec-feat-icon svg {
  width: 20px;
  height: 20px;
}

.sec-feat-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.sec-feat-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Regulatory Banner / Cert Badge */
.security-badge-box {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .security-badge-box {
    margin-right: 0;
  }
}

.badge-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary-container);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.badge-ring svg {
  width: 40px;
  height: 40px;
}

.badge-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.badge-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Final CTA Band --- */
.final-cta {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  text-align: center;
  transition: background-color 0.3s, border-color 0.3s;
}

.final-cta-container {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-cta-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .final-cta-title {
    font-size: 42px;
  }
}

.final-cta-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 32px;
}

.store-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge-link {
  transition: transform 0.15s;
  display: block;
}

.store-badge-link:hover {
  transform: scale(1.03);
}

.store-badge-link:active {
  transform: scale(0.97);
}

/* --- Mobile Sticky bottom CTA --- */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  padding: 12px 20px;
  z-index: 90;
  display: flex;
  justify-content: center;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s, border-color 0.3s;
}

[data-theme="dark"] .mobile-sticky-cta {
  background-color: rgba(28, 25, 25, 0.9);
}

.mobile-sticky-cta.visible {
  transform: translateY(0);
}

.mobile-sticky-cta .btn {
  width: 100%;
  max-width: 400px;
}

@media (min-width: 768px) {
  /* Hide sticky bottom CTA on tablets and desktops */
  .mobile-sticky-cta {
    display: none !important;
  }
}

/* Padding to avoid content overlapping with sticky footer on mobile */
.padding-bottom-for-sticky {
  padding-bottom: 74px !important;
}

/* --- Footer --- */
.footer {
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: background-color 0.3s, border-color 0.3s;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-logo {
  height: 32px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  font-weight: 600;
  transition: color 0.15s;
}

.footer-link:hover {
  color: var(--primary-red);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-legal-desc {
  max-width: 600px;
  line-height: 1.6;
}

.copyright {
  flex-shrink: 0;
  font-weight: 500;
}
