/* ============================================
   ASHIS Web Utility — Main Stylesheet
   Color Palette: Orange · Yellow · Purple
   ============================================ */

:root {
  /* Core Brand Colors */
  --orange:        #f97316;
  --orange-light:  #fb923c;
  --orange-dark:   #ea580c;
  --yellow:        #fbbf24;
  --purple:        #8b5cf6;
  --purple-deep:   #6d28d9;

  /* Background System - Light & Premium */
  --bg-base:       #fafaf9;
  --bg-surface:    #ffffff;
  --bg-card:       #ffffff;
  --bg-card-hover: #f5f5f4;
  --bg-border:     #e7e5e4;

  /* Text */
  --text-primary:  #1c1917;
  --text-secondary:#44403c;
  --text-muted:    #78716c;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
  --grad-hero:  radial-gradient(circle at 50% -20%, rgba(249,115,22,0.05) 0%, transparent 70%);

  /* Shadows */
  --shadow-sm:   0 1px 2px rgba(0,0,0,.05);
  --shadow-card: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.12);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Animation */
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* Navbar height */
  --nav-h: 166px;

  /* Consistency Aliases (Backwards Compatibility) */
  --border:        var(--bg-border);
  --text:          var(--text-primary);
  --surface:       var(--bg-surface);
  --card:          var(--bg-card);
  --surface2:      #f1f1f0;
}

.nav-spacer {
  height: var(--nav-h);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--purple-deep); border-radius: 3px; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-border);
  display: flex;
  align-items: center;
  transition: height .35s var(--ease-out), background .3s var(--ease-out), box-shadow .3s var(--ease-out);
}

.navbar.scrolled {
  height: 76px;
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1240px;
  width: 100%;                  /* FIX: ensures full-width flex layout */
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ============ LOGO (image-based) ============ */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
  /* Pin logo to the top-left of the navbar */
  align-self: flex-start;
  padding-top: 12px;
}

.nav-logo-img {
  height: 150px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: height .35s var(--ease-out);
}

/* Slight shrink on scroll */
.navbar.scrolled .nav-logo-img {
  height: 64px;
}

/* Nav Search */
.nav-search {
  flex: 1;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f1f0;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px;
  transition: all .2s;
}

.nav-search:focus-within {
  background: #fff;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}

.nav-search svg { color: var(--text-muted); flex-shrink: 0; }

.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: .9rem;
  width: 100%;
}

.nav-search input::placeholder { color: var(--text-muted); }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all .2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-btn {
  padding: 10px 22px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 10px;
  transition: all .2s var(--ease-out);
  box-shadow: 0 4px 12px rgba(249,115,22,0.25);
}

.nav-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(249,115,22,0.35);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all .2s;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--bg-border);
  margin-top: 10px;
}

.mobile-menu.open { display: flex; }

.mobile-link {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: .95rem;
  transition: all .2s;
}

.mobile-link:hover { background: var(--bg-card); color: var(--text-primary); }

.mobile-link-btn {
  padding: 11px 14px;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-align: center;
  margin-top: 6px;
}

/* ============ BREADCRUMB ============ */
.breadcrumb { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  font-size: 0.85rem; 
  color: var(--text-muted); 
  margin-bottom: 24px; 
}
.breadcrumb a { 
  color: var(--text-muted); 
  text-decoration: none; 
  transition: color 0.2s; 
}
.breadcrumb a:hover { 
  color: var(--orange); 
}
.breadcrumb svg { 
  opacity: 0.5; 
}
.breadcrumb span { 
  color: var(--text-primary); 
  font-weight: 500; 
}

/* ============ HERO ============ */
.hero-section {
  position: relative;
  /* Top padding accounts for the tall navbar (120px logo + 8px padding × 2 = ~136px) */
  padding: 100px 0 80px;
  background: var(--grad-hero);
  overflow: hidden;
  animation: heroPulse 15s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { background-position: 50% 0%; opacity: 1; }
  50%      { background-position: 50% 10%; opacity: 0.95; }
}

/* Animated orbs */
.hero-bg-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  animation: floatOrb 10s ease-in-out infinite;
}

