/* ════════════════════════════════════════
   HF TOOLS & ShambhuAI — Shared CSS (style.css)
   Sabhi pages is file ko use karein
   ════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;700;800&family=Noto+Sans+Devanagari:wght@300;400;500&display=swap');

/* ── CSS Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f7f4ef;
  --surface:   #ffffff;
  --border:    #e4ddd3;
  --accent:    #c0622a;
  --accent2:   #e07b3f;
  --accent-lt: #fdf0e8;
  --text:      #1e1a16;
  --muted:     #8a7f74;
  --shadow:    0 2px 16px rgba(0,0,0,0.07);
  --radius:    16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Baloo 2', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(192,98,42,0.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(224,123,63,0.06) 0%, transparent 50%);
}

/* ════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}
.navbar .logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.navbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.2s;
}
.navbar a::before { content: '←'; font-size: 0.9rem; }
.navbar a:hover {
  background: var(--accent-lt);
  border-color: var(--accent2);
  color: var(--accent);
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.2s;
}
.navbar nav a::before { content: none; }
.navbar nav a:hover {
  background: var(--accent-lt);
  border-color: var(--accent2);
  color: var(--accent);
}

/* ════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════ */
.hero {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-lt);
  border: 1px solid rgba(192,98,42,0.25);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  letter-spacing: 0.5px;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 0.7rem;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  max-width: 500px;
  margin: 0 auto 0.5rem;
  line-height: 1.65;
  font-family: 'Noto Sans Devanagari', sans-serif;
}

.info-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

/* ════════════════════════════════════════
   HOW TO USE STEPS BAR
   ════════════════════════════════════════ */
.how-to-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.how-to {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.step {
  flex: 1;
  text-align: center;
  padding: 1rem;
  border-right: 1px solid var(--border);
  position: relative;
}
.step:last-child { border-right: none; }

.step-num {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
}

.step-text {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

/* ════════════════════════════════════════
   CONVERTER / EDITOR SECTION
   ════════════════════════════════════════ */
.converter-page {
  padding: 1.5rem 1.5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.editor-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.5s ease both;
}
.panel:nth-child(2) { animation-delay: 0.1s; }

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.3rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, #fdfaf7, var(--surface));
}

.panel-header h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-header h2 .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent2);
}

.panel-lang {
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.2rem 0.7rem;
  font-weight: 500;
}

textarea {
  flex: 1;
  width: 100%;
  min-height: 240px;
  padding: 1.2rem 1.3rem;
  border: none;
  outline: none;
  resize: vertical;
  font-size: 1rem;
  font-family: 'Noto Sans Devanagari', 'Baloo 2', sans-serif;
  color: var(--text);
  background: transparent;
  line-height: 1.8;
  caret-color: var(--accent);
}
textarea::placeholder { color: #c5bcb3; }
textarea:focus { background: #fffdf9; }

.tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.3rem;
  border-top: 1px solid var(--border);
  background: #fafaf8;
  flex-wrap: wrap;
}

.tools button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Baloo 2', sans-serif;
  cursor: pointer;
  transition: all 0.18s;
}
.tools button:hover {
  background: var(--accent-lt);
  border-color: var(--accent2);
  color: var(--accent);
  transform: translateY(-1px);
}
.tools button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(192,98,42,0.25);
}
.tools button.primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff;
}

.counter {
  padding: 0.55rem 1.3rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: #fafaf8;
  display: flex;
  gap: 1rem;
}
.counter span {
  font-weight: 700;
  color: var(--accent);
}

.convert-row {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
}

.convert-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 0.75rem 2.2rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Baloo 2', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(192,98,42,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.convert-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(192,98,42,0.4);
}
.convert-btn::before { content: '⚡'; }

/* ════════════════════════════════════════
   INFO CARDS
   ════════════════════════════════════════ */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}
