﻿:root {
  --bg-main: #0b0e14;
  --bg-navbar: #151a23;
  --bg-sidebar: #0f131b;
  --bg-card: #121826;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --accent-primary: #3b82f6;
  --accent-secondary: #22d3ee;
  --glow-shadow: rgba(59, 130, 246, 0.55);
  --soft-border: rgba(148, 163, 184, 0.22);
  --ease: 220ms cubic-bezier(.22, .61, .36, 1);
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: Inter, "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(34, 211, 238, 0.13), transparent 26%),
    radial-gradient(circle at 92% 14%, rgba(59, 130, 246, 0.18), transparent 28%),
    linear-gradient(160deg, #090c12 0%, var(--bg-main) 42%, #090d17 100%);
  color: var(--text-primary);
  line-height: 1.45;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--bg-navbar) 88%, transparent);
  border-bottom: 1px solid rgba(59, 130, 246, 0.28);
}

.topbar-inner {
  max-width: 1680px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .2px;
}

.brand-logo {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--accent-primary);
  filter: drop-shadow(0 0 10px var(--glow-shadow));
}

.top-nav {
  display: flex;
  gap: 1.1rem;
}

.top-nav a {
  position: relative;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--ease);
}

.top-nav a:hover {
  color: var(--text-primary);
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 0 10px var(--glow-shadow);
  transition: transform var(--ease);
}

.top-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--accent-primary);
  transition: transform var(--ease), opacity var(--ease);
}

.app-shell {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  padding: 1rem;
}

.sidebar {
  background: color-mix(in oklab, var(--bg-sidebar) 92%, transparent);
  border: 1px solid var(--soft-border);
  border-radius: 16px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem .8rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.18);
}

.sidebar-head h2 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .4px;
  text-transform: uppercase;
}

.sidebar-collapse {
  display: none;
  background: transparent;
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: var(--accent-secondary);
  border-radius: 8px;
  padding: .2rem .45rem;
  cursor: pointer;
}

.sidebar-scroll {
  overflow-y: auto;
  padding: .9rem;
}

.sidebar-group {
  margin-bottom: 1rem;
}

.sidebar-group h3 {
  font-size: .8rem;
  margin-bottom: .5rem;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: .7px;
}

.sidebar-btn {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: .45rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(59, 130, 246, 0.32);
  border-radius: 10px;
  padding: .6rem .7rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--ease), box-shadow var(--ease), color var(--ease), background var(--ease);
}

.sidebar-btn:hover {
  transform: translateX(3px);
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.17);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3), 0 10px 20px rgba(59, 130, 246, 0.12);
}

.content-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 300px;
  gap: 1rem;
}

.side-ad {
  position: sticky;
  top: 96px;
  height: fit-content;
}

.main-content {
  min-width: 0;
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
}

.glass-card {
  background: linear-gradient(165deg, rgba(18, 24, 38, 0.88), rgba(15, 19, 27, 0.9));
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(7, 11, 20, 0.42), inset 0 1px 0 rgba(255, 255, 255, .03);
}

.hero {
  text-align: center;
  padding: clamp(2rem, 4vw, 3.3rem);
  animation: slideIn .5s var(--ease);
}

.eyebrow {
  color: var(--accent-secondary);
  font-size: .85rem;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: .7rem;
}

.hero h1 {
  font: 700 clamp(1.7rem, 4vw, 2.8rem)/1.2 "Space Grotesk", Inter, sans-serif;
  margin-bottom: .8rem;
}

.hero p {
  color: var(--text-secondary);
  max-width: 58ch;
  margin: 0 auto 1.3rem;
}

.btn,
.open-btn,
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #e5e7eb;
  border: 1px solid var(--accent-primary);
  border-radius: 12px;
  padding: .64rem 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.btn:hover,
.open-btn:hover,
.action-btn:hover {
  background: var(--accent-primary);
  color: #04111f;
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.26);
  transform: translateY(-1px);
}

