/* ==========================================
   FinanceHub - Main Stylesheet
   International Level Design System
   ========================================== */

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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #0a0a0f;
  --bg-card: #111118;
  --bg-elevated: #16161f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Sora', 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
}

/* ── SCROLLBAR ── */
/* ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
} */
::-webkit-scrollbar {
  display: none;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

/* ── UTILITIES ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  /* background: rgba(255, 255, 255, 0.08); */
  background:    conic-gradient(rgba(52, 168, 82, 0) 0deg, rgba(52, 168, 82, 1) 38.9738deg, rgba(255, 211, 20, 1) 62.3678deg, rgba(255, 70, 65, 1) 87.0062deg, rgba(49, 134, 255, 1) 107.428deg, rgba(49, 134, 255, 0.5) 204.48deg, rgba(49, 134, 255, 0) 308.88deg, rgba(52, 168, 82, 0) 360deg);
  --mask-gradient: conic-gradient(transparent, 16.56deg, 273.24deg, transparent 333.36deg, transparent 360deg);;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  --anim-duration
  : 2s;
      --glif-angle-start: 99deg;
      --glif-angle-range: 245deg;
      --mask-angle-start: -150deg;
      --mask-angle-range: 355deg;
      --acceleration: cubic-bezier(0.4, 0, 0.2, 1);
      --glif-gradient: conic-gradient(rgba(52, 168, 82, 0) 0deg, rgba(52, 168, 82, 1) 38.9738deg, rgba(255, 211, 20, 1) 62.3678deg, rgba(255, 70, 65, 1) 87.0062deg, rgba(49, 134, 255, 1) 107.428deg, rgba(49, 134, 255, 0.5) 204.48deg, rgba(49, 134, 255, 0) 308.88deg, rgba(52, 168, 82, 0) 360deg);
      --mask-gradient: conic-gradient(transparent, 16.56deg, 273.24deg, transparent 333.36deg, transparent 360deg);
}
/* @keyframes --anim {
  0%{
      transform: rotate(0);
  }
  100%{
      transform: rotate(360deg);
  }
} */
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgb(191 191 191 / 14%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgb(191 191 191 / 14%);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
}

.brand-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.brand-accent {
  color: var(--primary);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orb-float 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1, transparent);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #8b5cf6, transparent);
  bottom: -50px;
  right: 10%;
  animation-delay: -3s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #06b6d4, transparent);
  top: 30%;
  right: 20%;
  animation-delay: -6s;
  opacity: 0.2;
}

@keyframes orb-float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

.hero-content {
  position: relative;
  max-width: 600px;
  flex: 0 0 auto;
  z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    color: greenyellow;
    margin-bottom: 22px;
}

.hero-title{
     width: 100%;
    font-family: var(--font-display);
    font-size: 27px;
    line-height: 1.1;
    margin-bottom: 12px;
   background-clip: text;
   -webkit-background-clip: text;
   color: transparent;
   background-image: linear-gradient(120deg, rgb(0, 21, 255), rgb(255, 0, 0), rgb(81, 255, 0), rgb(225, 0, 255), rgb(255, 225, 0), rgb(5, 197, 255), rgb(255, 111, 0));
   background-size: 400% 400%;
   animation: animate 15s ease infinite;
}

@keyframes animate{
    0%{
        background-position: 0 0;
    }
    25%{
        background-position: 100% 0;
    }
    50%{
        background-position: 100% 100%;
    }
    75%{
        background-position: 0 100%;
    }
    100%{
        background-position: 0 0;
    }
}

.hero-subtitle {
  font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 15px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
     display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-strong);
}

