* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --brand: #2563EB; --brand-dark: #1D4ED8; --brand-light: #EFF6FF; --brand-mid: #BFDBFE;
  --text-primary: #111827; --text-secondary: #6B7280; --text-muted: #9CA3AF;
  --bg: #FFFFFF; --surface: #F9FAFB; --surface2: #F3F4F6;
  --border: rgba(0,0,0,0.07); --border-strong: rgba(0,0,0,0.12);
  --radius: 14px; --radius-sm: 8px; --radius-xs: 6px;
  --font-head: 'Sora', sans-serif; --font-body: 'DM Sans', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-brand: 0 4px 16px rgba(37,99,235,0.15);
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text-primary); min-height: 100vh; display: flex; flex-direction: column; }

/* ── NAV ── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 100;
}
.logo {
  font-family: var(--font-head); font-size: 17px; font-weight: 600;
  color: var(--text-primary); display: flex; align-items: center; gap: 8px;
  text-decoration: none; letter-spacing: -0.01em;
}
.logo-icon {
  width: 30px; height: 30px; background: var(--brand); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; box-shadow: var(--shadow-brand);
}
.logo-text { color: var(--text-primary); }
.logo-text span { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; padding: 6px 12px; border-radius: var(--radius-xs);
  transition: all 0.15s;
}
.nav-links a:hover { color: var(--text-primary); background: var(--surface); }
.nav-links a.active { color: var(--brand); background: var(--brand-light); }

.hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--text-secondary); font-size: 22px; padding: 4px; }
.mobile-menu { display: none; flex-direction: column; gap: 2px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--border); }
.mobile-menu a { font-size: 14px; font-weight: 500; color: var(--text-secondary); padding: 10px 12px; border-radius: var(--radius-xs); text-decoration: none; display: block; }
.mobile-menu a:hover { background: var(--surface); color: var(--text-primary); }
.mobile-menu.open { display: flex; }

/* ── HERO ── */
.hero {
  text-align: center; padding: 72px 2rem 56px;
  background: linear-gradient(160deg, #F0F6FF 0%, #FAFBFF 60%, #fff 100%);
  border-bottom: 1px solid var(--border);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--brand-mid);
  border-radius: 100px; padding: 5px 14px; font-size: 12px;
  color: var(--brand); font-weight: 500; margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(37,99,235,0.1);
}
.hero h1 {
  font-family: var(--font-head); font-size: 46px; font-weight: 600;
  color: var(--text-primary); line-height: 1.15; margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--brand); }
.hero p { font-size: 17px; color: var(--text-secondary); max-width: 460px; margin: 0 auto 32px; line-height: 1.65; }
.hero-search {
  display: flex; max-width: 460px; margin: 0 auto;
  background: #fff; border: 1.5px solid var(--border-strong); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow-md);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hero-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,0.1), var(--shadow-md); }
.hero-search input { flex: 1; border: none; outline: none; padding: 13px 18px; font-size: 14px; font-family: var(--font-body); color: var(--text-primary); background: transparent; }
.hero-search input::placeholder { color: var(--text-muted); }
.hero-search button { background: var(--brand); border: none; color: #fff; padding: 13px 20px; cursor: pointer; font-size: 16px; transition: background 0.15s; }
.hero-search button:hover { background: var(--brand-dark); }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 40px; }
.stat { text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 24px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.02em; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 3px; font-weight: 500; }
.stat-divider { width: 1px; background: var(--border); align-self: stretch; margin: 4px 0; }

/* ── CATEGORY TABS ── */
.cat-wrap { max-width: 960px; margin: 32px auto 0; padding: 0 2rem; }
.cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-tab {
  display: flex; align-items: center; gap: 6px; padding: 7px 16px;
  border-radius: 100px; border: 1px solid var(--border-strong);
  font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s;
  background: #fff; color: var(--text-secondary);
}
.cat-tab:hover { color: var(--text-primary); border-color: var(--text-muted); background: var(--surface); }
.cat-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: var(--shadow-brand); }
.cat-tab i { font-size: 14px; }

