/* ==========================================================================
   Pro Logo Resizer — Shared Design System
   Dark, premium, "creative-tool" aesthetic. Used by every tool page.
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Surfaces */
  --bg-0: #0E0F13;
  --bg-1: #14161D;
  --panel: #181B22;
  --panel-2: #1F232C;
  --panel-3: #262B35;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #ECEEF3;
  --text-dim: #A6ACBB;
  --text-mute: #6B7280;

  /* Brand */
  --brand: #6366F1;
  --brand-2: #818CF8;
  --brand-ink: #3E41AD;
  --accent: #38BDF8;
  --success: #10B981;
  --danger: #F0506E;

  --grad: linear-gradient(135deg, #6366F1 0%, #38BDF8 100%);
  --grad-text: linear-gradient(120deg, #818CF8 0%, #38BDF8 60%, #5EEAD4 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 70px;

  --shadow-1: 0 1px 0 rgba(255,255,255,0.05) inset, 0 18px 40px -24px rgba(0,0,0,0.8);
  --shadow-2: 0 24px 60px -28px rgba(0,0,0,0.85);
  --ring: 0 0 0 3px rgba(99, 102, 241, 0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  padding-top: var(--nav-h);
  background:
    radial-gradient(1100px 560px at 82% -8%, rgba(99,102,241,0.22), transparent 60%),
    radial-gradient(900px 520px at -8% 12%, rgba(56,189,248,0.14), transparent 55%),
    radial-gradient(800px 600px at 50% 120%, rgba(94,234,212,0.08), transparent 60%),
    var(--bg-0);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand-2); }
img { max-width: 100%; }
::selection { background: rgba(99,102,241,0.35); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

* { scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: 20px; border: 2px solid transparent; background-clip: content-box; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 0; z-index: 2000; font-weight: 600;
}
.skip-link:focus { left: 0; }

.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)) , var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1);
}

/* ===== TOP NAVIGATION ===== */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  background: rgba(14, 15, 19, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 18px; padding: 0 28px; z-index: 1000;
}

.brand-lockup {
  display: inline-flex; align-items: center; flex: 0 0 auto;
  padding: 8px 14px; border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f4f6fb);
  box-shadow: 0 6px 18px -8px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand-lockup:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -10px rgba(99,102,241,0.55), 0 0 0 1px rgba(255,255,255,0.08); }
.brand-lockup img { height: 34px; width: auto; display: block; }

.site-nav .spacer { flex: 1; }

/* Tools dropdown menu */
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 9px 14px; border-radius: 10px; color: var(--text-dim); text-decoration: none;
  font-size: 14px; font-weight: 600; transition: all 0.15s; background: transparent; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; font-family: inherit;
}
.nav-link:hover, .nav-link.active { color: #fff; background: var(--panel-2); }

.nav-dropdown { position: relative; }
.nav-dropdown > .nav-link .caret { font-size: 11px; transition: transform 0.2s; }
.nav-dropdown.open > .nav-link .caret { transform: rotate(180deg); }
.dropdown-panel {
  position: absolute; top: calc(100% + 10px); right: 0; width: 560px; max-width: 90vw;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-2);
  padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all 0.18s; z-index: 1001;
}
.nav-dropdown.open .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 11px;
  text-decoration: none; transition: background 0.15s;
}
.dropdown-item:hover { background: var(--panel-2); }
.dropdown-item .di-icon {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; background: rgba(99,102,241,0.14); border: 1px solid rgba(99,102,241,0.26);
}
.dropdown-item .di-title { font-size: 13.5px; font-weight: 700; color: var(--text); }
.dropdown-item .di-desc { font-size: 11.5px; color: var(--text-mute); line-height: 1.4; margin-top: 2px; }

.site-nav .social-links { display: flex; align-items: center; gap: 10px; }
.site-nav .social-icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line);
  cursor: pointer; transition: all 0.2s; color: var(--text-dim); font-size: 16px; text-decoration: none; font-weight: 700;
}
.site-nav .social-icon:hover { color: #fff; border-color: var(--brand); background: var(--panel-3); transform: translateY(-1px); }

.site-nav .cta-btn {
  padding: 12px 20px; background: var(--grad); color: #fff; border: none;
  border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all 0.2s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 22px -10px rgba(99,102,241,0.9); white-space: nowrap;
}
.site-nav .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(99,102,241,0.95); filter: brightness(1.05); }

