:root{
  --paper: #EAF1FB;
  --sheet: #FFFFFF;
  --ink: #1B2430;
  --ink-soft: #55607A;
  --blue: #1E4FA3;
  --blue-dark: #163B7D;
  --yellow: #F6B400;
  --yellow-dark: #D99A00;
  --danger: #C1442D;
  --line: #D3DEEF;
  --line-strong: #AFC0DC;
}
*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  line-height: 1.5;
}
h1, h2, h3, .display{
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
a{ color: inherit; }
button{ font-family: inherit; }

/* ---------- top announcement banner (marquee) ---------- */
.topbar-banner{
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-dark) 100%);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.topbar-banner::before{
  content: "Popular right now";
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  background: var(--yellow);
  color: #4A3600;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  vertical-align: top;
}
.marquee-viewport{
  display: inline-block;
  overflow: hidden;
  width: calc(100% - 150px);
  vertical-align: top;
  height: 38px;
}
.marquee-track{
  display: inline-flex;
  align-items: center;
  height: 38px;
  animation: marqueeScroll 26s linear infinite;
  will-change: transform;
}
.topbar-banner:hover .marquee-track{ animation-play-state: paused; }
@keyframes marqueeScroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.marquee-item{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  margin: 0 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255,255,255,0.06);
  transition: background .15s ease, border-color .15s ease;
}
.marquee-item:hover{
  background: var(--yellow);
  border-color: var(--yellow);
  color: #4A3600;
  font-weight: 700;
}
.marquee-item.disabled{
  opacity: .55;
  cursor: help;
}
.marquee-item.disabled:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  font-weight: 500;
}
.marquee-item.shake{ animation: shakeX .35s ease; }
@keyframes shakeX{
  0%, 100%{ transform: translateX(0); }
  25%{ transform: translateX(-4px); }
  75%{ transform: translateX(4px); }
}
@media (max-width: 640px){
  .topbar-banner::before{ display: none; }
  .marquee-viewport{ width: 100%; }
}

/* ---------- header / dropdown nav ---------- */
header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
}
.nav-wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
    display: flex;
    align-items: center;
    cursor: pointer;
    /* ???? ???? ??? ?? ????? ?? ?????? ??? ?? ???? ??? */
    padding: 5px 0; 
}

.brand-mark{ width: 22px; height: 22px; flex: none; }
 
.brand-logo {
    height: 68px;  
    width: auto;   
    max-height: 100%;  
    display: block;
    object-fit: contain;
}

