/* THEME VARIABLE ARCHITECTURE */
:root {
  /* Dark Mode Base Variables */
  --bg-color: #101726;
  --bg-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  --bg-size: 24px 24px;
  
  --primary: #0062b0;      
  --accent: #e05300;       
  
  --card-bg: #161f32;
  --text-main: #cbd5e1;
  --text-title: #ffffff;
  --text-italic: #64748b;
  
  --nav-bg: #101726;
  --border-color: rgba(255, 255, 255, 0.05);
  --input-bg: #0f172a;
  --input-border: rgba(255, 255, 255, 0.1);
  --nav-link: #94a3b8;

  /* Layout Settings for Dark Mode */
  --card-shadow: none;
  --card-border: 1px solid rgba(255, 255, 255, 0.05);
  --card-padding: 32px 24px;
  --badge-bg: #161f32;
  --badge-border: 1px solid rgba(255, 255, 255, 0.05);

  /* Button specific variables */
  --btn-orange-bg: transparent;
  --btn-orange-color: var(--text-title);
  --btn-orange-border: 1px solid var(--input-border);
  --btn-orange-hover: var(--input-border);
  --btn-style: uppercase;
  --btn-letter-spacing: 0.5px;
  --btn-font-size: 13px;
  --btn-padding: 12px;
  --btn-radius: 6px;
  --btn-max-width: 100%;
}

[data-theme="light"] {
  /* Precise Light Mode Variables */
  --bg-color: #f4f9fd;
  --bg-image: linear-gradient(180deg, #e3f2fd 0%, #f4f9fd 100%);
  --bg-size: auto;
  
  --primary: #0062b0;      
  --accent: #e05300;       
  
  --card-bg: #ffffff;
  --text-main: #526b82;   
  --text-title: #1e354a;  
  --text-italic: #617d98;
  
  --nav-bg: #ffffff;
  --border-color: rgba(0, 98, 176, 0.15);
  --input-bg: #f4f7fa;
  --input-border: rgba(0, 98, 176, 0.15);
  --nav-link: #526b82;

  /* Layout Settings for Light Mode */
  --card-shadow: 0 12px 32px rgba(30, 53, 74, 0.05);
  --card-border: 1px solid rgba(0, 0, 0, 0.05);
  --card-padding: 40px 32px;
  --badge-bg: #f4f7fa;
  --badge-border: none;

  /* Button specific variants */
  --btn-orange-bg: #fdf2ec;
  --btn-orange-color: var(--accent);
  --btn-orange-border: 1px solid rgba(224, 83, 0, 0.2);
  --btn-orange-hover: #fbe6da;
  --btn-style: normal;
  --btn-letter-spacing: normal;
  --btn-font-size: 16px;
  --btn-padding: 16px;
  --btn-radius: 8px;
  --btn-max-width: 420px;
}

/* GLOBAL RESETS */
html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color); 
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background: var(--bg-image);
  background-size: var(--bg-size);
  overflow-x: hidden;
}

* {
  max-width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

/* Fixed typo: added missing dot to class and corrected comment syntax */
.navbar.rounded-search-header {
  width: 100%;
  max-width: 1100px;
  padding: 15px 15px 15px 15px;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 50px; /* Restores the premium floating pill shape */
  padding: 12px 28px;
  margin: 0px auto 0 auto; /* Gives a neat top floating space */
  width: 92%;
  max-width: 1200px;
  box-shadow: var(--card-shadow); 
  position: sticky;
  top: 10px;
  z-index: 2000;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-logo {
  width: 28px;
  height: 28px;
  display: flex;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(243, 243, 243, 0.3);
}

/* LIGHT & DARK UTILITY OVERRIDES FOR FLOATING NAVBAR */
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 98, 176, 0.15); 
  box-shadow: 0 8px 32px rgba(30, 53, 74, 0.05);
}