.nav-toggle { display: none; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); width: 42px; height: 42px; border-radius: 11px; font-size: 18px; cursor: pointer; }

/* ===== HERO ===== */
.hero { text-align: center; padding: 52px 24px 8px; max-width: 920px; margin: 0 auto; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
  color: var(--brand-2); background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.28);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 20px; letter-spacing: 0.3px; backdrop-filter: blur(6px);
}
.hero h1 {
  font-size: clamp(30px, 5.2vw, 52px); font-weight: 900; letter-spacing: -1.1px;
  color: #fff; line-height: 1.06; margin-bottom: 16px;
}
.hero h1 .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: clamp(15px, 2.3vw, 18px); color: var(--text-dim); max-width: 660px; margin: 0 auto 22px; }

.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.trust-badges span {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--text-dim);
  background: rgba(255,255,255,0.03); border: 1px solid var(--line); padding: 8px 15px; border-radius: 999px; backdrop-filter: blur(6px);
}

/* ===== BREADCRUMB ===== */
.breadcrumb { max-width: 1392px; margin: 22px auto 0; padding: 0 24px; font-size: 13px; color: var(--text-mute); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--text-dim); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--brand-2); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--text-mute); }
.breadcrumb [aria-current] { color: var(--text); }

/* ===== GENERIC TOOL LAYOUT (2-column: canvas + settings) ===== */
.tool-wrap { max-width: 1200px; margin: 26px auto 0; padding: 0 24px; }
.tool-grid { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 20px; align-items: start; }
.tool-aside { position: sticky; top: calc(var(--nav-h) + 18px); padding: 22px; }

/* ===== HOME 3-COLUMN LAYOUT ===== */
.main-container { display: flex; gap: 20px; max-width: 1440px; margin: 32px auto 0; padding: 0 24px; align-items: flex-start; }
.left-sidebar, .right-sidebar { padding: 22px; position: sticky; top: calc(var(--nav-h) + 18px); }
.left-sidebar { width: 232px; flex: 0 0 232px; }
.right-sidebar { width: 332px; flex: 0 0 332px; }
.center-stage { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.sidebar-section { margin-bottom: 26px; }
.sidebar-section:last-child { margin-bottom: 0; }
.sidebar-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text-mute); margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.sidebar-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.preset-btn {
  padding: 11px 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 12.5px; font-weight: 700; color: var(--text); cursor: pointer; transition: all 0.16s; text-align: center; line-height: 1.3;
}
.preset-btn small { display: block; font-size: 10px; font-weight: 500; color: var(--text-mute); margin-top: 3px; }
.preset-btn:hover { border-color: var(--line-2); background: var(--panel-3); transform: translateY(-1px); }
.preset-btn.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -12px rgba(99,102,241,0.95); }
.preset-btn.active small { color: rgba(255,255,255,0.85); }

.quick-action-btn {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 14px; margin-bottom: 9px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; transition: all 0.16s; text-align: left;
}
.quick-action-btn:last-child { margin-bottom: 0; }
.quick-action-btn:hover { border-color: var(--brand); background: var(--panel-3); color: #fff; transform: translateX(2px); }

/* ===== UPLOAD ZONE ===== */
.upload-zone {
  border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 46px 20px; text-align: center;
  cursor: pointer; transition: all 0.2s; margin-bottom: 20px;
  background: linear-gradient(180deg, rgba(99,102,241,0.04), rgba(255,255,255,0)) , var(--panel);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--brand); background: linear-gradient(180deg, rgba(99,102,241,0.12), rgba(56,189,248,0.04)), var(--panel);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}
