/* ==========================================================================
   TollFreeRoads.in - Ultra-Modern Design System & Responsive CSS
   ========================================================================== */

:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Brand Palettes */
  --bg-dark: #090d16;
  --bg-card-dark: rgba(17, 24, 39, 0.85);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-white: #ffffff;
  --text-light-muted: #94a3b8;
  
  /* Theme Accents */
  --color-primary: #4f46e5;
  --color-primary-hover: #4338ca;
  --color-primary-light: #eef2ff;
  
  --color-free-blue: #0284c7;
  --color-free-blue-light: #e0f2fe;
  --color-free-blue-glow: rgba(2, 132, 199, 0.35);
  
  --color-toll-red: #e11d48;
  --color-toll-red-light: #ffe4e6;
  --color-toll-red-glow: rgba(225, 29, 72, 0.35);
  
  --color-save-emerald: #059669;
  --color-save-emerald-light: #d1fae5;
  
  --color-amber: #d97706;
  --color-purple: #7c3aed;
  
  /* Shadows & Glass */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary-hover);
}

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

/* Container */
.tfr-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.tfr-container-narrow {
  max-width: 960px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.5rem; }
}

/* Top Announcement / Sub-Bar */
.tfr-topbar {
  background: linear-gradient(90deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
  color: #c7d2fe;
  font-size: 0.825rem;
  padding: 0.5rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tfr-topbar strong {
  color: #ffffff;
  font-weight: 600;
}
.tfr-topbar a {
  color: #a5b4fc;
  text-decoration: underline;
  margin-left: 0.5rem;
}

/* Modern Navigation */
.tfr-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px -2px rgba(0,0,0,0.03);
  transition: var(--transition);
}

.tfr-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.tfr-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: #0f172a;
}

.tfr-brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.tfr-brand-name {
  display: flex;
  flex-direction: column;
}

.tfr-brand-title {
  line-height: 1.1;
  font-size: 1.25rem;
}
.tfr-brand-title span {
  color: var(--color-primary);
}

.tfr-brand-badge {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-free-blue);
}

.tfr-nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.tfr-nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.tfr-nav-link:hover, .tfr-nav-link.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.tfr-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Location Selector Pill */
.tfr-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: var(--transition);
}
.tfr-location-pill:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

/* Mobile Nav Toggle */
.tfr-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 991px) {
  .tfr-nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.75rem;
    box-shadow: var(--shadow-xl);
    border-bottom: 1px solid #e2e8f0;
    display: none;
  }
  .tfr-nav-menu.open {
    display: flex;
  }
  .tfr-mobile-toggle {
    display: block;
  }
}

/* Hero Section */
.tfr-hero {
  position: relative;
  background: radial-gradient(circle at top center, #1e1b4b 0%, #0f172a 70%, #090d16 100%);
  color: #ffffff;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}

.tfr-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.tfr-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .tfr-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.tfr-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(165, 180, 252, 0.3);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 1.25rem;
}

.tfr-hero-title {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
}
.tfr-hero-title span.highlight {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tfr-hero-desc {
  font-size: 1.05rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Route Planner Form Card */
.tfr-planner-card {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-xl);
}

.tfr-planner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tfr-planner-header h3 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tfr-planner-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.tfr-input-group {
  position: relative;
}

.tfr-input-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

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

.tfr-input-icon {
  position: absolute;
  left: 1rem;
  color: #64748b;
  font-size: 1.1rem;
  pointer-events: none;
}

.tfr-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: #ffffff;
  font-family: inherit;
  transition: var(--transition);
}
.tfr-input:focus {
  outline: none;
  border-color: #6366f1;
  background: rgba(15, 23, 42, 1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}
.tfr-input::placeholder {
  color: #64748b;
}

/* Swap button */
.tfr-swap-btn {
  align-self: center;
  background: #312e81;
  border: 1px solid rgba(165, 180, 252, 0.3);
  color: #e0e7ff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  margin: -0.5rem 0;
  z-index: 5;
}
.tfr-swap-btn:hover {
  background: #4338ca;
  transform: rotate(180deg);
}

/* Autocomplete suggestions */
.tfr-autocomplete-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  max-height: 240px;
  overflow-y: auto;
  z-index: 999;
  display: none;
  margin-top: 4px;
}
.tfr-autocomplete-box.active {
  display: block;
}
.tfr-autocomplete-item {
  padding: 0.7rem 1rem;
  color: #e2e8f0;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tfr-autocomplete-item:hover, .tfr-autocomplete-item.focused {
  background: #334155;
  color: #ffffff;
}

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

.tfr-btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}
.tfr-btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #2563eb 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
  color: #ffffff;
}

.tfr-btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.tfr-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.tfr-btn-block {
  width: 100%;
}

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

/* Map & Results Section */
.tfr-map-section {
  padding: 3rem 0;
  background: #ffffff;
}