/* ── TOOLS SECTION ── */
.section { padding: 32px 2rem 48px; max-width: 960px; margin: 0 auto; width: 100%; }
.section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.section-title { font-family: var(--font-head); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.section-line { flex: 1; height: 1px; background: var(--border); }
.section-count { font-size: 11px; color: var(--text-muted); font-weight: 500; }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tool-card {
  background: #fff; border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 22px;
  cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden;
  text-align: left; text-decoration: none; display: block; color: inherit;
}
.tool-card:hover {
  border-color: var(--brand-mid); transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,99,235,0.12); background: var(--brand-light);
}
.tool-card:active { transform: translateY(-1px); }
.tool-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; margin-bottom: 14px;
}
.tool-card h3 { font-family: var(--font-head); font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.tool-card p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.55; }
.tool-tag { display: inline-flex; align-items: center; margin-top: 14px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 100px; letter-spacing: 0.02em; }
.tag-text    { background: #EFF6FF; color: #1D4ED8; }
.tag-image   { background: #F0FDF4; color: #15803D; }
.tag-student { background: #FFFBEB; color: #B45309; }
.badge { position: absolute; top: 14px; right: 14px; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 100px; letter-spacing: 0.05em; color: #fff; }
.badge-new     { background: var(--brand); }
.badge-popular { background: #F59E0B; }

/* ── TOOL PAGES ── */
.tool-page-main { flex: 1; }
.panel-wrap { padding: 32px 2rem 56px; max-width: 760px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb i { font-size: 12px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-xs);
  border: 1px solid var(--border-strong); background: #fff;
  font-size: 13px; font-family: var(--font-body);
  font-weight: 500; color: var(--text-secondary); transition: all 0.15s;
  margin-bottom: 20px; text-decoration: none;
}
.back-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.panel-card { background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.panel-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.panel-header h2 { font-family: var(--font-head); font-size: 22px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.panel-header p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ── FORM ELEMENTS ── */
.cc-textarea { width: 100%; min-height: 130px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 13px; font-size: 14px; font-family: var(--font-body); resize: vertical; outline: none; transition: border-color 0.15s, box-shadow 0.15s; color: var(--text-primary); line-height: 1.6; }
.cc-textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,0.08); }
.cc-buttons { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.cc-btn { padding: 8px 14px; border-radius: var(--radius-xs); border: 1px solid var(--border-strong); background: var(--surface); font-size: 12.5px; font-family: var(--font-body); cursor: pointer; font-weight: 500; transition: all 0.15s; color: var(--text-primary); }
.cc-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.result-box { background: var(--surface); border-radius: var(--radius-sm); padding: 14px; min-height: 80px; font-size: 14px; line-height: 1.6; color: var(--text-muted); border: 1px solid var(--border); word-break: break-word; }
.action-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.action-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius-xs); border: 1px solid var(--border-strong); background: #fff; font-size: 13px; font-family: var(--font-body); cursor: pointer; font-weight: 500; transition: all 0.15s; color: var(--text-primary); }
.action-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.action-btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.action-btn.primary:hover { background: var(--brand-dark); }

/* ── STAT CARDS ── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.stat-card { background: var(--surface); border-radius: var(--radius-sm); padding: 14px 10px; text-align: center; border: 1px solid var(--border); }
.stat-card .val { font-size: 20px; font-weight: 600; font-family: var(--font-head); color: var(--text-primary); letter-spacing: -0.02em; }
.stat-card .lbl { font-size: 11px; color: var(--text-muted); margin-top: 3px; font-weight: 500; }
.info-bar { margin-top: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; color: var(--text-secondary); }

/* ── SLIDERS & CHECKBOXES ── */
.field-row { display: flex; align-items: center; gap: 12px; }
.field-label { font-size: 13px; font-weight: 500; min-width: 70px; color: var(--text-secondary); }
input[type=range] { flex: 1; accent-color: var(--brand); cursor: pointer; }
.field-val { font-size: 13px; font-weight: 600; color: var(--brand); min-width: 36px; text-align: right; }
.check-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.check-label { display: flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; font-weight: 500; color: var(--text-secondary); padding: 7px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-xs); background: var(--surface); transition: all 0.15s; user-select: none; }
.check-label:hover { border-color: var(--brand-mid); color: var(--text-primary); }
.check-label input { accent-color: var(--brand); }
.strength-row { display: flex; align-items: center; gap: 10px; }
.strength-track { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.strength-fill { height: 100%; border-radius: 3px; transition: all 0.35s; }

/* ── DROP ZONE (image tools) ── */
.drop-zone { border: 2px dashed var(--brand-mid); border-radius: var(--radius); padding: 44px 20px; text-align: center; cursor: pointer; transition: all 0.15s; background: var(--brand-light); }
.drop-zone:hover, .drop-zone.drag-over { background: #DBEAFE; border-color: var(--brand); }
.drop-zone i { font-size: 36px; color: var(--brand); margin-bottom: 10px; display: block; }
.drop-zone p { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.drop-zone small { font-size: 12px; color: var(--text-muted); }
.img-stat-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 16px 0; }
.img-stat-card { background: var(--surface); border-radius: var(--radius-sm); padding: 14px; text-align: center; border: 1px solid var(--border); }
.img-stat-card .val { font-size: 19px; font-weight: 600; font-family: var(--font-head); }
.img-stat-card .lbl { font-size: 11px; color: var(--text-muted); margin-top: 3px; font-weight: 500; }

/* ── CGPA ── */
.cgpa-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.cgpa-table th { font-size: 11px; text-align: left; color: var(--text-muted); padding: 8px 10px; border-bottom: 1px solid var(--border); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.cgpa-table td { padding: 6px 6px; }
.cgpa-table input, .cgpa-table select { width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-xs); padding: 8px 10px; font-size: 13px; font-family: var(--font-body); outline: none; background: var(--surface); color: var(--text-primary); transition: border-color 0.15s; }
.cgpa-table input:focus, .cgpa-table select:focus { border-color: var(--brand); }
.cgpa-result { margin-top: 20px; background: linear-gradient(135deg, var(--brand-light) 0%, #E0EEFF 100%); border-radius: var(--radius); padding: 28px; text-align: center; border: 1px solid var(--brand-mid); }
.cgpa-num { font-family: var(--font-head); font-size: 56px; font-weight: 600; color: var(--brand); letter-spacing: -0.03em; line-height: 1; }
.cgpa-grade { font-size: 14px; color: var(--text-secondary); margin-top: 8px; font-weight: 500; }

/* ── TOGGLE ROW ── */
.toggle-row { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-xs); overflow: hidden; display: inline-flex; margin-bottom: 20px; }
.toggle-btn { padding: 8px 20px; font-size: 13px; font-family: var(--font-body); font-weight: 500; cursor: pointer; border: none; background: transparent; color: var(--text-secondary); transition: all 0.15s; }
.toggle-btn.active { background: var(--brand); color: #fff; }

/* ── PASSWORD OUTPUT ── */
.pw-display { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 18px; font-size: 18px; font-family: 'Courier New', monospace; letter-spacing: 1.5px; word-break: break-all; min-height: 64px; color: var(--text-primary); line-height: 1.5; }

/* ── FOOTER ── */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 36px 2rem 28px; margin-top: auto; }
.footer-inner { max-width: 960px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-bottom: 28px; flex-wrap: wrap; }
.footer-brand p { font-size: 13px; color: var(--text-muted); max-width: 220px; line-height: 1.6; margin-top: 6px; }
.footer-links-col h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px; }
.footer-links-col a { display: block; font-size: 13px; color: var(--text-secondary); text-decoration: none; margin-bottom: 8px; transition: color 0.15s; }
.footer-links-col a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 12px; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; color: var(--text-muted); text-decoration: none; }
.footer-bottom-links a:hover { color: var(--brand); }

/* ── NO RESULTS ── */
#no-results { display: none; color: var(--text-muted); font-size: 14px; text-align: center; padding: 40px 0; }
#no-results i { font-size: 32px; display: block; margin-bottom: 10px; opacity: 0.4; }

/* ── PROSE (about/privacy) ── */
.prose h3 { font-family: var(--font-head); font-size: 15px; font-weight: 600; margin: 20px 0 8px; }
.prose p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 10px; }
.prose ul { padding-left: 20px; }
.prose ul li { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 4px; }

/* ── AD SLOT ── */
.ad-slot { width: 100%; max-width: 728px; margin: 28px auto; text-align: center; }
.ad-slot .ad-label { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.ad-slot .ad-box { width: 100%; min-height: 100px; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.ad-slot ins.adsbygoogle { display: block; width: 100%; }
@media (max-width: 700px) {
  .ad-slot { margin: 20px auto; }
  .ad-slot .ad-box { min-height: 90px; }
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero { padding: 48px 1.25rem 40px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15px; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 20px; }
  .section { padding: 24px 1.25rem 36px; }
  .panel-wrap { padding: 24px 1.25rem 40px; }
  .panel-card { padding: 20px; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cgpa-num { font-size: 44px; }
}
@media (max-width: 400px) {
  .tools-grid { grid-template-columns: 1fr; }
}