.section-head {
  margin: .4rem 0 .8rem;
}

.section-head h2 {
  font-size: 1.4rem;
}

.section-head p {
  color: var(--text-secondary);
  margin-top: .35rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

.tool-card {
  background: linear-gradient(160deg, rgba(18, 24, 38, .9), rgba(20, 28, 43, .76));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  gap: .6rem;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .25), 0 14px 36px rgba(59, 130, 246, .19);
}

.tool-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.tool-icon {
  font-size: 1.1rem;
}

.tool-title {
  font-size: 1rem;
  font-weight: 600;
}

.tool-link {
  text-decoration: none;
}

.tool-link:hover {
  color: var(--accent-secondary);
}

.tool-desc {
  color: var(--text-secondary);
  font-size: .9rem;
  min-height: 2.6em;
}

.text-block {
  padding: 1.2rem;
}

.text-block h2 {
  margin-bottom: .45rem;
}

.text-block p {
  color: var(--text-secondary);
}

.tool-page-main {
  max-width: 980px;
  margin: 1rem auto 2rem;
  padding: 0 1rem;
  display: grid;
  gap: 1rem;
}

.ad-box {
  border: 2px dashed rgba(59, 130, 246, .45);
  border-radius: 14px;
  background: rgba(59, 130, 246, .08);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 600;
  letter-spacing: .3px;
}

.ad-square {
  width: 300px;
  height: 300px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(3, 8, 17, .75);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}

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

.tool-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45%) scale(.96);
  width: min(980px, calc(100vw - 1.2rem));
  max-height: 90vh;
  z-index: 1450;
  border: 1px solid rgba(59, 130, 246, .4);
  border-radius: 18px;
  background: linear-gradient(165deg, #121826, #0f141f);
  box-shadow: 0 25px 70px rgba(3, 8, 17, .65);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--ease), opacity var(--ease);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.tool-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(59, 130, 246, .22);
}

.close-btn {
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, .6);
  background: transparent;
  color: #dbeafe;
  cursor: pointer;
}

.ad-top {
  margin: .8rem auto .2rem;
  width: min(728px, calc(100% - 1.2rem));
  height: 90px;
}

.modal-body {
  overflow: auto;
  padding: .8rem 1rem 1rem;
}

.tool-panel {
  display: grid;
  gap: .85rem;
}

.tool-help {
  color: var(--text-secondary);
  font-size: .92rem;
}

.dropzone {
  border: 1px dashed rgba(59, 130, 246, .58);
  border-radius: 14px;
  background: rgba(59, 130, 246, .08);
  min-height: 156px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: .9rem;
  cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.dropzone.drag {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .28), 0 0 28px rgba(59, 130, 246, .18);
  background: rgba(59, 130, 246, .14);
}

.dropzone input {
  display: none;
}

.file-list,
.preview,
.result-box,
.live-stats {
  background: rgba(59, 130, 246, .07);
  border: 1px solid rgba(59, 130, 246, .2);
  border-radius: 12px;
  padding: .75rem;
}

.file-list,
.preview {
  color: var(--text-secondary);
  font-size: .9rem;
}

.preview img,
.preview video {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, .3);
  background: #0c1119;
}

.row {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  font-size: .87rem;
  color: var(--text-secondary);
  display: grid;
  gap: .35rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(59, 130, 246, .38);
  border-radius: 10px;
  background: #0d121d;
  color: var(--text-primary);
  padding: .58rem .65rem;
  font: inherit;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

.status-strip {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.badge {
  border: 1px solid rgba(59, 130, 246, .48);
  background: rgba(59, 130, 246, .1);
  color: #bfdbfe;
  border-radius: 999px;
  padding: .28rem .6rem;
  font-size: .77rem;
}

.progress {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, .18);
}

.progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 0 16px var(--glow-shadow);
  transition: width var(--ease);
}

.toast-wrap {
  position: fixed;
  right: .9rem;
  bottom: .9rem;
  z-index: 1700;
  display: grid;
  gap: .5rem;
}