.info-card .ic-icon { font-size: 1.6rem; margin-bottom: 0.7rem; }
.info-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.info-card p  { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

/* ════════════════════════════════════════
   HOMEPAGE / DASHBOARD
   ════════════════════════════════════════ */
.search-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 620px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
}
.search-section input {
  flex: 1;
  padding: 0.75rem 1.2rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.95rem;
  font-family: 'Baloo 2', sans-serif;
  color: var(--text);
  background: var(--surface);
  outline: none;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-section input::placeholder { color: #c5bcb3; }
.search-section input:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(192,98,42,0.1);
}
.search-section button {
  padding: 0.75rem 1.6rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: 'Baloo 2', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(192,98,42,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.search-section button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(192,98,42,0.4);
}

.tools-section {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 0 1.5rem;
}
.tools-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.2rem;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tools-section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 4px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.2s;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,0.1); border-color: rgba(192,98,42,0.25); }
.tool-card:hover::before { opacity: 1; }
.tool-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; line-height: 1.3; }
.tool-card p  { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

.design-grid {
  max-width: 1100px;
  margin: 3rem auto 4rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

/* ════════════════════════════════════════
   SEARCH PAGE
   ════════════════════════════════════════ */
.search-results {
  max-width: 1100px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
}
.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.search-results-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}
.result-count {
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.25rem 0.85rem;
  font-weight: 600;
}
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.empty-state p  { color: var(--muted); font-size: 0.9rem; }
.empty-state a  { color: var(--accent); font-weight: 600; text-decoration: none; }
.empty-state a:hover { text-decoration: underline; }

/* ════════════════════════════════════════
   DESIGN VIEW PAGE
   ════════════════════════════════════════ */
.design-view {
  max-width: 700px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  animation: fadeUp 0.5s ease both;
}
.design-view h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.4px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.design-view h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 4px;
  flex-shrink: 0;
}
.design-view img, #designThumbnail {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  display: block;
  object-fit: cover;
}
.design-stats {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}
.design-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
#viewsCount::before     { content: '👁️ '; }
#downloadsCount::before { content: '⬇️ '; }

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding: 0.8rem 2.2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  text-decoration: none;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Baloo 2', sans-serif;
  box-shadow: 0 4px 20px rgba(192,98,42,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}
.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(192,98,42,0.4);
}

.design-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.tag {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--accent-lt);
  border: 1px solid rgba(192,98,42,0.2);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.85rem;
  border-radius: 100px;
  transition: background 0.2s, border-color 0.2s;
}
.tag::before { content: '#'; margin-right: 2px; opacity: 0.6; }
.tag:hover { background: rgba(192,98,42,0.15); border-color: rgba(192,98,42,0.4); }

.related-section { max-width: 1100px; margin: 3rem auto 5rem; padding: 0 1.5rem; }
.related-section h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.2rem;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.related-section h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 4px;
}
.design-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  background: var(--surface);
}
.design-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,0.1); }
.design-thumb { width: 100%; height: 180px; object-fit: cover; display: block; }

/* ════════════════════════════════════════
   CONTAINER — CALCULATOR / TOOL PAGES
   ════════════════════════════════════════ */
.container {
  max-width: 520px;
  margin: 3rem auto;
  padding: 2.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fadeUp 0.5s ease both;
}
.container h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.3px;
}
.container h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 4px;
}
.container label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
  margin-top: 1rem;
}
.container label:first-of-type { margin-top: 0; }

.container input[type="date"],
.container input[type="text"],
.container input[type="number"],
.container input[type="email"],
.container input[type="password"],
.container select,
.container textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Baloo 2', sans-serif;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: unset;
  resize: vertical;
}
.container textarea {
  min-height: 160px;
  padding: 0.8rem 1rem;
  line-height: 1.7;
}
.container input:focus,
.container select:focus,
.container textarea:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(192,98,42,0.1);
  background: #fffdf9;
}

.container button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 1.2rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Baloo 2', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(192,98,42,0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}
.container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(192,98,42,0.38);
}

.container #out,
.container .result {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  background: var(--accent-lt);
  border: 1px solid rgba(192,98,42,0.2);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.6;
  display: none;
}
.container #out:not(:empty),
.container .result:not(:empty) {
  display: block;
  animation: fadeUp 0.3s ease both;
}

