/* ==========================================================================
   Omnipilot UI 2.0 — redesign layer. Loaded after app.css, clean.css, site.css and motion.css,
   and also by Social Manager at /social/, so every page shares one look.
   tokens → base → header → controls → home → free tools → footer → auth → paid-tool app → Social Manager
   ========================================================================== */

:root {
    --r-xs: 8px; --r-sm: 10px; --r: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;
    --topbar-h: 66px;
    --wrap: 1200px;
    --ease: cubic-bezier(.2, .8, .2, 1);

    /* dark (default) */
    --bg: #0b0d11; --bg-2: #0f1217;
    --surface: #13171d; --surface-2: #191e25; --surface-3: #232931;
    --border: rgba(255, 255, 255, .075); --border-strong: rgba(255, 255, 255, .14);
    --text: #f2f3f5; --text-2: #a9afb9; --text-3: #7f8693;
    --brand: #ff6a33; --brand-hover: #ff7f50; --brand-strong: #ff8d61; --on-brand: #150a05;
    --brand-soft: rgba(255, 106, 51, .14); --brand-line: rgba(255, 106, 51, .45);
    --glow: rgba(255, 106, 51, .13); --glow-2: rgba(124, 92, 255, .11);
    --muted-soft: rgba(255, 255, 255, .055);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3);
    --shadow-lg: 0 34px 80px -26px rgba(0, 0, 0, .8);
    --ring: 0 0 0 4px rgba(255, 106, 51, .28);
    --foot-bg: #07090c;
}
[data-theme="light"] {
    --bg: #f6f6f3; --bg-2: #efeeea;
    --surface: #ffffff; --surface-2: #f8f7f4; --surface-3: #eeece7;
    --border: rgba(16, 19, 24, .085); --border-strong: rgba(16, 19, 24, .15);
    --text: #0f1216; --text-2: #4a515c; --text-3: #6b717c;
    --brand: #ff5a1f; --brand-hover: #f04a0e; --brand-strong: #c2410c; --on-brand: #150a05;
    --brand-soft: rgba(255, 90, 31, .10); --brand-line: rgba(255, 90, 31, .40);
    --glow: rgba(255, 90, 31, .11); --glow-2: rgba(124, 92, 255, .09);
    --muted-soft: rgba(16, 19, 24, .045);
    --shadow-sm: 0 1px 2px rgba(16, 19, 24, .06);
    --shadow: 0 18px 40px -18px rgba(16, 19, 24, .2), 0 3px 8px -2px rgba(16, 19, 24, .06);
    --shadow-lg: 0 34px 80px -28px rgba(16, 19, 24, .34);
    --ring: 0 0 0 4px rgba(255, 90, 31, .2);
    --foot-bg: #0c0e12;
}

