/* =====================================================
   ToolsEveryone — Main Stylesheet
   Font: Syne (headings) + DM Sans (body)
   Palette: Deep navy hero, vibrant category accents
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

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

:root {
  --navy:       #0B1120;
  --navy-light: #131E35;
  --navy-mid:   #1D2D50;
  --accent:     #3B82F6;
  --accent-2:   #06B6D4;
  --text:       #1E293B;
  --text-muted: #64748B;
  --border:     #E2E8F0;
  --bg:         #F8FAFC;
  --white:      #FFFFFF;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14);
  --font-head:  'Syne', sans-serif;
  --font-body:  'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- Utilities ---- */
.container { width: 92%; max-width: 1240px; margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* =====================================================
   HEADER / NAV
   ===================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,17,32,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.nav {
  display: flex; align-items: center;
  gap: 2rem; padding: 1rem 0;
}

.nav-brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-head);
  font-size: 1.35rem; font-weight: 800;
  color: var(--white);
  letter-spacing: -.3px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-text { display: flex; flex-direction: row; align-items: baseline; gap: 0; line-height: 1; }
.brand-line1 { font-size: 1.35rem; font-weight: 800; }
.brand-line2 { font-size: 1.35rem; font-weight: 800; } /* desktop: inline */

.nav-brand .brand-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: #fff;
}

.nav-links {
  display: flex; align-items: center; gap: .1rem; flex: 1;
}

.nav-search {
  display: flex; align-items: center;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 99px;
  padding: .4rem 1rem;
  gap: .5rem;
  min-width: 220px;
  transition: background .2s, border-color .2s;
}
.nav-search:focus-within {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.25);
}
.nav-search i { color: rgba(255,255,255,.4); font-size: .875rem; }
.nav-search input {
  background: transparent; border: none; outline: none;
  color: #fff; font-family: var(--font-body); font-size: .875rem;
  width: 100%;
}
.nav-search input::placeholder { color: rgba(255,255,255,.35); }

/* Mobile search bar (below nav, hidden by default) */
.mobile-search-bar { display: none; padding: 0 0 .75rem; }
.mobile-search-bar.open { display: block; }
.mobile-search-inner {
  display: flex; align-items: center;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px; padding: .55rem 1rem; gap: .6rem;
}
.mobile-search-inner i { color: rgba(255,255,255,.5); flex-shrink: 0; }
.mobile-search-inner input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; font-size: .95rem; font-family: var(--font-body);
}
.mobile-search-inner input::placeholder { color: rgba(255,255,255,.4); }
.mobile-search-close {
  background: none; border: none; color: rgba(255,255,255,.5);
  cursor: pointer; font-size: 1rem; padding: .1rem; flex-shrink: 0;
}

/* Mobile icon buttons */
.nav-mobile-actions { display: none; align-items: center; gap: .35rem; }
.nav-icon-btn {
  width: 38px; height: 38px; border-radius: 9px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.75); cursor: pointer; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.nav-icon-btn:hover { background: rgba(255,255,255,.15); color: #fff; }

/* Mobile drawer auth section */
.nav-drawer-auth { display: none; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  background: var(--navy);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(59,130,246,.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(6,182,212,.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 760px; margin: 0 auto;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 99px;
  padding: .35rem 1rem;
  font-size: .8rem; font-weight: 600;
  color: #93C5FD;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -.5px;
  margin-bottom: 1.25rem;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.125rem; color: rgba(255,255,255,.6);
  line-height: 1.7; margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-search-bar {
  display: flex; align-items: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 99px;
  padding: .5rem .5rem .5rem 1.5rem;
  gap: .75rem;
  max-width: 560px; margin: 0 auto 2.5rem;
  transition: border-color .2s;
}

.hero-search-bar:focus-within { border-color: rgba(59,130,246,.6); }

.hero-search-bar i { color: rgba(255,255,255,.35); font-size: 1rem; }

.hero-search-bar input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; font-family: var(--font-body); font-size: 1rem;
}

.hero-search-bar input::placeholder { color: rgba(255,255,255,.3); }

.hero-search-bar button {
  background: var(--accent);
  color: #fff;
  border: none; cursor: pointer;
  border-radius: 99px;
  padding: .65rem 1.5rem;
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}

.hero-search-bar button:hover { background: #2563EB; transform: scale(1.03); }

.hero-stats {
  display: flex; justify-content: center; gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.75rem; font-weight: 800;
  color: var(--white);
}

.hero-stat .lbl {
  font-size: .8rem; color: rgba(255,255,255,.45);
  text-transform: uppercase; letter-spacing: .5px;
}

/* =====================================================
   SECTION TITLES
   ===================================================== */
.section-header {
  margin-bottom: 2.25rem;
}

.section-label {
  font-size: .75rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .4rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.3px;
  line-height: 1.2;
}

.section-sub {
  margin-top: .5rem;
  color: var(--text-muted);
  font-size: .95rem;
}

/* =====================================================
   TOOLS GRID (Live Sites)
   ===================================================== */
.section-live {
  padding: 5rem 0 3rem;
}

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

.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--card-color, var(--accent));
  opacity: 0; transition: opacity .25s;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,0,0,.1);
}

.tool-card:hover::before { opacity: 1; }

.card-head {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: .75rem;
}

.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
  flex-shrink: 0;
  background: var(--card-color, var(--accent));
}

