:root {
  --bg: #f5f7fb;
  --bg2: #e9efff;
  --card: #fff;
  --text: #1d2435;
  --muted: #596380;
  --border: #d8dff0;
  --primary: #4f46e5;
  --primary2: #3730a3;
  --accent: #0ea5e9;
  --good: #14b8a6;
  --warn: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 10px 28px rgba(19, 28, 55, 0.08);
}

body.dark {
  --bg: #090f1f;
  --bg2: #121d3a;
  --card: #121a31;
  --text: #e8ecf8;
  --muted: #aab5d3;
  --border: #24314f;
  --primary: #818cf8;
  --primary2: #6366f1;
  --accent: #38bdf8;
  --good: #2dd4bf;
  --warn: #fbbf24;
  --danger: #fb7185;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
  
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  
}
body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: linear-gradient(180deg, var(--bg), var(--bg2) 65%, var(--bg));
  min-height: 100vh;
  transition: 0.2s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
   min-height: 100vh;
  gap: 16px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
  animation: rise 0.22s ease;
}

.ad-slot {
  width: 100%;
  min-height: 82px;
  border: 2px dashed var(--border);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  background: color-mix(in srgb, var(--card), transparent 10%);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
}

.hero-copy {
  padding: 20px;
}
.hero-copy h1 {
  margin: 0 0 8px;
  line-height: 1.15;
  font-size: clamp(1.4rem, 3vw, 2.15rem);
}
.hero-copy p {
  margin: 0;
  color: var(--muted);
}
.hero-image {
  min-height: 220px;
  
  border-left: 1px solid var(--border);
  background-size: contain;
   background-color: #050816; 
}
.hero {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
}

/* IMAGE FIX */
.hero img {
  width: 100%;
  height: auto;   /* 🔥 main fix */
  display: block;
}

/*hero link css*/
.hero-copy a {
  font-weight: 600;
  border-bottom: 2px solid currentColor;
}

/* Only dark mode links */
body.dark a {
  color: #7dd3fc;
}

/* Hover (only dark mode) */
body.dark a:hover {
  color: #22d3ee;
}

/*content css*/
h1, h2, h3 {
  color: var(--text);
}

.flex {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 40px 0;
}

.flex img {
  width: 50%;
  border-radius: 10px;
}

.flex .text {
  width: 50%;
}

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 10px;
}
/*content css end*/

.header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.inputs {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.field {
  grid-column: span 12;
  display: grid;
  gap: 6px;
}
.span-6 {
  grid-column: span 6;
}
.span-4 {
  grid-column: span 4;
}

label {
  font-size: 0.9rem;
  color: var(--muted);
}
input[type="text"],
select,
input[type="range"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  padding: 12px;
  font-size: 1rem;
  outline: none;
  transition: 0.16s ease;
}
input[type="text"]:focus,
select:focus {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
}
.chip.active {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary), transparent 55%);
  background: color-mix(in srgb, var(--primary), transparent 85%);
}

.toggle-row {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.switch {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #cbd5e1;
  border: 0;
  cursor: pointer;
}
.switch::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: white;
  top: 3px;
  left: 3px;
  transition: 0.16s ease;
}
.switch.on {
  background: var(--primary);
}
.switch.on::after {
  transform: translateX(20px);
}

.btn-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
button {
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 650;
  transition: 0.18s ease;
  position: relative;
  overflow: hidden;
  animation: buttonPop 0.3s ease;
}
button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255, 255, 255, 0.25),
    transparent 80%
  );
  transform: translateX(-120%);
  transition: transform 0.35s ease;
  pointer-events: none;
}
button:hover {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.05);
}
button:hover::after {
  transform: translateX(120%);
}
button:active {
  transform: translateY(0) scale(0.99);
}
.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  flex: 1 1 220px;
}
.btn-secondary {
  color: var(--text);
  border-color: var(--border);
  background: transparent;
}

.icon-btn {
  min-width: 38px;
  padding: 8px 10px;
  font-size: 1.25rem;
  line-height: 1;
  display: inline-grid;
  place-items: center;
}

.icon-btn.fav-active {
  color: #ef4444;
  border-color: color-mix(in srgb, #ef4444, transparent 45%);
  background: color-mix(in srgb, #ef4444, transparent 90%);
}

.availability-box {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.status-pill {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  color: var(--muted);
}
.status-pill.good {
  color: var(--good);
  border-color: color-mix(in srgb, var(--good), transparent 45%);
}
.status-pill.warn {
  color: var(--warn);
  border-color: color-mix(in srgb, var(--warn), transparent 45%);
}
.status-pill.bad {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger), transparent 45%);
}

.score-panel {
  display: grid;
  gap: 8px;
}
.score-track {
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text), transparent 90%);
  overflow: hidden;
}
.score-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--good), var(--accent));
  transition: width 0.2s ease;
}

.result-grid {
  display: grid;
  min-height: 200px;
  grid-template-columns: 1fr;
  gap: 8px;
}
.result-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  animation: fade 0.22s ease both;
}
.result-item.best {
  border-color: color-mix(in srgb, var(--good), transparent 50%);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--good), transparent 82%);
  background: color-mix(in srgb, var(--good), transparent 95%);
}