.hero-visual {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.dashboard-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  width: 340px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.mockup-header {
  background: var(--bg-elevated);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot.red {
  background: #ef4444;
}

.mockup-dot.yellow {
  background: #f59e0b;
}

.mockup-dot.green {
  background: #10b981;
}

.mockup-header span {
  margin-left: 4px;
}

.mockup-body {
  padding: 20px;
}

.mockup-chart {
  margin-bottom: 16px;
}

.mockup-stats {
  display: flex;
  gap: 12px;
}

.m-stat {
  flex: 1;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.m-stat-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.m-stat-lab {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── TOOLS SECTION ── */
.tools-section {
  padding: 80px 0;
}

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

.section-tag {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.tools-scroll-container {
  overflow-x: auto;
  padding-bottom: 8px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(340px, 1fr));
  gap: 20px;
  /*min-width: 700px;*/
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius-lg);
}

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

.tool-card:hover::before {
  opacity: 1;
}

.tool-card-1::before {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), transparent);
}

.tool-card-2::before {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), transparent);
}

.tool-card-3::before {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), transparent);
}

.tool-card-4::before {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), transparent);
}

.tool-card-5::before {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.06), transparent);
}

.tool-card-6::before {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06), transparent);
}

.tool-icon-wrap {
  flex: 0 0 auto;
}

.tool-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0;
}

.tool-info {
  flex: 1;
}

.tool-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.tool-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 100px;
}

.tool-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  align-self: flex-end;
  transition: var(--transition);
}

.tool-card:hover .tool-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

/* ── FEATURES ── */
.features-section {
  padding: 80px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
}