.card-badge {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 99px;
  background: #DCFCE7; color: #15803D;
}

.card-badge.free   { background: #DCFCE7; color: #15803D; }
.card-badge.coming { background: #FEF3C7; color: #92400E; }

.card-title {
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 700;
  color: var(--navy);
  margin-bottom: .1rem;
}

.card-cat {
  font-size: .78rem; color: var(--text-muted);
  font-weight: 500;
}

.card-desc {
  font-size: .9rem; color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.card-tags {
  display: flex; flex-wrap: wrap; gap: .4rem;
}

.tag {
  font-size: .72rem; font-weight: 500;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text-muted);
  padding: .2rem .6rem; border-radius: 99px;
}

.card-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}

.card-url {
  font-size: .8rem; color: var(--text-muted);
  font-weight: 500;
  display: flex; align-items: center; gap: .3rem;
}

.btn-visit {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--card-color, var(--accent));
  color: #fff;
  font-family: var(--font-body); font-size: .82rem; font-weight: 600;
  padding: .5rem 1.1rem;
  border-radius: 99px;
  border: none; cursor: pointer;
  transition: opacity .2s, transform .15s;
  text-decoration: none;
}

.btn-visit:hover { opacity: .88; transform: scale(1.04); }
.btn-visit.disabled { background: #94A3B8; cursor: not-allowed; }
.btn-visit.disabled:hover { transform: none; opacity: 1; }

/* =====================================================
   COMING SOON SECTION
   ===================================================== */
.section-coming {
  padding: 3rem 0 5rem;
  background: linear-gradient(180deg, var(--bg) 0%, #EFF6FF 100%);
}

.coming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  /* Cards never exceed 3 columns; with few cards they stay compact */
  max-width: 100%;
}

/* Limit coming-grid width when few cards so they don't stretch absurdly */
.coming-grid:has(> .coming-card:only-child) {
  grid-template-columns: minmax(260px, 420px);
}
.coming-grid:has(> .coming-card:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(260px, 420px));
}

/* ---- Redesigned coming-card: vertical layout ---- */
.coming-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  opacity: .85;
  transition: opacity .2s, box-shadow .2s, transform .2s;
  position: relative; overflow: hidden;
}
.coming-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #D1D5DB, #9CA3AF);
  opacity: .5;
}
.coming-card:hover {
  opacity: 1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.coming-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}

.coming-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}