.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
  top: -200px; right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #f97316, transparent 70%);
  bottom: -150px; left: -80px;
  animation-delay: -3s;
}

.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #facc15, transparent 70%);
  top: 40%; left: 50%;
  animation-delay: -6s;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); opacity: .25; filter: blur(80px) hue-rotate(0deg); }
  33%       { transform: translateY(-30px) scale(1.05); opacity: .40; filter: blur(100px) hue-rotate(15deg); }
  66%       { transform: translateY(20px) scale(.95); opacity: .15; filter: blur(70px) hue-rotate(-15deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,.08);
  border: 1px solid rgba(249,115,22,.2);
  color: var(--orange-dark);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 24px;
  animation: fadeSlideUp .6s var(--ease-out) forwards;
}

.badge-dot {
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 20px;
  animation: fadeSlideUp .7s .1s var(--ease-out) both;
}

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  animation: fadeSlideUp .7s .2s var(--ease-out) both;
}

/* Hero Search */
.hero-search-wrap {
  animation: fadeSlideUp .7s .3s var(--ease-out) both;
  margin-bottom: 40px;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  border: 1.5px solid var(--bg-border);
  border-radius: 16px;
  padding: 10px 10px 10px 20px;
  box-shadow: var(--shadow-lg);
  transition: all .3s var(--ease-out);
}

.hero-search:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249,115,22,.1), var(--shadow-lg);
  transform: translateY(-2px);
}

.hero-search svg { color: var(--text-muted); flex-shrink: 0; }

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

.hero-search input::placeholder { color: var(--text-muted); }

.search-btn {
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  padding: 10px 22px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity .2s, transform .2s;
}

.search-btn:hover { opacity: .9; transform: translateY(-1px); }

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  animation: fadeSlideUp .7s .4s var(--ease-out) both;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--bg-border);
}

/* ============ CATEGORY PILLS ============ */
.category-pills-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--bg-border);
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  transition: top .35s var(--ease-out);
}

/* When navbar compacts on scroll, pills shift up */
.navbar.scrolled ~ .category-pills-section,
body.scrolled .category-pills-section {
  top: 56px;
}

.pills-wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.pills-wrap::-webkit-scrollbar { display: none; }

.pill {
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  color: var(--text-secondary);
  transition: all .2s;
}

.pill:hover { color: var(--text-primary); border-color: var(--orange); }

.pill.active {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
}

/* ============ TOOLS SECTION ============ */
.tools-section { padding: 60px 0 80px; }

.category-block { margin-bottom: 64px; }

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.cat-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cat-text     { background: rgba(250,204,21,.12); border: 1px solid rgba(250,204,21,.2); }
.cat-dev      { background: rgba(168,85,247,.12); border: 1px solid rgba(168,85,247,.2); }
.cat-security { background: rgba(249,115,22,.12); border: 1px solid rgba(249,115,22,.2); }
.cat-image    { background: rgba(250,204,21,.12); border: 1px solid rgba(250,204,21,.2); }
.cat-seo      { background: rgba(168,85,247,.12); border: 1px solid rgba(168,85,247,.2); }
.cat-network  { background: rgba(249,115,22,.12); border: 1px solid rgba(249,115,22,.2); }

.cat-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cat-desc { color: var(--text-muted); font-size: .9rem; }

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* Tool Card in Grid (with animation) */
.tools-grid .tool-card {
  opacity: 0;
  transform: translateY(20px);
}

.tools-grid .tool-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Base Tool Card Style (Reset/Shared) */
.tool-card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tool-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(249,115,22,0.05), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.tool-card:hover {
  border-color: var(--orange);
  background: #ffffff;
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

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

.tool-card-icon {
  width: 54px; height: 54px;
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.tool-card:hover .tool-card-icon {
  transform: rotate(5deg) scale(1.1);
  background: rgba(249,115,22,0.15);
}

.tool-card-body { position: relative; z-index: 2; }

.tool-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.tool-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.tool-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--orange-light);
  font-size: 0.88rem;
  font-weight: 600;
  transition: gap 0.2s;
  position: relative;
  z-index: 2;
}