.topnav{ display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-item{ position: relative; }
.nav-link-top{
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.nav-link-top:hover{ color: var(--blue-dark); }
.nav-link-top.active{ color: var(--blue-dark); font-weight: 600; }
.nav-item .caret{ font-style: normal; font-size: 10px; color: var(--ink-soft); }

.dropdown{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--sheet);
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 24px rgba(32,29,26,0.09);
  min-width: 240px;
  padding: 6px;
  z-index: 50;
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown.open .dropdown{ display: block; animation: dropdownIn .16s ease; }
@keyframes dropdownIn{
  from{ opacity: 0; transform: translateY(-6px); }
  to{ opacity: 1; transform: translateY(0); }
}
.dropdown-link{
  display: block;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
}
.dropdown-link:hover{ background: rgba(30,79,163,0.07); color: var(--blue-dark); }
.dropdown-link.active{ color: var(--blue-dark); font-weight: 600; background: rgba(30,79,163,0.07); }

.mobile-nav{ display: none; }

@media (max-width: 880px){
  .topnav{ display: none; }
  .nav-wrap{ justify-content: space-between; gap: 14px; }
  .mobile-nav{
    display: block;
    padding: 10px 12px;
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid var(--line-strong);
    background: var(--sheet);
    color: var(--ink);
    max-width: 52vw;
  }
}

/* ---------- main / tool panels ---------- */
main{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 70px;
}
.tool-panel{ display: none; padding-top: 34px; }
.tool-panel.active{ display: block; animation: panelFadeIn .35s ease; }
@keyframes panelFadeIn{
  from{ opacity: 0; transform: translateY(8px); }
  to{ opacity: 1; transform: translateY(0); }
}

.tool-header{ margin-bottom: 24px; }
.tool-header h2{ font-size: 23px; }
.tool-header p{
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 66ch;
}

/* ---------- hero (home) ---------- */
.hero{
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 30px 0 20px;
  background:
    repeating-linear-gradient(100deg,
      rgba(30,79,163,0.06) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(100deg,
      rgba(246,180,0,0.07) 13px 15px, transparent 15px 39px);
  background-size: 200% 200%;
  animation: heroDrift 18s ease-in-out infinite alternate;
}
@keyframes heroDrift{
  from{ background-position: 0% 0%, 0% 0%; }
  to{ background-position: 6% 4%, -6% -4%; }
}
.hero-copy{ flex: 1 1 420px; min-width: 280px; animation: fadeInUp .7s ease both; }
.hero-copy h1{
  font-size: clamp(28px, 3.6vw, 38px);
  max-width: 16ch;
  line-height: 1.12;
}
.hero-copy p{
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 15px;
  margin-top: 14px;
}
.privacy-note{
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #6B4E00;
  background: linear-gradient(#FFF6DE, #FCE9B0);
  border: 1px solid rgba(214,153,0,0.45);
  padding: 7px 13px;
  border-radius: 3px;
}
.privacy-note .dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(30,79,163,0.35); }
  50%{ box-shadow: 0 0 0 5px rgba(30,79,163,0); }
}
.hero-art{ flex: 1 1 320px; max-width: 380px; animation: fadeInUp .7s ease .1s both, floatY 5s ease-in-out 1s infinite; }
.hero-art img{ width: 100%; height: auto; display: block; }

@keyframes fadeInUp{
  from{ opacity: 0; transform: translateY(16px); }
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes floatY{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-8px); }
}

/* ---------- card grid (home) ---------- */
.card-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 40px 0;
}
.tool-card{
  border: 1.5px dashed var(--line-strong);
  background: var(--sheet);
  padding: 22px 20px;
  cursor: pointer;
  transition: border-color .15s ease, transform .18s ease, box-shadow .18s ease;
  opacity: 0;
  animation: fadeInUp .5s ease both;
}
.tool-card:nth-child(1){ animation-delay: .02s; }
.tool-card:nth-child(2){ animation-delay: .06s; }
.tool-card:nth-child(3){ animation-delay: .10s; }
.tool-card:nth-child(4){ animation-delay: .14s; }
.tool-card:nth-child(5){ animation-delay: .18s; }
.tool-card:nth-child(6){ animation-delay: .22s; }
.tool-card:nth-child(7){ animation-delay: .26s; }
.tool-card:nth-child(8){ animation-delay: .30s; }
.tool-card:nth-child(9){ animation-delay: .34s; }
.tool-card:nth-child(10){ animation-delay: .38s; }
.tool-card:nth-child(11){ animation-delay: .42s; }
.tool-card:nth-child(12){ animation-delay: .46s; }
.tool-card:hover{
  border-color: var(--blue);
  border-style: solid;
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(30,79,163,0.14);
}
.tool-card:hover .card-icon{ transform: scale(1.12) rotate(-4deg); }
.tool-card.wide{ grid-column: span 2; }
.card-icon{
  width: 34px; height: 34px;
  display: block;
  margin-bottom: 14px;
  transition: transform .25s ease;
}
.card-title{
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 15.5px;
  margin-bottom: 6px;
}
.card-desc{ font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

@media (max-width: 980px){
  .card-grid{ grid-template-columns: repeat(2, 1fr); }
  .tool-card.wide{ grid-column: span 2; }
}
@media (max-width: 560px){
  .card-grid{ grid-template-columns: 1fr; }
  .tool-card.wide{ grid-column: span 1; }
  .hero{ flex-direction: column; }
}

/* ---------- feature strip (home) ---------- */
.features{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 34px 0 10px;
  border-top: 1px solid var(--line);
}
.feature-title{
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
}
.feature-desc{ font-size: 13px; color: var(--ink-soft); }
@media (max-width: 780px){
  .features{ grid-template-columns: repeat(2, 1fr); }
}

/* ---------- shared panel surface ---------- */
.panel{
  background: var(--sheet);
  border: 1px solid var(--line-strong);
  padding: 30px;
}

/* ---------- dropzone ---------- */
.dropzone{
  border: 1.5px dashed var(--line-strong);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.drag{
  border-color: var(--blue);
  background: rgba(30,79,163,0.04);
}
.dropzone .dz-title{
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 600;
}
.dropzone .dz-sub{
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 6px;
}
input[type=file]{ display: none; }

/* ---------- file list ---------- */
.file-list{
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.file-row{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: #FBFAF7;
}
.file-row .thumb{
  width: 34px; height: 34px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex: none;
  background: var(--paper);
}
.file-row .thumb.doc{
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--blue-dark);
}
.file-row .name{
  flex: 1;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-row .size{
  font-size: 12px;
  color: var(--ink-soft);
  flex: none;
}
.row-btn{
  border: none;
  background: none;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 15px;
  padding: 2px 6px;
  line-height: 1;
}
.row-btn:hover{ color: var(--ink); }
.row-btn.remove:hover{ color: var(--danger); }

/* ---------- actions / buttons ---------- */
.actions{
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn{
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, opacity .15s ease, transform .12s ease, box-shadow .15s ease;
}
.btn:hover:not(:disabled){ background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(30,79,163,0.25); }
.btn:active:not(:disabled){ transform: translateY(0); box-shadow: none; }
.btn:disabled{ opacity: .4; cursor: not-allowed; }
.btn.secondary{ background: transparent; color: var(--blue-dark); }
.btn.secondary:hover{ background: rgba(30,79,163,0.08); }
.btn.small{ padding: 8px 14px; font-size: 13px; }

.status{ font-size: 13px; color: var(--ink-soft); }
.status.error{ color: var(--danger); }

.download-card{
  margin-top: 18px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--blue);
  background: rgba(30,79,163,0.06);
  padding: 16px 20px;
  flex-wrap: wrap;
}
.download-card.show{ display: flex; }
.download-card .dc-name{ font-weight: 600; font-size: 14px; }
.download-card .dc-sub{ font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.download-card a.btn{ text-decoration: none; }

/* ---------- form fields ---------- */
.field{ margin-bottom: 16px; }
.field label{
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field .hint{ font-size: 12px; color: var(--ink-soft); margin-top: 5px; }
.field input[type=text],
.field input[type=number],
.field select,
.field textarea{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}
.field textarea{ resize: vertical; min-height: 130px; }
.field-row{ display: flex; gap: 14px; flex-wrap: wrap; }
.field-row .field{ flex: 1; min-width: 150px; }
.field input[type=color]{
  width: 56px; height: 40px; padding: 3px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer;
}
.field input[type=range]{ width: 100%; }

.segmented{ display: inline-flex; border: 1px solid var(--line-strong); margin-bottom: 18px; }
.segmented button{
  padding: 9px 18px;
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.segmented button + button{ border-left: 1px solid var(--line-strong); }
.segmented button.active{ background: var(--blue); color: #fff; }

.chip-row{ display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.chip{
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink-soft);
}
.chip.active{ background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- results ---------- */
.result-box{
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: #FBFAF7;
}
.result-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 16px;
  margin-top: 6px;
}
.stat .num{
  font-family: 'Fraunces', serif;
  font-size: 25px;
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 1.2;
}
.stat .lbl{ font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

.swatch{ width: 54px; height: 54px; border: 1px solid var(--line-strong); flex: none; }
.picker-canvas-wrap{
  border: 1px solid var(--line);
  max-width: 100%;
  overflow: auto;
  cursor: crosshair;
  background: repeating-conic-gradient(#e9e6dd 0% 25%, #f5f3ec 0% 50%) 50% / 16px 16px;
}
.picker-canvas-wrap canvas{ display: block; max-width: 100%; }

.copy-row{ display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-row input{
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  font-size: 13.5px;
  background: #fff;
}

.qr-result{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  background: #FBFAF7;
}
#qr-canvas-holder{ background: #fff; padding: 12px; border: 1px solid var(--line-strong); }

.preview-row{ display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.preview-box{ text-align: center; }
.preview-box img, .preview-box canvas{
  max-width: 220px; max-height: 220px;
  border: 1px solid var(--line-strong);
  background: repeating-conic-gradient(#e9e6dd 0% 25%, #f5f3ec 0% 50%) 50% / 16px 16px;
}
.preview-box .cap{ font-size: 12px; color: var(--ink-soft); margin-top: 6px; }


@media (max-width: 640px){
  main{ padding: 0 18px 60px; }
  .nav-wrap{ padding: 0 18px; }
}

.category-section {
  margin-bottom: 30px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-title h2 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  margin: 0;
  color: #1a1a1a;
}

.section-title p {
  font-size: 14px;
  color: #666;
  margin: 2px 0 0 0;
}

.title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
}

.blue-icon {
  background-color: #e8f2ff;
  color: #2563eb;
}

.red-icon {
  background-color: #ffeef0;
  color: #e11d48;
}

.purple-icon {
  background-color: #f3e8ff;
  color: #9333ea;
}
.tool-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.tool-card {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tool-card:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}

/* ---------- Perfect Full-Width Footer Fix ---------- */
body {
    overflow-x: hidden; /* एक्स्ट्रा हॉरिजॉन्टल स्पेस और स्क्रॉलबार हटाने के लिए */
    margin: 0;
    padding: 0;
}

footer {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    margin-top: 10px !important;
    padding: 40px 10px !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%) !important;
    background-color: #0f172a !important;
    color: #94a3b8 !important;
    text-align: center !important;
    font-family: 'IBM Plex Sans', 'Inter', sans-serif !important;
    font-size: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    box-sizing: border-box !important;
    border-top: 3px solid #4f46e5 !important;
    z-index: 10 !important;
}

/* Footer inner container / text styling */
footer div {
    max-width: 900px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 2026 copyright wali line ke upar ki extra line ko yahan se permanently hata diya gaya hai */
footer div:last-child {
    border-top: none !important;
    margin-top: 15px !important;
    padding-top: 0 !important;
}

@media (prefers-reduced-motion: reduce){ *{ transition: none !important; } }