.coming-info { flex: 1; }
.coming-info h3 {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700; color: var(--navy);
  margin-bottom: .35rem;
}
.coming-info p {
  font-size: .82rem; color: var(--text-muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.coming-pill {
  flex-shrink: 0;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  padding: .28rem .7rem; border-radius: 99px;
  background: #FEF3C7; color: #92400E;
  white-space: nowrap; border: 1px solid #FDE68A;
}

.coming-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; padding-top: .75rem; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.coming-cat {
  display: flex; align-items: center; gap: .35rem;
  font-size: .75rem; color: var(--text-muted); font-weight: 500;
}
.coming-cat i { font-size: .7rem; }
.coming-notify {
  display: flex; align-items: center; gap: .35rem;
  font-size: .75rem; font-weight: 600; color: var(--accent);
  cursor: pointer; opacity: .7; transition: opacity .15s;
}
.coming-notify:hover { opacity: 1; }
.coming-notify i { font-size: .7rem; }

/* =====================================================
   CATEGORIES BAR
   ===================================================== */
.categories-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
  overflow: hidden;
}

.cat-list {
  display: flex; gap: .5rem; flex-wrap: wrap;
  align-items: center;
}

.cat-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem 1rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: .82rem; font-weight: 500; color: var(--text-muted);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.cat-chip:hover,
.cat-chip.active {
  background: var(--navy); color: #fff; border-color: var(--navy);
}

.cat-chip i { font-size: .8rem; }

/* =====================================================
   CTA BANNER
   ===================================================== */
.cta-banner {
  background: var(--navy);
  padding: 4rem 0;
  position: relative; overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(59,130,246,.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}

.cta-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; color: var(--white);
  margin-bottom: .5rem;
}

.cta-text p { color: rgba(255,255,255,.55); font-size: .95rem; }

.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent);
  color: #fff; font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  padding: .75rem 1.75rem; border-radius: 99px; border: none; cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s;
}

.btn-primary:hover { background: #2563EB; transform: scale(1.03); }

.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent;
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.25);
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  padding: .75rem 1.75rem; border-radius: 99px; cursor: pointer;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}

.btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); color: #fff; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-brand {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: .875rem; color: rgba(255,255,255,.45);
  line-height: 1.7; max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: .85rem; font-weight: 700;
  color: rgba(255,255,255,.7);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }

.footer-col ul li a {
  font-size: .875rem; color: rgba(255,255,255,.45);
  transition: color .2s;
}

.footer-col ul li a:hover { color: rgba(255,255,255,.9); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}

.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.3); }

.social-links { display: flex; gap: .75rem; }

.social-links a {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45); font-size: .85rem;
  transition: background .2s, color .2s;
}