.feature-item {
  text-align: center;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.feature-item h4 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── COUNTRIES ── */
.countries-section {
  padding: 80px 0;
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.country-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.country-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.country-flag {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
}

.flag-img {
  width: 80px;
  height: 53px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  display: block;
  margin: 0 auto;
}

.country-card h4 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.country-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ── CTA ── */
.cta-section {
  padding: 80px 0;
}

.cta-box {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(99, 102, 241, 0.4);
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-box .btn-primary {
  background: #fff;
  color: var(--primary-dark);
}

.cta-box .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.cta-box .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-brand {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-links h5 {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-links li a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-links li a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

/* ── TOOL PAGE LAYOUT ── */
.tool-page {
  padding-top: 88px;
  min-height: 100vh;
}

.page-hero {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 40px;
  margin-bottom: 48px;
}

.page-hero-content {
  max-width: 700px;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.page-back:hover {
  color: var(--primary-light);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* ── FORM CARD ── */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.form-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: var(--font-main);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: #1a1a2e;
}

.input-prefix {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.input-prefix-sym {
  padding: 12px 14px;
  color: var(--text-muted);
  font-weight: 600;
  border-right: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  font-size: 0.9rem;
}

.input-prefix input {
  border: none;
  border-radius: 0;
  flex: 1;
}

.input-prefix input:focus {
  box-shadow: none;
}

.input-prefix:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.range-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.range-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.range-value {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--border-strong);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.5);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ── RESULTS SECTION ── */
.results-section {
  display: none;
}

.results-section.visible {
  display: block;
}

.results-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  flex-wrap: gap;
  gap: 16px;
}

.results-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.results-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 4px;
}

/* ── KEY METRICS ── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.metric-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.metric-card.success::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

.metric-card.warning::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.metric-card.danger::before {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.metric-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── CHARTS ── */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.chart-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.chart-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chart-container {
  position: relative;
  height: 240px;
}

/* ── TABLE ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.data-table th {
  background: var(--bg);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.data-table td {
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.data-table tr:hover td {
  background: rgba(99, 102, 241, 0.05);
}

.data-table .pos {
  color: var(--success);
}

.data-table .neg {
  color: var(--danger);
}

.table-wrapper {
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* ── PDF BUTTON ── */
.pdf-section {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  gap: 12px;
}

.pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.pdf-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.pdf-btn svg {
  width: 18px;
  height: 18px;
}

/* ── SCORE METER ── */
.score-meter {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
}

.score-meter canvas {
  position: absolute;
  top: 0;
  left: 0;
}

.score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.score-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── TABS ── */
.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tab-btn {
  flex: 1;
  min-width: fit-content;
  padding: 10px 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.badge-info {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
}

/* ── COMPARISON CARD ── */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.compare-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  position: relative;
}

.compare-card.recommended {
  border-color: var(--primary);
}

.compare-card.recommended::before {
  content: 'Recommended';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.compare-card-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.compare-card-price {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--primary-light);
}

.compare-card-period {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.compare-features {
  margin-top: 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* ── GRANT CARD ── */
.grant-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.grant-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.grant-card:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.grant-icon {
  font-size: 2rem;
  flex: 0 0 auto;
}

.grant-info {
  flex: 1;
}

.grant-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.grant-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.grant-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.grant-amount {
  font-weight: 700;
  font-size: 1rem;
  color: var(--success);
}

.grant-deadline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.grant-apply {
  padding: 8px 18px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  flex: 0 0 auto;
  transition: var(--transition);
}

.grant-apply:hover {
  transform: translateY(-1px);
}

/* ── LOADING ── */
.loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ── PROGRESS BAR ── */
.progress-bar-wrap {
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  height: 8px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--gradient-primary);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── ALERT ── */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  border-left: 4px solid;
  margin-bottom: 20px;
}

.alert-info {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary);
  color: var(--primary-light);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success);
  color: #10b981;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--warning);
  color: #f59e0b;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    gap: 48px;
    padding-top: 100px;
  }

  .hero-visual {
    width: 100%;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
    align-items: start;
    background: gray;
  }

  .hamburger {
    display: flex;
  }
  .hero-ctas {
    flex-direction: column;
  }

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

  .tools-scroll-container {
    overflow-x: visible;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-box {
    padding: 36px 24px;
  }

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

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

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .hero-stats {
    gap: 16px;
  }

  .dashboard-mockup {
    width: 100%;
    max-width: 320px;
  }
}

/* ── PRINT STYLES for PDF ── */
@media print {

  .navbar,
  .page-back,
  .form-card,
  .pdf-section {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .results-card,
  .chart-card,
  .metric-card {
    border-color: #ddd;
    background: #fff;
  }

  .metric-value,
  .results-title {
    color: #000;
  }

  .metric-label,
  .results-subtitle {
    color: #666;
  }
}

/* ══════════════════════════════════════════
   TOP BAR + SECONDARY NAV (New Navigation)
   ══════════════════════════════════════════ */

/* Top info bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: linear-gradient(135deg, #f90000, #0a80fd);
  /* padding: 7px 24px; */
  text-align: center;
  font-size: 0.78rem;
  color: rgb(0 255 81);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.top-bar a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.top-bar a:hover {
  opacity: 0.85;
}

/* Secondary nav (About / Contact / Blog) */
.secondary-nav {
  position: fixed;
  top: 34px;
  left: 0;
  right: 0;
  z-index: 1099;
  background: rgba(22, 22, 31, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 24px;
}

.secondary-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  height: 46px;
}

.sec-nav-link {
  padding: 0 18px;
  height: 46px;
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748b;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
  text-decoration: none;
}

.sec-nav-link:hover {
  color: #94a3b8;
  border-bottom-color: rgba(99, 102, 241, 0.4);
}

.sec-nav-link.active {
  color: #818cf8;
  border-bottom-color: #6366f1;
}

/* Main navbar offset for dual bars */
.navbar-offset {
  top: 80px !important;
}

/* Adjust main navbar top when top bar present */
body .navbar:not([style*="top"]) {
  top: 80px;
}

/* When pages explicitly set top: 80px */

/* ══════════════════════════════════════════
   WORLDWIDE EXPANSION — Countries Section
   ══════════════════════════════════════════ */
.countries-section {
  padding: 80px 0;
  background: rgba(17, 17, 24, 0.5);
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.country-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
}

.country-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.country-flag {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.country-card h4 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.country-card p {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .countries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .top-bar-inner {
    gap: 4px;
    font-size: 12px;
    justify-content: start;
  }

  .top-bar-inner span:nth-child(2),
  .top-bar-inner span:nth-child(4) {
    display: none;
  }
}

@media (max-width: 480px) {
  .countries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ══════════════════════════════════════════
   LIGHT MODE THEME
   ══════════════════════════════════════════ */
body.light-mode {
  --bg: #f8faff;
  --bg-card: #ffffff;
  --bg-elevated: #f1f5ff;
  --border: rgba(99, 102, 241, 0.12);
  --border-strong: rgba(99, 102, 241, 0.25);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --shadow-sm: 0 2px 8px rgba(99, 102, 241, 0.08);
  --shadow-md: 0 8px 32px rgba(99, 102, 241, 0.12);
  --shadow-lg: 0 24px 64px rgba(99, 102, 241, 0.15);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
  --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.03));
}

body.light-mode .navbar {
  background: transparent;
   backdrop-filter: 18px;
}

body.light-mode .navbar.scrolled {
  /*background: rgba(248, 250, 255, 0.98);*/
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.12);
}

body.light-mode .secondary-nav {
  background: rgba(241, 245, 255, 0.98);
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
}

body.light-mode .top-bar {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

body.light-mode .hero {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.07) 0%, rgba(248, 250, 255, 0) 100%);
}

body.light-mode .hero-title {
  /*color: #0f172a;*/
}

body.light-mode .hero-subtitle {
  color: #475569;
}

body.light-mode .hero-badge {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
  color: rgb(163 245 8);
}

body.light-mode .stat-label {
  color: #64748b;
}

body.light-mode .stat-divider {
  background: rgba(99, 102, 241, 0.2);
}

body.light-mode .dashboard-mockup {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 24px 80px rgba(99, 102, 241, 0.2);
}

body.light-mode .mockup-header {
  background: #f1f5ff;
  border-bottom-color: rgba(99, 102, 241, 0.12);
  color: #64748b;
}

body.light-mode .m-stat-val {
  color: #0f172a;
}

body.light-mode .m-stat-lab {
  color: #64748b;
}

body.light-mode .tools-section {
  background: #f8faff;
}

body.light-mode .tool-card {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.12);
}

body.light-mode .tool-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

body.light-mode .tool-info h3 {
  color: #0f172a;
}

body.light-mode .tool-info p {
  color: #475569;
}

body.light-mode .tag {
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

body.light-mode .tool-arrow {
  color: #6366f1;
}

body.light-mode .features-section {
  background: #ffffff;
}

body.light-mode .feature-item {
  background: #f8faff;
  border-color: rgba(99, 102, 241, 0.1);
}

body.light-mode .feature-item h4 {
  color: #0f172a;
}

body.light-mode .feature-item p {
  color: #475569;
}

body.light-mode .countries-section {
  background: rgba(241, 245, 255, 0.6);
}

body.light-mode .country-card {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.1);
}

body.light-mode .country-card h4 {
  color: #0f172a;
}

body.light-mode .cta-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
  border-color: rgba(99, 102, 241, 0.2);
}