.tool-card:hover .tool-card-btn { gap: 12px; }

/* ============ FEATURES SECTION ============ */
.features-section {
  padding: 80px 0;
  border-top: 1px solid var(--bg-border);
  background: linear-gradient(to bottom, transparent, rgba(168,85,247,.05), transparent);
}

.section-heading-center {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading-center h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.section-heading-center p { color: var(--text-muted); font-size: 1rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all 0.4s var(--ease-out);
  text-align: center;
}

.feature-card:hover {
  border-color: rgba(139,92,246,0.3);
  background: #ffffff;
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.12), 0 0 20px rgba(139,92,246,0.08);
}

.feature-icon {
  width: 64px; height: 64px;
  background: rgba(139,92,246,0.1);
  border-radius: 100px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(139,92,246,0.2);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============ FOOTER ============ */
.site-footer {
  background: #ffffff;
  padding: 100px 0 60px;
  border-top: 1px solid var(--bg-border);
  color: var(--text-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(5, 1fr);
  gap: 48px;
  margin-bottom: 80px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 280px;
}

.footer-social { display: flex; gap: 10px; }

.social-link {
  width: 36px; height: 36px;
  background: #f1f1f0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all .2s;
}

.social-link:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: .88rem;
  transition: color .2s;
}

.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid var(--bg-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p { color: var(--text-muted); font-size: .85rem; }
.footer-note { color: var(--text-muted) !important; opacity: .6; }

/* ============ TOOL PAGE LAYOUT ============ */
.tool-page-hero {
  padding: 100px 0 40px;  /* matches hero-section top padding */
  text-align: center;
  background: var(--grad-hero);
}

.tool-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.tool-breadcrumb a { color: var(--orange-light); }
.tool-breadcrumb span { opacity: .5; }

.tool-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.tool-page-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

.tool-workspace {
  max-width: 1000px;
  margin: 48px auto;
  padding: 0 24px 80px;
}

.tool-panel {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 24px;
}

/* Textarea / Input styles */
.tool-textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: .9rem;
  line-height: 1.6;
  padding: 16px;
  resize: vertical;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.tool-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}

.tool-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: .95rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.tool-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}

.label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: .3px;
}

/* Button styles */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .9rem; font-weight: 600; cursor: pointer; border: none; transition: all .2s; }

.btn-primary { background: var(--grad-brand); color: #fff; }
.btn-primary:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(249,115,22,.3); }

.btn-secondary { background: var(--bg-surface); border: 1px solid var(--bg-border); color: var(--text-secondary); }
.btn-secondary:hover { border-color: var(--orange); color: var(--orange-light); }

.btn-ghost { background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.25); color: var(--purple); }
.btn-ghost:hover { background: var(--purple); color: #fff; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.tool-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.error-msg {
  padding: 12px 16px;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: var(--radius-sm);
  color: #dc2626;
  font-size: .88rem;
  margin-top: 10px;
  display: none;
}

.success-msg {
  padding: 12px 16px;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: var(--radius-sm);
  color: #16a34a;
  font-size: .88rem;
  margin-top: 10px;
  display: none;
}

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

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav-search  { display: none; }
  .nav-links   { display: none; }
  .mobile-toggle { display: flex; }

  .nav-logo-img { height: 34px; }
  .navbar.scrolled .nav-logo-img { height: 28px; }

  .hero-section    { padding: 90px 0 60px; }
  .tool-page-hero  { padding: 90px 0 40px; }
  .hero-stats      { gap: 20px; }
  .stat-num        { font-size: 1.4rem; }

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

  .footer-grid   { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  :root { --nav-h: 56px; }

  .hero-title  { font-size: 2.2rem; }
  .hero-search { padding: 10px 10px 10px 16px; }
  .search-btn  { padding: 8px 14px; font-size: .8rem; }
  .tool-panel  { padding: 20px; }

  .nav-logo-img { height: 30px; }
  .navbar.scrolled .nav-logo-img { height: 26px; }
}