.social-links a:hover { background: rgba(255,255,255,.14); color: #fff; }

/* =====================================================
   SEARCH RESULTS PAGE
   ===================================================== */
.search-hero {
  background: var(--navy);
  padding: 3rem 0 2.5rem;
}

.search-hero h1 {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 800; color: var(--white);
  margin-bottom: .5rem;
}

.search-hero p { color: rgba(255,255,255,.5); font-size: .95rem; }

.search-results-section { padding: 3rem 0; }

.no-results {
  text-align: center; padding: 4rem 0;
  color: var(--text-muted);
}

.no-results i { font-size: 3rem; margin-bottom: 1rem; display: block; }
.no-results h3 { font-family: var(--font-head); font-size: 1.3rem; color: var(--navy); margin-bottom: .5rem; }

/* responsive handled below */

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tool-card, .coming-card {
  animation: fadeUp .4s ease both;
}

.tool-card:nth-child(1) { animation-delay: .05s; }
.tool-card:nth-child(2) { animation-delay: .10s; }
.tool-card:nth-child(3) { animation-delay: .15s; }
.tool-card:nth-child(4) { animation-delay: .20s; }

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ============================================================
   DARK-MODE VARIABLE ALIASES (used by admin + auth)
   ============================================================ */
:root {
  --bg-page:      #0F1117;
  --bg-card:      #161B27;
  --text-primary:   #F1F5F9;
  --text-secondary: #94A3B8;
  --accent-hover:   #2563EB;
  --font:         'DM Sans', sans-serif;
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page { background: var(--bg-page); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.auth-wrapper { width: 100%; max-width: 440px; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem 2rem; box-shadow: 0 8px 32px rgba(0,0,0,.18); }
.auth-logo { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; font-weight: 700; color: var(--text-primary); text-decoration: none; margin-bottom: 1.5rem; }
.auth-title { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: .25rem; }
.auth-sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }
.auth-switch { text-align: center; color: var(--text-muted); font-size: .9rem; margin-top: 1.25rem; }
.auth-switch a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.btn-auth { width: 100%; padding: .8rem 1.5rem; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .5rem; transition: background .2s, transform .1s; }
.btn-auth:hover { background: var(--accent-hover); transform: translateY(-1px); }
.form-row-between { display: flex; justify-content: space-between; align-items: center; font-size: .875rem; }
.checkbox-label { display: flex; align-items: center; gap: .4rem; cursor: pointer; color: var(--text-muted); }

/* ============================================================
   SHARED FORM ELEMENTS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--text-secondary); }
.form-group input, .form-group textarea, .form-group select {
  background: var(--bg-page); border: 1px solid var(--border); border-radius: 8px;
  padding: .65rem .9rem; color: var(--text-primary); font-size: .9rem; width: 100%;
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.form-group small { color: var(--text-muted); font-size: .78rem; }
.form-group small code { background: var(--bg-page); border: 1px solid var(--border); border-radius: 4px; padding: .1rem .3rem; font-size: .75rem; }
.input-icon { position: relative; }
.input-icon > i:first-child { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.input-icon input { padding-left: 2.4rem; }
.input-icon .toggle-pw { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; padding: .25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:600px){ .form-row { grid-template-columns: 1fr; } }

/* Alerts */
.alert { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-radius: 8px; font-size: .9rem; font-weight: 500; }
.alert-error   { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.alert-success { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.mb-6 { margin-bottom: 1.5rem; }

/* Icon + color pickers */
.icon-input-wrap { display: flex; align-items: center; gap: .5rem; }
.icon-preview { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--bg-page); border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; flex-shrink: 0; }
.icon-input-wrap input { flex: 1; }
.color-input-wrap { display: flex; align-items: center; gap: .5rem; }
.color-input-wrap input[type=color] { width: 40px; height: 38px; padding: .1rem; border-radius: 6px; border: 1px solid var(--border); cursor: pointer; flex-shrink: 0; }
.color-input-wrap input[type=text] { flex: 1; }

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-body { margin: 0; background: #0F1117; color: var(--text-primary); font-family: var(--font); display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
  width: 240px; background: #161B27; border-right: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column; flex-shrink: 0; position: fixed; top: 0; left: 0;
  height: 100vh; z-index: 200; transition: transform .25s ease;
}
.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar-brand { display: flex; align-items: center; gap: .5rem; color: var(--text-primary); font-weight: 700; font-size: 1rem; text-decoration: none; }
.brand-icon.sm { width: 28px; height: 28px; font-size: .75rem; }
.sidebar-close { display: none; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; }
.sidebar-nav { padding: 1rem .5rem; flex: 1; overflow-y: auto; }
.nav-section-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); padding: .75rem .75rem .25rem; }
.sidebar-link { display: flex; align-items: center; gap: .65rem; padding: .55rem .75rem; border-radius: 8px; color: var(--text-secondary); font-size: .875rem; text-decoration: none; transition: background .15s, color .15s; }
.sidebar-link:hover { background: rgba(255,255,255,.06); color: var(--text-primary); }
.sidebar-link.active { background: rgba(99,102,241,.18); color: var(--accent); font-weight: 600; }
.sidebar-link.text-danger { color: #EF4444; }
.sidebar-link.text-danger:hover { background: rgba(239,68,68,.1); }
.sidebar-divider { border: none; border-top: 1px solid rgba(255,255,255,.06); margin: .75rem 0; }

/* Main area */
.admin-main { flex: 1; margin-left: 240px; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar { background: #161B27; border-bottom: 1px solid rgba(255,255,255,.06); padding: .9rem 1.5rem; display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 100; }
.sidebar-toggle { display: none; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; }
.topbar-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); flex: 1; margin: 0; }
.topbar-right { display: flex; align-items: center; gap: .75rem; }
.topbar-user { display: flex; align-items: center; gap: .45rem; color: var(--text-muted); font-size: .875rem; }
.role-badge { background: rgba(99,102,241,.2); color: var(--accent); padding: .15rem .5rem; border-radius: 99px; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.admin-content { padding: 1.5rem; flex: 1; }

/* Overlay */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 150; }
.sidebar-overlay.active { display: block; }

/* Panels */
.admin-panel { background: #161B27; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; overflow: hidden; margin-bottom: 1.5rem; }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.07); flex-wrap: wrap; gap: .5rem; }
.panel-header h2 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin: 0; display: flex; align-items: center; gap: .5rem; }
.panel-header-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.admin-form { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.btn-primary-full { width: 100%; padding: .75rem; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: .95rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .5rem; transition: background .2s; }
.btn-primary-full:hover { background: var(--accent-hover); }
.btn-primary-sm { padding: .45rem .9rem; background: var(--accent); color: #fff; border-radius: 7px; font-size: .8rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.btn-sm-outline { padding: .4rem .85rem; border: 1px solid var(--border); color: var(--text-secondary); border-radius: 7px; font-size: .8rem; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.btn-sm-outline:hover { border-color: var(--accent); color: var(--accent); }
.settings-section-title { font-size: .95rem; font-weight: 700; color: var(--text-secondary); border-bottom: 1px solid var(--border); padding-bottom: .5rem; margin: .5rem 0 0; display: flex; align-items: center; gap: .5rem; }

/* Tables */
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th { background: rgba(255,255,255,.04); color: var(--text-muted); font-weight: 600; padding: .7rem 1rem; text-align: left; white-space: nowrap; }
.admin-table td { padding: .75rem 1rem; border-top: 1px solid rgba(255,255,255,.05); vertical-align: middle; color: var(--text-primary); }
.admin-table tr:hover td { background: rgba(255,255,255,.02); }
.table-empty { text-align: center; color: var(--text-muted); padding: 2rem !important; }
.table-link { color: var(--accent); text-decoration: none; font-size: .8rem; }
.table-link:hover { text-decoration: underline; }

/* Badges */
.badge { display: inline-block; padding: .2rem .55rem; border-radius: 99px; font-size: .72rem; font-weight: 700; }
.badge-admin   { background: rgba(99,102,241,.2); color: #818CF8; }
.badge-user    { background: rgba(156,163,175,.15); color: #9CA3AF; }
.badge-active  { background: rgba(16,185,129,.18); color: #34D399; }
.badge-blocked { background: rgba(239,68,68,.15); color: #F87171; }
.badge-warning { background: rgba(245,158,11,.15); color: #FCD34D; }
.badge-cat     { background: rgba(99,102,241,.12); color: #A5B4FC; }

/* Action buttons */
.action-btns { display: flex; gap: .35rem; flex-wrap: wrap; }
.btn-icon { width: 30px; height: 30px; border-radius: 6px; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; text-decoration: none; transition: opacity .15s; }
.btn-icon:hover { opacity: .8; }
.btn-icon.success { background: rgba(16,185,129,.15); color: #34D399; }
.btn-icon.warning { background: rgba(245,158,11,.15); color: #FCD34D; }
.btn-icon.danger  { background: rgba(239,68,68,.12); color: #F87171; }
.btn-icon.info    { background: rgba(99,102,241,.15); color: #818CF8; }

/* Stats grid */
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: #161B27; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 1.1rem 1.25rem; display: flex; align-items: center; gap: 1rem; }
.stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); }
.stat-lbl { font-size: .8rem; color: var(--text-muted); }

/* Two-col grid */
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media(max-width:768px){ .admin-grid-2 { grid-template-columns: 1fr; } }

/* Simple list */
.simple-list { list-style: none; padding: 0; margin: 0; }
.simple-list li { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.25rem; border-top: 1px solid rgba(255,255,255,.05); font-size: .875rem; }
.simple-list li.empty { color: var(--text-muted); font-size: .875rem; padding: 1rem 1.25rem; }

/* Quick actions */
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; padding: 1rem 1.25rem; }
.quick-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: 1rem; background: rgba(255,255,255,.04); border-radius: 10px; text-decoration: none; color: var(--text-secondary); font-size: .8rem; font-weight: 600; transition: background .15s, color .15s; }
.quick-action i { font-size: 1.2rem; color: var(--accent); }
.quick-action:hover { background: rgba(99,102,241,.12); color: var(--text-primary); }

/* Category manage list */
.cat-manage-list { list-style: none; padding: 0; margin: 0; }
.cat-manage-list li { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1.25rem; border-top: 1px solid rgba(255,255,255,.05); gap: .5rem; }
.cat-item-info { display: flex; align-items: center; gap: .75rem; }
.cat-icon-sm { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.cat-item-info strong { display: block; font-size: .875rem; color: var(--text-primary); }
.cat-item-info small { color: var(--text-muted); font-size: .75rem; }

/* Tool icon small */
.tool-icon-sm { width: 30px; height: 30px; background: rgba(99,102,241,.15); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); font-size: .8rem; }

/* Search form small */
.search-form-sm { display: flex; align-items: center; gap: .3rem; }
.search-form-sm input { background: var(--bg-page); border: 1px solid var(--border); border-radius: 7px; padding: .4rem .75rem; color: var(--text-primary); font-size: .85rem; width: 220px; outline: none; }
.search-form-sm input:focus { border-color: var(--accent); }
.search-form-sm button { background: var(--accent); border: none; border-radius: 7px; padding: .45rem .65rem; color: #fff; cursor: pointer; }

/* Pagination */
.pagination { display: flex; gap: .4rem; padding: 1rem 1.25rem; flex-wrap: wrap; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 7px; border: 1px solid var(--border); color: var(--text-muted); text-decoration: none; font-size: .85rem; transition: .15s; }
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
   NAV AUTH (desktop)
   ============================================================ */
.nav-auth { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.nav-btn-outline { padding: .4rem .9rem; border: 1px solid var(--border); border-radius: 8px; color: var(--text-secondary); font-size: .85rem; text-decoration: none; font-weight: 600; transition: .15s; }
.nav-btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.nav-btn-primary { padding: .4rem .9rem; background: var(--accent); color: #fff; border-radius: 8px; font-size: .85rem; text-decoration: none; font-weight: 600; transition: background .15s; }
.nav-btn-primary:hover { background: var(--accent-hover); }

/* User dropdown */
.nav-user-menu { position: relative; }
.nav-user-btn { background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 8px; padding: .4rem .8rem; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; }
.nav-user-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.user-dropdown { position: absolute; right: 0; top: calc(100% + 6px); background: #1E2435; border: 1px solid var(--border); border-radius: 10px; min-width: 160px; overflow: hidden; display: none; box-shadow: 0 8px 24px rgba(0,0,0,.3); z-index: 300; }
.user-dropdown.open { display: block; }
.user-dropdown a { display: flex; align-items: center; gap: .6rem; padding: .65rem 1rem; color: var(--text-secondary); text-decoration: none; font-size: .875rem; transition: background .15s; }
.user-dropdown a:hover { background: rgba(255,255,255,.06); color: var(--text-primary); }

/* ============================================================
   RESPONSIVE — Main site
   ============================================================ */

/* Tablet: hide some nav links, keep search visible */
@media (max-width: 1024px) {
  .nav { gap: 1rem; }
  .nav-links a { padding: .4rem .55rem; font-size: .82rem; }
  .nav-search { min-width: 180px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* Mobile: icon-based topbar */
@media (max-width: 768px) {
  /* Nav layout: logo | spacer | search-icon + hamburger */
  .nav { padding: .75rem 0; position: relative; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 200;
    flex-direction: column;
    background: #0F1B2D;
    border-top: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: .5rem 0 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-link {
    padding: .7rem 1.25rem; font-size: .9rem; color: rgba(255,255,255,.75);
    border-bottom: 1px solid rgba(255,255,255,.05); width: 100%;
    border-radius: 0;
  }
  .nav-links .nav-link:last-of-type { border-bottom: none; }
  .nav-links .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }

  /* Show drawer auth section */
  .nav-drawer-auth {
    display: flex; flex-direction: column;
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: .5rem; padding-top: .5rem;
  }
  .nav-drawer-auth a {
    padding: .7rem 1.25rem; font-size: .875rem; color: rgba(255,255,255,.6);
    border-bottom: none; display: flex; align-items: center; gap: .6rem;
  }
  .nav-drawer-auth a:hover { color: #fff; background: rgba(255,255,255,.06); }

  /* Hide desktop elements */
  .nav-search-desktop { display: none !important; }
  .nav-auth-desktop   { display: none !important; }

  /* Show mobile action buttons */
  .nav-mobile-actions { display: flex; margin-left: auto; }

  /* Stacked nav brand */
  /* Keep icon left, stack "Tools" / "Everyone" text to the right */
  .nav-brand { flex-direction: row; align-items: center; gap: .45rem; }
  .brand-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
  .brand-line1 { font-size: .9rem; font-weight: 800; }
  .brand-line2 { font-size: .9rem; font-weight: 800; }
  .nav-brand .brand-icon { width: 30px; height: 30px; font-size: .8rem; flex-shrink: 0; }

  /* Hero */
  .hero { padding: 2.5rem 0 2rem; overflow-x: hidden; }
  .hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .hero-sub { font-size: .875rem; }
  .hero-search-bar { flex-direction: column; border-radius: 12px; gap: 0; }
  .hero-search-bar input {
    border-right: none; border-bottom: 1px solid rgba(255,255,255,.15);
    border-radius: 12px 12px 0 0; padding: .85rem 1rem .85rem 2.8rem;
  }
  .hero-search-bar button { border-radius: 0 0 12px 12px; justify-content: center; width: 100%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .hero-stat .num { font-size: 1.6rem; }

  /* Sections */
  .tools-grid  { grid-template-columns: 1fr; }
  .coming-grid { grid-template-columns: repeat(2, 1fr); gap: .85rem; }
  .coming-card { padding: 1.1rem; }
  .coming-info p { -webkit-line-clamp: 2; }
  .coming-card-footer { gap: .3rem; }
  .cat-list    { gap: .35rem; flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; }
  .cat-chip    { font-size: .78rem; padding: .4rem .7rem; white-space: nowrap; flex-shrink: 0; }
  .cta-inner   { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-brand .nav-brand { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .footer-brand .brand-text { align-items: flex-start; }

  /* Prevent horizontal overflow */
  body { overflow-x: hidden; }
  .container { overflow-x: hidden; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.45rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .coming-grid { grid-template-columns: 1fr; }
  .hero-stat .num { font-size: 1.4rem; }
  .footer-bottom { flex-direction: column; gap: .75rem; text-align: center; }
}

/* ============================================================
   RESPONSIVE — Admin
   ============================================================ */
@media (max-width: 900px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .sidebar-toggle { display: block; }
  .sidebar-close { display: block; }
}

@media (max-width: 600px) {
  .admin-content { padding: 1rem; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
  .panel-header { flex-direction: column; align-items: flex-start; }
  .search-form-sm input { width: 140px; }
  .admin-table th:nth-child(6), .admin-table td:nth-child(6) { display: none; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .admin-topbar { padding: .75rem 1rem; }
}

/* Scope dark vars to admin and auth pages */
.admin-body { --text-muted: #64748B; --border: rgba(255,255,255,.1); }
.auth-page  { --text-muted: #64748B; --border: rgba(255,255,255,.1); }

/* ============================================================
   MOBILE SCROLLBAR HIDING (cat chips horizontal scroll)
   ============================================================ */
.cat-list::-webkit-scrollbar { display: none; }
.cat-list { -ms-overflow-style: none; scrollbar-width: none; }

/* Ensure site-header doesn't create overflow */
.site-header { overflow: visible; }
.site-header .container { overflow: visible; position: relative; }

/* Fix footer brand on mobile — stack icon + text vertically */
@media (max-width: 768px) {
  .footer-brand .nav-brand {
    flex-direction: row; align-items: center; gap: .5rem;
  }
  .footer-brand .brand-text {
    flex-direction: column; align-items: flex-start;
  }
  .footer-brand .brand-line1 { font-size: .95rem; }
  .footer-brand .brand-line2 { font-size: .65rem; }
}

/* ============================================================
   NAV DROPDOWN (desktop categories)
   ============================================================ */
.nav-link {
  font-size: .875rem; font-weight: 500;
  color: rgba(255,255,255,.65);
  padding: .4rem .7rem;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
  white-space: nowrap;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body);
  display: inline-flex; align-items: center; gap: .35rem;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.1); color: #fff; }

.nav-chevron { transition: transform .2s; }
.nav-dropdown-btn.active .nav-chevron { transform: rotate(180deg); }

.nav-dropdown-wrap { position: relative; }

.nav-dropdown {
  display: none;
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%);
  background: #1A2035;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: .6rem;
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  z-index: 500;
  min-width: 480px;
}
.nav-dropdown.open { display: block; }

.nav-dropdown-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .25rem;
}

.nav-drop-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .8rem;
  border-radius: 9px;
  text-decoration: none;
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  transition: background .15s, color .15s;
}
.nav-drop-item:hover { background: rgba(255,255,255,.07); color: #fff; }

.drop-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; flex-shrink: 0;
}
.drop-label { font-weight: 500; }

/* Mobile drawer extras */
.nav-drawer-extras { display: none; }

/* ============================================================
   STATIC PAGES
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.page-hero-title {
  font-family: var(--font-head); font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; color: var(--white); margin-bottom: .5rem;
}
.page-hero-sub { color: rgba(255,255,255,.55); font-size: 1rem; max-width: 600px; }

.page-body { padding: 3rem 0 4rem; background: var(--bg); }

.page-content {
  max-width: 820px;
  color: var(--text);
  line-height: 1.8;
}
.page-content h2 {
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700;
  color: var(--navy); margin: 2rem 0 .75rem;
  padding-bottom: .4rem; border-bottom: 2px solid var(--border);
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 1.25rem 0 .4rem; }
.page-content p  { margin-bottom: 1rem; color: #374151; }
.page-content a  { color: var(--accent); text-decoration: none; }
.page-content a:hover { text-decoration: underline; }

.page-list { padding-left: 1.4rem; margin-bottom: 1rem; }
.page-list li { margin-bottom: .5rem; color: #374151; }
.page-list li a { color: var(--accent); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
@media(max-width:700px){ .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form .form-group input,
.contact-form .form-group textarea,
.contact-form .form-group select {
  background: #fff; border: 1px solid #D1D5DB; border-radius: 8px;
  padding: .65rem .9rem; color: #111; font-size: .9rem; width: 100%;
  font-family: var(--font-body); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.contact-form .form-group label { font-size: .875rem; font-weight: 600; color: #374151; margin-bottom: .3rem; display: block; }
.contact-submit {
  padding: .75rem 1.5rem; background: var(--accent); color: #fff;
  border: none; border-radius: 9px; font-size: .95rem; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: .5rem;
  transition: background .2s; font-family: var(--font-body);
}
.contact-submit:hover { background: #2563EB; }

.contact-info h2 { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.contact-info p  { color: #6B7280; font-size: .9rem; margin-bottom: 1.5rem; }

.contact-detail {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: .9rem 0; border-top: 1px solid var(--border);
}
.contact-detail i { color: var(--accent); font-size: 1rem; margin-top: .15rem; flex-shrink: 0; }
.contact-detail strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: #9CA3AF; margin-bottom: .2rem; }
.contact-detail a, .contact-detail span { color: var(--navy); font-size: .9rem; font-weight: 500; text-decoration: none; }
.contact-detail a:hover { text-decoration: underline; }

/* Page alerts */
.page-alert {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1.5rem; font-size: .9rem;
}
.page-alert i { font-size: 1.1rem; margin-top: .1rem; flex-shrink: 0; }
.page-alert-success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #15803D; }
.page-alert-error   { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; }

/* Footer bottom links */
.footer-bottom-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom-links a { font-size: .8rem; color: rgba(255,255,255,.3); text-decoration: none; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.65); }

/* ============================================================
   MOBILE: hide dropdown, show drawer extras
   ============================================================ */
@media (max-width: 768px) {
  .nav-dropdown-wrap { display: none !important; }
  .nav-links > .nav-link { /* Home, About, Contact shown as normal links */ }
  .nav-drawer-extras {
    display: flex; flex-direction: column;
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: .4rem; padding-top: .4rem;
  }
  .drawer-section-label {
    font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: rgba(255,255,255,.3);
    padding: .6rem 1.25rem .25rem;
  }
  .drawer-cat-link { padding: .55rem 1.25rem !important; }

  .page-hero { padding: 2rem 0 1.5rem; }
  .page-body { padding: 2rem 0; }
  .page-content h2 { font-size: 1.15rem; }
  .footer-bottom { flex-direction: column; gap: .75rem; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}

/* ============================================================
   CAT CHIPS AS LINKS
   ============================================================ */
a.cat-chip {
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem 1rem; border-radius: 99px;
  border: 1px solid var(--border); background: var(--white);
  font-size: .82rem; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap; flex-shrink: 0;
}
a.cat-chip:hover,
a.cat-chip.active {
  background: var(--navy); color: #fff; border-color: var(--navy);
}

/* ============================================================
   LOAD MORE BUTTON
   ============================================================ */
.load-more-wrap {
  display: flex; justify-content: center;
  padding: 2.5rem 0 1rem;
}
.btn-load-more {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 2rem; border-radius: 99px;
  border: 2px solid var(--border); background: var(--white);
  color: var(--navy); font-family: var(--font-body);
  font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.btn-load-more:hover {
  border-color: var(--accent); color: var(--accent);
  box-shadow: 0 4px 16px rgba(59,130,246,.15);
}
.btn-load-more i { font-size: .85rem; }
.load-more-count {
  font-size: .78rem; font-weight: 400; color: var(--text-muted);
}