body.light-mode .cta-box h2 {
  color: #0f172a;
}

body.light-mode .cta-box p {
  color: #475569;
}

body.light-mode .footer {
  background: #ffffff;
  border-top-color: rgba(99, 102, 241, 0.12);
}

body.light-mode .footer-bottom {
  border-top-color: rgba(99, 102, 241, 0.1);
  color: #64748b;
}

body.light-mode .brand-name {
  color: #0f172a;
}

body.light-mode .footer-links h5 {
  color: #0f172a;
}

body.light-mode .footer-links a {
  color: #64748b;
}

body.light-mode .footer-links a:hover {
  color: #4f46e5;
}

body.light-mode .btn-secondary {
  background: rgba(99, 102, 241, 0.08);
  color: #0f172a;
  border-color: rgba(99, 102, 241, 0.2);
}

body.light-mode .btn-outline {
  border-color: rgba(99, 102, 241, 0.3);
  color: #0f172a;
}

body.light-mode .sec-nav-link {
  color: #64748b;
}

body.light-mode .sec-nav-link:hover {
  color: #4f46e5;
}

body.light-mode .nav-link {
  color: #0093ff;
}

body.light-mode .nav-link:hover {
  color: #4f46e5;
}

body.light-mode .nav-link.active {
  color: #c2c2c2;
}