/* ---------------------------------------------------------------- base */
body {
    background-color: var(--bg);
    background-image:
        radial-gradient(900px 440px at 12% -140px, var(--glow), transparent 70%),
        radial-gradient(900px 440px at 92% -180px, var(--glow-2), transparent 70%);
    background-repeat: no-repeat;
    font-size: 15px;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { letter-spacing: -.025em; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.kbd { border-radius: 6px; font-weight: 600; }

/* ---------------------------------------------------------------- header */
.topbar {
    height: var(--topbar-h); gap: 14px;
    background: color-mix(in srgb, var(--bg) 74%, transparent);
    -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.topbar.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .45); }
.public-body .topbar { padding: 0 max(20px, calc((100% - 1240px) / 2)); }
.brand-link { flex-shrink: 0; text-decoration: none !important; }
.brand { gap: 10px; }
.brand-name { font-size: 22px; letter-spacing: -.04em; }
.brand-mark .logo-mark { transition: transform .5s var(--ease); }
.brand-link:hover .logo-mark { transform: rotate(-12deg); }

/* tools menu (motion.css) — pill buttons instead of underlines */
.mn-top { height: 40px; padding: 0 13px; border-radius: var(--r-pill); font-size: 14.5px; color: var(--text-2); }
.mn-top::after { display: none; }
.mn-top:hover, .mn-item.open > .mn-top { background: var(--muted-soft); color: var(--text); }
.mn-item.is-active > .mn-top { color: var(--text); background: var(--brand-soft); }
.mn-drop { border-radius: 20px; border-color: var(--border-strong); box-shadow: var(--shadow-lg); padding: 18px 18px 16px; }

.top-actions { gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: var(--r-pill); }
.lang-switch { border-radius: var(--r-pill); }
.btn-signin { height: 40px; padding: 0 18px; border-radius: var(--r-pill); background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-signin:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-pro {
    height: 40px; padding: 0 14px 0 12px; gap: 8px; border-radius: var(--r-pill); color: var(--text);
    border: 1.5px solid transparent;
    background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, #ffb86b, var(--brand) 45%, #8b5cf6) border-box;
    box-shadow: 0 6px 18px -10px var(--brand);
}
.btn-pro:hover { color: var(--text); box-shadow: 0 10px 24px -10px var(--brand); }
.btn-pro > .ic { color: var(--text-3); }
.pro-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #8b5cf6); box-shadow: 0 0 0 3px var(--brand-soft); }
.user-btn { padding: 3px 10px 3px 3px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--shadow-sm); }
.avatar { background: linear-gradient(135deg, #ffb86b, var(--brand) 55%, #e8440f); color: #1a0b04; }

.dropdown { border-radius: 18px; padding: 8px; border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.dropdown a, .dropdown .dd-item { border-radius: 11px; }
.pro-dd { min-width: 300px; }
.pro-item { display: flex !important; align-items: center; gap: 12px; padding: 9px 10px !important; color: var(--text) !important; }
.pro-item.is-current { background: var(--brand-soft); }
.pro-item.is-soon { opacity: .5; cursor: default; }
.pro-txt { display: flex; flex-direction: column; min-width: 0; }
.pro-txt b { font-size: 14px; font-weight: 600; }
.pro-txt small { font-size: 12px; color: var(--text-3); font-family: var(--mono); }
.pro-item.is-soon .pro-txt small { font-family: var(--font); }

/* tone chips used by paid-tool icons */
.pro-ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--tone, var(--text-2)); background: color-mix(in srgb, var(--tone, var(--text-3)) 16%, transparent); }
.tone-brand { --tone: #ff7a45; }
.tone-violet { --tone: #8b5cf6; }
.tone-teal { --tone: #14b8a6; }
.tone-rose { --tone: #f43f5e; }
.tone-amber { --tone: #f59e0b; }
.tone-emerald { --tone: #10b981; }
.tone-info { --tone: #3b82f6; }

/* ---------------------------------------------------------------- controls */
.btn { height: 40px; padding: 0 17px; border-radius: var(--r-pill); letter-spacing: -.005em; transition: background .18s, border-color .18s, color .18s, box-shadow .18s, transform .12s; }
.btn-sm { height: 34px; padding: 0 13px; border-radius: var(--r-pill); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15.5px; }
.btn-icon { width: 34px; padding: 0; }
.btn-primary {
    background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 82%, #ffd2b8) 0%, var(--brand) 100%);
    color: var(--on-brand);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 22px -12px var(--brand);
}
.btn-primary:hover { background: var(--brand-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 28px -12px var(--brand); }
.btn-secondary { background: var(--surface); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--text) 28%, transparent); }
.btn-ghost:hover { background: var(--muted-soft); }

.field-input, .select, .input { height: 44px; padding: 0 14px; border-radius: var(--r); background-color: var(--surface); box-shadow: var(--shadow-sm); }
.select { padding-right: 36px; }
textarea.field-input, textarea.input { height: auto; padding: 12px 14px; }
.field-input:focus, .select:focus, .input:focus { border-color: var(--brand); box-shadow: var(--ring); }
.select-sm, .select-chip { height: 32px; }

.card { border-radius: var(--r-xl); box-shadow: var(--shadow-sm); }
.card-head { padding: 18px 22px; }
.card-body { padding: 20px 22px; }
.card.hoverable:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tabs { border-radius: 14px; padding: 5px; }
.tabs button, .tabs a { border-radius: 10px; }
.tabs .active, .tabs .active:hover { background: var(--text); color: var(--bg); }
.badge { padding: 4px 10px; }
.modal { border-radius: 24px; }
.toast { border-radius: 16px; }
.table th { background: var(--surface-2); }
.table tbody tr:hover { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.page-head h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.035em; }
.empty { padding: 56px 20px; }
.e-ic { background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, #8b5cf6 14%, transparent)); }

/* ---------------------------------------------------------------- home */
.public-body .content { max-width: calc(var(--wrap) + 40px); padding: 8px 20px 40px; }
.hx-hero { position: relative; isolation: isolate; max-width: var(--wrap); margin: 0 auto; padding: 54px 0 6px; text-align: center; }
.hx-hero::before {
    content: ""; position: absolute; z-index: -1; left: -20px; right: -20px; top: -30px; height: 460px; pointer-events: none;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 20%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 70% at 50% 20%, #000 20%, transparent 75%);
}
.hx-badge {
    display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 7px 15px 7px 11px; border-radius: var(--r-pill);
    border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--surface) 85%, transparent);
    box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 600; color: var(--text-2);
}
.hx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.hx-hero h1 { max-width: 920px; margin: 22px auto 0; font-size: clamp(36px, 6.4vw, 70px); line-height: 1.02; letter-spacing: -.048em; }
.hx-hero h1 em {
    font-style: normal; color: var(--brand);
    background: linear-gradient(100deg, var(--brand) 5%, #ff9a3c 45%, #ff3d77 95%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hx-lead { max-width: 660px; margin: 18px auto 0; font-size: clamp(16px, 1.9vw, 18.5px); line-height: 1.6; color: var(--text-2); }
.hx-search {
    display: flex; align-items: center; gap: 12px; max-width: 660px; height: 62px; margin: 32px auto 0; padding: 0 12px 0 22px;
    border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-3);
    box-shadow: var(--shadow), 0 0 0 6px color-mix(in srgb, var(--surface) 55%, transparent);
    transition: border-color .2s, box-shadow .2s;
}
.hx-search:focus-within { border-color: var(--brand); box-shadow: var(--shadow), 0 0 0 6px var(--brand-soft); }
.hx-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 17px; }
.hx-search input::placeholder { color: var(--text-3); }
.hx-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hx-kbd { min-width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border-radius: 9px; font-size: 13px; }
.hx-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 920px; margin: 22px auto 0; }
.hx-chip {
    display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--r-pill);
    border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 13.5px; font-weight: 600;
    white-space: nowrap; text-decoration: none !important; cursor: pointer; transition: color .15s, border-color .15s, background .15s, transform .15s;
}
.hx-chip .ic { color: var(--tone, var(--text-3)); }
.hx-chip:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.hx-chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.hx-chip.is-active .ic { color: inherit; }

/* paid tools (signed-in only) */
.hx-pro {
    position: relative; isolation: isolate; overflow: hidden; max-width: var(--wrap); margin: 46px auto 0; padding: 30px;
    border-radius: 28px; color: #eef0f3; border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow-lg);
    background:
        radial-gradient(620px 280px at 100% 0%, rgba(124, 92, 255, .38), transparent 70%),
        radial-gradient(560px 280px at 0% 100%, rgba(255, 106, 51, .32), transparent 70%),
        #0d1016;
}
.hx-pro::after {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.hx-pro-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; margin-bottom: 22px; }
.hx-pro-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 13px; font-weight: 600; color: #b9bfc9; }
.hx-pro h2 { font-size: clamp(24px, 3vw, 34px); color: #fff; letter-spacing: -.035em; }
.hx-pro-note { max-width: 440px; color: #a9b0bb; font-size: 14px; line-height: 1.55; }
.pro-badge {
    display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-pill);
    font: 700 11px/1 var(--display); letter-spacing: .1em; color: #170a03;
    background: linear-gradient(120deg, #ffc58a, #ff6a33 50%, #ff3d77);
}
.pro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.pro-card {
    position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 186px; padding: 20px;
    border-radius: 20px; color: #eef0f3; text-decoration: none !important;
    background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: transform .22s var(--ease), background .22s, border-color .22s, box-shadow .22s;
}
a.pro-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .075); border-color: rgba(255, 138, 92, .55); box-shadow: 0 24px 50px -24px rgba(255, 106, 51, .55); }
.pro-card .pro-ic { width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--tone, #9aa1ab) 22%, transparent); color: var(--tone, #c3c8d0); }
.pro-body b { display: block; font: 700 17.5px/1.25 var(--display); color: #fff; letter-spacing: -.015em; }
.pro-body small { display: block; margin-top: 7px; font-size: 13.5px; line-height: 1.5; color: #a9b0bb; }
.pro-url { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1 var(--mono); color: #ff9b73; }
.pro-url .ic { transition: transform .2s var(--ease); }
a.pro-card:hover .pro-url .ic { transform: translateX(3px); }
.pro-card.is-soon { opacity: .62; border-style: dashed; -webkit-backdrop-filter: none; backdrop-filter: none; }
.pro-card.is-soon .pro-url { color: #8a919c; font-family: var(--font); }

/* free tools by category */
.hx-free { max-width: var(--wrap); margin: 56px auto 0; display: flex; flex-direction: column; gap: 46px; scroll-margin-top: 90px; }
.hx-cat { scroll-margin-top: 90px; }
.cat-ai { --tone: var(--brand); --tone-soft: var(--brand-soft); }
.cat-pdf { --tone: var(--danger); --tone-soft: var(--danger-soft); }
.cat-image { --tone: var(--violet); --tone-soft: var(--violet-soft); }
.cat-calc { --tone: var(--emerald); --tone-soft: var(--emerald-soft); }
.cat-text { --tone: var(--info); --tone-soft: var(--info-soft); }
.cat-util { --tone: var(--amber); --tone-soft: var(--amber-soft); }
.cat-insta { --tone: var(--rose); --tone-soft: var(--rose-soft); }
.hx-cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hx-cat-head::after { content: ""; flex: 1; height: 1px; margin-left: 6px; background: linear-gradient(90deg, var(--border-strong), transparent); }
.hx-cat-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; color: var(--tone); background: var(--tone-soft); }
.hx-cat-head h2 { font-size: 22px; letter-spacing: -.03em; }
.hx-count { padding: 5px 9px; border-radius: var(--r-pill); font: 600 12px/1 var(--font); color: var(--text-3); background: var(--muted-soft); }
.hx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 12px; }
.hx-tool {
    position: relative; display: flex; align-items: center; gap: 14px; min-height: 86px; padding: 16px 46px 16px 16px;
    border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    color: var(--text); text-decoration: none !important;
    transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.hx-tool:hover, .hx-tool:focus-visible { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tone) 45%, var(--border)); box-shadow: var(--shadow); outline: none; }
.hx-ic { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--tone); background: var(--tone-soft); transition: background .2s, transform .3s var(--ease); }
.hx-tool:hover .hx-ic { background: color-mix(in srgb, var(--tone) 24%, transparent); transform: scale(1.06) rotate(-4deg); }
.hx-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hx-txt b { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
.hx-txt small { font-size: 13px; line-height: 1.45; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hx-go { position: absolute; right: 16px; top: 50%; color: var(--tone); opacity: 0; transform: translate(-6px, -50%); transition: opacity .2s, transform .25s var(--ease); }
.hx-tool:hover .hx-go, .hx-tool:focus-visible .hx-go { opacity: 1; transform: translate(0, -50%); }
.hx-tool[hidden], .hx-cat[hidden], .hx-empty[hidden] { display: none !important; }
.hx-empty { margin: 0; padding: 40px 0; text-align: center; color: var(--text-2); }

/* older tile grid (kept for any page that still uses it) */
.tool-tile { border-radius: 20px; box-shadow: var(--shadow-sm); }
a.tool-tile:hover, a.tool-tile:focus-visible { border-color: var(--brand-line); }

/* ---------------------------------------------------------------- free tool pages */
.ft { max-width: 840px; margin-top: 14px; }
.ft-title { font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -.04em; line-height: 1.1; }
.ft > .card, .ft .card { border-radius: 22px; }
.ft-tabs { gap: 4px; padding: 5px; width: fit-content; max-width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 18px; }
.ft-tab { border: 0; border-radius: 13px; background: transparent; padding: 8px 15px; font-weight: 600; color: var(--text-2); transition: background .15s, color .15s; }
.ft-tab:hover { color: var(--text); background: var(--surface); }
.ft-tab.active { background: var(--text); color: var(--bg); box-shadow: var(--shadow-sm); }
.ig-switch { padding: 5px; width: fit-content; margin-left: auto; margin-right: auto; background: var(--surface-2); border: 1px solid var(--border); border-radius: 18px; }
.ft-panel { padding: 26px; }
.ft-drop {
    min-height: 180px; border-radius: 20px; border: 2px dashed color-mix(in srgb, var(--brand) 32%, var(--border-strong));
    background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 5%, transparent), transparent);
    transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.ft-drop:hover { border-color: var(--brand); background: var(--brand-soft); }
.ft-list li { border-radius: 12px; }
.ft-note { font-size: 13px; }
.emi-input, .ft-color input { border-radius: 12px; }
.emi-big strong { background: linear-gradient(100deg, var(--brand), #ff3d77); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ig-h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.04em; }
.ig-form .input, .ig-input-row .input { height: 52px; border-radius: 16px; font-size: 16px; }

.seo-crumbs { max-width: 840px; margin-top: 10px; }
.seo-body { max-width: 840px; margin-top: 64px; gap: 34px; }
.seo-sec h2 { font-size: 23px; letter-spacing: -.03em; }
.seo-sec p { line-height: 1.75; }
.seo-steps li, .seo-faq details, .seo-related a { border-radius: 16px; box-shadow: var(--shadow-sm); }
.seo-step-n { background: var(--text); color: var(--bg); }
.seo-faq details[open] { border-color: var(--border-strong); }
.seo-faq summary { padding: 16px 0; }
.seo-related a:hover { border-color: var(--brand-line); transform: translateY(-1px); }

/* ---------------------------------------------------------------- footer */
.site-foot { position: relative; margin-top: 90px; padding: 58px 20px 28px; background: var(--foot-bg); border-top: 0; color: #c9cdd4; }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--brand), #8b5cf6, transparent); opacity: .7; }
.site-foot-in { max-width: var(--wrap); gap: 30px; }
.site-foot h2 { color: #868d98; font-size: 12px; letter-spacing: .1em; }
.site-foot ul { gap: 8px; }
.site-foot a { color: #d3d7dd; }
.site-foot a:hover { color: #fff; }
.site-foot p { color: #8a919c; }
.site-foot .brand-name, .site-foot .logo-mark { color: #fff; }
.site-foot .brand-sub { display: none; }
.site-foot-copy { max-width: var(--wrap); margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); color: #7c838f; }

/* ---------------------------------------------------------------- sign-in pages */
.auth-body { background-image: radial-gradient(760px 420px at 50% -120px, var(--glow), transparent 70%), radial-gradient(700px 400px at 100% 100%, var(--glow-2), transparent 70%); }
.auth-solo { padding: 90px 16px 40px; }
.auth-solo .auth-top { left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; }
.auth-solo .auth-brand { margin-bottom: 24px; }
.auth-solo .auth-card { max-width: 440px; padding: 32px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.auth-solo h1 { font-size: 28px; letter-spacing: -.035em; }
.auth-note { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 13px; color: var(--text-3); text-align: center; }

/* ---------------------------------------------------------------- paid tools (app layout) */
.app-topbar { padding: 0 24px; }
.ptabs { display: flex; align-items: center; gap: 4px; min-width: 0; margin-left: 10px; overflow-x: auto; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptab {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--r-pill);
    border: 1px solid transparent; color: var(--text-2); font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none !important;
    transition: background .15s, color .15s, border-color .15s;
}
.ptab:hover { color: var(--text); background: var(--muted-soft); }
.ptab.is-current { color: var(--text); background: var(--surface); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.ptab.is-current .ic { color: var(--brand); }
.app-crumbs { width: 100%; max-width: 1440px; margin: 0 auto; padding: 16px 28px 0; }
.app-crumbs a { display: inline-flex; align-items: center; }
.app-page .content { padding-top: 18px; }

/* ---------------------------------------------------------------- Social Manager (sidebar app at /social/) */
.sidebar { background: color-mix(in srgb, var(--bg-2) 88%, transparent); border-right-color: var(--border); }
.nav-item { border-radius: 12px; }
.nav-item.active { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow-sm); }
.nav-item.active::before { display: none; }
.side-cta { border-radius: var(--r-pill); }
.secure-chip { border-radius: 14px; }
.sm-paid { display: flex; align-items: center; gap: 4px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1240px) {
    .public-body .user-btn .u-name, .public-body .user-btn > .ic { display: none; }
    .public-body .user-btn { padding: 3px; }
    .mn-top { padding: 0 10px; }
}
@media (max-width: 1100px) {
    .lang-switch span, .free-link span { display: none; }
    .ptab span { display: none; }
    .ptab { width: 40px; padding: 0; justify-content: center; }
}
@media (max-width: 960px) {
    .btn-pro .pro-label { display: none; }
}
@media (max-width: 720px) {
    .app-topbar { flex-wrap: wrap; height: auto; padding: 10px 16px 0; row-gap: 6px; }
    .app-topbar .ptabs { order: 3; width: 100%; margin: 0 -4px; padding-bottom: 8px; }
    .app-topbar .ptab span { display: inline; }
    .app-topbar .ptab { width: auto; padding: 0 12px; }
    .app-crumbs { padding: 12px 16px 0; }
    .hx-hero { padding-top: 34px; }
    .hx-search { height: 56px; padding-left: 18px; }
    .hx-kbd { display: none; }
    .hx-cats { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-left: -20px; margin-right: -20px; padding: 2px 20px 6px; scrollbar-width: none; }
    .hx-cats::-webkit-scrollbar { display: none; }
    .hx-pro { padding: 22px 16px; border-radius: 22px; margin-top: 34px; }
    .hx-free { margin-top: 40px; gap: 36px; }
    .hx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hx-tool { min-height: 76px; padding: 14px 40px 14px 14px; }
    .ft-panel { padding: 18px; }
    .auth-solo .auth-card { padding: 24px 20px; }
    .site-foot { padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .hx-tool, .hx-ic, .hx-go, .pro-card, .hx-chip, .btn, .brand-mark .logo-mark { transition: none !important; }
    .hx-tool:hover, a.pro-card:hover, .hx-chip:hover, .hx-tool:hover .hx-ic { transform: none !important; }
}

/* ---------------------------------------------------------------- details */
.mn-top.mn-top-icon { width: 40px; padding: 0; }
@media (min-width: 1100px) { .top-actions a.btn-signin { font-size: 14px; gap: 7px; padding: 0 16px; } }
.hx-tool.is-soon { cursor: default; border-style: dashed; box-shadow: none; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.hx-tool.is-soon:hover { transform: none; border-color: var(--border-strong); box-shadow: none; }
.hx-tool.is-soon .hx-ic, .hx-tool.is-soon .hx-txt { opacity: .6; }
.hx-tool.is-soon:hover .hx-ic { transform: none; background: var(--tone-soft); }
.hx-soon { position: absolute; top: 12px; right: 12px; padding: 4px 8px; border-radius: var(--r-pill); font: 700 10.5px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--tone); background: var(--tone-soft); }

/* ---------------------------------------------------------------- responsive fixes (v2.1) */
.dd-paid { display: none; }
.dd-label { padding: 8px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.dd-paid a .pro-ic { width: 26px; height: 26px; border-radius: 8px; }
.pro-card[hidden], .hx-pro[hidden] { display: none !important; }

/* footer: site.css sets a 5-column grid after its own breakpoints, so phones overflowed sideways */
@media (max-width: 860px) {
    .site-foot-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .site-foot-in > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .site-foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
}

/* laptops: keep the signed-in header on one line */
@media (max-width: 1180px) {
    .btn-pro .pro-label { display: none; }
    .btn-pro { padding: 0 10px; }
}

/* phones: compact header; paid tools move into the account menu */
@media (max-width: 640px) {
    .public-body .topbar { padding: 0 14px; gap: 8px; }
    .top-actions { gap: 4px; }
    .icon-btn { width: 36px; height: 36px; }
    .pro-menu { display: none; }
    .dd-paid { display: block; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
    .top-actions a.btn-signin { font-size: 0; gap: 0; width: 38px; height: 38px; padding: 0; }
    .top-actions a.btn-signin span { display: none; }
    .brand-name { font-size: 20px; }
    .user-btn .u-name, .user-btn > .ic { display: none; }
    .user-btn { padding: 3px; }
}

/* paid tools on phones: compact two-column cards */
@media (max-width: 720px) {
    .pro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pro-card { min-height: 0; padding: 14px; gap: 10px; border-radius: 16px; }
    .pro-card .pro-ic { width: 38px; height: 38px; border-radius: 12px; }
    .pro-body b { font-size: 15px; }
    .pro-body small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; }
    .pro-url { font-size: 11.5px; }
    .pro-host { display: none; }
    .hx-pro-note { font-size: 13px; }
}

/* free tools on phones: two-column tiles */
@media (max-width: 560px) {
    .hx-tool { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 14px; border-radius: 16px; }
    .hx-ic { width: 40px; height: 40px; border-radius: 12px; }
    .hx-txt b { font-size: 14.5px; }
    .hx-txt small { font-size: 12.5px; }
    .hx-go { display: none; }
    .hx-soon { top: 10px; right: 10px; }
    .hx-cat-head h2 { font-size: 20px; }
}

/* tool pages on phones: tabs scroll sideways instead of stacking into a block */
@media (max-width: 720px) {
    .ft-tabs, .ig-switch { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; border-radius: 16px; }
    .ft-tabs::-webkit-scrollbar, .ig-switch::-webkit-scrollbar { display: none; }
    .ft-tab { flex: none; }
    .ft-title { font-size: 28px; }
    .table.stack-sm td form.row, .table.stack-sm td .row { flex-wrap: wrap; }
}

/* small laptops (961–1100 px): open the right-hand menus towards the left so they never poke past the screen edge */
@media (min-width: 961px) and (max-width: 1100px) {
    .mn-item:nth-last-child(-n+4) > .mn-drop { left: auto; right: 0; transform-origin: 80% 0; }
}
/* safety net: a hidden dropdown or wide table must never add a sideways scrollbar to the whole page */
body { overflow-x: clip; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
/* paid card address: no gap between the host and the path */
.pro-url { gap: 0; }
.pro-url .ic { margin-left: 6px; }