[data-theme="dark"] .navbar {
  background: rgba(16, 23, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}



.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.brand .title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--primary);
}

[data-theme="dark"] .brand .title {
  color: var(--text-title);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navlinks {
  display: flex;
  gap: 8px; /* Slightly tighter gap to allow padding breathing room */
}

/* Base Navigation Links */
.navlinks a {
  text-decoration: none;
  color: var(--nav-link);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 30px; /* Pill layout matches the outer navbar shape */
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Interactive Hover States */
.navlinks a:hover { 
  color: var(--primary); 
  background-color: rgba(0, 98, 176, 0.05); /* Very subtle dynamic hover tint */
}

[data-theme="dark"] .navlinks a:hover { 
  color: var(--text-title); 
  background-color: rgba(255, 255, 255, 0.03);
}

/* ACTIVE / SELECTED STATE STYLES 
   This connects perfectly to your active class JS injector
*/
.navlinks a.active {
  color: var(--primary) !important;
  font-weight: 700;
  background-color: rgba(0, 98, 176, 0.12) !important; /* Soft premium primary blue pill */
}

[data-theme="dark"] .navlinks a.active {
  color: var(--text-title) !important;
  background-color: rgba(255, 255, 255, 0.08) !important; /* Crisp white tint highlights for dark UI */
}

.theme-toggle-btn {
  width: 36px;
  height: 36px;
  
  transition: all 0.15s ease;
  background: var(--bg-color);
  border: 1px solid rgba(56, 82, 114, 0.1);
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(243, 243, 243, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-btn svg {
  width: 20px; 
  height: 20px;
  transition: transform 0.3s ease;
}

.theme-toggle-btn .custom-light-icon { display: none; }
.theme-toggle-btn .custom-dark-icon { display: block; }

[data-theme="light"] .theme-toggle-btn .custom-dark-icon { display: none; }
[data-theme="light"] .theme-toggle-btn .custom-light-icon { display: block; }

/* HERO CONTAINER */
.hero {
  margin-top: 40px; /* Adjusted spacing to give the floating bar room */
  padding: 0 20px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* PRICING & TRUST INDICATOR CARD */
.pricing-trust-card {
  Background: var(--card-bg);
  Border: var(--card-border);
  Box-shadow: var(--card-shadow);
  Border-radius: 16px;
  Max-width: 540px;
  Width: 92%;
  Margin: 30px auto 10px auto;
  Padding: 24px;
  Display: flex;
  Align-items: center;
  Gap: 24px;
  Text-align: left;
  Transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pricing-badge {
  Background: rgba(224, 83, 0, 0.08);
  Border: 1px dashed var(--accent);
  Padding: 14px;
  Border-radius: 12px;
  Display: flex;
  Flex-direction: column;
  Align-items: center;
  Justify-content: center;
  Min-width: 115px;
  Text-align: center;
}

[data-theme=”light”] .pricing-badge {
  Background: #fdf2ec;
}

.price-amount {
  Font-size: 24px;
  Font-weight: 800;
  Color: var(--accent);
  Line-height: 1.1;
}

.price-label {
  Font-size: 10px;
  Font-weight: 700;
  Color: var(--text-main);
  Text-transform: uppercase;
  Margin-top: 4px;
  Letter-spacing: 0.3px;
}

.trust-features {
  Display: flex;
  Flex-direction: column;
  Gap: 10px;
  Width: 100%;
}

.feature-item {
  Display: flex;
  Align-items: center;
  Gap: 10px;
  Font-size: 13.5px;
  Font-weight: 500;
  Color: var(--text-title);
}

.feature-item svg {
  Width: 18px;
  Height: 18px;
  Color: #22c55e;
  Flex-shrink: 0;
}

/* DASHBOARD GRID SYSTEM */
.dashboard-grid {
  Display: grid;
  Grid-template-columns: repeat(2, 1fr);
  Gap: 24px;
  Max-width: 900px;
  Width: 92%;
  Margin: 40px auto;
}

.db-card {
  Background: var(--card-bg);
  Border-radius: 16px;
  Border: var(--card-border);
  Padding: var(--card-padding);
  Box-shadow: var(--card-shadow);
  Display: flex;
  Flex-direction: column;
  Justify-content: space-between;
  Align-items: center;
  Text-align: center;
  Transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.db-card:hover {
  Transform: translateY(-2px);
  Border-color: var(--input-border);
}

.db-card.full-width-row {
  Grid-column: span 2;
  Max-width: 540px;
  Width: 100%;
  Justify-self: center;
}

.card-main-content {
  Display: flex;
  Flex-direction: column;
  Align-items: center;
  Justify-content: center;
  Width: 100%;
}

.card-icon {
  Width: 52px;
  Height: 52px;
  Margin-bottom: 18px;
  Display: flex;
  Align-items: center;
  Justify-content: center;
  Margin-left: auto;
  Margin-right: auto;
}
.card-icon svg { width: 100%; height: 100%; }

.db-card h2 {
  Font-size: 17px;
  Font-weight: 700;
  Color: var(--text-title);
  Margin: 0 0 12px 0;
}

.db-card p {
  Font-size: 13.5px;
  Color: var(--text-main);
  Line-height: 1.6;
  Margin: 0 0 24px 0;
}

/* BUTTON COMPONENTS */
.btn {
  Width: 100%;
  Max-width: var(--btn-max-width);
  Padding: var(--btn-padding);
  Border-radius: var(--btn-radius);
  Font-size: var(--btn-font-size);
  Font-weight: 600;
  Text-transform: var(--btn-style);
  Letter-spacing: var(--btn-letter-spacing);
  Cursor: pointer;
  Border: none;
  Display: inline-flex;
  Align-items: center;
  Justify-content: center;
  Gap: 12px;
  Transition: background-color 0.2s ease, transform 0.1s ease, border-color 0.2s;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
  
.btn-primary { 
  Background: var(--primary); 
  Color: #fff; 
}
.btn-primary:hover { 
  Background: #005294; 
}
.btn-primary svg { fill: currentColor; }

.btn-orange { 
  Background: var(--btn-orange-bg); 
  Color: var(--btn-orange-color);
  Border: var(--btn-orange-border);
}
.btn-orange:hover { 
  Background: var(--btn-orange-hover); 
}
.btn-orange svg { 
  Stroke: currentColor; 
  Fill: none; 
}
.btn:active { transform: scale(0.99); }

.card-footer-area {
  Width: 100%;
}

/* MODAL INTERACTION INTERFACE */
.modal-overlay {
  Position: fixed;
  Inset: 0;
  Background: rgba(10, 15, 30, 0.8);
  Backdrop-filter: blur(8px);
  -webkit-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;
}

.modal-overlay.active {
  Opacity: 1;
  Pointer-events: auto;
}

.modal-content {
  Background: var(--card-bg);
  Border: 1px solid var(--border-color);
  Border-radius: 8px;
  Width: 100%;
  Max-width: 460px;
  Padding: 28px;
  Position: relative;
  Box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  Transition: background-color 0.3s ease, border-color 0.3s ease;
}

.modal-header {
  Display: flex;
  Justify-content: space-between;
  Align-items: center;
  Margin-bottom: 20px;
}

.modal-header h3 {
  Margin: 0;
  Font-size: 15px;
  Font-weight: 700;
  Color: var(--text-title);
  Text-transform: uppercase;
}

.close-modal {
  Background: transparent;
  Border: none;
  Color: var(--nav-link);
  Font-size: 22px;
  Cursor: pointer;
}
.close-modal:hover { color: var(--text-title); }

.form-group {
  Margin-bottom: 16px;
  Text-align: left;
}

.form-label-flex {
  Display: flex;
  Justify-content: space-between;
  Align-items: center;
  Margin-bottom: 6px;
}

.form-group label {
  Font-size: 13px;
  Color: var(--text-title);
}

.label-hint {
  Font-size: 11px;
  Color: var(--nav-link);
}

.form-select, .form-input {
  Width: 100%;
  Background: var(--input-bg);
  Border: 1px solid var(--input-border);
  Border-radius: 6px;
  Padding: 12px;
  Color: var(--text-title);
  Font-family: inherit;
  Font-size: 14px;
  Outline: none;
  Transition: border-color 0.2s, background-color 0.3s, color 0.3s;
}

.form-input:focus, .form-select:focus { border-color: var(--primary); }
.form-input.input-error { border-color: #ef4444; }

/* ERROR HANDLING AND FORM VALIDATION WARNINGS */
.error-text { 
  Color: #ff4d4d; 
  Font-size: 11px; 
  Margin-top: 4px; 
  Display: none; 
}
[data-theme=”light”] .error-text { 
  Color: #cc0000; 
}

.price-box {
  Background: var(--input-bg);
  Border: 1px solid var(--border-color);
  Border-radius: 6px;
  Padding: 12px;
  Margin-bottom: 20px;
  Display: flex;
  Align-items: center;
  Gap: 10px;
  Font-size: 13px;
  Color: var(--nav-link);
  Transition: background-color 0.3s ease;
}
.price-box svg { width: 16px; height: 16px; color: var(--nav-link); }
.price-box strong { color: var(--text-title); }
.dynamic-fields { display: none; }

/* BADGES */
.badges {
  Display: flex;
  Justify-content: center;
  Gap: 16px;
  Margin-top: 24px;
  Padding-top: 20px;
  Border-top: 1px solid var(--border-color);
  Flex-wrap: wrap;
}

.badge {
  Font-size: 12px;
  Font-weight: 500;
  Color: var(--text-italic);
  Display: flex;
  Align-items: center;
  Gap: 6px;
  Background: var(--badge-bg);
  Border: var(--badge-border);
  Padding: 6px 12px;
  Border-radius: 6px;
  Transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* INSTRUCTIONS CONTAINER */
.steps-container {
  Margin: 80px auto;
  Max-width: 680px;
  Padding: 0 20px;
}

.steps-container h2 {
  Text-align: center;
  Font-size: 1.8rem;
  Font-weight: 700;
  Margin-bottom: 32px;
  Color: var(--text-title);
}

.step-box {
  Background: var(--card-bg);
  Padding: 32px;
  Border-radius: 16px;
  Border: var(--card-border);
  Box-shadow: var(--card-shadow);
  Text-align: center;
  Transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.step-box img {
  Width: 100%;
  Max-width: 420px;
  Height: auto;
  Border-radius: 8px;
  Border: 1px solid #e4ecf3;
  Margin-bottom: 24px;
}
[data-theme=”dark”] .step-box img { border-color: transparent; }

.nav-arrows {
  Display: flex;
  Justify-content: space-between;
  Margin-top: 32px;
}

.arrow-btn {
  Background: var(--input-bg);
  Color: var(--primary);
  Border: none;
  Padding: 10px 20px;
  Border-radius: 6px;
  Font-weight: 600;
  Font-size: 14px;
  Cursor: pointer;
  Transition: background-color 0.2s ease;
}
[data-theme=”dark”] .arrow-btn { color: var(--text-title); border: 1px solid var(--input-border); }
.arrow-btn:hover:not(:disabled) { background: var(--input-border); }
.arrow-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* FOOTER ARCHITECTURE */
/* --- Add these lines into your existing Theme Root Rules --- */
:root {
  --footer-bg: #161f32; /* Matches your --card-bg for seamless entry */
  --footer-text-muted: #64748b;
  --footer-giant: rgba(255, 255, 255, 0.03);
}
[data-theme="light"] {
  --footer-bg: #0062b0; /* Vibrant primary wash for light mode visibility */
  --footer-text-muted: #e3f2fd;
  --footer-giant: rgba(255, 255, 255, 0.08);
}

/* --- CORE FOOTER LAYOUT ENGINE --- */
.site-footer {
  width: 100%;
  background: transparent;
  margin-top: 80px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.footer-wave-container {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.footer-wave-container svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.footer-inner {
  background-color: var(--footer-bg);
  padding: 40px 40px 20px 40px;
  transition: background-color 0.3s ease;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px 0;
  letter-spacing: -0.3px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--nav-link);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
[data-theme="light"] .footer-links a { color: #f4f9fd; }
.footer-links a:hover { color: var(--accent); }

/* CENTER COLUMN CTA */
.footer-cta-center {
  align-items: center;
  text-align: center;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-main);
  margin: 0 0 20px 0;
  max-width: 280px;
}
[data-theme="light"] .footer-desc { color: #e3f2fd; }

.footer-btn {
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 32px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(224, 83, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s;
}
.footer-btn:hover { background: #ff6307; transform: translateY(-2px); }
.footer-btn:active { transform: translateY(0); }

/* RIGHT COLUMN STATS & LIVE CHANNELS */
.footer-right {
  align-items: flex-end;
  text-align: right;
}

.footer-socials {
  display: flex !important;
  gap: 14px !important;
  margin-bottom: 16px;
  align-items: center !important;
}

/* Strict bounding dimensions for the icon anchor footprint */
.footer-icon-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px !important;
  height: 32px !important;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.footer-icon-link:hover { transform: scale(1.15); }

/* Hard-lock on actual image sizes to bypass global theme overrides */
.footer-icon-link img.footer-icon {
  width: 100% !important;
  height: 100% !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain !important;
  display: block !important;
}


[data-theme="light"] .footer-email-link { color: #e3f2fd; }
.footer-email-link:hover { color: var(--accent); text-decoration: underline; }

.footer-copy {
  font-size: 12px;
  color: var(--footer-text-muted);
  margin: 0;
  line-height: 1.4;
}

.footer-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 10px;
}

.footer-attribution {
  font-size: 9px;
  color: var(--footer-text-muted);
  margin-top: 8px;
  opacity: 0.5;
}
.footer-attribution a { color: inherit; text-decoration: underline; }

/* GIANT TYPOGRAPHY BACKGROUND MARK */
.footer-giant-brand {
  font-size: 8vw;
  font-weight: 900;
  text-align: center;
  color: var(--footer-giant);
  letter-spacing: -2px;
  user-select: none;
  pointer-events: none;
  line-height: 1;
  margin-top: 20px;
  text-transform: uppercase;
}

/* --- MOBILE STACK BREAKPOINT COMPLIANCE --- */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
    align-items: center;
    padding-bottom: 32px;
  }
  .footer-col {
    align-items: center;
    text-align: center;
  }
  .footer-right {
    align-items: center;
    text-align: center;
  }
  .footer-socials {
    justify-content: center !important;
    margin-bottom: 12px;
  }
  .footer-icon-link {
    width: 36px !important;
    height: 36px !important;
  }
  .footer-icon-link img.footer-icon {
    max-width: 36px !important;
    max-height: 36px !important;
  }
  .footer-giant-brand {
    font-size: 25vw;
    margin-top: 24px;
  }
}
/* APP LAYOUT LOADING SPINNER */
#pageLoader {
  Position: fixed;
  Inset: 0;
  Display: flex;
  Align-items: center;
  Justify-content: center;
  Background: var(--bg-color);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background-color 0.3s ease;
}
#pageLoader.show { opacity: 1; pointer-events: auto; }

.spinner {
  Width: 44px;
  Height: 44px;
  Border: 4px solid var(--card-bg);
  Border-top: 4px solid var(--primary);
  Border-radius: 50%;
  Animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* STICKY CONVERSION FLOATING ACTION BUTTON (FAB) */
.mobile-fab {
  Position: fixed;
  Bottom: 24px;
  Right: 24px;
  Background: var(--accent);
  Color: #ffffff;
  Border: none;
  Border-radius: 50px;
  Padding: 14px 22px;
  Font-family: inherit;
  Font-size: 14px;
  Font-weight: 700;
  Display: flex;
  Align-items: center;
  Gap: 8px;
  Box-shadow: 0 8px 24px rgba(224, 83, 0, 0.4);
  Cursor: pointer;
  z-index: 999;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease, background-color 0.2s;
}

.mobile-fab:hover {
  Background: #c74a00;
}

.mobile-fab:active {
  Transform: scale(0.95);
}

.mobile-fab svg {
  Width: 18px;
  Height: 18px;
  Stroke: currentColor;
}

/* RESPONSIVE LAYOUTS & MOBILE VIEWPORTS */
@media (max-width: 768px) {
@media (max-width: 880px) {
  
  /* 1. Keep the Navbar as a Row (Pill Layout) on Mobile */
  .navbar {
    width: 92%;
    max-width: 480px;
    margin: 0px auto 0 auto; 
    border-radius: 28px;
    padding: 12px 18px;
    position: sticky;
    top: 10px;
    z-index: 2000;
    display: flex;
    flex-direction: row; /* Horizontal alignment for brand logo & toggle button */
    justify-content: space-between;
    align-items: center;
  }

  .header-left {
    width: auto;
    justify-content: flex-start;
  }

  .nav-actions {
    width: auto;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* 2. Style and Show the Hamburger Button */
  .navbar-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2001; /* Keep above dropdown card */
  }

  .navbar-toggle .bar {
    display: block;
    width: 22px;
    height: 3px;
    background-color: var(--text-title);
    border-radius: 10px;
    transition: 0.3s ease-in-out;
  }

  /* Hamburger Morph into "X" when active */
  .navbar-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .navbar-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .navbar-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* 3. Dropdown Menu Drawer (.navlinks) */
  .navlinks {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 75px; /* Floats perfectly under the navbar pill */
    right: 0;
    width: 240px;
    background: var(--nav-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    gap: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1999;
  }

  /* Active State triggered by JS */
  .navlinks.active {
    display: flex;
  }

  .navlinks a {
    width: 100%;
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--nav-link);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
  }

  .navlinks a:hover {
    background-color: rgba(0, 98, 176, 0.08);
    color: var(--primary);
  }

  /* 4. Theme Toggle Button Styling */
  .theme-toggle-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 8px rgba(255, 255, 255, 0.692);
    transition: background-color 0.2s, border-color 0.2s, transform 0.1s;
  }

  .theme-toggle-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .theme-toggle-btn:active {
    transform: scale(0.92);
  }
}

  /* 2. Stack Dashboard Cards into Full-Width clean blocks */
  .dashboard-grid {
    grid-template-columns: 1fr; 
    width: 92%;
    margin: 24px auto;
    gap: 20px; 
  }

  .db-card, .db-card.full-width-row {
    grid-column: span 1;
    width: 100%;
    padding: 32px 20px; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    border-radius: 12px;
  }

  /* 3. Mobile UI Typography & Icon Alignment */
  .card-icon {
    width: 64px; 
    height: 64px;
    margin-bottom: 16px;
  }

  .db-card h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .db-card p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .btn {
    width: 100%; 
    max-width: 100%;
    padding: 14px;
    border-radius: 6px;
  }

  /* 4. Active Sticky FAB layout configuration */
  .mobile-fab.visible {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  /* 5. Responsive Pricing Layout Configuration */
  .pricing-trust-card {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    margin: 20px auto;
  }
  
  .pricing-badge {
    width: 100%;
  }
  
  .feature-item {
    justify-content: center;
  }
}