body.light-mode .section-tag {
  color: #4f46e5;
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
}

body.light-mode .section-title {
  color: #0f172a;
}

body.light-mode .section-subtitle {
  color: #475569;
}

body.light-mode .hero-stat .stat-num {
  color: #0f172a;
}

body.light-mode ::-webkit-scrollbar-track {
  background: #f1f5ff;
}

body.light-mode .orb-1,
body.light-mode .orb-2,
body.light-mode .orb-3 {
  opacity: 0.25;
}

body.light-mode .grid-overlay {
  opacity: 0.4;
}

/* Theme Toggle Button */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
  color: var(--primary);
}

body.light-mode .theme-toggle {
  background: rgba(99, 102, 241, 0.07);
  border-color: rgba(99, 102, 241, 0.2);
  color: #334155;
}

body.light-mode .theme-toggle:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: #6366f1;
  color: #4f46e5;
}

.theme-icon {
  font-size: 1rem;
}

/* Secondary nav layout - links left, toggle right */
.secondary-nav-inner {
  justify-content: space-between;
}

.sec-nav-right {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.sec-nav-right .sec-nav-link,
.sec-nav-right .theme-toggle {
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   BLOG SECTION ON HOME PAGE
   ══════════════════════════════════════════ */
.home-blog-section {
  padding: 80px 0;
  background: var(--bg);
}

body.light-mode .home-blog-section {
  background: #f8faff;
}

.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .home-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
    .navbar {
   margin-top: 8px;
    background: transparent;
  }
  .hero-badge {
   margin-top: 10px;
    margin-bottom: 20px;
  }
  body.light-mode .navbar {
    background: transparent;
    border-bottom: 0px solid rgba(99, 102, 241, 0.15);
  }
}

@media (max-width: 600px) {
  .home-blog-grid {
    grid-template-columns: 1fr;
  }
}

.home-blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.home-blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: var(--shadow-md);
}

body.light-mode .home-blog-card {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.1);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.06);
}

.blog-card-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.blog-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
}

body.light-mode .blog-card-img {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
}

.blog-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(99, 102, 241, 0.9);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.blog-card-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blog-card-source {
  font-weight: 600;
  color: var(--primary);
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.blog-card-excerpt {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.blog-card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}

.blog-card-link:hover {
  gap: 8px;
}

body.light-mode .blog-card-title {
  color: #0f172a;
}

body.light-mode .blog-card-excerpt {
  color: #475569;
}

body.light-mode .blog-card-meta {
  color: #94a3b8;
}

.news-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.news-loading .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

.view-all-btn-wrap {
  text-align: center;
  margin-top: 40px;
}

/* ── LIGHT MODE: Sub-page elements ── */
body.light-mode .page-header {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.07) 0%, transparent 100%) !important;
}

body.light-mode .page-title {
  color: #0f172a !important;
}

body.light-mode .page-subtitle {
  color: #475569 !important;
}

body.light-mode .calc-card,
body.light-mode .card,
body.light-mode .result-card,
body.light-mode .sidebar-widget,
body.light-mode .widget,
body.light-mode .post-card,
body.light-mode .about-card,
body.light-mode .team-card,
body.light-mode .contact-card,
body.light-mode .plan-card,
body.light-mode .grant-card,
body.light-mode .credit-card-ui,
body.light-mode .score-card {
  background: #ffffff !important;
  border-color: rgba(99, 102, 241, 0.12) !important;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.06) !important;
}

body.light-mode input,
body.light-mode select,
body.light-mode textarea {
  background: #f8faff !important;
  border-color: rgba(99, 102, 241, 0.2) !important;
  color: #0f172a !important;
}