.name-wrap {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.user {
  font-weight: 760;
  overflow-wrap: anywhere;
}
.tiny {
  color: var(--muted);
  font-size: 0.82rem;
}
.tag {
  color: var(--good);
  border: 1px solid color-mix(in srgb, var(--good), transparent 45%);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.72rem;
}
.mini-score {
  font-size: 0.76rem;
  color: var(--muted);
}

.tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.inline-link {
  color: var(--accent);
  text-decoration: none;
}
.inline-link:hover {
  text-decoration: underline;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 20px);
  background: color-mix(in srgb, var(--text), transparent 12%);
  color: var(--card);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 999;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hero-image {
  border-left: 0;
  border-top: 1px solid var(--border);
  min-height: 170px;
}

@media (min-width: 841px) {
  .hero {
    grid-template-columns: 1.25fr 1fr;
  }
  .hero-image {
    border-top: 0;
    border-left: 1px solid var(--border);
    min-height: 220px;
  }
  .span-6 {
    grid-column: span 6;
  }
  .span-4 {
    grid-column: span 4;
  }
}

@media (max-width: 760px) {
  .btn-primary {
    width: 100%;
  }
  .container {
    padding: 12px;
  }
  .panel {
    padding: 12px;
    border-radius: 14px;
  }
  .chip {
    padding: 7px 9px;
  }
}

@media (max-width: 768px) {
  .flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .flex .text,
  .flex img {
    width: 100%;
  }

  .flex img {
    margin-top: 10px;
  }
}

@keyframes buttonPop {
  from {
    transform: scale(0.98);
    opacity: 0.92;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}



/*header footer css*/
.fx-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg,#020617,#0f172a);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

.fx-container{
  max-width:1540px;
  margin: 0 auto;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== LOGO ===== */

.fx-logo img{
  height: 32px;
  width: auto;
  display: block;
}

/* ===== HAMBURGER ===== */

.fx-menu-toggle{
  display: none;
}

.fx-hamburger{
  width: 28px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fx-hamburger span{
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: all .3s ease;
}

/* ===== MOBILE NAV ===== */

.fx-nav{
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  background: #020617;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.fx-nav ul{
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.fx-nav li{
  text-align: center;
}

.fx-nav a{
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #ffffff;
  font-size: 15px;
  transition: background .2s ease;
}

.fx-nav a:hover{
  background: rgba(99,102,241,.15);
}

/* ===== MOBILE OPEN ANIMATION ===== */

.fx-menu-toggle:checked ~ .fx-nav{
  max-height: 300px;
}

.fx-menu-toggle:checked + .fx-hamburger span:nth-child(1){
  transform: rotate(45deg) translateY(8px);
}

.fx-menu-toggle:checked + .fx-hamburger span:nth-child(2){
  opacity: 0;
}

.fx-menu-toggle:checked + .fx-hamburger span:nth-child(3){
  transform: rotate(-45deg) translateY(-8px);
}

/* ===== DESKTOP ===== */

@media (min-width: 768px){

  .fx-hamburger{
    display: none;
  }

  .fx-nav{
    position: static;
    max-height: none;
    width: auto;
    background: transparent;
  }

  .fx-nav ul{
    display: flex;
    gap: 28px;
    align-items: center;
    padding: 0;
  }

  .fx-nav li{
    text-align: left;
  }

  .fx-nav a{
    padding: 8px 10px;
    border-radius: 6px;
  }
}
/* ===== FOOTER BASE ===== */

footer{
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
}

.fontixa-footer{
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  color: #1e293b;
}

/* ===== ABOUT SECTION ===== */

.footer-about h3{
  font-size: 22px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 12px;
}

.footer-seo{
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 12px;
}

.footer-trust{
  font-size: 13px;
  color: #64748b;
  margin-top: 10px;
}

/* ===== SOCIAL ===== */

.footer-social{
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0e7ff;
  color: #2563eb;
  text-decoration: none;
  font-size: 16px;
  transition: all .25s ease;
}

.footer-social a:hover{
  background: #2563eb;
  color: #fff;
  transform: translateY(-2px);
}

/* ===== LEGAL SECTION ===== */

.footer-legal h4{
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-legal a{
  display: block;
  text-decoration: none;
  color: #334155;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color .2s ease;
}

.footer-legal a:hover{
  color: #2563eb;
}

/* ===== PAGE LINKS ===== */

.footer-pages{
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-pages a{
  text-decoration: none;
  color: #2563eb;
  font-weight: 500;
}

.footer-pages a:hover{
  text-decoration: underline;
}

/* ===== COPYRIGHT (FULL WIDTH) ===== */

.footer-copy{
  width: 100%;
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}

/* ===== DESKTOP ===== */

@media (min-width: 768px){

  .fontixa-footer{
    flex-direction: row;
    flex-wrap: wrap;     /* Important */
    justify-content: space-between;
    gap: 50px;
  }

  .footer-about{
    flex: 2;
  }

  .footer-legal{
    flex: 1;
    max-width: 260px;
  }

  .footer-copy{
    flex-basis: 100%;   /* Makes it go to next line */
    margin-top: 30px;
  }

}
