/* ==========================================================================
   TCP Target Gift Card Giveaway - Stylesheet
   ========================================================================== */

:root {
  /* Color Palette */
  --primary: #cc0000; /* Official Target Red */
  --primary-hover: #a30000;
  --primary-subtle: #fef2f2;
  --primary-border: #fecaca;
  --secondary: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-page: #ffffff;
  --bg-surface: #f8fafc;
  --bg-surface-elevated: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #cc0000;
  --success: #15803d;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --error: #b91c1c;
  --error-bg: #fef2f2;
  --error-border: #fecaca;
  --warning-bg: #fffbeb;
  --warning-border: #fef3c7;
  --warning-text: #92400e;
  --gold-accent: #d97706;

  /* Typography */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);

  /* Layout */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --container-max: 1160px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page Blur Effect when Modal is Open */
body.modal-open #main-content,
body.modal-open .site-header,
body.modal-open .top-compliance-bar,
body.modal-open .site-footer {
  filter: blur(8px);
  pointer-events: none;
  transition: filter 0.3s ease;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Helper Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mr-2 { margin-right: 0.5rem; }

/* ==========================================================================
   Top Compliance Bar
   ========================================================================== */
.top-compliance-bar {
  background-color: #0f172a;
  color: #f1f5f9;
  font-size: 0.825rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #1e293b;
}

.top-compliance-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.compliance-brand-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.target-logo-icon-sm {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.compliance-badge {
  background-color: #334155;
  color: #f8fafc;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.compliance-text {
  flex: 1;
  color: #cbd5e1;
  font-size: 0.825rem;
}

.compliance-text strong {
  color: #ffffff;
}

.compliance-link {
  color: #93c5fd;
  text-decoration: underline;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.825rem;
  transition: var(--transition);
}

.compliance-link:hover {
  color: #bfdbfe;
}

/* ==========================================================================
   Header Navigation & Target Branding
   ========================================================================== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-target-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-divider {
  width: 1px;
  height: 26px;
  background-color: #cbd5e1;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.73rem;
  color: var(--text-muted);
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a,
.nav-btn-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  padding: 0.25rem 0.2rem;
}

.nav-links a:hover,
.nav-btn-link:hover {
  color: var(--primary);
}

.nav-cta {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(204, 0, 0, 0.2);
}

.nav-cta:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 4rem 0 4.5rem;
  background: radial-gradient(circle at 80% 20%, rgba(204, 0, 0, 0.06) 0%, transparent 60%),
              linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag-wrap {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-pill {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  background-color: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.hero-pill.target-pill {
  background-color: #fff0f0;
  color: #cc0000;
  border: 1px solid #ffcccc;
  display: inline-flex;
  align-items: center;
}

.hero-pill.neutral {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--secondary);
  margin-bottom: 1.15rem;
}

.highlight-text {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 580px;
}

.hero-cta-group {
  margin-bottom: 2.25rem;
}

.hero-subdisclosure {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 500px;
}

.hero-key-facts {
  display: flex;
  gap: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid #e2e8f0;
}

.fact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fact-icon {
  font-size: 1.5rem;
}

.fact-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--secondary);
}

.fact-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Target Gift Card Visual Showcase
   ========================================================================== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gift-card-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  perspective: 1000px;
}

.card-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 200px;
  background: radial-gradient(circle, rgba(204, 0, 0, 0.35) 0%, rgba(204, 0, 0, 0) 70%);
  filter: blur(35px);
  z-index: 1;
}

.custom-gift-card.target-themed-card {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  background: linear-gradient(135deg, #cc0000 0%, #a30000 60%, #800000 100%);
  border-radius: 20px;
  padding: 1.85rem;
  color: #ffffff;
  box-shadow: 0 25px 40px -12px rgba(204, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-3deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.custom-gift-card.target-themed-card:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 30px 50px -10px rgba(204, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

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

.card-target-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.target-brand-wordmark {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.card-type-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-body {
  margin: 1rem 0;
}

.card-denomination {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.currency-symbol {
  font-size: 2rem;
  vertical-align: super;
  margin-right: 2px;
}

.card-reward-label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
  opacity: 0.95;
}

.card-note {
  font-size: 0.72rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

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

.card-mock-number {
  font-family: monospace;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

.card-security-hologram {
  background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.3);
}

.holo-inner {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--secondary);
  padding: 0.55rem 0.9rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid #f1f5f9;
}

.floating-badge.top-right {
  top: -15px;
  right: -10px;
}

.floating-badge.bottom-left {
  bottom: -15px;
  left: -10px;
}

/* ==========================================================================
   Sections & Headings
   ========================================================================== */
.section {
  padding: 4rem 0;
}

.bg-light {
  background-color: var(--bg-surface);
}

.section-heading {
  margin-bottom: 2.5rem;
}

.section-heading.text-center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-heading h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.section-subtext {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Steps Grid (How It Works)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.step-card {
  background: var(--bg-surface-elevated);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.step-number {
  width: 40px;
  height: 40px;
  background-color: var(--primary-subtle);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ==========================================================================
   Compact Entry Form Controls inside Popup
   ========================================================================== */
.entry-card-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.35rem;
}

.entry-card-header p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.required-mark {
  color: var(--error);
  font-weight: 700;
}

/* Compact Spacing in Entry Form */
.entry-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-row.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

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

.form-group label {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.form-input {
  width: 100%;
  height: 42px;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.12);
}

.form-input.is-invalid {
  border-color: var(--error);
  background-color: #fff5f5;
}

.field-hint {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.35;
}

.field-error {
  font-size: 0.73rem;
  color: var(--error);
  font-weight: 600;
  margin-top: 0.2rem;
}

/* Compact Consent Blocks */
.consent-block {
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
}

.consent-block.mandatory-agreement {
  background-color: #fcfdfe;
  border-color: #e2e8f0;
}

.consent-block.optional-marketing {
  background-color: #f8fafc;
  border-color: #e2e8f0;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.checkbox-wrap input[type="checkbox"] {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.4;
  cursor: pointer;
}

.inline-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

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

.inline-link.text-white {
  color: #ffffff;
}

.inline-link.text-white:hover {
  color: #cbd5e1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.25);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(204, 0, 0, 0.32);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background-color: var(--secondary);
  color: #ffffff;
}

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

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.entry-form .btn-lg {
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.825rem;
}

/* Button Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

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

.form-disclosure {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  padding-top: 0.25rem;
}

/* Success & Error State Panels */
.state-panel {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.success-panel {
  background-color: var(--success-bg);
  border: 1.5px solid var(--success-border);
  color: #14532d;
}

.success-panel .panel-icon {
  font-size: 1.75rem;
}

.success-panel h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #14532d;
  margin-bottom: 0.4rem;
}

.confirmation-box {
  background-color: #ffffff;
  border: 1px solid var(--success-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: #166534;
}

.error-panel {
  background-color: var(--error-bg);
  border: 1.5px solid var(--error-border);
  color: #7f1d1d;
}

.error-panel .panel-icon {
  font-size: 1.5rem;
}

.error-panel h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

/* ==========================================================================
   Terms Summary Grid
   ========================================================================== */
.terms-summary-grid.three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.term-card {
  background-color: #ffffff;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.term-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.term-icon {
  font-size: 1.35rem;
}

.term-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
}

.term-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.term-stat {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background-color: var(--primary-subtle);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  width: fit-content;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  background-color: #ffffff;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #ffffff;
  transition: var(--transition);
}

.faq-item[open] {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  list-style: none;
  padding: 1.15rem 1.35rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.35rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.55;
}

/* ==========================================================================
   Slim Footer
   ========================================================================== */
.slim-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 1.15rem 0;
  font-size: 0.8rem;
  border-top: 1px solid #1e293b;
}

.slim-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  color: #cbd5e1;
}

.footer-slim-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}

.footer-slim-links .footer-link-btn {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: var(--transition);
}

.footer-slim-links .footer-link-btn:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Modals (Blurred Backdrop & Compact Entry Form Modal)
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 750px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  z-index: 1001;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.entry-modal-dialog {
  max-width: 520px; /* Tightened modal width */
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(15px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--border-color);
  background-color: #f8fafc;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
}

.modal-close {
  background: #e2e8f0;
  border: none;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background-color: var(--primary-subtle);
  color: var(--primary);
}

.modal-body {
  padding: 1.5rem 1.35rem;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #334155;
}

.entry-modal-body {
  padding: 1.25rem 1.35rem; /* Tightened internal padding */
}

.modal-body.legal-text h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--secondary);
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
}

.modal-body.legal-text h4:first-of-type {
  margin-top: 0;
}

.modal-body.legal-text p {
  margin-bottom: 0.75rem;
}

.modal-body.legal-text ul {
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
}

.modal-body.legal-text li {
  margin-bottom: 0.3rem;
}

.legal-disclaimer-box {
  background-color: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-text);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.rules-notice {
  font-size: 0.825rem;
  background-color: #f1f5f9;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--secondary);
}

.modal-footer {
  padding: 0.85rem 1.35rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  background-color: #f8fafc;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    order: -1;
  }

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

  .terms-summary-grid.three-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .form-row.two-cols {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .hero-key-facts {
    flex-direction: column;
    gap: 1rem;
  }

  .site-nav .nav-links {
    display: none;
  }

  .card-denomination {
    font-size: 2.75rem;
  }

  .floating-badge.top-right {
    top: -10px;
    right: 0;
  }

  .floating-badge.bottom-left {
    bottom: -10px;
    left: 0;
  }

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

  .slim-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