body.light-mode input:focus,
body.light-mode select:focus,
body.light-mode textarea:focus {
  border-color: #6366f1 !important;
  background: #ffffff !important;
}

body.light-mode label {
  color: #334155 !important;
}
body.light-mode h2,
body.light-mode h3,
body.light-mode h4 {
  color: #0f172a;
}

body.light-mode p {
  color: #475569;
}

body.light-mode .result-val,
body.light-mode .metric-value {
  color: #0f172a !important;
}

body.light-mode .result-label,
body.light-mode .metric-label,
body.light-mode .metric-sub {
  color: #64748b !important;
}

body.light-mode .filter-btn {
  background: rgba(99, 102, 241, 0.06) !important;
  color: #475569 !important;
  border-color: rgba(99, 102, 241, 0.15) !important;
}

body.light-mode .filter-btn.active,
body.light-mode .filter-btn:hover {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #4f46e5 !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}

body.light-mode .post-img-markets {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05)) !important;
}

body.light-mode .blog-hero {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, transparent 100%) !important;
}

body.light-mode .blog-hero h1 {
  color: #0f172a !important;
}

body.light-mode .news-ticker {
  background: rgba(99, 102, 241, 0.06) !important;
  border-color: rgba(99, 102, 241, 0.12) !important;
}

body.light-mode .market-item {
  border-bottom-color: rgba(99, 102, 241, 0.08) !important;
}

body.light-mode .market-name {
  color: #0f172a !important;
}

body.light-mode .market-val {
  color: #0f172a !important;
}

body.light-mode #articleModalInner {
  background: #ffffff !important;
  border-color: rgba(99, 102, 241, 0.2) !important;
}

body.light-mode #articleModalImg {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.04)) !important;
}

/* ///// */
#download-link {
  width: 240px;
  height: 41px;
  background: linear-gradient(90deg, #0389ff, #ff02ea, #ffe600, #73ff00, #ff1c02);
  background-size: 400% 400%;
  animation: gradient-animation 5s ease infinite;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  gap: 7px;
}

#download-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}
/* Animated gradient button for download */
@keyframes gradient-animation {
  0% {
      background-position: 0% 50%;
  }

  50% {
      background-position: 100% 50%;
  }

  100% {
      background-position: 0% 50%;
  }
}

/* ══════════════════════════════════════════════════════
   ANIMATED RAINBOW BORDER BUTTONS
   ══════════════════════════════════════════════════════ */

/* Spinning rainbow border keyframe */
@keyframes spin-border {
  0%   { --border-angle: 0deg; }
  100% { --border-angle: 360deg; }
}

@keyframes border-hue {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ── btn-primary: Purple → Pink → Blue spinning border ── */
.btn-primary {
  position: relative;
  isolation: isolate;
  border: none;
  padding: 14px 30px;
  z-index: 0;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  /* border-radius: calc(var(--radius-md) + 2px);
  background: conic-gradient(
    from var(--border-angle),
    #6366f1, #a855f7, #ec4899, #f59e0b, #10b981, #3b82f6, #6366f1
  );
  animation: spin-border 2.5s linear infinite;
  z-index: -1;
  transition: opacity 0.3s; */
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  z-index: -1;
}

/* ── btn-secondary: Green → Yellow → Red → Blue (Google colors) ── */
.btn-secondary {
  position: relative;
  isolation: isolate;
  background: transparent !important;
  border: none !important;
  color: var(--text-primary);
  padding: 14px 30px;
  z-index: 0;
}
.btn-secondary::before {
  content: '';
  position: absolute;
  inset: -0.1px;
  border-radius: calc(var(--radius-md) + .25px);
  background: conic-gradient(
    from var(--border-angle),
    #34a853, #fbbc04, #ea4335, #4285f4, white,white, white, white, white, #34a853
  );
  animation: spin-border 4s linear infinite;
  z-index: -1;
}
.btn-secondary::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  z-index: -1;
}
.btn-secondary:hover {
  background: transparent !important;
  transform: translateY(-4px);
}

