/* ==========================================================================
   WebToolsTR design system
   White / off-white surfaces, one indigo accent, thin borders, soft shadows.
   ========================================================================== */

:root {
    --bg: #ffffff;
    --bg-soft: #f7f8fa;
    --bg-muted: #f2f4f7;
    --card: #ffffff;
    --border: #e8eaed;
    --border-strong: #d0d5dd;
    --text: #111827;
    --text-2: #667085;
    --text-3: #98a2b3;

    --accent: #6366f1;
    --accent-600: #4f46e5;
    --accent-700: #4338ca;
    --accent-50: #eef2ff;
    --accent-100: #e0e7ff;
    --accent-ring: rgba(99, 102, 241, .18);

    --success: #12b76a;
    --success-50: #ecfdf3;
    --success-700: #027a48;
    --warning: #f79009;
    --warning-50: #fffaeb;
    --warning-700: #b54708;
    --danger: #f04438;
    --danger-50: #fef3f2;
    --danger-700: #b42318;

    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-md: 0 10px 28px -8px rgba(16, 24, 40, .10), 0 2px 6px -2px rgba(16, 24, 40, .05);
    --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, .16);

    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --container: 1180px;
    --header-h: 68px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "cv11", "ss01";
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

main { flex: 1; }
img, video, canvas { max-width: 100%; display: block; }
svg { max-width: 100%; }
.icon { display: inline-block; vertical-align: -0.2em; }
a { color: var(--accent-600); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--accent-700); }
h1, h2, h3, h4 { overflow-wrap: break-word; margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
code, pre { font-family: var(--mono); font-size: .875em; }
::selection { background: var(--accent-100); }

.icon { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.hidden, [hidden] { display: none !important; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.mt-0 { margin-top: 0 !important; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0 !important; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }
.container.tight { max-width: 480px; }
.section { padding: 64px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-600); }

/* ---------------------------------------------------------------- header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    height: var(--header-h);
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-xs); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; letter-spacing: -.02em; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
    width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(145deg, var(--accent) 0%, var(--accent-600) 100%);
    color: #fff; box-shadow: 0 4px 12px -2px rgba(99, 102, 241, .45);
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text-2); font-weight: 500; font-size: 14.5px; padding: 8px 12px; border-radius: var(--radius-sm); transition: background .15s var(--ease), color .15s var(--ease); }
.nav a:hover, .nav a.active { color: var(--text); background: var(--bg-muted); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn.nav-toggle { display: none; }

.credit-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
    background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 13px;
}
.credit-pill:hover { color: var(--text); border-color: var(--border-strong); }
.credit-pill .icon { color: var(--warning); }

.dropdown { position: relative; }
.dropdown-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid transparent; border-radius: 999px; padding: 4px 8px 4px 4px; cursor: pointer; color: var(--text); font: inherit; }
.dropdown-toggle:hover { background: var(--bg-muted); }
.dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-4px) scale(.98); pointer-events: none; transition: opacity .15s var(--ease), transform .15s var(--ease);
}
.dropdown.open .dropdown-menu { opacity: 1; transform: none; pointer-events: auto; }
.dropdown-menu a, .dropdown-menu button {
    display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm);
    color: var(--text); font-size: 14px; background: none; border: 0; cursor: pointer; text-align: left; font: inherit;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--bg-muted); color: var(--text); }
.dropdown-menu .divider { height: 1px; background: var(--border); margin: 6px 0; }
.dropdown-menu .menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }

.avatar {
    width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
    background: var(--accent-50); color: var(--accent-600); font-weight: 700; font-size: 13px; border: 1px solid var(--accent-100);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }

.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; background: var(--bg-soft); }
.lang-switch a { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; color: var(--text-2); }
.lang-switch a.active { background: var(--card); color: var(--text); box-shadow: var(--shadow-xs); }

.bell { position: relative; }
.bell .dot { position: absolute; top: 5px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); border: 2px solid #fff; }

/* ---------------------------------------------------------------- buttons */
.btn {
    --btn-bg: var(--card); --btn-fg: var(--text); --btn-border: var(--border-strong);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--btn-border);
    background: var(--btn-bg); color: var(--btn-fg); font: inherit; font-weight: 600; font-size: 14px; line-height: 1;
    cursor: pointer; white-space: nowrap; user-select: none;
    box-shadow: var(--shadow-xs);
    transition: background .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease), transform .08s var(--ease), color .15s var(--ease);
}
.btn:hover { color: var(--btn-fg); border-color: var(--text-3); background: var(--bg-soft); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-ring); }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-primary { --btn-bg: var(--accent); --btn-fg: #fff; --btn-border: var(--accent); box-shadow: 0 1px 2px rgba(79, 70, 229, .25), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.btn-dark { --btn-bg: var(--text); --btn-fg: #fff; --btn-border: var(--text); }
.btn-dark:hover { background: #1f2937; color: #fff; border-color: #1f2937; }
.btn-ghost { --btn-bg: transparent; --btn-border: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-muted); color: var(--text); border-color: transparent; }
.btn-danger { --btn-bg: var(--card); --btn-fg: var(--danger-700); --btn-border: #fecdca; }
.btn-danger:hover { background: var(--danger-50); color: var(--danger-700); border-color: #fda29b; }
.btn-soft { --btn-bg: var(--accent-50); --btn-fg: var(--accent-700); --btn-border: var(--accent-100); box-shadow: none; }
.btn-soft:hover { background: var(--accent-100); color: var(--accent-700); border-color: var(--accent-100); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }

/* ---------------------------------------------------------------- badges */
.badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px;
    font-size: 12px; font-weight: 600; line-height: 20px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-2);
}
.badge-accent { background: var(--accent-50); color: var(--accent-700); border-color: var(--accent-100); }
.badge-success { background: var(--success-50); color: var(--success-700); border-color: #abefc6; }
.badge-warning { background: var(--warning-50); color: var(--warning-700); border-color: #fedf89; }
.badge-danger { background: var(--danger-50); color: var(--danger-700); border-color: #fecdca; }
.badge-premium { background: linear-gradient(135deg, #fff7e6, #fff1d6); color: #9a5b00; border-color: #fbd48a; }
.badge-dark { background: var(--text); color: #fff; border-color: var(--text); }

/* ---------------------------------------------------------------- cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.card-body { padding: 24px; }
.card-head { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h3 { margin: 0; font-size: 15px; }
.card-foot { padding: 14px 24px; border-top: 1px solid var(--border); background: var(--bg-soft); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card.hoverable { transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.card.hoverable:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ---------------------------------------------------------------- hero + search */
.hero { position: relative; padding: 88px 0 56px; text-align: center; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: -40% -10% auto; height: 520px; z-index: -1;
    background: radial-gradient(60% 60% at 50% 0%, rgba(99, 102, 241, .10) 0%, rgba(99, 102, 241, 0) 70%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -2; opacity: .5;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: radial-gradient(70% 55% at 50% 20%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(70% 55% at 50% 20%, #000 20%, transparent 75%);
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: 1.05; margin-bottom: 18px; }
.hero h1 span { color: var(--text-3); }
.hero p.lead { font-size: 18px; color: var(--text-2); max-width: 580px; margin: 0 auto 32px; }

.search-box { position: relative; max-width: 620px; margin: 0 auto; }
.search-box .icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search-box input {
    width: 100%; height: 60px; padding: 0 110px 0 54px; border-radius: 16px; font: inherit; font-size: 16px; color: var(--text);
    border: 1px solid var(--border-strong); background: var(--card); box-shadow: var(--shadow-md);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-ring), var(--shadow-md); }
.search-box kbd { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-family: var(--font); font-size: 12px; color: var(--text-3); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; background: var(--bg-soft); }
.search-results {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; text-align: left; max-height: 420px; overflow: auto;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 6px;
}
.search-results a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.search-results a:hover, .search-results a.active { background: var(--bg-muted); color: var(--text); }
.search-results .tool-icon { width: 34px; height: 34px; border-radius: 9px; }
.search-results .empty { padding: 16px; color: var(--text-2); text-align: center; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
    background: var(--card); border: 1px solid var(--border); color: var(--text-2); box-shadow: var(--shadow-xs);
    transition: all .15s var(--ease);
}
.chip:hover, .chip.active { color: var(--text); border-color: var(--border-strong); background: var(--card); box-shadow: var(--shadow-sm); }
.chip.active { color: var(--accent-700); border-color: var(--accent-100); background: var(--accent-50); }
.chip .count { font-size: 12px; color: var(--text-3); }

.trust-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin-top: 36px; color: var(--text-2); font-size: 14px; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row .icon { color: var(--success); }

/* ---------------------------------------------------------------- tool cards */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tool-card {
    position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; min-height: 196px;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.tool-card:hover { color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tool-card:hover .tool-card-cta { color: var(--accent-600); gap: 10px; }
.tool-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tool-icon {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: var(--accent-50); color: var(--accent-600); border: 1px solid var(--accent-100);
}
.tool-icon[data-cat="video"] { background: #fdf2fa; color: #c11574; border-color: #fcceee; }
.tool-icon[data-cat="audio"] { background: #fef6ee; color: #c4320a; border-color: #f9dbaf; }
.tool-icon[data-cat="pdf"] { background: #fef3f2; color: #d92d20; border-color: #fecdca; }
.tool-icon[data-cat="subtitle"] { background: #f0f9ff; color: #026aa2; border-color: #b9e6fe; }
.tool-icon[data-cat="qr"] { background: #f4f3ff; color: #5925dc; border-color: #d9d6fe; }
.tool-icon[data-cat="youtube"] { background: #fef3f2; color: #e62117; border-color: #fecdca; }
.tool-icon[data-cat="image"] { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.tool-icon[data-cat="text"] { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }
.tool-icon[data-cat="developer"] { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.tool-icon[data-cat="web"] { background: #ecfeff; color: #0e7490; border-color: #a5f3fc; }
.tool-icon[data-cat="seo"] { background: #fefce8; color: #a16207; border-color: #fde68a; }
.tool-icon[data-cat="generators"] { background: #fdf4ff; color: #a21caf; border-color: #f5d0fe; }
.tool-icon[data-cat="file"] { background: #f8fafc; color: #475467; border-color: #d0d5dd; }
.tool-icon[data-cat="data"] { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.tool-icon[data-cat="network"] { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.tool-icon[data-cat="math"] { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.tool-icon[data-cat="datetime"] { background: #fdf2f8; color: #be185d; border-color: #fbcfe8; }
.tool-icon[data-cat="design"] { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.tool-icon[data-cat="markdown"] { background: #f1f5f9; color: #334155; border-color: #cbd5e1; }
.tool-card h3 { margin: 0; font-size: 16px; font-weight: 650; }
.tool-card p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; flex: 1; }
.tool-card-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); transition: gap .2s var(--ease), color .2s var(--ease); }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.category-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--text); font-weight: 600; transition: all .15s var(--ease); }
.category-card:hover { color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.category-card small { display: block; color: var(--text-3); font-weight: 500; font-size: 12px; }
.category-card .tool-icon { width: 36px; height: 36px; border-radius: 10px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.feature .tool-icon { margin-bottom: 14px; }
.feature h3 { margin-bottom: 6px; font-size: 16px; }
.feature p { color: var(--text-2); font-size: 14px; margin: 0; }

/* ---------------------------------------------------------------- page header / breadcrumb */
.page-head { padding: 40px 0 28px; }
.page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 8px; }
.page-head p { color: var(--text-2); font-size: 17px; margin: 0; max-width: 720px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--text-3); margin-bottom: 18px; list-style: none; padding: 0; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .icon { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- tool workspace */
.tool-hero { display: flex; gap: 18px; align-items: flex-start; }
.tool-hero .tool-icon { width: 56px; height: 56px; border-radius: 16px; }
.tool-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.workspace-main { min-width: 0; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 16px; }
.panel-body { padding: 24px; }
.panel-title { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin: 0 0 14px; }
.aside-card { padding: 20px; }
.aside-card + .aside-card { border-top: 1px solid var(--border); }
.limit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.limit-list li { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); }
.limit-list strong { color: var(--text); font-weight: 600; }

.upload-zone {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
    min-height: 240px; padding: 36px 24px; border-radius: var(--radius-lg); cursor: pointer;
    border: 1.5px dashed var(--border-strong); background: var(--bg-soft);
    transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.upload-zone:hover { border-color: var(--accent); background: var(--accent-50); }
.upload-zone.dragover { border-color: var(--accent); background: var(--accent-50); transform: scale(1.005); box-shadow: 0 0 0 6px var(--accent-ring); }
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone .upload-icon {
    width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 4px;
    background: var(--card); border: 1px solid var(--border); color: var(--accent-600); box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease);
}
.upload-zone:hover .upload-icon, .upload-zone.dragover .upload-icon { transform: translateY(-3px); }
.upload-zone strong { font-size: 16px; }
.upload-zone .hint { color: var(--text-3); font-size: 13px; }
.upload-zone.compact { min-height: 120px; padding: 20px; }

.file-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.file-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--card); animation: fade-up .25s var(--ease);
}
.file-item .file-thumb { width: 40px; height: 40px; border-radius: 8px; background: var(--bg-muted); display: grid; place-items: center; color: var(--text-3); overflow: hidden; flex-shrink: 0; }
.file-item .file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-item .file-name { font-weight: 550; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .file-size { font-size: 12px; color: var(--text-3); }
.file-item .file-info { min-width: 0; flex: 1; }
.file-item .file-actions { display: flex; gap: 2px; }
.file-item.error { border-color: #fecdca; background: var(--danger-50); }

.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.options.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.options .span-all { grid-column: 1 / -1; }
.segmented { display: inline-flex; flex-wrap: wrap; background: var(--bg-muted); border-radius: 10px; padding: 3px; gap: 2px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 550; color: var(--text-2); transition: all .15s var(--ease); }
.segmented input:checked + span { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-ring); }
.segmented input:disabled + span { opacity: .5; cursor: not-allowed; }

.action-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.action-bar .note { font-size: 13px; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }

.progress-panel { margin-top: 20px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); animation: fade-up .25s var(--ease); }
.progress-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 10px; }
.progress-head .status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.progress-head .pct { color: var(--text-2); font-variant-numeric: tabular-nums; }
.progress { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.progress-bar { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent) 0%, #818cf8 100%); transition: width .35s var(--ease); position: relative; }
.progress-bar.indeterminate { width: 35% !important; animation: indeterminate 1.2s infinite var(--ease); }
.progress-steps { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--text-3); }
.progress-steps span { display: inline-flex; align-items: center; gap: 6px; }
.progress-steps span.done { color: var(--success-700); }
.progress-steps span.current { color: var(--accent-600); font-weight: 600; }
.progress-steps span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .55; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent-100); border-top-color: var(--accent); animation: spin .8s linear infinite; }

.result-panel { margin-top: 20px; padding: 22px; border: 1px solid #abefc6; background: linear-gradient(180deg, var(--success-50), #fff 70%); border-radius: var(--radius-lg); animation: fade-up .3s var(--ease); }
.result-panel.error { border-color: #fecdca; background: linear-gradient(180deg, var(--danger-50), #fff 70%); }
.result-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.result-head .result-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: #fff; }
.result-panel.error .result-icon { background: var(--danger); }
.result-head h3 { margin: 0; font-size: 16px; }
.result-head p { margin: 0; color: var(--text-2); font-size: 13.5px; }
.download-list { display: grid; gap: 8px; }
.download-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); }
.download-item .grow { min-width: 0; }
.download-item .name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-item .meta { font-size: 12px; color: var(--text-3); }

.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.preview-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); display: flex; flex-direction: column; }
.preview-card .preview-img { aspect-ratio: 4 / 3; background: var(--bg-muted) repeating-conic-gradient(#eef0f3 0% 25%, #fff 0% 50%) 50% / 16px 16px; display: grid; place-items: center; overflow: hidden; }
.preview-card .preview-img img { max-height: 100%; object-fit: contain; }
.preview-card .preview-body { padding: 10px 12px; font-size: 12.5px; display: grid; gap: 6px; }
.preview-card .preview-body .name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saving { color: var(--success-700); font-weight: 600; }
.saving.worse { color: var(--danger-700); }

.kv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv-table th, .kv-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.kv-table th { width: 38%; color: var(--text-2); font-weight: 500; }
.kv-table td { font-weight: 550; word-break: break-word; }
.kv-table tr:last-child th, .kv-table tr:last-child td { border-bottom: 0; }
.kv-section { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 16px 12px 6px !important; border-bottom: 0 !important; }

.qr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.qr-preview { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.qr-canvas { background: #fff; padding: 12px; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); min-height: 200px; display: grid; place-items: center; }
.qr-canvas canvas, .qr-canvas svg { max-width: 260px; height: auto; }
.camera-view { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #0b0f19; aspect-ratio: 4 / 3; }
.camera-view video { width: 100%; height: 100%; object-fit: cover; }
.camera-view .scan-frame { position: absolute; inset: 18%; border: 2px solid rgba(255, 255, 255, .85); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }

.yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.yt-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.yt-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-muted); }
.yt-card .yt-body { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.yt-card .yt-body strong { font-size: 14px; display: block; }
.yt-card .yt-body span { font-size: 12px; color: var(--text-3); }
.yt-card.unavailable { opacity: .45; }

.locked-overlay { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius-lg); border: 1px solid #fbd48a; background: linear-gradient(135deg, #fffbf0, #fff); }
.locked-overlay .tool-icon { background: #fff4d6; color: #b54708; border-color: #fbd48a; }

.ad-slot { margin: 24px 0; min-height: 90px; border: 1px dashed var(--border-strong); border-radius: var(--radius); display: grid; place-items: center; color: var(--text-3); font-size: 12px; background: var(--bg-soft); }

/* ---------------------------------------------------------------- SEO content */
.content-section { max-width: 820px; }
.content-section h2 { font-size: 1.5rem; margin-top: 40px; }
.content-section p, .content-section li { color: #344054; font-size: 16px; line-height: 1.75; }
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.steps li::before { content: counter(step); flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--accent-50); color: var(--accent-700); }
.faq { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s var(--ease); color: var(--text-3); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--text-2); }

/* ---------------------------------------------------------------- forms */
.form-group { display: grid; gap: 6px; }
.form-group + .form-group { margin-top: 16px; }
label, .label { font-size: 13.5px; font-weight: 600; color: #344054; }
.form-hint { font-size: 12.5px; color: var(--text-3); }
.input, .select, .textarea, input[type=text].input, input[type=email].input {
    width: 100%; height: 42px; padding: 0 14px; font: inherit; font-size: 14.5px; color: var(--text);
    background: var(--card); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow-xs);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2398a2b3' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input.input-sm, .select.input-sm { height: 34px; font-size: 13.5px; border-radius: 8px; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: 10px 0 0 10px; }
.input-group .btn { border-radius: 0 10px 10px 0; height: auto; margin-left: -1px; }
.input-validation-error, .input.invalid { border-color: var(--danger) !important; }
.field-validation-error, .text-danger { color: var(--danger-700); font-size: 12.5px; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; font-size: 14px; color: var(--text); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; font-size: 14px; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 38px; height: 22px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .2s var(--ease); flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 4px var(--accent-ring); }
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=color] { width: 100%; height: 42px; padding: 4px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--card); cursor: pointer; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row output { min-width: 60px; white-space: nowrap; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- alerts / toasts */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-soft); font-size: 14px; }
.alert .icon { margin-top: 1px; }
.alert-success { background: var(--success-50); border-color: #abefc6; color: var(--success-700); }
.alert-error { background: var(--danger-50); border-color: #fecdca; color: var(--danger-700); }
.alert-warning { background: var(--warning-50); border-color: #fedf89; color: var(--warning-700); }
.alert-info { background: var(--accent-50); border-color: var(--accent-100); color: var(--accent-700); }
.alert p:last-child { margin: 0; }
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 10px; width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: 14px; animation: toast-in .3s var(--ease); }
.toast.success .icon { color: var(--success); }
.toast.error .icon { color: var(--danger); }
.toast .grow { flex: 1; }
.toast button { background: none; border: 0; cursor: pointer; color: var(--text-3); padding: 0; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--text-3); padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s var(--ease); }
.table tbody tr:hover { background: #fcfcfd; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-2); }
.empty-state .tool-icon { margin: 0 auto 14px; }

.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; font-size: 13.5px; color: var(--text-2); }
.pagination .pages { display: flex; gap: 6px; }

/* ---------------------------------------------------------------- auth */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 48px 16px; background: radial-gradient(60% 40% at 50% 0%, rgba(99, 102, 241, .08), transparent 70%), var(--bg-soft); }
.auth-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: 36px; }
.auth-card .brand { margin-bottom: 24px; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-2); margin-bottom: 26px; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text-2); }
.auth-perks { display: grid; gap: 8px; margin: 0 0 24px; padding: 14px 16px; list-style: none; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); font-size: 13.5px; color: var(--text-2); }
.auth-perks li { display: flex; gap: 8px; align-items: center; }
.auth-perks .icon { color: var(--success); }

/* ---------------------------------------------------------------- pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--card); box-shadow: var(--shadow-xs); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.price-card.highlight { border: 1.5px solid var(--accent); box-shadow: 0 24px 48px -16px rgba(99, 102, 241, .35); }
.price-card .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.price-card h3 { font-size: 18px; margin-bottom: 4px; }
.price-card .desc { color: var(--text-2); font-size: 14px; min-height: 44px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.price strong { font-size: 44px; letter-spacing: -.04em; line-height: 1; }
.price span { color: var(--text-2); font-size: 14px; }
.price-note { font-size: 13px; color: var(--text-3); min-height: 20px; }
.price-features { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 11px; font-size: 14.5px; flex: 1; }
.price-features li { display: flex; gap: 10px; align-items: flex-start; }
.price-features .icon { margin-top: 2px; color: var(--success); }
.price-features li.off { color: var(--text-3); }
.price-features li.off .icon { color: var(--text-3); }
.compare { margin-top: 48px; }
.compare .table td:not(:first-child), .compare .table th:not(:first-child) { text-align: center; }
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.package-card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); display: flex; flex-direction: column; gap: 10px; }
.package-card .credits { font-size: 28px; font-weight: 750; letter-spacing: -.03em; }

/* ---------------------------------------------------------------- dashboard */
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.stat .stat-label { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.stat .stat-value { font-size: 28px; font-weight: 750; letter-spacing: -.03em; margin-top: 8px; line-height: 1.1; }
.stat .stat-sub { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.stat .stat-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-muted); color: var(--text-2); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: 14px; }
.list li:last-child { border-bottom: 0; }
.list .grow { min-width: 0; }
.list .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .meta { font-size: 12.5px; color: var(--text-3); }
.plan-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--accent-100); background: linear-gradient(135deg, var(--accent-50), #fff 60%); }
.plan-banner.premium { border-color: #fbd48a; background: linear-gradient(135deg, #fff8e8, #fff 60%); }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 56px 0 32px; margin-top: 64px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--text-2); }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 13px; }

/* ---------------------------------------------------------------- animation */
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes indeterminate { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.reveal { animation: fade-up .45s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
    .workspace { grid-template-columns: 1fr; }
    .dash-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid, .package-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .two-col { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .qr-layout { grid-template-columns: 1fr; }
    .qr-preview { position: static; }
}

@media (max-width: 820px) {
    .btn.nav-toggle { display: inline-flex; }
    .nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px;
        background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
        transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s var(--ease);
    }
    .nav.open { transform: none; opacity: 1; pointer-events: auto; }
    .nav a { padding: 12px 14px; font-size: 15px; }
    .header-actions .hide-sm { display: none; }
    .site-header .container { gap: 12px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    body { font-size: 14.5px; }
    .container { padding: 0 16px; }
    .section { padding: 44px 0; }
    .hero { padding: 56px 0 36px; }
    .hero p.lead { font-size: 16px; }
    .search-box input { height: 54px; font-size: 15px; padding-right: 20px; }
    .search-box kbd { display: none; }
    .tool-grid { grid-template-columns: 1fr; }
    .tool-card { min-height: 0; }
    .dash-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat { padding: 16px; }
    .stat .stat-value { font-size: 22px; }
    .feature-grid { grid-template-columns: 1fr; }
    .options.two { grid-template-columns: 1fr; }
    .panel-body { padding: 18px; }
    .auth-card { padding: 26px 20px; border-radius: var(--radius-lg); }
    .tool-hero { flex-direction: column; gap: 12px; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; }
    .action-bar .btn { width: 100%; }
    .credit-pill span.label { display: none; }
}
