:root{
  /* BACKGROUND */
  --bg-main:#f8fafc;        /* main page background */
  --bg-deep:#eef2f7;        /* gradient depth */
  --bg-glass:rgba(255,255,255,.75);

  /* BRAND */
  --primary:#4f46e5;        /* keep your brand feel */
  --accent:#0284c7;
  --accent-soft:#38bdf8;

  /* TEXT */
  --text:#0f172a;
  --muted:#64748b;

  /* CARD */
  --card:#ffffff;
}


*{box-sizing:border-box;margin:0;padding:0}

body{
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(79,70,229,.08), transparent 40%),
    radial-gradient(900px 500px at 90% 10%, rgba(2,132,199,.08), transparent 45%),
    linear-gradient(180deg, var(--bg-main), var(--bg-deep));
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}




.container{max-width:1200px;width:90%;margin:auto}
.section{padding:80px 0}

/* HERO */
.articles-hero{
  padding:100px 0;
  text-align:center;
}
.articles-hero h1{font-size:3rem;color:#8b53ff}

/* FILTER BAR */
.glass{
  backdrop-filter:blur(16px);
  background:rgba(15,23,42,.6);
  border:1px solid rgba(124,124,255,.2);
  border-radius:16px;
}
.filter-bar{
  display:flex;
  gap:16px;
  padding:16px;
  margin-bottom:40px;
}
/* FIX: SEARCH BAR LIGHT MODE */
.filter-bar input{
  background:#ffffff !important;
  color:var(--text);
  border:1px solid rgba(15,23,42,.15);
}

.filter-bar input::placeholder{
  color:var(--muted);
}
.filters{display:flex;gap:10px}
.filter{
  padding:10px 16px;
  border-radius:999px;
  border:1px solid rgba(124,124,255,.3);
  background:none;
  color:var(--text);
  cursor:pointer;
}
.filter.active,.filter:hover{
  background:linear-gradient(135deg,#8b53ff,var(--accent));
  color:#000;
}

/* ARTICLE CARDS */
.article-card{
  background:var(--card);
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.06);
  margin-bottom:30px;
}
.article-card img{
  width:100%;
  height:220px;
  object-fit:cover;
}
.article-body{padding:16px}
.tag{color:#8b53ff;font-size:.85rem}
.article-body h3,h2{margin-top:6px}

/* META */
.meta-row{
  display:flex;
  justify-content:space-between;
  font-size:.85rem;
  color:var(--muted);
  margin-top:8px;
}
.author{display:flex;align-items:center;gap:8px}
.avatar{
  width:28px;height:28px;border-radius:50%;
  background:linear-gradient(135deg,#8b53ff,var(--accent));
  color:#000;font-weight:bold;
  display:flex;align-items:center;justify-content:center;
}

/* TAGS */
.tags{margin-top:10px}
.tags span{
  font-size:.75rem;
  padding:4px 8px;
  margin-right:6px;
  border-radius:999px;
  background:rgba(124,124,255,.15);
  color:#8b53ff;
}

/* GRID */
.article-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:24px;
}

/* GLOW */
.glow{transition:.3s}
.glow:hover{
  transform:translateY(-5px);
  box-shadow:0 0 0 1px rgba(124,124,255,.3),
             0 10px 40px rgba(124,124,255,.15);
}

/* PAGINATION */
.pagination{
  margin-top:60px;
  display:flex;
  justify-content:center;
  gap:10px;
}
.page{
  padding:10px 14px;
  border-radius:10px;
  border:1px solid rgba(124,124,255,.3);
  cursor:pointer;
}
.page.active,.page:hover{
  background:linear-gradient(135deg,#8b53ff,var(--accent));
  color:#000;
}

/* ===== NAV HEADER ===== */
.nav-header{
  position:sticky;
  top:0;
  z-index:999;
  background:rgba(5,7,13,.7);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(124,124,255,.15);
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
}

/* LOGO */
.logo a{
  font-size:1.4rem;
  font-weight:800;
  text-decoration:none;
  color:#8b53ff;
}
.logo span{
  color:var(--accent);
}

/* DESKTOP NAV */
.nav-menu{
  display:flex;
  gap:28px;
  align-items:center;
}

.nav-item{
  position:relative;
  font-size:.95rem;
  color:var(--text);
  text-decoration:none;
  cursor:pointer;
}

.nav-item:hover{
  color:#8b53ff;
}

/* DROPDOWN */
.has-dropdown:hover .dropdown{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

.dropdown{
  position:absolute;
  top:140%;
  left:0;
  min-width:180px;
  background:linear-gradient(180deg,#0f172a,#020617);
  border:1px solid rgba(124,124,255,.25);
  border-radius:14px;
  padding:10px;
  opacity:0;
  transform:translateY(10px);
  pointer-events:none;
  transition:.25s ease;
  box-shadow:0 20px 40px rgba(0,0,0,.5);
}

.dropdown a{
  display:block;
  padding:10px 14px;
  border-radius:10px;
  color:var(--text);
  text-decoration:none;
  font-size:.9rem;
}

.dropdown a:hover{
  background:rgba(124,124,255,.15);
  color:#8b53ff;
}

/* MOBILE TOGGLE */
.nav-toggle{
  display:none;
  flex-direction:column;
  gap:6px;
  cursor:pointer;
}

.nav-toggle span{
  width:24px;
  height:2px;
  background:var(--text);
  border-radius:2px;
}


/* ======================================================
   WEB3 NAV ENHANCEMENTS (SAFE APPEND)
   ====================================================== */

/* NAV HEADER */
.nav-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(5,7,13,.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(124,124,255,.15);
  transition: all .3s ease;
}

/* FIX: NAV SHRINK LIGHT MODE */
.nav-header.shrink{
  background: rgba(255,255,255,.95) !important;
  border-bottom: 1px solid rgba(15,23,42,.1);
  box-shadow: 0 10px 30px rgba(15,23,42,.12);
}


/* NAV INNER */
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* NAV ITEMS */
.nav-menu{
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item{
  position: relative;
  cursor: pointer;
}

/* ACTIVE PAGE */
.nav-item.active{
  color: #8b53ff;
  font-weight: 600;
}

.nav-item.active::after{
  content:'';
  position:absolute;
  bottom:-8px;
  left:0;
  width:100%;
  height:2px;
  background: linear-gradient(90deg,#8b53ff,var(--accent));
  border-radius:2px;
}

/* DROPDOWN */
.has-dropdown{
  position: relative;
}

.nav-link{
  display: flex;
  align-items: center;
  gap: 6px;
}

/* CHEVRON ICON */
.chevron{
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform .25s ease;
}

.has-dropdown:hover .chevron{
  transform: rotate(180deg);
}

/* DROPDOWN PANEL */
.dropdown{
  position: absolute;
  top: calc(100% + 8px); /* WAS 140% ❌ */
  left: 0;
  min-width: 200px;

  background: linear-gradient(180deg,#0f172a,#020617);
  border: 1px solid rgba(124,124,255,.25);
  border-radius: 14px;
  padding: 10px;

  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;

  box-shadow: 0 20px 40px rgba(0,0,0,.5);
  z-index: 999;
}

.has-dropdown::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:12px;           /* invisible bridge */
}

/* KEEP DROPDOWN OPEN */
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown a{
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
}

.dropdown a:hover{
  background: rgba(124,124,255,.15);
  color: #8b53ff;
}

/* ================= FOOTER (WEB3 CLEAN) ================= */

.site-footer{
  margin-top:120px;
  padding:80px 0 40px;
  background:linear-gradient(180deg,#020617,#05070d);
  border-top:1px solid rgba(124,124,255,.15);
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:40px;
}

/* BRAND */
.footer-brand h3{
  font-size:1.6rem;
  color:#8b53ff;
}
.footer-brand span{
  color:var(--accent);
}
.footer-brand p{
  margin-top:14px;
  color:var(--muted);
  line-height:1.6;
  max-width:340px;
}

/* COLUMNS */
.footer-col h4{
  font-size:.95rem;
  margin-bottom:14px;
  color:var(--text);
}
.footer-col a{
  display:block;
  margin-bottom:10px;
  font-size:.9rem;
  color:var(--muted);
  text-decoration:none;
}
.footer-col a:hover{
  color:#8b53ff;
}

/* BOTTOM BAR */
.footer-bottom{
  margin-top:60px;
  padding-top:24px;
  border-top:1px solid rgba(255,255,255,.05);
  text-align:center;
}
.footer-bottom p{
  font-size:.85rem;
  color:var(--muted);
}

/* RESPONSIVE */
@media(max-width:900px){
  .footer-grid{
    grid-template-columns:1fr;
    gap:30px;
  }
}
.site-footer::before{
  content:'';
  display:block;
  height:1px;
  background:linear-gradient(
    90deg,
    transparent,
    rgba(124,124,255,.6),
    transparent
  );
  margin-bottom:60px;
}
.section{
  padding: 80px 0;
  position: relative;
}

.article-card,
.tool-card,
.category-card,
.calendar-table{
  background: linear-gradient(
    180deg,
    rgba(15,23,42,.85),
    rgba(2,6,23,.95)
  );
  border: 1px solid rgba(124,124,255,.15);
  box-shadow:
    0 0 0 1px rgba(124,124,255,.03),
    0 20px 50px rgba(0,0,0,.6);
}
.site-footer{
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(124,124,255,.12), transparent 40%),
    linear-gradient(180deg, #020617, #020617);
  border-top: 1px solid rgba(124,124,255,.2);
}
.nav-header{
  background: rgba(2,6,23,.75);
  backdrop-filter: blur(18px);
}

/* ================= ECONOMIC CALENDAR ================= */

.calendar-table{
  margin-top:40px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(124,124,255,.15);
  background:linear-gradient(180deg,rgba(15,23,42,.85),rgba(2,6,23,.95));
}

.cal-row{
  display:grid;
  grid-template-columns:90px 90px 1fr 120px 120px 120px;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.05);
  align-items:center;
}

.cal-row.header{
  background:rgba(124,124,255,.12);
  font-weight:600;
}

.cal-row:hover{
  background:rgba(124,124,255,.06);
}

.currency{
  font-weight:600;
  color:#8b53ff;
}

.muted{
  color:var(--muted);
  margin-top:8px;
}

/* MOBILE */
@media(max-width:900px){
  .cal-row{
    grid-template-columns:80px 80px 1fr;
    grid-auto-rows:auto;
  }
  .cal-row span:nth-child(n+4){
    display:none;
  }
}
/* ================= CALENDAR CONTROLS ================= */

.calendar-controls{
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  margin:30px 0;
  padding:16px;
}

.date-tabs{
  display:flex;
  gap:8px;
}

.tab{
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(124,124,255,.3);
  background:transparent;
  color:var(--text);
  cursor:pointer;
}

.tab.active,
.tab:hover{
  background:linear-gradient(135deg,#8b53ff,var(--accent));
  color:#000;
}

.countdown{
  font-size:.9rem;
  color:var(--muted);
}

/* ================= IMPACT LEVEL ================= */

.cal-row.high{ background:rgba(239,68,68,.12); }
.cal-row.medium{ background:rgba(234,179,8,.12); }
.cal-row.low{ background:rgba(34,197,94,.12); }

.impact.high{ color:#ef4444; font-weight:600; }
.impact.medium{ color:#eab308; font-weight:600; }
.impact.low{ color:#22c55e; font-weight:600; }


/* ================= IFRAME LOADING OVERLAY ================= */

.iframe-container{
  position:relative;
  width:100%;
  height:100vh;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(124,124,255,.2);
}

/* LOADER */
.iframe-loader{
  position:absolute;
  inset:0;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(124,124,255,.12), transparent 40%),
    linear-gradient(180deg,#020617,#05070d);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  z-index:2;
  transition:opacity .4s ease, visibility .4s ease;
}

/* HIDE AFTER LOAD */
.iframe-loader.loaded{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}



/* SPINNER */
.spinner{
  width:42px;
  height:42px;
  border-radius:50%;
  border:3px solid rgba(124,124,255,.2);
  border-top-color: #8b53ff;
  animation: spin 1s linear infinite;
}

/* TEXT */
.iframe-loader span{
  font-size:.9rem;
  color:var(--muted);
}

/* ANIMATION */
@keyframes spin{
  to{ transform:rotate(360deg); }
}

/* MOBILE */
@media(max-width:900px){
  .iframe-container{
    height:100vh;
  }
}

/* BASE */
.iframe-container{
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(124,124,255,.2);
}

/* CALCULATOR CONTAINER */
.iframe-container.iframe-calc{
  width:100%;
  height:auto;
  overflow: visible;   /* 🔥 REQUIRED */
  border: none;
}

/* FXVERIFY IFRAME */
.iframe-calc iframe{
  width:100% !important;
  border:none;
}


@media(max-width:900px){
  .iframe-container.iframe-calc{
    min-height: 100vh;
  }

  .iframe-calc iframe{
    min-height: 100vh;
  }
}

/* ================= CALCULATOR TABS (BOTTOM SCROLLBAR) ================= */

.calc-tabs{
  display:flex;
  gap:12px;

  width:100%;
  max-width:100%;

  flex-wrap:nowrap;
  overflow-x:auto;      /* 🔥 enable horizontal scrollbar */
  overflow-y:hidden;

  padding:6px 6px 10px; /* extra bottom space for scrollbar */
  margin-bottom:28px;

  background:rgba(15,23,42,.6);
  border:1px solid rgba(124,124,255,.2);
  border-radius:16px;
  backdrop-filter:blur(14px);
}

/* Prevent shrinking */
.calc-tab{
  flex-shrink:0;
  white-space:nowrap;

  padding:14px 18px;
  border-radius:12px;
  background:transparent;
  color:var(--muted);
  font-size:.9rem;
  font-weight:500;
  text-decoration:none;
  transition:.25s ease;
}

/* Hover */
.calc-tab:hover{
  color:var(--text);
  background:rgba(124,124,255,.12);
}

/* Active */
.calc-tab.active{
  color:#ffffff;
  font-weight:600;
  background:linear-gradient(135deg,#8b53ff,var(--accent));
  box-shadow:
    0 0 0 1px rgba(124,124,255,.35),
    0 12px 30px rgba(124,124,255,.35);
}

/* ================= SCROLLBAR STYLING ================= */

/* Chrome / Edge / Safari */
.calc-tabs::-webkit-scrollbar{
  height:8px; /* bottom scrollbar height */
}

.calc-tabs::-webkit-scrollbar-track{
  background:rgba(255,255,255,.05);
  border-radius:10px;
}

.calc-tabs::-webkit-scrollbar-thumb{
  background:linear-gradient(135deg,#8b53ff,var(--accent));
  border-radius:10px;
}

/* Firefox */
.calc-tabs{
  scrollbar-color: #8b53ff rgba(255,255,255,.05);
  scrollbar-width: thin;
}


/* ================= LIGHT THEME OVERRIDES ================= */

/* Glass panels */
.glass,
.calc-tabs,
.calendar-table,
.article-card,
.tool-card,
.category-card{
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow:
    0 10px 30px rgba(15,23,42,.06);
}

/* NAV */
.nav-header{
  background: rgba(255,255,255,.75);
  border-bottom: 1px solid rgba(15,23,42,.08);
}

/* DROPDOWN */
.dropdown{
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 20px 40px rgba(15,23,42,.12);
}

/* ================= MOBILE FULLSCREEN OVERLAY MENU ================= */

.mobile-menu{
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: flex;
  flex-direction: column;

  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(24px);

  transform: translateX(100%);
  transition: transform .35s ease;

  padding: 24px;
}

.mobile-menu.active{
  transform: translateX(0);
}

/* HEADER (X BUTTON) */
.mobile-menu-header{
  display: flex;
  justify-content: flex-end;
}

.menu-close{
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  color: #8b53ff;
}

/* ================= MENU LINKS LAYOUT ================= */

.mobile-menu-links{
  flex: 1;                         /* 🔥 take full height */
  display: flex;
  flex-direction: column;
  justify-content: center;         /* 🔥 vertical center */
  align-items: center;             /* 🔥 horizontal center */
  gap: 28px;
}

/* ================= MENU LINK STYLE ================= */

.mobile-menu-links a{
  font-size: 1.4rem;
  font-weight: 600;
  color: #8b53ff;
  text-decoration: none;
  letter-spacing: .3px;

  transition: 
    transform .25s ease,
    color .25s ease,
    text-shadow .25s ease;

  text-shadow: 0 0 18px rgba(124,124,255,.25);
}

/* HOVER GROW */
.mobile-menu-links a:hover{
  transform: scale(1.08);
  color: var(--accent);
  text-shadow: 0 0 28px rgba(124,124,255,.45);
}

/* ACTIVE PAGE */
.mobile-menu-links a.active{
  color: #8b53ff;
  transform: scale(1.12);
}

.mobile-menu-links a.active::after{
  content:'';
  position:absolute;
  bottom:-10px;
  left:50%;
  transform:translateX(-50%);
  width:44px;
  height:2px;
  background: linear-gradient(90deg,#8b53ff,var(--accent));
  border-radius:2px;
}
html.menu-open,
body.menu-open{
  overflow: hidden;
  height: 100%;
  touch-action: none;
}

@media (max-width: 900px){
  .nav-menu{ display: none !important; }
  .nav-toggle{ display: flex !important; }
}

@media (min-width: 901px){
  .mobile-menu{ display: none !important; }
}

/* ================= FOOTER TEXT VISIBILITY FIX ================= */

.site-footer{
  color: #e5e7eb; /* base readable grey */
}

/* Headings / Brand */
.site-footer h3,
.site-footer h4,
.site-footer .footer-brand h3{
  color: #ffffff;
}

/* Paragraph text */
.site-footer p{
  color: #cbd5e1;
}

/* Links */
.site-footer a{
  color: #cbd5e1;
  text-decoration: none;
  transition: color .25s ease;
}

.site-footer a:hover{
  color: #8b53ff;
}

/* Footer bottom bar */
.footer-bottom p{
  color: #94a3b8;
}

/* ================= MOBILE SEARCH + FILTER FIX ================= */

@media (max-width: 900px){

  .filter-bar{
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }

  /* SEARCH INPUT */
  .filter-bar input{
    width: 100%;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: .95rem;
  }

  /* FILTER BUTTON ROW */
  .filters{
    display: flex;
    gap: 10px;
    overflow-x: auto;       /* 🔥 horizontal scroll */
    padding-bottom: 6px;
  }

  /* Hide scrollbar (mobile clean look) */
  .filters::-webkit-scrollbar{
    display: none;
  }

  .filters{
    scrollbar-width: none; /* Firefox */
  }

  /* FILTER BUTTONS */
  .filter{
    flex-shrink: 0;         /* 🔥 prevent squishing */
    padding: 10px 16px;
    font-size: .85rem;
    border-radius: 999px;
    white-space: nowrap;
  }
}
@media (max-width: 900px){
  .filter-bar input{
    background: #ffffff;
    border: 1px solid rgba(15,23,42,.15);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
  }
}
.filter.active{
  font-weight: 600;
}

/* ================= CALCULATOR DROPDOWN – 2 COLUMNS ================= */

/* Desktop: 2 columns */
.nav-item.has-dropdown .dropdown{
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 6px 12px;
  min-width: 380px;      /* prevents squeezing */
}

/* Ensure links look correct inside grid */
.nav-item.has-dropdown .dropdown a{
  white-space: nowrap;
}

/* Mobile: back to 1 column */
@media (max-width: 900px){
  .nav-item.has-dropdown .dropdown{
    grid-template-columns: 1fr;
    min-width: auto;
  }
}

/* REMOVE underline from parent for dropdown items */
.nav-item.has-dropdown.active::after{
  display: none;
}

/* CONSISTENT underline for dropdown trigger */
.nav-item.has-dropdown .nav-link{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-item.has-dropdown.active .nav-link::after{
  content:'';
  position:absolute;
  bottom:-8px;
  left:0;
  width:100%;
  height:2px;
  background: linear-gradient(90deg,#8b53ff,var(--accent));
  border-radius:2px;
}
.nav-item.has-dropdown.active .chevron{
  transform: rotate(180deg);
}
.nav-item.has-dropdown::after{
  height: 18px;
}
.dropdown{
  top: calc(100% + 4px);
}

/* ================= CONTACT PAGE ================= */

.contact-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:50px;
  margin-top:40px;
}

/* INFO */
.contact-info h2{
  font-size:1.6rem;
  margin-bottom:14px;
}

.contact-info p{
  line-height:1.6;
}

.contact-item{
  margin-top:20px;
}
.contact-item strong{
  display:block;
  font-size:.9rem;
}
.contact-item span{
  color:var(--muted);
  font-size:.95rem;
}

.contact-note{
  margin-top:30px;
  padding:14px;
  border-radius:12px;
  background:rgba(124,124,255,.08);
  border:1px solid rgba(124,124,255,.2);
  font-size:.85rem;
}

/* =====================================================
   CONTACT FORM – PREMIUM REDESIGN
   ===================================================== */

.contact-form{
  padding:40px;
  border-radius:20px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(2,6,23,.08);
  box-shadow:
    0 30px 60px rgba(0,0,0,.12);
}

/* INNER GRID */
.contact-form-inner{
  display:flex;
  flex-direction:column;
  gap:22px;
}

/* TWO COLUMN ROW */
.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

/* GROUP */
.contact-form .form-group{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.contact-form label{
  font-size:.8rem;
  font-weight:600;
  color:#020617;
}

/* INPUTS */
.contact-form input,
.contact-form textarea,
.contact-form select{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  padding:14px 16px;
  border-radius:12px;
  border:1px solid rgba(2,6,23,.15);
  background:#ffffff;
  color:#020617;
  font-size:.9rem;
  transition:border .2s ease, box-shadow .2s ease;
}

.contact-form textarea{
  resize:vertical;
}

/* PLACEHOLDER */
.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color:#94a3b8;
}

/* FOCUS */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus{
  outline:none;
  border-color:#8b53ff;
  box-shadow:0 0 0 3px rgba(124,124,255,.18);
}

/* ================= PRIMARY CONTACT CTA ================= */

.btn-light-full{
  width:100%;
  margin-top:10px;
  padding:16px;
  border-radius:14px;
  border:none;
  cursor:pointer;

  font-size:.95rem;
  font-weight:700;
  letter-spacing:.2px;

  background: linear-gradient(
    135deg,
    #8b53ff,
    var(--accent)
  );

  color:#ffffff;

  box-shadow:
    0 10px 25px rgba(124,124,255,.35),
    inset 0 1px 0 rgba(255,255,255,.35);

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    filter .2s ease;
}

.btn-light-full:hover{
  transform:translateY(-2px);
  box-shadow:
    0 18px 40px rgba(124,124,255,.45),
    inset 0 1px 0 rgba(255,255,255,.45);
  filter:brightness(1.05);
}

.btn-light-full:active{
  transform:translateY(0);
  box-shadow:
    0 8px 18px rgba(124,124,255,.35);
}

/* HONEYPOT */
.hp-field{
  display:none;
}

/* RESPONSIVE */
@media(max-width:900px){
  .form-row{
    grid-template-columns:1fr;
  }
}

/* ================= FORM ALERTS ================= */

.alert{
  margin-top:14px;
  padding:14px 16px;
  border-radius:12px;
  font-size:.9rem;
  line-height:1.5;
}

/* SUCCESS */
.alert-success{
  background:rgba(34,197,94,.12);
  border:1px solid rgba(34,197,94,.35);
  color:#16a34a;
  text-align:center;
}

/* ERROR */
.alert-error{
  background:rgba(239,68,68,.12);
  border:1px solid rgba(239,68,68,.35);
  color:#dc2626;
}

.alert{
  transition: opacity .4s ease, transform .4s ease;
}

/* ================= NAV DROPDOWN FIX ================= */

/* BASE DROPDOWN */
.nav-dropdown{
  position:absolute;
  top:100%;
  right:0;
  min-width:260px;
  max-width:90vw;
  background:#ffffff;
  border-radius:16px;
  box-shadow:0 20px 40px rgba(0,0,0,.15);
  z-index:999;
}

/* MOBILE / SMALL SCREEN FIX */
@media (max-width:1024px){

  .nav-dropdown{
    position:fixed;
    top:64px;                 /* below header */
    left:50%;
    right:auto;
    transform:translateX(-50%);
    width:90%;
    max-width:420px;
    border-radius:20px;
  }

}

/* =====================================================
   NAV DROPDOWN – FINAL OVERRIDE (SAFE, NON-DESTRUCTIVE)
   ===================================================== */

/* Ensure correct positioning context */
.nav-item.has-dropdown{
  position: relative;
}

/* Base hidden state */
.nav-item.has-dropdown .dropdown{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
}

/* Desktop hover */
@media (min-width:1025px){
  .nav-item.has-dropdown:hover .dropdown{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* Mobile / tablet click */
.nav-item.has-dropdown.open .dropdown{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Mobile positioning fix */
@media (max-width:1024px){
  .nav-item.has-dropdown .dropdown{
    position: fixed;
    top: 72px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 90%;
    max-width: 420px;
  }
}

/* =====================================================
   DROPDOWN VIEWPORT SAFETY FIX (FINAL)
   ===================================================== */

/* Desktop & small laptop */
@media (min-width: 901px){

  .nav-item.has-dropdown .dropdown{
    right: 0;          /* anchor to right instead of left */
    left: auto;
    min-width: 320px;  /* reduce from 380px */
    max-width: min(90vw, 420px);
  }

}

/* Collapse to 1 column earlier */
@media (max-width: 1200px){
  .nav-item.has-dropdown .dropdown{
    grid-template-columns: 1fr;
    min-width: 260px;
  }
}

/* Safety clamp (never overflow viewport) */
.nav-item.has-dropdown .dropdown{
  width: max-content;
  max-width: 90vw;
}
/* ================= MOBILE SUBMENU ================= */

.mobile-submenu{
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.submenu-title{
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
/* ================= MOBILE EXPANDABLE SUBMENU ================= */

.mobile-submenu-group{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* Toggle button */
.mobile-submenu-toggle{
  all:unset;
  cursor:pointer;

  display:flex;
  align-items:center;
  gap:10px;

  font-size:1.4rem;
  font-weight:600;
  color:#8b53ff;

  padding:12px 0;
}

.mobile-submenu-toggle .chevron{
  width:18px;
  height:18px;
  transition:transform .25s ease;
  fill:currentColor;
}

/* Submenu */
.mobile-submenu{
  max-height:0;
  overflow-y:auto;
  width:100%;

  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;

  transition:max-height .35s ease;
}

/* Expanded state */
.mobile-submenu-group.active .mobile-submenu{
  max-height:55vh;   /* 🔥 scrollable area */
}

.mobile-submenu-group.active .chevron{
  transform:rotate(180deg);
}

/* Submenu links */
.mobile-submenu a{
  font-size:1.2rem;
  color:#cbd5e1;
  text-decoration:none;
}
/* ================= CONTACT PAGE – MOBILE FIX ================= */

@media (max-width: 900px){

  .contact-grid{
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

}
@media (max-width: 900px){

  .form-row{
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

}
@media (max-width: 900px){

  .contact-form-inner input,
  .contact-form-inner select,
  .contact-form-inner textarea{
    width: 100%;
    font-size: 1rem;
    padding: 14px 16px;
    border-radius: 14px;
  }

}
@media (max-width: 900px){

  .btn-light-full{
    width: 100%;
    padding: 14px;
    font-size: 1rem;
  }

}
@media (max-width: 900px){

  .alert{
    font-size: .9rem;
    padding: 14px 16px;
    border-radius: 12px;
  }

}
/* Normalize spacing for expandable submenu group */
.mobile-submenu-group{
  margin: 0;
  padding: 0;
}

/* Only add spacing when expanded */
.mobile-submenu-group.active{
  margin-bottom: 18px;
}
.mobile-submenu-toggle{
  padding: 12px 0;
}
.mobile-submenu{
  margin: 0;
  padding: 0;
}
.logo img{
    max-height:75px;
}
.logo-footer img{
    max-height:75px;
}
.nav-header{
    background: radial-gradient(600px 300px at 20% 0%, rgba(124,124,255,.12), transparent 40%),
    linear-gradient(180deg, #020617, #020617)
}
.nav-toggle span {
    background: #fff;
}
.nav-item {
    color: #fff;
}
.mobile-menu-links a:hover {
    color: #8b53ff;
}
.mobile-submenu a {
    color: #fff;
}
.mobile-menu-links a {
    color: #fff;
}