/* ── btn-outline: Cyan → Violet → Orange spinning border ── */
.btn-outline {
  position: relative;
  isolation: isolate;
  background: transparent;
  border: none !important;
  padding: 14px 30px;
  z-index: 0;
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: -0.1px;
  border-radius: calc(var(--radius-md) + 2px);
  background: conic-gradient(
    from var(--border-angle),
    #06b6d4, #8b5cf6, #f97316,Green, white, white, white, white, white, #06b6d4
  );
  animation: spin-border 4s linear infinite;
  z-index: -1;
}
.btn-outline::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  z-index: -1;
}
.btn-outline:hover {
  color: var(--primary);
  border: none !important;
}

/* ── btn-success: Teal → Emerald → Lime spinning border ── */
.btn-success {
  position: relative;
  isolation: isolate;
  border: none;
  padding: 14px 30px;
  z-index: 0;
}
.btn-success::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-md) + 2px);
  background: conic-gradient(
    from var(--border-angle),
    #10b981, #84cc16, #06b6d4, #10b981
  );
  animation: spin-border 2s linear infinite;
  z-index: -1;
}
.btn-success::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #10b981, #059669);
  z-index: -1;
}

/* ── pdf-btn: special gold → orange → red animated border ── */
.pdf-btn {
  position: relative;
  isolation: isolate;
  border: none;
  z-index: 0;
}
.pdf-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-md) + 2px);
  background: conic-gradient(
    from var(--border-angle),
    #f59e0b, #ef4444, #f97316, #eab308, #f59e0b
  );
  animation: spin-border 2s linear infinite;
  z-index: -1;
}
.pdf-btn::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #10b981, #059669);
  z-index: -1;
}

/* ── filter-btn: subtle rainbow on active state ── */
.filter-btn {
  position: relative;
  isolation: isolate;
  transition: var(--transition);
}
.filter-btn.active,
.filter-btn:hover {
  border: none !important;
}
.filter-btn.active::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 100px;
  background: conic-gradient(
    from var(--border-angle),
    #6366f1, #a855f7, #ec4899, #f59e0b, #6366f1
  );
  animation: spin-border 2s linear infinite;
  z-index: -1;
}
.filter-btn.active::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 100px;
  background: var(--gradient-primary);
  z-index: -1;
}

/* ── tab-btn active: indigo → violet animated border ── */
.tab-btn.active {
  position: relative;
  isolation: isolate;
  background: transparent;
}
.tab-btn.active::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-sm) + 2px);
  background: conic-gradient(
    from var(--border-angle),
    #6366f1, #8b5cf6, #a855f7, #6366f1
  );
  animation: spin-border 2s linear infinite;
  z-index: -1;
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  z-index: -1;
}

/* ── newsletter-btn: pink → purple → blue ── */
.newsletter-btn {
  position: relative;
  isolation: isolate;
  border: none;
  z-index: 0;
}
.newsletter-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-md) + 2px);
  background: conic-gradient(
    from var(--border-angle),
    #6366f1, #ec4899, #8b5cf6, #3b82f6, #6366f1
  );
  animation: spin-border 2s linear infinite;
  z-index: -1;
}
.newsletter-btn::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  z-index: -1;
}

/* ── Slower spin on hover for all animated buttons ── */
.btn-primary:hover::before,
.btn-secondary:hover::before,
.btn-outline:hover::before,
.btn-success:hover::before,
.pdf-btn:hover::before,
.newsletter-btn:hover::before {
  animation-duration: 1s;
}

/* ── Light mode adjustments ── */
body.light-mode .btn-secondary::after {
  background: #fff;
}
body.light-mode .btn-outline::after {
  background: #f8fafc;
}
body.light-mode .tab-btn.active::after {
  background: #fff;
}
/*my css*/
.vid {
  width: 100%;
  position: absolute;
}

#video {
     position: absolute;
    width: 100%;
    object-fit: cover;
    left: 0;
    top: 110px;
    height: 427px;
}

