
/* Optimized Navigation */
.tb-header{background:#fff;border-bottom:1px solid #e5e7eb;padding:12px 0;position:sticky;top:0;z-index:999;}
.tb-header-inner{display:flex;justify-content:space-between;align-items:center;}
.tb-nav a{margin-left:20px;color:#374151;text-decoration:none;font-weight:500;}
.tb-nav a:hover{color:#111827;}

/* Optimized Footer */
.site-footer{background:#111827;color:#e5e7eb;padding:20px 0;margin-top:40px;}
.footer-inner{display:flex;justify-content:space-between;align-items:center;}
.footer-nav a{margin-left:15px;color:#e5e7eb;text-decoration:none;}
.footer-nav a:hover{text-decoration:underline;}

/* Minimal Hero */
.hero{padding:60px 20px;text-align:center;}
.hero h1{font-size:32px;color:#111827;margin-bottom:10px;}
.hero p{color:#4b5563;font-size:16px;margin-bottom:20px;}

/* ToolsBundle multi-tools v5 – light, modern UI */

:root {
  --bg-page: #f3f4f6;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --border-subtle: #e5e7eb;
  --accent: #16a34a;
  --accent-soft: #dcfce7;
  --accent-blue: #3b82f6;
  --accent-teal: #0f766e;
  --text-main: #111827;
  --text-muted: #6b7280;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(59,130,246,0.06) 0, transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(45,212,191,0.06) 0, transparent 50%),
    var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 18px;
}

.app-shell {
  width: 100%;
  max-width: 1180px;
  background: var(--surface);
  border-radius: 22px;
  padding: 18px 18px 22px;
  box-shadow:
    0 18px 45px rgba(15,23,42,0.06),
    0 0 0 1px rgba(15,23,42,0.03);
}

@media (min-width: 768px) {
  .app-shell {
    padding: 20px 22px 26px;
  }
}

/* Header */

.app-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 600;
}

.app-title-logo {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, rgba(59,130,246,0.5), transparent 55%),
              radial-gradient(circle at 80% 80%, rgba(16,185,129,0.5), transparent 55%);
  border: 1px solid rgba(148,163,184,0.7);
}

.app-title span.badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #bbf7d0;
  font-weight: 600;
}

.app-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.app-nav {
  display: inline-flex;
  gap: 4px;
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid var(--border-subtle);
}

.app-nav a {
  text-decoration: none;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text-muted);
}

.app-nav a.active {
  background: #111827;
  color: #f9fafb;
}

/* Layout */

.app-main {
  display: grid;
  gap: 18px;
}

@media (min-width: 1000px) {
  .app-main {
    grid-template-columns: 1fr 1fr; /* balanced columns */
    align-items: start;
  }
}

/* Hero */

.hero-card {
  background: linear-gradient(135deg, #f9fafb, #eff6ff);
  border-radius: 18px;
  padding: 14px 14px 16px;
  border: 1px solid var(--border-subtle);
}

.hero-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.hero-title {
  font-size: 1.28rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.hero-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.pill {
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
}

.pill.secondary {
  background: #ecfdf3;
  color: #15803d;
}

.pill.gray {
  background: #f3f4f6;
  color: #4b5563;
}

/* Chips */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 4px;
}

.chip {
  font-size: 0.75rem;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-soft);
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
}

.chip.active {
  background: #111827;
  color: #f9fafb;
  border-color: #111827;
}

/* Preview */

.preview-box {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px dashed #d1d5db;
  background: var(--surface-soft);
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.preview-inner {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-inner img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 10px;
}

.preview-placeholder {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Card */

.card {
  background: var(--surface);
  border-radius: 18px;
  padding: 14px 14px 16px;
  border: 1px solid var(--border-subtle);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 0.96rem;
  font-weight: 600;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 14px;
  font-size: 0.86rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.btn-primary {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ffffff;
}

.btn-primary:disabled {
  opacity: 0.75;
  cursor: default;
}

.btn-outline {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* Form */

.form-grid {
  display: grid;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
}

.field label {
  color: var(--text-muted);
}

.field input[type="file"],
.field textarea {
  background: var(--surface-soft);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  padding: 7px 9px;
  font-size: 0.86rem;
  color: var(--text-main);
}

.field textarea {
  min-height: 145px;
  resize: vertical;
}

.field input::file-selector-button {
  border: none;
  background: #ffffff;
  border-radius: 999px;
  border-right: 1px solid var(--border-subtle);
  padding: 6px 10px;
  margin-right: 8px;
  cursor: pointer;
  font-size: 0.8rem;
}

/* Result & error */

.result {
  margin-top: 10px;
  font-size: 0.83rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.result-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.result-box {
  background: var(--surface-soft);
  border-radius: 10px;
  padding: 8px 9px;
  border: 1px solid var(--border-subtle);
}

.error {
  font-size: 0.8rem;
  color: #b91c1c;
  background: #fee2e2;
  border-radius: 10px;
  padding: 6px 8px;
  border: 1px solid #fecaca;
  margin-top: 4px;
}

/* Home page sections */

.section-title {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 14px 0 6px;
  color: var(--accent-teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.tool-grid {
  display: grid;
  gap: 10px;
}

@media (min-width: 768px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tool-card {
  background: var(--surface-soft);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  padding: 10px 11px 11px;
}

.tool-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}

.tool-card-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.tool-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tool-card-footer {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-pill {
  font-size: 0.72rem;
  padding: 3px 7px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #1d4ed8;
}

/* Viral tools highlight */
.tool-card-viral {
  border-color: rgba(234, 179, 8, 0.45);
  background: #fffbeb;
}

.category-pill-viral {
  background: #fef3c7;
  color: #92400e;
}

.muted {
  color: var(--text-muted);
  font-size: 0.78rem;
}


/* ===== ToolsBundle Navigation Bar (v2.2) ===== */
.tb-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}
.tb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tb-logo img {
  height: 42px;
  width: auto;
}
.tb-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.tb-link {
  font-size: 15px;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
}
.tb-link:hover {
  color: #111827;
}
.tb-btn {
  padding: 8px 16px;
  background: #2563eb;
  color: #fff !important;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
}
.tb-btn:hover {
  background: #1d4ed8;
}
@media (max-width: 640px) {
  .tb-nav { gap: 14px; }
  .tb-link { font-size: 14px; }
  .tb-logo img { height: 34px; }
}