.toast {
  background: #0f1728;
  border: 1px solid rgba(59, 130, 246, .45);
  color: #dbeafe;
  border-radius: 10px;
  padding: .65rem .75rem;
  box-shadow: 0 16px 34px rgba(3, 8, 17, .45);
  min-width: 210px;
  animation: toastIn .25s var(--ease);
}

@keyframes toastIn {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1280px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    max-height: none;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .side-ad {
    display: none;
  }

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

@media (max-width: 880px) {
  .top-nav {
    position: fixed;
    top: 72px;
    right: .8rem;
    width: min(280px, 84vw);
    border: 1px solid rgba(59, 130, 246, .35);
    border-radius: 14px;
    padding: .7rem;
    background: #121826;
    box-shadow: 0 18px 50px rgba(3, 8, 17, .5);
    display: none;
    flex-direction: column;
  }

  .top-nav.active {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
  }

  .sidebar-collapse {
    display: inline-block;
  }

  .sidebar.collapsed .sidebar-scroll {
    display: none;
  }

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

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

  .ad-top {
    width: 320px;
    max-width: calc(100% - 1.2rem);
    height: 100px;
  }
}
.brand-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-right: 10px;
}


.tool-page-main h1 {
  text-align: center;
}
.tool-note {
  margin-top: 1rem;
  padding-top: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.85;
  border-top: 1px dashed rgba(59, 130, 246, 0.35);
}
/* Common Ad Box */
.ad-box {
  max-width: 100%;
  margin: 16px auto 24px;
  padding: 8px;
  text-align: center;
}

/* Top Ad */
.ad-banner {
  min-height: 90px; /* mobile */
}

/* Bottom Ad */
.ad-bottom {
  min-height: 90px; /* mobile */
}

/* Desktop / Tablet */
@media (min-width: 768px) {
  .ad-top,
  .ad-bottom {
    min-height: 250px; /* 300x250 / responsive */
  }
}
.ad-banner {
  display: block;   /* mobile pe dikhe */
}

.ad-desktop {
  display: none;    /* mobile pe hide */
}
@media (min-width: 768px) {
  .ad-banner {
    display: none;   /* desktop pe TOP + BOTTOM ads gayab */
  }

  .ad-desktop {
    display: block;  /* desktop pe LEFT + RIGHT ads dikhen */
  }
}
/* Advertica Banner Fix */
.ad-banner {
  width: 100%;
  max-width: 100%;
  min-height: 90px;        /* mobile safe height */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 16px auto;
}

/* Tablet / Desktop */
@media (min-width: 768px) {
  .ad-banner {
    min-height: 250px;     /* 300x250, 336x280 safe */
  }
}
/* Default: mobile pe show */
.ad-banner {
  display: block;
}