.upload-zone.drag-over { transform: scale(1.005); }
.upload-icon {
  width: 64px; height: 64px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center;
  font-size: 30px; border-radius: 18px; background: rgba(99,102,241,0.14); border: 1px solid rgba(99,102,241,0.28);
}
.upload-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 5px; letter-spacing: -0.2px; }
.upload-subtitle { font-size: 13.5px; color: var(--text-dim); margin-bottom: 10px; }
.upload-subtitle b { color: var(--brand-2); }
.upload-hint { font-size: 12px; color: var(--text-mute); }
.hidden-file { display: none; }

/* ===== THUMBNAILS ===== */
.thumbnail-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.thumbnail-strip:empty { display: none; }
.thumbnail {
  position: relative; width: 86px; height: 86px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line); overflow: visible; transition: all 0.16s; background: var(--panel-2);
}
.thumbnail.selected { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99,102,241,0.25); }
.thumbnail img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; padding: 4px; }
.checker {
  background:
    linear-gradient(45deg, #2a2f3a 25%, transparent 25%), linear-gradient(-45deg, #2a2f3a 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2a2f3a 75%), linear-gradient(-45deg, transparent 75%, #2a2f3a 75%);
  background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}
.thumbnail-delete {
  position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; background: var(--danger);
  color: #fff; border: 2px solid var(--bg-0); border-radius: 50%; cursor: pointer; font-weight: bold;
  font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.thumbnail-delete:hover { transform: scale(1.12); }

/* ===== STAGE / PREVIEW ===== */
.stage-card { overflow: hidden; margin-bottom: 20px; }
.stage-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.stage-card-head h2 { font-size: 13px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 1px; }
.dim-pill { font-size: 12px; font-weight: 700; color: var(--brand-2); background: rgba(99,102,241,0.14); border: 1px solid rgba(99,102,241,0.28); padding: 5px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }

.preview-container { padding: 28px; min-height: 340px; display: flex; align-items: center; justify-content: center; position: relative; }
.preview-empty { text-align: center; color: var(--text-mute); }
.preview-empty .pe-icon { font-size: 42px; margin-bottom: 10px; opacity: 0.5; }
.preview-canvas, canvas.preview-canvas {
  max-width: 100%; max-height: 420px; border-radius: 10px; box-shadow: var(--shadow-2);
  background:
    linear-gradient(45deg, #2a2f3a 25%, transparent 25%), linear-gradient(-45deg, #2a2f3a 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2a2f3a 75%), linear-gradient(-45deg, transparent 75%, #2a2f3a 75%);
  background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

/* ===== BUTTONS ===== */
.action-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.btn {
  padding: 14px 22px; border-radius: 13px; font-weight: 700; font-size: 14px; border: none; cursor: pointer;
  transition: all 0.18s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; flex: 1 1 auto; font-family: inherit;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none !important; filter: none !important; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 28px -12px rgba(99,102,241,0.95); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(99,102,241,1); filter: brightness(1.06); }
.btn-secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); }
.btn-secondary:hover:not(:disabled) { background: var(--panel-3); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.btn-success { background: linear-gradient(135deg, #10B981, #34D399); color: #04241a; box-shadow: 0 12px 28px -12px rgba(16,185,129,0.85); }
.btn-success:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--line); }
.btn-ghost:hover:not(:disabled) { color: #fff; border-color: var(--line-2); }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 10px; }

/* ===== OUTPUT GRID ===== */
.output-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.output-head:empty { display: none; }
.output-head h2 { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -0.3px; }
.output-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(154px, 1fr)); gap: 16px; }
.output-item { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: all 0.2s; }
.output-item:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); border-color: var(--line-2); }
.output-image {
  width: 100%; height: 132px; object-fit: contain; padding: 12px;
  background:
    linear-gradient(45deg, #23272f 25%, transparent 25%), linear-gradient(-45deg, #23272f 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #23272f 75%), linear-gradient(-45deg, transparent 75%, #23272f 75%);
  background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.output-meta { padding: 10px 12px 0; font-size: 11px; color: var(--text-mute); text-align: center; }
.output-meta b { color: var(--text); display: block; font-size: 12px; word-break: break-all; margin-bottom: 2px; }
.output-link {
  display: block; margin: 10px; padding: 10px; background: rgba(99,102,241,0.14); border: 1px solid rgba(99,102,241,0.28);
  border-radius: 9px; text-align: center; color: var(--brand-2); text-decoration: none; font-weight: 700; font-size: 12px; cursor: pointer; transition: all 0.15s;
}
.output-link:hover { background: var(--grad); color: #fff; border-color: transparent; }

/* ===== SETTINGS / FORM CONTROLS ===== */
.settings-section { margin-bottom: 6px; }
.settings-header {
  display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 15px 0;
  border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text); user-select: none;
}
.settings-header:hover { color: var(--brand-2); }
.chevron { display: inline-block; transition: transform 0.25s; color: var(--text-mute); font-size: 16px; }
.chevron.open { transform: rotate(180deg); }
.settings-content { padding-top: 18px; max-height: 1000px; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s; }
.settings-content.collapsed { max-height: 0; padding-top: 0; opacity: 0; }

.aside-title { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 4px; letter-spacing: -0.2px; }
.aside-sub { font-size: 12.5px; color: var(--text-mute); margin-bottom: 18px; }

.input-group { margin-bottom: 16px; }
.input-group:last-child { margin-bottom: 0; }
.input-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

input[type="number"], input[type="text"], input[type="url"], input[type="email"], input[type="color"], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px;
  font-family: inherit; color: var(--text); transition: all 0.15s; background: var(--panel-2);
}
textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--text-mute); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); background: var(--panel-3); }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A6ACBB' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; cursor: pointer; }
select option { background: var(--panel-2); color: var(--text); }
input[type="range"] { width: 100%; cursor: pointer; accent-color: var(--brand); padding: 0; background: transparent; }
input[type="color"] { height: 44px; padding: 4px; cursor: pointer; }