/* ── PDF Actions / Shared button row ── */
.pdf-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}
.pdf-actions button {
  flex: 1;
  margin-top: 0;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  border-radius: 10px;
  min-width: 80px;
}

/* ════════════════════════════════════════
   UPLOAD BOX (Image Compressor, PDF, etc.)
   ════════════════════════════════════════ */
.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: var(--bg);
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 0.5rem;
}
.upload-box:hover {
  border-color: var(--accent2);
  background: var(--accent-lt);
}
.upload-box input[type="file"] { display: none; }
.upload-icon { font-size: 2.2rem; margin-bottom: 0.6rem; }
.upload-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.upload-sub   { font-size: 0.8rem; color: var(--muted); }

/* Compress info text */
.compress-info {
  margin-top: 0.8rem;
  padding: 0.75rem 1rem;
  background: var(--accent-lt);
  border: 1px solid rgba(192,98,42,0.2);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  display: none;
}
.compress-info:not(:empty) { display: block; }

/* Download box */
.download { margin-top: 1.2rem; }

/* ════════════════════════════════════════
   FAKE DATA TOOL
   ════════════════════════════════════════ */
.tool-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}
.tool-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.control-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.control-group input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: 'Baloo 2', sans-serif;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.control-group input:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(192,98,42,0.1);
  background: #fffdf9;
}
.tool-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.btn-generate {
  padding: 0.7rem 1.6rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: 'Baloo 2', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(192,98,42,0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-generate:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(192,98,42,0.38); }
.btn-export {
  padding: 0.7rem 1.2rem;
  background: var(--surface);
  color: var(--muted);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Baloo 2', sans-serif;
  cursor: pointer;
  transition: all 0.18s;
}
.btn-export:hover {
  background: var(--accent-lt);
  border-color: var(--accent2);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Table */
.table-wrap { overflow-x: auto; margin-top: 1rem; border-radius: 10px; border: 1px solid var(--border); }
#dataTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
#dataTable th {
  background: var(--bg);
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
#dataTable td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
#dataTable tr:last-child td { border-bottom: none; }
#dataTable tr:hover td { background: var(--accent-lt); }

/* ════════════════════════════════════════
   PASSWORD GENERATOR
   ════════════════════════════════════════ */
.password-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.password-input-wrap input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Baloo 2', monospace;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.password-input-wrap input:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(192,98,42,0.1);
  background: #fffdf9;
}
.btn-icon {
  width: 42px; height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s;
  flex-shrink: 0;
  margin-top: 0;
  width: auto;
  padding: 0 0.8rem;
}
.btn-icon:hover { background: var(--accent-lt); border-color: var(--accent2); }

.strength-bar-bg {
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}
.strength-bar {
  height: 100%;
  width: 0%;
  background: #e53e3e;
  border-radius: 100px;
  transition: width 0.4s ease, background 0.4s ease;
}
.strength-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.strength-meta strong { color: var(--text); }

.options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.option-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s;
  user-select: none;
}
.option-chip:has(input:checked) {
  background: var(--accent-lt);
  border-color: var(--accent2);
  color: var(--accent);
}
.option-chip input { accent-color: var(--accent); width: 14px; height: 14px; }