/* desktop pe full hide */
@media screen and (min-width: 992px) {
  .ad-mobile-only {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}
/* ===== AD COLLAPSE PREVENTION ===== */

.ad-box {
  width: 100%;
  min-height: 120px;          /* 👈 collapse stop */
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 14px 0;
  position: relative;
}

/* iframe / ad content safety */
.ad-box iframe,
.ad-box img,
.ad-box > div {
  max-width: 100% !important;
  min-height: 90px !important;
}

/* mobile only */
@media (min-width: 992px) {
  .ad-mobile {
    display: none !important; /* desktop pe hide */
  }
}
.ad-box {
  width: 100%;
  max-width: 100%;
  margin: 16px 0;   /* sirf top-bottom gap */
  padding: 0;
}
/* =========================
   TOOL PAGE ADS – ALWAYS ON
========================= */

.ad-mobile {
  display: flex !important;
  width: 100%;
  min-height: 120px;
  margin: 16px auto;
  justify-content: center;
  align-items: center;
  visibility: visible !important;
  opacity: 1 !important;
}

/* iframe / advertica safety */
.ad-mobile iframe,
.ad-mobile img,
.ad-mobile > div {
  max-width: 100% !important;
  min-height: 90px !important;
}

/* desktop */
@media (min-width: 768px) {
  .ad-mobile{
    min-height: 250px;
  }
}
/* =====================================================
   FINAL LAYOUT FIX – ADS + FOOTER ALIGNMENT
   ===================================================== */

/* ===== TOOL PAGE CONTENT WRAPPER ===== */
.tool-page-main {
  max-width: 980px;
  margin: 16px auto 0;
  padding: 0 16px;
  display: grid;
  gap: 16px;
}

/* ===== COMMON AD BOX (TOP + BOTTOM SAME GAP) ===== */
.ad-box {
  width: 100%;
  max-width: 100%;
  min-height: 120px;      /* collapse stop */
  margin: 24px auto;      /* 👈 TOP & BOTTOM SAME */
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== MOBILE ONLY TOOL ADS ===== */
.ad-mobile {
  display: block;
  margin: 24px auto;
}

@media (min-width: 992px) {
  .ad-mobile {
    display: block;       /* tool page ads desktop pe bhi dikhen */
  }
}
/* =====================================================
   FORCE TOOL PAGE ADS (NO HIDE, NO COLLAPSE)
   ===================================================== */

/* tool page pe ads hamesha dikhen */
body[data-tool] .ad-box {
  display: flex !important;
  min-height: 120px !important;
  margin: 24px auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* mobile + desktop dono */
body[data-tool] .ad-mobile {
  display: flex !important;
}

/* kisi bhi media query ka hide cancel */
@media (min-width: 768px),
       (min-width: 992px),
       (min-width: 1024px) {
  body[data-tool] .ad-mobile {
    display: flex !important;
  }
}

/* ad content collapse na ho */
body[data-tool] .ad-box iframe,
body[data-tool] .ad-box img,
body[data-tool] .ad-box > div {
  min-height: 90px !important;
}
/* ===== TOP BANNER AD SPACING FIX ===== */
.ad-box.ad-top {
  width: 100%;
  max-width: 100%;
  margin: 24px auto;      /* 👈 top & bottom equal gap */
  padding: 0;
  min-height: 120px;      /* collapse prevent */
  display: flex;
  justify-content: center;
  align-items: center;
}
/* ===== GLOBAL ALIGNMENT FIX ===== */

/* Same width as tool cards */
.ad-box,
footer.glass-card {
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* Top & Bottom spacing – SAME AS TOOL SECTIONS */
.ad-top {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.ad-bottom {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}


/* Prevent ad collapse */
.ad-box {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop ad height */
@media (min-width: 768px) {
  .ad-box {
    min-height: 250px;
  }
}
/* ===============================
   MOBILE ONLY ADS (TOP + BOTTOM)
================================ */

/* default: show on mobile */
.ad-top,
.ad-bottom {
  display: flex;
  width: 100%;
  max-width: 980px;
  margin: 16px auto;
  min-height: 90px;
  align-items: center;
  justify-content: center;
}

/* desktop / tablet: hide both */
@media (min-width: 768px) {
  .ad-top,
  .ad-bottom {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}
/* ===== FOOTER FULL WIDTH FIX ===== */
footer {
  width: 100vw;
  max-width: 100%;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  border-radius: 0;        /* glass-card ka curve hatane ke liye */
}
/* ===== RELATED TOOLS ===== */
.related-tools-section {
  margin-top: 1.5rem;
}

.related-title {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--accent-secondary);
  margin-bottom: .6rem;
}

.related-tools-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .75rem;
}

.related-tool-card {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem .7rem;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(18,24,38,.9), rgba(20,28,43,.76));
  border: 1px solid rgba(59,130,246,.25);
  text-decoration: none;
  color: var(--text-primary);
  font-size: .9rem;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.related-tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34,211,238,.6);
  box-shadow: 0 0 0 1px rgba(34,211,238,.25),
              0 10px 22px rgba(59,130,246,.18);
}