.tfr-map-wrapper {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.tfr-map-toolbar {
  background: #0f172a;
  color: #ffffff;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tfr-map-legend {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.tfr-legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.tfr-legend-badge {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.tfr-legend-badge.blue {
  background: #0284c7;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.6);
}
.tfr-legend-badge.red {
  background: #e11d48;
  box-shadow: 0 0 8px rgba(225, 29, 72, 0.6);
}

.tfr-map-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#map_canvas_1 {
  width: 100%;
  height: 480px;
  background: #e2e8f0;
}

@media (max-width: 768px) {
  #map_canvas_1 {
    height: 360px;
  }
}

/* Comparison Cards Grid */
.tfr-comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

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

.tfr-stat-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.tfr-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.tfr-stat-card.card-tollfree {
  border-top: 4px solid var(--color-free-blue);
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 40%);
}

.tfr-stat-card.card-toll {
  border-top: 4px solid var(--color-toll-red);
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 40%);
}

.tfr-stat-card.card-difference {
  border-top: 4px solid var(--color-purple);
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 40%);
}

.tfr-stat-card.card-savings {
  border-top: 4px solid var(--color-save-emerald);
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 40%);
}

.tfr-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.tfr-stat-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tfr-stat-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}
.badge-blue { background: #e0f2fe; color: #0369a1; }
.badge-red { background: #ffe4e6; color: #be123c; }
.badge-purple { background: #f3e8ff; color: #6b21a8; }
.badge-emerald { background: #d1fae5; color: #047857; }

.tfr-stat-metric {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #0f172a;
  line-height: 1.2;
}

.tfr-stat-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

/* Interactive Toll vs Free Cost Breakdown Matrix */
.tfr-matrix-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin: 3rem 0;
}

.tfr-matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.25rem;
}

.tfr-matrix-table th {
  background: #f8fafc;
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 2px solid #e2e8f0;
}

.tfr-matrix-table td {
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-secondary);
}

.tfr-matrix-table tr:last-child td {
  border-bottom: none;
}

/* Content & SEO Guide Sections */
.tfr-content-section {
  padding: 4rem 0;
  background: #ffffff;
}

.tfr-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.tfr-section-header h2 {
  margin-bottom: 0.75rem;
}

.tfr-section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.tfr-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.tfr-feature-card {
  background: var(--bg-surface);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.tfr-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.tfr-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* Popular Routes Section */
.tfr-routes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

@media (min-width: 1024px) {
  .tfr-routes-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tfr-route-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  color: #1e293b;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.tfr-route-pill:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary);
  transform: translateX(3px);
}

/* FAQ Accordion */
.tfr-faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tfr-faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.tfr-faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tfr-faq-question i {
  transition: transform 0.3s ease;
  color: var(--color-primary);
}

.tfr-faq-item.active .tfr-faq-question i {
  transform: rotate(180deg);
}

.tfr-faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  display: none;
}
.tfr-faq-item.active .tfr-faq-answer {
  display: block;
}

/* ==========================================================================
   SISTER-PORTAL NETWORK (3 + 3 Responsive Two-Row Grid)
   ========================================================================== */
.tfr-sister-section {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, #090d16 0%, #0f172a 100%);
  color: #ffffff;
  position: relative;
}

.tfr-sister-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .tfr-sister-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tfr-sister-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 + 3 two-row grid on desktop */
  }
}

.tfr-portal-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tfr-portal-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 20px 35px -5px rgba(79, 70, 229, 0.25);
}

.tfr-portal-img-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #1e293b;
}

.tfr-portal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.tfr-portal-card:hover .tfr-portal-img {
  transform: scale(1.05);
}

.tfr-portal-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tfr-portal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tfr-portal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tfr-portal-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.tfr-portal-benefits {
  list-style: none;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.tfr-portal-benefits li {
  font-size: 0.825rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.tfr-portal-benefits li i {
  color: #10b981;
  font-size: 0.75rem;
}

.tfr-portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.tfr-portal-btn:hover {
  background: #4f46e5;
  border-color: #6366f1;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

/* Modern Footer */
.tfr-footer {
  background: #090d16;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

.tfr-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .tfr-footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.tfr-footer-brand h4 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.tfr-footer-brand p {
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.tfr-footer-col h5 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.tfr-footer-col h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--color-primary);
}

.tfr-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.tfr-footer-links a {
  color: #94a3b8;
  transition: var(--transition);
}
.tfr-footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.tfr-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
}

@media (min-width: 768px) {
  .tfr-footer-bottom {
    flex-direction: row;
  }
}

/* Modal for Country Selection */
.tfr-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.tfr-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.tfr-modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.tfr-modal.active .tfr-modal-dialog {
  transform: translateY(0);
}

.tfr-modal-header {
  padding: 1.25rem 1.5rem;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tfr-modal-header h4 {
  color: #ffffff;
}

.tfr-modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
}
.tfr-modal-close:hover {
  color: #ffffff;
}

.tfr-modal-body {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.tfr-country-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.tfr-country-card:hover, .tfr-country-card.active {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Breadcrumbs */
.tfr-breadcrumbs {
  padding: 0.85rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.tfr-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}
.tfr-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: #cbd5e1;
}
.tfr-breadcrumbs a {
  color: var(--text-muted);
}
.tfr-breadcrumbs a:hover {
  color: var(--color-primary);
}