.last-password {
  margin-top: 1.2rem;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.last-label {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
#history { font-family: monospace; color: var(--text); word-break: break-all; }

/* ════════════════════════════════════════
   PDF EDITOR — Canvas
   ════════════════════════════════════════ */
.pdf-canvas-wrap {
  position: relative;
  display: inline-block;
  margin-top: 1.2rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 100%;
}
#pdfCanvas   { display: block; max-width: 100%; }
#drawLayer   { position: absolute; top: 0; left: 0; cursor: crosshair; }

/* ════════════════════════════════════════
   QR / BARCODE OUTPUT
   ════════════════════════════════════════ */
.qr-output {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
#qrcode img, #qrcode canvas { border-radius: 8px; }
#barcode { max-width: 100%; height: auto; }

/* ════════════════════════════════════════
   COMPARE SLIDER (Image Upscaler)
   ════════════════════════════════════════ */
.compare-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 1.2rem;
  user-select: none;
}
.compare-img {
  width: 100%;
  height: auto;
  display: block;
}
.after-wrapper {
  position: absolute;
  top: 0; left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}
.after-wrapper .compare-img { width: auto; max-width: none; }
.compare-slider {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: transparent;
  cursor: ew-resize;
  z-index: 10;
}
.compare-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: ew-resize;
  margin-top: -12px;
}
.compare-labels {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* ════════════════════════════════════════
   SEO ANALYZER — Stats Grid & Keywords
   ════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 0.6rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.stat-icon  { font-size: 1.4rem; margin-bottom: 0.3rem; }
.stat-value { font-size: 1.4rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.72rem; color: var(--muted); font-weight: 600; margin-top: 0.25rem; }

.keywords-box {
  margin-top: 1.4rem;
  padding: 1.2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.keywords-box h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.7rem;
}
.keyword-list { font-size: 0.88rem; color: var(--muted); line-height: 1.8; }

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
  margin-top: auto;
}
footer strong { color: var(--accent); }

/* ════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════ */

/* ── Tablet (max 900px) ── */
@media (max-width: 900px) {
  .navbar { padding: 0 1.5rem; height: 58px; }
  .hero { padding: 2.2rem 1.2rem 1.5rem; }
  .hero h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .hero p { font-size: 0.95rem; }
  .info-chips { gap: 0.45rem; }
  .chip { font-size: 0.75rem; padding: 0.25rem 0.7rem; }
  .converter-page { padding: 1.2rem 1.2rem 2.5rem; }
  .editor-box { gap: 1.2rem; }
  textarea { min-height: 200px; font-size: 0.95rem; }
  .info-cards { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; margin-top: 2rem; }
  .convert-btn { font-size: 0.95rem; padding: 0.7rem 1.8rem; }
  .tools-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .search-section { max-width: 100%; margin-top: 2rem; }
  .tools-section { margin-top: 2rem; }
  .design-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .container { margin: 2rem auto; padding: 2rem 1.5rem; }
  .design-view { margin: 2rem auto; }
  .related-section { margin-top: 2rem; }
  .design-thumb { height: 150px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Mobile (max 700px) ── */
@media (max-width: 700px) {
  .navbar { padding: 0 1rem; height: 54px; }
  .logo { font-size: 1.15rem; }
  .navbar a { font-size: 0.78rem; padding: 0.35rem 0.85rem; }
  .hero { padding: 2rem 1rem 1.2rem; }
  .hero-badge { font-size: 0.7rem; padding: 0.25rem 0.8rem; }
  .hero h1 { font-size: 1.6rem; letter-spacing: -0.3px; }
  .hero p { font-size: 0.88rem; line-height: 1.6; }
  .info-chips { gap: 0.4rem; margin-top: 1rem; }
  .chip { font-size: 0.72rem; padding: 0.22rem 0.65rem; }
  .how-to { display: grid; grid-template-columns: 1fr 1fr; border-radius: 12px; }
  .step { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0.85rem 0.6rem; }
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(3) { border-bottom: none; }
  .step:nth-child(4) { border-right: none; border-bottom: none; }
  .step-num { width: 24px; height: 24px; font-size: 0.72rem; }
  .step-text { font-size: 0.72rem; }
  .editor-box { grid-template-columns: 1fr; gap: 1rem; }
  .panel-header { padding: 0.85rem 1rem 0.75rem; }
  .panel-header h2 { font-size: 0.88rem; }
  .panel-lang { font-size: 0.68rem; padding: 0.18rem 0.6rem; }
  textarea { min-height: 160px; padding: 1rem; font-size: 0.9rem; }
  .tools { padding: 0.7rem 1rem; gap: 0.4rem; }
  .tools button { font-size: 0.75rem; padding: 0.38rem 0.8rem; border-radius: 7px; }
  .counter { padding: 0.45rem 1rem; font-size: 0.73rem; }
  .convert-row { margin: 1.2rem 0 0.3rem; }
  .convert-btn { width: 100%; justify-content: center; font-size: 1rem; padding: 0.85rem 1rem; border-radius: 12px; }
  .info-cards { grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1.8rem; }
  .info-card { padding: 1rem; border-radius: 12px; }
  .info-card .ic-icon { font-size: 1.3rem; margin-bottom: 0.5rem; }
  .info-card h4 { font-size: 0.82rem; }
  .info-card p { font-size: 0.75rem; }
  footer { padding: 1.5rem 1rem; font-size: 0.75rem; }
  .search-section { gap: 0.5rem; padding: 0 1rem; margin-top: 1.5rem; }
  .search-section input { padding: 0.65rem 1rem; font-size: 0.88rem; }
  .search-section button { padding: 0.65rem 1.1rem; font-size: 0.82rem; }
  .tools-section { margin-top: 1.8rem; padding: 0 1rem; }
  .tools-section h2 { font-size: 1.15rem; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .tool-card { padding: 1.1rem 1rem; }
  .tool-card h3 { font-size: 0.85rem; }
  .tool-card p { font-size: 0.75rem; }
  .design-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 2rem; padding: 0 1rem; }
  .container { margin: 1.5rem 1rem; padding: 1.8rem 1.2rem; }
  .container h2 { font-size: 1.25rem; }
  .container input[type="date"],
  .container input[type="text"],
  .container input[type="number"],
  .container input[type="password"],
  .container select { font-size: 0.88rem; padding: 0.65rem 0.9rem; }
  .container button { font-size: 0.92rem; padding: 0.75rem 1rem; }
  .pdf-actions { gap: 0.45rem; }
  .pdf-actions button { font-size: 0.8rem; padding: 0.6rem 0.7rem; }
  .design-view { padding: 0 1rem; margin: 1.5rem auto; }
  .design-view h2 { font-size: 1.3rem; }
  .download-btn { width: 100%; justify-content: center; border-radius: 12px; }
  .design-stats { gap: 0.7rem; }
  .design-stats span { font-size: 0.78rem; padding: 0.28rem 0.8rem; }
  .related-section { padding: 0 1rem; margin-top: 2rem; }
  .design-thumb { height: 130px; }
  .tool-box { padding: 1.2rem; }
  .tool-controls { grid-template-columns: 1fr; }
  .tool-actions { gap: 0.4rem; }
  .btn-generate { width: 100%; }
  .btn-export { flex: 1; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .stat-value { font-size: 1.1rem; }
  .stat-label { font-size: 0.65rem; }
  .options-row { gap: 0.4rem; }
  .option-chip { font-size: 0.75rem; padding: 0.25rem 0.7rem; }
  .search-results { padding: 0 1rem; }
  .search-results-header h2 { font-size: 1.1rem; }
}

/* ── Small Mobile (max 420px) ── */
@media (max-width: 420px) {
  .hero h1 { font-size: 1.4rem; }
  .info-chips { gap: 0.35rem; }
  .chip { font-size: 0.68rem; padding: 0.2rem 0.55rem; }
  .info-cards { grid-template-columns: 1fr; }
  .tools { flex-wrap: wrap; }
  .tools button { flex: 1 1 auto; justify-content: center; }
  textarea { min-height: 140px; }
  .search-section { flex-direction: column; }
  .search-section input  { width: 100%; border-radius: 10px; }
  .search-section button { width: 100%; border-radius: 10px; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .tool-card { padding: 0.9rem 0.8rem; }
  .tool-card h3 { font-size: 0.8rem; }
  .design-grid { grid-template-columns: 1fr; }
  .container { margin: 1rem 0.75rem; padding: 1.4rem 1rem; border-radius: 12px; }
  .design-thumb { height: 110px; }
  .tag { font-size: 0.72rem; padding: 0.22rem 0.7rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pdf-actions { flex-direction: column; }
  .pdf-actions button { width: 100%; }
  .password-input-wrap { flex-direction: column; align-items: stretch; }
  .btn-icon { width: 100%; justify-content: center; }
}