.checkbox-group { display: flex; align-items: center; gap: 11px; margin: 14px 0 0; padding: 12px 13px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }
input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--brand); flex: 0 0 auto; }
.checkbox-group label { font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer; margin: 0; }
.range-display { font-size: 12px; color: var(--text-dim); margin-top: 7px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Segmented control */
.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 4px; gap: 4px; width: 100%; }
.seg button {
  flex: 1; padding: 9px 8px; border: none; background: transparent; color: var(--text-dim); font-weight: 700; font-size: 12.5px;
  border-radius: 8px; cursor: pointer; transition: all 0.15s; font-family: inherit;
}
.seg button.active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px -8px rgba(99,102,241,0.9); }
.seg button:not(.active):hover { color: #fff; background: var(--panel-3); }

/* Swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 30px; height: 30px; border-radius: 9px; cursor: pointer; border: 2px solid var(--line-2); transition: transform 0.12s; }
.swatch:hover { transform: scale(1.12); }
.swatch.active { box-shadow: var(--ring); }

/* Copybox (for code/snippets) */
.copybox { position: relative; background: #0b0d12; border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px; margin-top: 10px; }
.copybox pre { margin: 0; overflow-x: auto; font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: #C9D1E3; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.copybox .copy-btn { position: absolute; top: 10px; right: 10px; }

.help-note { font-size: 12.5px; color: var(--text-mute); line-height: 1.6; background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 10px; padding: 12px 14px; margin-top: 14px; }
.help-note b { color: var(--text-dim); }

.empty-state { text-align: center; color: var(--text-mute); padding: 40px 20px; }
.empty-state .es-icon { font-size: 42px; margin-bottom: 10px; opacity: 0.5; }

/* ===== TOOLS HUB ===== */
.section-wrap { max-width: 1392px; margin: 60px auto 0; padding: 0 24px; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; color: #fff; letter-spacing: -0.6px; margin-bottom: 10px; }
.section-head p { color: var(--text-dim); font-size: 16px; max-width: 560px; margin: 0 auto; }

.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.hub-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; text-decoration: none; transition: all 0.2s; position: relative; overflow: hidden; }
.hub-card::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity 0.2s; }
.hub-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 22px 44px -22px rgba(99,102,241,0.6); }
.hub-card:hover::before { opacity: 0.07; }
.hub-icon { width: 50px; height: 50px; flex: 0 0 auto; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: rgba(99,102,241,0.14); border: 1px solid rgba(99,102,241,0.26); position: relative; }
.hub-card h3 { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 5px; position: relative; }
.hub-card p { font-size: 13px; color: var(--text-dim); line-height: 1.55; position: relative; margin: 0; }
.hub-card .badge-soon { position: relative; font-size: 10px; font-weight: 700; color: var(--brand-2); }

/* ===== RELATED TOOLS ===== */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.related-card { display: flex; gap: 12px; align-items: center; padding: 16px; text-decoration: none; transition: all 0.2s; }
.related-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.related-card .rc-icon { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 19px; background: rgba(99,102,241,0.14); border: 1px solid rgba(99,102,241,0.26); }
.related-card strong { font-size: 13.5px; color: #fff; font-weight: 700; display: block; }
.related-card span { font-size: 11.5px; color: var(--text-mute); }

/* ===== GUIDE / CONTENT SECTION ===== */
.guide-section { padding: 52px 48px; max-width: 1392px; margin: 56px auto 0; }
.guide-section h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; color: #fff; margin: 0 0 22px; line-height: 1.15; letter-spacing: -0.5px; }
.guide-section h3 { font-size: 19px; font-weight: 800; color: #fff; margin: 36px 0 12px; letter-spacing: -0.3px; }
.guide-section h3:first-of-type { margin-top: 0; }
.guide-section p { font-size: 15px; color: var(--text-dim); margin: 0 0 16px; line-height: 1.8; }
.guide-section ul, .guide-section ol { margin: 0 0 20px 24px; }
.guide-section li { font-size: 15px; color: var(--text-dim); margin: 9px 0; line-height: 1.65; }
.guide-section li::marker { color: var(--brand); }
.guide-section strong { color: var(--text); font-weight: 700; }
.guide-section a { color: var(--brand-2); text-decoration: none; font-weight: 600; }
.guide-section a:hover { text-decoration: underline; }

.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { margin: 0 0 8px; font-size: 16px; color: #fff; }
.faq-item p { margin: 0; }

.blog-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 30px 0; }
.blog-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 24px; text-decoration: none; transition: all 0.2s; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.blog-card::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity 0.2s; }
.blog-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 20px 40px -20px rgba(99,102,241,0.6); }
.blog-card:hover::before { opacity: 0.08; }
.blog-card h4 { color: #fff; font-size: 16px; font-weight: 800; margin: 0 0 8px; position: relative; }
.blog-card p { color: var(--text-dim); font-size: 13.5px; margin: 0; line-height: 1.6; position: relative; }

.callout { background: var(--grad); padding: 32px; margin: 36px 0 0; border-radius: 18px; color: #fff; box-shadow: 0 24px 50px -24px rgba(99,102,241,0.8); position: relative; overflow: hidden; }
.callout h4 { color: #fff; font-size: 19px; font-weight: 800; margin: 0 0 8px; }
.callout p { color: rgba(255,255,255,0.92); margin: 0; font-size: 15px; line-height: 1.65; }
.callout a { color: #fff; text-decoration: underline; font-weight: 800; }

/* ===== MODAL ===== */
#lead-modal { position: fixed; inset: 0; background: rgba(5, 6, 10, 0.75); display: flex; align-items: center; justify-content: center; z-index: 99999; padding: 20px; animation: fadeIn 0.3s ease-out; backdrop-filter: blur(8px); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
#lead-modal .card { position: relative; background: var(--panel); border: 1px solid var(--line-2); border-radius: 22px; padding: 48px 40px; max-width: 480px; width: 100%; text-align: center; box-shadow: var(--shadow-2); animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
#lead-modal h2 { font-size: 26px; font-weight: 900; color: #fff; margin: 0 0 12px; letter-spacing: -0.4px; }
#lead-modal .subheading { font-size: 16px; color: var(--text-dim); margin: 0 0 20px; line-height: 1.6; font-weight: 500; }
#lead-modal .description { font-size: 14.5px; color: var(--text-mute); margin: 0 0 28px; line-height: 1.7; }
#lead-modal .description strong { color: var(--text); }
#lead-modal .buttons { display: flex; gap: 12px; flex-direction: column; }
#lead-modal .cta-btn { padding: 14px 28px; border-radius: 13px; text-decoration: none; font-weight: 700; border: none; cursor: pointer; font-size: 15px; transition: all 0.2s; }
#lead-modal .cta-btn.primary { background: var(--grad); color: #fff; box-shadow: 0 12px 28px -12px rgba(99,102,241,0.95); }
#lead-modal .cta-btn.primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
#lead-modal .cta-btn.secondary { background: var(--panel-2); color: var(--text-dim); border: 1px solid var(--line); }
#lead-modal .cta-btn.secondary:hover { border-color: var(--line-2); color: var(--text); }
#lead-modal .close-btn { position: absolute; top: 16px; right: 16px; background: var(--panel-2); border: 1px solid var(--line); font-size: 22px; cursor: pointer; color: var(--text-dim); width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 11px; transition: all 0.2s; }
#lead-modal .close-btn:hover { color: #fff; background: var(--panel-3); }

/* ===== TOAST ===== */
#toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(140%); background: var(--panel-3); color: #fff; padding: 14px 22px; border-radius: 13px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; z-index: 100000; box-shadow: var(--shadow-2); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); max-width: 90vw; }
#toast.show { transform: translateX(-50%) translateY(0); }

/* ===== FOOTER ===== */
footer.site-footer { padding: 56px 24px 40px; border-top: 1px solid var(--line); margin-top: 64px; background: rgba(0,0,0,0.2); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .webteqno-logo { height: 44px; width: auto; margin-bottom: 14px; opacity: 0.9; border-radius: 12px; }
.footer-brand .brand { font-weight: 900; font-size: 18px; color: #fff; margin-bottom: 8px; }
.footer-brand .tagline { font-size: 13.5px; color: var(--text-mute); max-width: 280px; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-mute); margin-bottom: 14px; font-weight: 700; }
.footer-col a { display: block; color: var(--text-dim); text-decoration: none; font-weight: 500; font-size: 14px; margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: var(--brand-2); }
.footer-bottom { max-width: 1200px; margin: 36px auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; color: var(--text-mute); }
.footer-bottom .socials a { color: var(--text-dim); text-decoration: none; margin-left: 16px; font-weight: 600; font-size: 13px; }
.footer-bottom .socials a:hover { color: var(--brand-2); }

/* ===== ANIMATIONS ===== */
.fade-in { animation: fadeUp 0.6s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .main-container { flex-direction: column; }
  .left-sidebar, .right-sidebar { width: 100%; flex: 1 1 auto; position: static; }
  .center-stage { order: -1; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-aside { position: static; }
}
@media (max-width: 860px) {
  .nav-menu, .site-nav .social-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav.menu-open .nav-menu {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--panel);
    border-bottom: 1px solid var(--line-2); padding: 14px; box-shadow: var(--shadow-2);
  }
  .site-nav.menu-open .nav-dropdown .dropdown-panel { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; grid-template-columns: 1fr; box-shadow: none; border: none; padding: 6px 0 0; display: none; }
  .site-nav.menu-open .nav-dropdown.open .dropdown-panel { display: grid; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-h: 62px; }
  .site-nav { padding: 0 16px; gap: 12px; }
  .brand-lockup { padding: 6px 11px; }
  .brand-lockup img { height: 28px; }
  .hero { padding: 34px 18px 6px; }
  .main-container, .tool-wrap { padding: 0 14px; gap: 16px; }
  .guide-section { margin: 40px 14px 0; padding: 32px 22px; }
  .section-wrap { padding: 0 14px; }
  .preset-grid { grid-template-columns: 1fr 1fr 1fr; }
  footer.site-footer { padding: 40px 16px 30px; }
}
@media (max-width: 640px) {
  .upload-zone { padding: 34px 14px; }
  .action-buttons { flex-direction: column; }
  .btn { width: 100%; }
  #lead-modal .card { padding: 32px 24px; }
  .blog-links { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
