/* Tokens do sistema de design (mesmos valores de src/02_design.js) */
:root {
    --ic-yellow: #FFDA00; --ic-yellow-hover: #FFE333; --ic-yellow-soft: rgba(255, 218, 0, 0.12); --ic-yellow-line: rgba(255, 218, 0, 0.35);
    --ic-green: #30CB28; --ic-green-soft: rgba(48, 203, 40, 0.14); --ic-green-line: rgba(48, 203, 40, 0.45); --ic-green-ink: #1F8A19;
    --ic-red: #FF4D4F; --ic-on-yellow: #141414; --ic-on-green: #0B2209;
    --ic-glass: rgba(20, 20, 20, 0.86); --ic-glass-strong: rgba(20, 20, 20, 0.94); --ic-blur: blur(24px) saturate(180%);
    --ic-line: rgba(255, 255, 255, 0.1); --ic-line-strong: rgba(255, 255, 255, 0.16);
    --ic-r-sm: 8px; --ic-r-md: 12px; --ic-r-lg: 16px; --ic-r-xl: 20px; --ic-r-2xl: 24px; --ic-r-pill: 999px;
    --ic-shadow-1: 0 6px 18px rgba(0, 0, 0, 0.35); --ic-shadow-2: 0 14px 40px rgba(0, 0, 0, 0.5); --ic-shadow-3: 0 24px 70px rgba(0, 0, 0, 0.6);
    --ic-glow-yellow: 0 8px 22px rgba(255, 218, 0, 0.35); --ic-glow-green: 0 8px 22px rgba(48, 203, 40, 0.3);
    --ic-font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    --ic-spring: cubic-bezier(0.34, 1.56, 0.64, 1); --ic-out: cubic-bezier(0.16, 1, 0.3, 1); --ic-in: cubic-bezier(0.7, 0, 0.84, 0);
}

:root {
    --bg: #0f0f10;
    --header-bg: #0f0f10;
    --surface: #141414;
    --surface-hover: #272727;
    --surface-2: #1c1c1f;
    --search-bg: #242428;
    --pill-bg: rgba(255, 255, 255, 0.06);
    --pill-hover: rgba(255, 255, 255, 0.11);
    --border: rgba(255, 255, 255, 0.08);
    --text: rgba(255, 255, 255, 0.90);
    --title-text: rgba(255, 255, 255, 0.88);
    --muted: rgba(255, 255, 255, 0.50);
    --seller-text: rgba(255, 255, 255, 0.72);
    --accent: #FFDA00;
    --accent-fg: #141414;
    --price: #FFDA00;
    --price-conv: #ffffff;
    --green: #30CB28;
    --red: #FF4D4F;
    --orange: #FFDA00;
    --skel: rgba(255, 255, 255, 0.06);
    --card-shadow: none;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

html.ic-light {
    --bg: #f6f7f9;
    --header-bg: #ffffff;
    --surface: #ffffff;
    --surface-hover: #ffffff;
    --surface-2: #f3f4f6;
    --search-bg: #f7f8fa;
    --pill-bg: rgba(0, 0, 0, 0.045);
    --pill-hover: rgba(0, 0, 0, 0.08);
    --border: rgba(0, 0, 0, 0.08);
    --text: #1f1f1f;
    --title-text: #1f1f1f;
    --muted: #8a8a93;
    --seller-text: #767676;
    --price: #ff4f24;
    --price-conv: #1f1f1f;
    --skel: rgba(0, 0, 0, 0.06);
    --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--ic-font);
    font-size: 13px;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(128, 128, 128, 0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(128, 128, 128, 0.42); }

/* =====================================================================
   HEADER — marca · busca · preferências
   Mesma linguagem da extensão na Goofish: vidro escuro, amarelo #FFDA00
   nos estados ativos, cantos de 12-18px, molas nas animações.
   ===================================================================== */
.hub-header {
    position: relative;
    z-index: 40;
    flex: none;
    background: var(--header-bg);
}

.hub-header-inner {
    max-width: 1460px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 24px;
    padding: 14px 24px 8px;
}

/* --- Marca --- */
.hub-brand {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    height: 46px;
    padding-right: 6px;
    text-decoration: none;
    color: inherit;
    border-radius: var(--ic-r-md);
}
.hub-brand:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 4px; }
.hub-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 11px;
    border-radius: var(--ic-r-md);
    background: var(--ic-yellow);
    color: var(--ic-on-yellow);
    font-weight: 900;
    font-size: 18px;
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(255, 218, 0, 0.22);
    transition: transform 0.45s var(--ic-spring), box-shadow 0.3s;
}
.hub-brand:hover .hub-brand-mark { transform: rotate(-6deg) scale(1.06); box-shadow: var(--ic-glow-yellow); }
.hub-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.hub-brand-title { font-weight: 800; font-size: 16px; letter-spacing: -0.3px; color: var(--text); white-space: nowrap; }
.hub-brand-title span { color: var(--accent); font-weight: 800; }
html.ic-light .hub-brand-title span { color: #7A6300; }
.hub-brand-sub { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* --- Busca --- */
.hub-search-center {
    justify-self: center;
    width: 100%;
    max-width: 720px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hub-search-box {
    position: relative;
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 4px 4px 16px;
    background: var(--search-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--ic-r-pill);
    transition: border-color 0.2s, box-shadow 0.3s var(--ic-out), background 0.2s;
}
.hub-search-box:hover { border-color: var(--ic-line-strong); }
html.ic-light .hub-search-box { background: #ffffff; border-color: rgba(0, 0, 0, 0.12); }
html.ic-light .hub-search-box:hover { border-color: rgba(0, 0, 0, 0.22); }
.hub-search-box:focus-within,
html.ic-light .hub-search-box:focus-within {
    border-color: var(--ic-yellow);
    box-shadow: 0 0 0 4px var(--ic-yellow-soft), 0 10px 30px rgba(0, 0, 0, 0.25);
}
html.ic-light .hub-search-box:focus-within { box-shadow: 0 0 0 4px rgba(255, 218, 0, 0.25), 0 10px 24px rgba(0, 0, 0, 0.08); }

.hub-search-ico { flex-shrink: 0; color: var(--muted); transition: color 0.2s, transform 0.35s var(--ic-spring); }
.hub-search-box:focus-within .hub-search-ico { color: var(--ic-yellow); transform: scale(1.08); }
html.ic-light .hub-search-box:focus-within .hub-search-ico { color: #7A6300; }

.hub-search-box input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 6px;
    border: none;
    background: transparent;
    color: var(--text);
    font: 500 14px var(--ic-font);
    outline: none;
}
.hub-search-box input::placeholder { color: var(--muted); opacity: 1; }

.hub-search-clear {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: var(--pill-bg);
    color: var(--muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    animation: hub-pop-sm 0.3s var(--ic-spring) both;
    transition: background 0.2s, color 0.2s, transform 0.3s var(--ic-spring);
}
.hub-search-clear[hidden] { display: none; }
.hub-search-clear:hover { background: var(--pill-hover); color: var(--text); transform: rotate(90deg); }

.hub-search-kbd {
    flex-shrink: 0;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    background: var(--pill-bg);
    color: var(--muted);
    font: 700 11px/19px var(--ic-font);
    text-align: center;
    transition: opacity 0.2s, transform 0.2s;
}
.hub-search-box:focus-within .hub-search-kbd,
.hub-search-box.has-text .hub-search-kbd { opacity: 0; transform: scale(0.8); width: 0; min-width: 0; padding: 0; border: none; }

.hub-search-photo {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s, color 0.2s, transform 0.35s var(--ic-spring);
}
.hub-search-photo:hover { background: var(--pill-hover); color: var(--text); transform: scale(1.06); }

.hub-search-submit {
    flex-shrink: 0;
    height: 36px;
    padding: 0 16px 0 18px;
    border: none;
    border-radius: var(--ic-r-pill);
    background: var(--ic-yellow);
    color: var(--ic-on-yellow);
    font: 800 13px var(--ic-font);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, box-shadow 0.3s, transform 0.3s var(--ic-spring);
}
.hub-search-submit svg { transition: transform 0.35s var(--ic-spring); }
.hub-search-submit:hover { background: var(--ic-yellow-hover); box-shadow: var(--ic-glow-yellow); }
.hub-search-submit:hover svg { transform: translateX(3px); }
.hub-search-submit:active { transform: scale(0.95); }
.hub-search-photo:focus-visible, .hub-search-submit:focus-visible, .hub-search-clear:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }

/* --- Buscas populares (rola na horizontal, pontas esmaecem quando há mais) --- */
.hub-pills-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0 6px 0 16px;
}
.hub-pills-label {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--muted);
}
.hub-pills-bar {
    --fade-l: 0px;
    --fade-r: 0px;
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 6px;
    padding: 2px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
}
.hub-pills-bar::-webkit-scrollbar { display: none; }
.hub-pills-bar.fade-l { --fade-l: 28px; }
.hub-pills-bar.fade-r { --fade-r: 28px; }

.hub-pills-bar .quick-pill {
    flex: none;
    height: 26px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: var(--ic-r-pill);
    background: transparent;
    color: var(--muted);
    font: 600 12px var(--ic-font);
    white-space: nowrap;
    cursor: pointer;
    animation: hub-pill-in 0.4s var(--ic-out) both;
    animation-delay: calc(var(--i, 0) * 30ms);
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.3s var(--ic-spring);
}
.hub-pills-bar .quick-pill:hover { color: var(--text); border-color: var(--ic-yellow-line); background: var(--ic-yellow-soft); transform: translateY(-1px); }
.hub-pills-bar .quick-pill.active { color: var(--ic-on-yellow); background: var(--ic-yellow); border-color: var(--ic-yellow); }
html.ic-light .hub-pills-bar .quick-pill { border-color: rgba(0, 0, 0, 0.1); color: #5f5f66; }
html.ic-light .hub-pills-bar .quick-pill:hover { color: #1f1f1f; }
html.ic-light .hub-pills-bar .quick-pill.active { color: var(--ic-on-yellow); }
.hub-pills-bar .quick-pill:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 1px; }

/* --- Ações à direita --- */
.hub-header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 46px;
}
.hub-prefs { display: flex; align-items: center; gap: 6px; }
.hub-actions-sep { width: 1px; height: 20px; margin: 0 2px; background: var(--border); }

.hub-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: var(--ic-r-pill);
    background: var(--pill-bg);
    color: var(--text);
    font: 600 12px var(--ic-font);
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.3s var(--ic-spring);
}
.hub-status-pill:hover { background: var(--pill-hover); border-color: var(--ic-line-strong); transform: translateY(-1px); }
.hub-status-pill:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }
.hub-status-pill .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ic-yellow); flex-shrink: 0; }
.hub-status-pill.online .dot { background: var(--ic-green); }
.hub-status-pill.online .dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--ic-green); animation: hub-ping 2.4s var(--ic-out) infinite; }
.hub-status-pill.offline .dot { background: var(--ic-red); }

.hub-icon-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--pill-bg);
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.3s var(--ic-spring);
}
.hub-icon-btn:hover { background: var(--pill-hover); border-color: var(--ic-yellow-line); color: var(--ic-yellow); transform: translateY(-1px); }
html.ic-light .hub-icon-btn:hover { color: #7A6300; }
.hub-icon-btn:active { transform: scale(0.92); }
.hub-icon-btn:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }
.hub-icon-btn svg { transition: transform 0.5s var(--ic-spring); }
.hub-gear-btn:hover svg { transform: rotate(60deg); }
#ic-theme-btn:hover svg { transform: rotate(-20deg) scale(1.08); }
#ic-theme-btn.is-swap svg { animation: hub-theme-swap 0.5s var(--ic-spring); }

/* =====================================================================
   SELETOR (substitui o <select> nativo; o <select> continua por baixo)
   ===================================================================== */
.ic-dd { position: relative; display: inline-flex; }
.ic-dd > select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ic-dd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 10px 0 6px;
    border: 1px solid var(--border);
    border-radius: var(--ic-r-pill);
    background: var(--pill-bg);
    color: var(--text);
    font: 700 12.5px var(--ic-font);
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.3s var(--ic-spring);
}
.ic-dd-btn:hover { background: var(--pill-hover); border-color: var(--ic-line-strong); transform: translateY(-1px); }
.ic-dd.is-open .ic-dd-btn { border-color: var(--ic-yellow); background: var(--ic-yellow-soft); transform: none; }
.ic-dd-btn:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }
.ic-dd-btn .ic-dd-pre { color: var(--muted); font-weight: 600; }
.ic-dd-chev { color: var(--muted); transition: transform 0.35s var(--ic-spring), color 0.2s; }
.ic-dd.is-open .ic-dd-chev { transform: rotate(180deg); color: var(--ic-yellow); }
html.ic-light .ic-dd.is-open .ic-dd-chev { color: #7A6300; }

/* Ícone à esquerda: símbolo da moeda ou logo do agente */
.ic-dd-ico {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--ic-yellow);
    color: var(--ic-on-yellow);
    font-size: 11px;
    font-weight: 900;
}
.ic-dd-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ic-dd-ico.is-img { background: #ffffff; }
.ic-dd[data-kind="sort"] .ic-dd-btn { padding-left: 12px; }

/* Lista */
.ic-dd-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 60;
    min-width: 100%;
    width: max-content;
    max-width: min(300px, calc(100vw - 24px));
    max-height: min(380px, calc(100vh - 120px));
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: rgba(24, 24, 27, 0.92);
    border: 1px solid var(--ic-line);
    border-radius: var(--ic-r-lg);
    box-shadow: var(--ic-shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--ic-blur);
    -webkit-backdrop-filter: var(--ic-blur);
    transform-origin: top left;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.96);
    transition: opacity 0.18s ease, transform 0.35s var(--ic-spring), visibility 0s linear 0.18s;
    scrollbar-width: thin;
}
.ic-dd-menu.align-right { left: auto; right: 0; transform-origin: top right; }
.ic-dd.is-open .ic-dd-menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.18s ease, transform 0.35s var(--ic-spring), visibility 0s; }
html.ic-light .ic-dd-menu { background: rgba(255, 255, 255, 0.96); border-color: rgba(0, 0, 0, 0.08); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14); }

.ic-dd-head { padding: 6px 10px 6px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.ic-dd-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 6px 10px;
    border-radius: var(--ic-r-md);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, color 0.15s;
}
.ic-dd.is-open .ic-dd-opt { animation: hub-opt-in 0.32s var(--ic-out) both; animation-delay: calc(var(--i, 0) * 22ms); }
.ic-dd-opt.is-active { background: var(--pill-hover); }
.ic-dd-opt[aria-selected="true"] { color: var(--ic-yellow); background: var(--ic-yellow-soft); }
html.ic-light .ic-dd-opt[aria-selected="true"] { color: #6B5600; background: rgba(255, 218, 0, 0.2); }
.ic-dd-opt .ic-dd-ico { width: 26px; height: 26px; }
.ic-dd-opt-txt { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.ic-dd-opt-txt small { font-size: 11px; font-weight: 500; color: var(--muted); }
.ic-dd-check { flex-shrink: 0; opacity: 0; transform: scale(0.5); transition: opacity 0.2s, transform 0.3s var(--ic-spring); }
.ic-dd-opt[aria-selected="true"] .ic-dd-check { opacity: 1; transform: none; }

/* =====================================================================
   BARRA DE BAIXO — abas · filtros · status
   ===================================================================== */
.hub-toolbar {
    position: relative;
    z-index: 30;
    flex: none;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
}

.hub-toolbar-inner {
    max-width: 1460px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px 16px;
    padding: 8px 24px 12px;
    flex-wrap: wrap;
}
.hub-toolbar-inner .hub-tabs { margin-bottom: 0; }

.hub-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.price-range-box {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 36px;
    padding: 0 6px 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--ic-r-pill);
    background: var(--pill-bg);
    color: var(--muted);
    font-size: 12px;
    transition: border-color 0.2s, box-shadow 0.3s, background 0.2s;
}
.price-range-box:hover { background: var(--pill-hover); }
.price-range-box:focus-within { border-color: var(--ic-yellow); box-shadow: 0 0 0 3px var(--ic-yellow-soft); }
.price-range-cur { font-weight: 800; color: var(--muted); margin-right: 4px; }
.price-range-box input {
    width: 58px;
    height: 26px;
    padding: 0 6px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font: 600 12.5px var(--ic-font);
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}
.price-range-box input::-webkit-outer-spin-button,
.price-range-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-range-box input:focus { background: var(--pill-bg); }
.price-range-box input::placeholder { color: var(--muted); }
.range-dash { width: 8px; height: 1.5px; border-radius: 2px; background: var(--muted); opacity: 0.6; }

/* Caixa de seleção no mesmo estilo dos seletores da extensão */
.filter-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}
.filter-check:hover { color: var(--text); }
.filter-check input {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1.5px solid var(--ic-line-strong);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s, border-color 0.2s, transform 0.3s var(--ic-spring);
}
html.ic-light .filter-check input { border-color: rgba(0, 0, 0, 0.25); }
.filter-check input::after {
    content: '';
    width: 9px;
    height: 5px;
    margin-top: -2px;
    border-left: 2px solid var(--ic-on-yellow);
    border-bottom: 2px solid var(--ic-on-yellow);
    transform: rotate(-45deg) scale(0);
    transition: transform 0.3s var(--ic-spring);
}
.filter-check input:checked { background: var(--ic-yellow); border-color: var(--ic-yellow); }
.filter-check input:checked::after { transform: rotate(-45deg) scale(1); }
.filter-check input:active { transform: scale(0.88); }
.filter-check input:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }

/* Na barra de filtros, a caixa vira um chip */
.filter-chip {
    height: 36px;
    padding: 0 13px 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--ic-r-pill);
    background: var(--pill-bg);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.filter-chip:hover { background: var(--pill-hover); }
.filter-chip:has(input:checked) { color: var(--text); border-color: var(--ic-yellow-line); }

.hub-search-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    min-width: 0;
}
.status-text { color: var(--muted); font-size: 12px; line-height: 1.35; }

/* --- Animações do header --- */
@keyframes hub-pop-sm { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: none; } }
@keyframes hub-pill-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes hub-opt-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes hub-ping { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes hub-theme-swap { 0% { transform: rotate(-90deg) scale(0.4); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* --- Telas menores --- */
/* A busca é o principal: abaixo de 1440px o status vira só a bolinha e a marca perde a linha de baixo */
@media (max-width: 1440px) {
    .hub-header-inner { column-gap: 16px; }
    #ic-backend-pill-text { display: none; }
    .hub-status-pill { width: 36px; padding: 0; justify-content: center; }
}
@media (max-width: 1180px) {
    .hub-brand-sub { display: none; }
    .ic-dd[data-kind="agent"] .ic-dd-label { display: none; }
}
@media (max-width: 900px) {
    .hub-header-inner { grid-template-columns: auto auto; row-gap: 10px; padding: 12px 16px 8px; }
    .hub-search-center { grid-column: 1 / -1; grid-row: 2; }
    .hub-header-actions { height: auto; }
    .hub-actions-sep { display: none; }
    .hub-toolbar-inner { padding: 8px 16px 12px; }
    .hub-search-meta { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 560px) {
    .hub-brand-text { display: none; }
    .hub-search-kbd, .hub-pills-label { display: none; }
    .hub-pills-wrap { padding-left: 4px; }
    .hub-search-submit { width: 38px; padding: 0; justify-content: center; }
    .hub-search-submit span { display: none; }
    .ic-dd[data-kind="agent"] .ic-dd-label { display: none; }
    /* Celular: filtros numa linha só que rola de lado, em vez de ocupar meia tela */
    .hub-toolbar-inner { gap: 8px; padding: 6px 12px 10px; }
    .hub-toolbar-inner .hub-tabs { width: 100%; }
    .hub-toolbar-inner .hub-tabs button { flex: 1; justify-content: center; padding: 0 8px; }
    .hub-filters { width: calc(100% + 24px); margin: 0 -12px; padding: 0 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .hub-filters::-webkit-scrollbar { display: none; }
    .hub-filters > * { flex-shrink: 0; }
    .hub-header-inner { padding: 10px 12px 6px; column-gap: 8px; }
    .hub-header-actions { gap: 6px; }
    .hub-prefs { gap: 4px; }
    .ic-dd-btn { padding-right: 8px; }
    .hub-icon-btn, .hub-status-pill { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
    .hub-header *, .hub-toolbar * { animation: none !important; transition-duration: 0.01ms !important; }
}

/* Workspace */
.hub-workspace {
    flex: 1;
    min-height: 0;
    display: flex;
    overflow: hidden;
}

.hub-results-col {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding: 16px 20px 68px;
}

.hub-grid {
    /* width 100%: com margem automática dentro da vitrine (grid) a grade media o máximo e passava por baixo da ficha */
    width: 100%;
    min-width: 0;
    max-width: 1420px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
    gap: 6px;
    align-content: start;
}

/* Top API search status + skeleton row inside grid */
.hub-api-banner {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 218, 0, 0.08);
    border: 1px solid rgba(255, 218, 0, 0.25);
    margin-bottom: 4px;
}
.hub-api-banner-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hub-api-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 218, 0, 0.25);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: hubSpin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes hubSpin { to { transform: rotate(360deg); } }
@keyframes hubShimmer {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.85; }
}
.hub-api-title { font-size: 13px; font-weight: 700; color: var(--text); }
.hub-api-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.hub-api-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-fg);
    flex-shrink: 0;
}

.hub-skel-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}
.hub-skel-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 8px;
    animation: hubShimmer 1.4s ease-in-out infinite;
}
.hub-skel-img { width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; background: var(--skel); }
.hub-skel-line { height: 13px; border-radius: 8px; background: var(--skel); margin-top: 10px; }
.hub-skel-line.short { width: 55%; height: 18px; margin-bottom: 6px; }

.hub-section-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 4px 2px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}
.hub-section-head.muted {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-weight: 600;
}
.hub-section-pill { display: inline-flex; align-items: center; gap: 6px; }
.hub-section-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hub-section-count { font-size: 11px; color: var(--muted); font-weight: 600; }

/* Card no molde do feed da Goofish (medido na goofish.com): borda de 6px, foto quadrada com cantos de 16px,
   título 16/24 em 2 linhas, linha de etiquetas fixa, preço grande e vendedor embaixo. */
.item-card {
    background: var(--surface);
    border: 6px solid transparent;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.3s, border-color 0.2s;
    position: relative;
    min-width: 0;
}
.item-card:hover {
    background: var(--surface-hover);
    box-shadow: var(--card-shadow);
    z-index: 2;
}
html.ic-light .item-card:hover { border-color: #ffffff; }
.item-card.selected { outline: 2px solid var(--accent); outline-offset: 0; }

.item-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    background: rgba(128, 128, 128, 0.08);
    overflow: hidden;
}
.item-thumb { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 16px; }
.item-thumb-fallback {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 12px; text-align: center; padding: 12px;
}

/* Botões sobre a foto: frete grátis (verde) · título original · favoritar */
.card-actions { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; align-items: center; z-index: 3; }
.card-act {
    width: 32px; height: 32px; border-radius: 50%; padding: 0;
    display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(20, 20, 20, 0.62);
    -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
    transition: background 0.18s, border-color 0.18s, color 0.18s, translate 0.3s var(--ic-spring, ease);
}
button.card-act { cursor: pointer; }
button.card-act:hover { translate: 0 -2px; background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.card-act svg { display: block; }
.card-ship { background: rgba(48, 203, 40, 0.78); border-color: rgba(48, 203, 40, 0.6); cursor: default; }
.card-tr-btn.active { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.card-fav-btn.active { background: #30CB28; border-color: #30CB28; color: #ffffff; }

.card-sold-badge {
    position: absolute; top: 8px; left: 8px; background: #FF4D4F; color: #ffffff;
    padding: 2px 7px; border-radius: 8px; font-size: 10px; font-weight: 800;
}

.item-body { padding: 8px 8px 0; display: flex; flex-direction: column; flex: 1; min-width: 0; }

.item-title-pt {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    height: 48px;
    color: var(--title-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.item-card.show-original .item-title-pt { font-size: 15px; }
.item-title-cn { display: none; }

/* Linha 2 (etiquetas): 32px fixos, mesmo vazia */
.item-tags { display: flex; gap: 6px; flex-wrap: nowrap; height: 32px; padding: 8px 0; align-items: center; overflow: hidden; }
.tag-chip {
    --tag: var(--muted);
    flex-shrink: 0;
    font-size: 12px; font-weight: 600; line-height: 16px;
    padding: 0 6px; border-radius: 4px;
    color: var(--tag);
    background: color-mix(in srgb, var(--tag) 14%, transparent);
}

/* Linha 3 (preço): ¥ pequeno, número grande, real ao lado */
.item-prices { display: flex; align-items: baseline; gap: 6px; height: 24px; white-space: nowrap; overflow: hidden; }
.gf-price-wrap { display: inline-flex; align-items: baseline; color: var(--price); font-weight: 800; line-height: 1; flex-shrink: 0; }
.gf-price-sign { font-size: 14px; margin-right: 1px; }
.gf-price-int { font-size: 24px; letter-spacing: -0.4px; }
.gf-price-dec { font-size: 18px; }
.item-price-conv { color: var(--price-conv); font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }

/* Linha 4 (vendedor): avatar 20px, apelido cinza, "N querem" como o selo laranja da Xianyu */
.item-seller-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 48px; padding: 12px 0; color: var(--seller-text); }
.item-seller-left { display: flex; align-items: center; gap: 4px; min-width: 0; }
.item-seller-avatar { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--pill-bg); }
.item-seller-nick { font-size: 14px; line-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--seller-text); }
.item-want {
    flex-shrink: 0; font-size: 12.5px; line-height: 19px; height: 19px; padding: 0 7px; border-radius: 10px;
    background: rgba(255, 121, 0, 0.14); color: #ff9a3c;
}
html.ic-light .item-want { background: #fff4eb; color: #ff7900; }

/* Right detail drawer */
.hub-detail-col {
    width: min(540px, 46vw);
    flex: none;
    background: var(--surface);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--header-bg);
}
.detail-nav { display: flex; align-items: center; gap: 8px; }
.detail-id { font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); }
.detail-topbar-actions { display: flex; gap: 6px; }

.detail-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px 60px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.detail-notice {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #FFDA00;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.45;
}

.gallery-stage {
    position: relative;
    width: 100%;
    height: 300px;
    background: #0f0f10;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
}
.gallery-arrow.prev { left: 8px; }
.gallery-arrow.next { right: 8px; }
.gallery-counter {
    position: absolute;
    bottom: 8px;
    right: 10px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
}
.gallery-thumbs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin-top: 8px;
    padding-bottom: 4px;
}
.gallery-thumbs img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
}
.gallery-thumbs img.active { opacity: 1; border-color: var(--accent); }

.detail-title { margin: 0; font-size: 18px; line-height: 1.38; color: var(--title-text); }
.detail-title-cn { color: var(--muted); font-size: 12px; margin-top: 4px; }
.detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.price-cny { color: var(--price); font-size: 28px; font-weight: 800; }
.price-conv { color: var(--price-conv); font-size: 18px; font-weight: 700; }
.price-orig { color: var(--muted); font-size: 14px; }
.status-pill {
    background: rgba(255, 77, 79, 0.16);
    color: #FF4D4F;
    border: 1px solid rgba(255, 77, 79, 0.4);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
.detail-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.detail-stats { color: var(--muted); font-size: 12px; margin-top: 8px; }

.detail-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.btn-buy { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

.seller-card {
    margin-top: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    line-height: 1.5;
}
.ai-box {
    margin-top: 12px;
    background: rgba(255, 218, 0, 0.05);
    border: 1px solid rgba(255, 218, 0, 0.25);
    border-radius: 12px;
    padding: 10px 12px;
}
.ai-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}
html.ic-light .ai-box-header { color: #7A6300; }
.ai-output { font-size: 13px; line-height: 1.55; white-space: pre-wrap; color: var(--text); }
.ai-output.is-md { white-space: normal; }
.ai-output.is-md > :first-child { margin-top: 0; }
.ai-output.is-md h4 { margin: 14px 0 4px; font-size: 13.5px; font-weight: 800; color: var(--accent); }
html.ic-light .ai-output.is-md h4 { color: #7A6300; }
.ai-output.is-md p { margin: 0 0 6px; }
.ai-output.is-md ul { margin: 2px 0 8px; padding-left: 18px; }
.ai-output.is-md li { margin: 2px 0; }
.ai-output.is-md li::marker { color: var(--accent); }
.ai-output.is-md strong { font-weight: 700; color: var(--text); }
.ai-output.is-md code { font-size: 12px; padding: 1px 5px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); }
html.ic-light .ai-output.is-md code { background: rgba(0, 0, 0, 0.06); }
.ai-output.is-md hr { border: 0; border-top: 1px solid var(--border); margin: 10px 0; }

.detail-desc-box {
    margin-top: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
}
.desc-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.detail-desc { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: inherit; line-height: 1.5; }

.related-section { margin-top: 6px; border-top: 1px solid var(--border); padding-top: 10px; }
.related-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.rel-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    padding: 7px 10px;
    cursor: pointer;
    font-weight: 600;
}
.rel-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.rel-tab span { color: var(--accent); margin-left: 3px; }
html.ic-light .rel-tab span { color: #7A6300; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.h5-wrap { height: 420px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.h5-frame { width: 100%; height: 100%; border: none; background: #ffffff; }

/* Buttons */
.btn-primary {
    background: var(--accent);
    color: var(--accent-fg);
    border: none;
    border-radius: 999px;
    height: 34px;
    padding: 0 18px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-primary { transition: background 0.2s ease, box-shadow 0.3s ease, translate 0.35s var(--ic-spring), scale 0.2s ease; }
.btn-primary:hover { background: var(--ic-yellow-hover); box-shadow: var(--ic-glow-yellow); translate: 0 -1px; }
.btn-primary:active, .btn-secondary:active { scale: 0.96; }
/* Comprar pelo agente = ação de dinheiro → verde (igual ao botão da extensão no Goofish) */
.btn-primary.btn-buy { background: var(--ic-green); color: var(--ic-on-green); }
.btn-primary.btn-buy:hover { background: #45D63E; box-shadow: var(--ic-glow-green); }

.btn-secondary {
    background: var(--pill-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, translate 0.35s var(--ic-spring), scale 0.2s ease;
}
.btn-secondary:hover { background: var(--pill-hover); border-color: var(--ic-yellow-line); translate: 0 -1px; }

.btn-accent {
    background: var(--accent);
    color: var(--accent-fg);
    border: none;
    border-radius: 999px;
    height: 30px;
    padding: 0 14px;
    font-weight: 700;
    cursor: pointer;
    font-size: 12px;
}
.btn-accent:hover { filter: brightness(0.96); }
.btn-accent:disabled { opacity: 0.6; cursor: wait; }

.btn-accent-sm {
    background: var(--accent);
    color: var(--accent-fg);
    border: none;
    border-radius: 999px;
    padding: 4px 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 11px;
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 11px;
    cursor: pointer;
    font-size: 12px;
}
.btn-ghost:disabled { opacity: 0.4; cursor: default; }
.btn-icon {
    background: var(--pill-bg);
    border: none;
    color: var(--text);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-icon:hover { background: var(--pill-hover); }
.full-w { width: 100%; margin-top: 10px; }

.empty-state {
    grid-column: 1 / -1;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    color: var(--muted);
    line-height: 1.6;
}

.quota-pill {
    position: fixed;
    left: 16px;
    bottom: 14px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--muted);
    box-shadow: var(--shadow);
}
.quota-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-card {
    width: min(520px, 100%);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}
.modal-header h2 { margin: 0; font-size: 16px; }
.modal-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.modal-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
html.ic-light .modal-section-title { color: #7A6300; }
.modal-field { display: flex; flex-direction: column; gap: 6px; }
.modal-field input,
.modal-field select {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 12px;
    border-radius: 12px;
    font: inherit;
}
.modal-field small { color: var(--muted); line-height: 1.4; }
.modal-test-row { display: flex; gap: 8px; align-items: center; }
.modal-test-row input {
    flex: 1;
    min-width: 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 10px;
    border-radius: 12px;
}
.modal-test-status {
    font-size: 12px;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 10px;
    line-height: 1.45;
    white-space: pre-wrap;
}
.modal-auth-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
}
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-desc { font-size: 12px; color: var(--muted); margin-top: 3px; }
.auth-btns { display: flex; gap: 8px; }
.modal-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .hub-detail-col {
        position: fixed;
        inset: 0;
        width: 100%;
        z-index: 40;
    }
    .hub-skel-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ===================================================================
   MOVIMENTO (mesmo padrão da extensão: entrada 0.45–0.55s com curva de
   saída/mola, saída 0.3s com curva de entrada)
   =================================================================== */
@keyframes hub-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hub-fade-out { to { opacity: 0; } }
@keyframes hub-pop-in { 0% { opacity: 0; translate: 0 30px; scale: 0.9; filter: blur(8px); } 60% { opacity: 1; translate: 0 -4px; scale: 1.01; filter: blur(0); } 100% { opacity: 1; translate: 0 0; scale: 1; filter: none; } }
@keyframes hub-pop-out { to { opacity: 0; translate: 0 18px; scale: 0.92; filter: blur(6px); } }
@keyframes hub-panel-in { 0% { opacity: 0; translate: 40px 0; filter: blur(6px); } 65% { opacity: 1; translate: -6px 0; filter: none; } 100% { opacity: 1; translate: 0 0; } }
@keyframes hub-panel-out { to { opacity: 0; translate: 40px 0; filter: blur(6px); } }
@keyframes hub-card-in { from { opacity: 0; translate: 0 18px; scale: 0.96; filter: blur(4px); } to { opacity: 1; translate: 0 0; scale: 1; filter: none; } }

.modal-backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: hub-fade-in 0.3s ease both; }
.modal-card { border-radius: var(--ic-r-2xl); box-shadow: var(--ic-shadow-3); animation: hub-pop-in 0.55s var(--ic-out) both; }
.modal-backdrop.is-leaving { animation: hub-fade-out 0.3s ease forwards; pointer-events: none; }
.modal-backdrop.is-leaving .modal-card { animation: hub-pop-out 0.3s var(--ic-in) forwards; }

.hub-detail-col { animation: hub-panel-in 0.5s var(--ic-out) both; }
.hub-detail-col.is-leaving { animation: hub-panel-out 0.3s var(--ic-in) forwards; pointer-events: none; }

.item-card { animation: hub-card-in 0.45s var(--ic-out) both; transition: background-color 0.18s, box-shadow 0.25s, border-color 0.18s, translate 0.35s var(--ic-spring); }
.item-card:nth-child(2) { animation-delay: 30ms; }
.item-card:nth-child(3) { animation-delay: 60ms; }
.item-card:nth-child(4) { animation-delay: 90ms; }
.item-card:nth-child(5) { animation-delay: 120ms; }
.item-card:nth-child(6) { animation-delay: 150ms; }
.item-card:nth-child(7) { animation-delay: 180ms; }
.item-card:nth-child(8) { animation-delay: 210ms; }
.item-card:nth-child(9) { animation-delay: 240ms; }
.item-card:nth-child(10) { animation-delay: 270ms; }
.item-card:nth-child(11) { animation-delay: 300ms; }
.item-card:nth-child(12) { animation-delay: 330ms; }
.item-card:nth-child(13) { animation-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
    .modal-backdrop, .modal-card, .hub-detail-col, .item-card { animation-duration: 0.01ms !important; }
}

/* Saldo de buscas acabando */
.quota-pill.is-low { color: var(--ic-red); border-color: rgba(255, 77, 79, 0.45); }

/* Selo de limites: buscas novas + créditos de foto, cada um com sua barrinha */
.quota-pill { gap: 10px; padding: 7px 14px; border-radius: 14px; }
.qp-item { display: flex; align-items: center; gap: 7px; min-width: 0; }
.qp-ico { flex-shrink: 0; width: 14px; height: 14px; color: var(--muted); }
.qp-main { display: grid; gap: 4px; min-width: 76px; }
.qp-txt { font-size: 11.5px; font-weight: 700; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.qp-bar { display: block; height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.qp-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ic-green); transition: width 0.6s var(--ic-out), background 0.3s; }
.qp-item.is-low .qp-bar span { background: var(--ic-red); }
.qp-item.is-low .qp-txt { color: var(--ic-red); }
.qp-item.is-mid .qp-bar span { background: var(--ic-yellow); }
.qp-item.is-off .qp-txt { color: var(--muted); }
.qp-item[hidden] { display: none; }
.qp-sep { width: 1px; align-self: stretch; background: var(--border); }
.qp-sep[hidden] { display: none; }
.quota-pill .quota-dot { display: none; }
@media (max-width: 560px) { .qp-main { min-width: 62px; } .quota-pill { left: 10px; bottom: 10px; padding: 6px 10px; gap: 8px; } }

/* Em alta (grátis) */
.hub-trending { margin: 0 0 18px; display: grid; gap: 10px; }
.hub-trending[hidden] { display: none; }
.hub-trending-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hub-trending-title { font-size: 16px; font-weight: 800; color: var(--text); }
.hub-trending-sub { font-size: 12px; color: var(--muted); }
.hub-trending-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 280px); justify-content: start; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.trend-card { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px 8px 8px; border-radius: var(--ic-r-lg); border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; text-align: left; font: inherit; animation: hub-card-in 0.45s var(--ic-out) both; animation-delay: calc(var(--i, 0) * 40ms); transition: border-color 0.2s, translate 0.35s var(--ic-spring), box-shadow 0.25s; }
.trend-card:hover { border-color: var(--ic-yellow-line); translate: 0 -2px; box-shadow: var(--ic-shadow-1); }
.trend-thumb { width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--ic-r-md); overflow: hidden; background: var(--pill-bg); }
.trend-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trend-text { display: grid; gap: 2px; min-width: 0; }
.trend-label { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-meta { font-size: 11px; font-weight: 700; color: var(--ic-green); }
html.ic-light .trend-meta { color: var(--ic-green-ink); }

/* Minha conta */
.quota-pill { cursor: pointer; transition: border-color 0.2s, translate 0.35s var(--ic-spring); }
.quota-pill:hover, .quota-pill:focus-visible { border-color: var(--ic-yellow-line); translate: 0 -2px; outline: none; }
.account-card .modal-body { display: grid; gap: 16px; }
.account-plan { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.account-plan-pill { padding: 4px 12px; border-radius: var(--ic-r-pill); font-size: 12px; font-weight: 800; background: var(--pill-bg); color: var(--text); }
.account-plan-pill.is-premium { background: var(--ic-yellow); color: var(--ic-on-yellow); }
.account-renew { font-size: 12px; color: var(--muted); }
.account-meter { display: grid; gap: 8px; padding: 14px; border-radius: var(--ic-r-lg); background: var(--pill-bg); }
.account-meter-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.account-meter-row strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.account-meter small { color: var(--muted); line-height: 1.4; }
.account-bar { height: 8px; border-radius: var(--ic-r-pill); background: var(--border); overflow: hidden; }
.account-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ic-green); transition: width 0.6s var(--ic-out); }
.account-bar span.is-low { background: var(--ic-red); }
.account-bar span.is-mid { background: var(--ic-yellow); }
.account-limits { display: grid; gap: 10px; }
.account-limits-title { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.account-meter-name { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.account-meter-name svg { width: 15px; height: 15px; color: var(--muted); }
.account-meter small span[id]:not(:empty) { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.account-premium-line { margin: 0; padding: 10px 12px; border-radius: var(--ic-r-lg); border: 1px solid var(--ic-yellow-line); background: var(--ic-yellow-soft); font-size: 12.5px; line-height: 1.45; color: var(--text); }
.account-premium-line[hidden] { display: none; }
.account-premium-line strong { color: var(--ic-yellow); }
html.ic-light .account-premium-line strong { color: #6B5600; }
#ic-account-key-status.is-ok { color: var(--ic-green); }
#ic-account-key-status.is-error { color: var(--ic-red); }
.account-buy { width: 100%; height: 42px; text-decoration: none; }
.account-buy[hidden] { display: none; }
.account-why { display: grid; gap: 6px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.account-why strong { color: var(--text); }
.account-why p { margin: 0; }

/* ===== Abas do Hub ===== */
.hub-tabs { position: relative; display: inline-flex; gap: 2px; padding: 4px; margin-bottom: 10px; border-radius: var(--ic-r-pill); background: var(--pill-bg); border: 1px solid var(--border); }
.hub-tabs button { position: relative; z-index: 1; height: 32px; padding: 0 16px; border: none; border-radius: var(--ic-r-pill); background: transparent; color: var(--muted); font: 700 13px/1 var(--ic-font); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: color 0.25s; }
.hub-tabs button:hover { color: var(--text); }
.hub-tabs button[aria-selected="true"] { color: var(--ic-on-yellow); }
.hub-tabs button:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }
.hub-tabs-ind { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--ic-r-pill); background: var(--ic-yellow); box-shadow: var(--ic-glow-yellow); transition: transform 0.4s var(--ic-spring), width 0.3s var(--ic-out); }
.hub-tab-n { min-width: 18px; padding: 1px 6px; border-radius: var(--ic-r-pill); font-size: 11px; background: rgba(127, 127, 127, 0.18); }
.hub-tab-n:empty { display: none; }
body[data-view]:not([data-view="buscar"]) .hub-filters, body[data-view]:not([data-view="buscar"]) .hub-search-meta { display: none; }

/* ===== Listas (Favoritos, Histórico, Lojas) ===== */
.hub-list-view { display: grid; gap: 14px; animation: hub-card-in 0.4s var(--ic-out) both; }
.hub-list-view[hidden], #ic-results-grid[hidden] { display: none !important; }
.list-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.list-section-head h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--text); }
.list-section-head h3 span { font-size: 13px; font-weight: 600; color: var(--muted); }
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.list-card { position: relative; display: flex; align-items: center; gap: 4px; border-radius: var(--ic-r-lg); background: var(--surface); border: 1px solid var(--border); animation: hub-card-in 0.45s var(--ic-out) both; animation-delay: calc(var(--i, 0) * 30ms); transition: border-color 0.2s, translate 0.35s var(--ic-spring), box-shadow 0.25s, opacity 0.28s; }
.list-card:hover { border-color: var(--ic-yellow-line); translate: 0 -2px; box-shadow: var(--ic-shadow-1); }
.list-card.is-leaving { opacity: 0; translate: 24px 0; scale: 0.97; }
.list-card-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px; border: none; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; border-radius: inherit; }
.list-card-main:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: -2px; }
.list-thumb { width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--ic-r-md); overflow: hidden; display: grid; place-items: center; background: var(--pill-bg); color: var(--ic-yellow); font-weight: 800; font-size: 20px; }
.list-thumb.is-round { border-radius: 50%; border: 2px solid var(--ic-green-line); }
.list-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.list-text { display: grid; gap: 3px; min-width: 0; }
.list-title { font-size: 13px; font-weight: 700; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-sub { font-size: 13px; font-weight: 800; color: var(--price); }
.list-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.list-badge { padding: 1px 7px; border-radius: var(--ic-r-pill); font-size: 10px; font-weight: 800; }
.list-badge.item { color: var(--ic-yellow); background: var(--ic-yellow-soft); }
.list-badge.seller { color: var(--ic-green); background: var(--ic-green-soft); }
.list-badge.level { color: var(--ic-on-yellow); background: var(--ic-yellow); }
html.ic-light .list-badge.item { color: var(--ic-yellow-ink, #7A6300); }
html.ic-light .list-badge.seller { color: var(--ic-green-ink); }
.list-action { width: 36px; height: 36px; margin-right: 10px; flex-shrink: 0; border-radius: var(--ic-r-md); border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: color 0.2s, background 0.2s, border-color 0.2s; }
.list-action:hover { color: var(--ic-red); border-color: rgba(255, 77, 79, 0.4); background: rgba(255, 77, 79, 0.08); }
.list-action.is-active { color: var(--ic-green); border-color: var(--ic-green-line); background: var(--ic-green-soft); }
.list-action.is-active:hover { color: var(--ic-red); }
.list-action.is-pop svg { animation: hub-heart-pop 0.5s var(--ic-spring); }
@keyframes hub-heart-pop { 0% { scale: 0.4; } 50% { scale: 1.4; } 100% { scale: 1; } }
.list-empty { padding: 26px; border-radius: var(--ic-r-lg); border: 1px dashed var(--border); color: var(--muted); font-size: 13px; text-align: center; }
.list-note { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.btn-secondary.is-danger { color: #fff; background: var(--ic-red); border-color: var(--ic-red); }
@media (prefers-reduced-motion: reduce) { .list-card, .hub-list-view { animation-duration: 0.01ms !important; } }

/* Carregar mais (página seguinte da nuvem) */
.hub-load-more { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 0 8px; }
.hub-load-more[hidden] { display: none; }
.hub-load-more .btn-secondary { height: 40px; padding: 0 22px; font-size: 13px; font-weight: 700; }
.hub-load-more span { font-size: 11px; color: var(--muted); }

/* Aviso de anúncios ocultos como sucata */
.hub-hidden-note { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-radius: var(--ic-r-md); background: var(--ic-red-soft, rgba(255, 77, 79, 0.1)); border: 1px solid rgba(255, 77, 79, 0.25); color: var(--text); font-size: 12px; font-weight: 600; animation: hub-card-in 0.4s var(--ic-out) both; }
.hub-hidden-note .btn-ghost { height: 28px; padding: 0 12px; font-size: 12px; font-weight: 700; }

/* Configurações: preferências + "Avançado" recolhido */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.settings-switch { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; cursor: pointer; width: fit-content; }
.settings-switch input { position: absolute; opacity: 0; pointer-events: none; }
.settings-switch-track { position: relative; width: 38px; height: 22px; border-radius: var(--ic-r-pill); background: var(--border); transition: background 0.25s var(--ic-out); flex-shrink: 0; }
.settings-switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); transition: translate 0.3s var(--ic-spring); }
.settings-switch input:checked + .settings-switch-track { background: var(--ic-yellow); }
.settings-switch input:checked + .settings-switch-track::after { translate: 16px 0; }
.settings-switch input:focus-visible + .settings-switch-track { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }

/* Recursos no Goofish */
.features-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.features-all { font-size: 12px; padding: 4px 10px; text-transform: none; letter-spacing: 0; }
.features-all[hidden] { display: none; }
.features-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 10px; }
.feature-row { width: auto; align-items: flex-start; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--border); transition: border-color 0.2s var(--ic-out), background 0.2s var(--ic-out); }
.feature-row:hover { border-color: rgba(255, 218, 0, 0.35); }
.feature-row .settings-switch-track { margin-top: 2px; }
.feature-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feature-text strong { font-size: 13px; font-weight: 700; }
.feature-text small { font-size: 11.5px; font-weight: 500; line-height: 1.35; color: var(--muted); }
.feature-row:has(input:not(:checked)) .feature-text { opacity: 0.6; }
@media (max-width: 640px) { .features-list { grid-template-columns: 1fr; } }
.settings-note { color: var(--muted); font-size: 12px; line-height: 1.45; }
.settings-links { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-links .btn-secondary { height: 36px; padding: 0 14px; font-size: 12.5px; }
.modal-advanced { border: 1px solid var(--border); border-radius: var(--ic-r-lg); background: var(--pill-bg); }
.modal-advanced > summary { list-style: none; cursor: pointer; display: grid; gap: 2px; padding: 12px 40px 12px 14px; position: relative; border-radius: inherit; }
.modal-advanced > summary::-webkit-details-marker { display: none; }
.modal-advanced > summary::after { content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); rotate: 45deg; transition: rotate 0.3s var(--ic-out), margin 0.3s var(--ic-out); }
.modal-advanced[open] > summary::after { rotate: -135deg; margin-top: -2px; }
.modal-advanced > summary span { font-size: 13px; font-weight: 700; }
.modal-advanced > summary small { font-size: 11.5px; color: var(--muted); }
.modal-advanced > summary:hover span { color: var(--ic-yellow); }
html.ic-light .modal-advanced > summary:hover span { color: #7A6300; }
.modal-advanced > summary:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }
.modal-advanced-body { display: grid; gap: 14px; padding: 4px 14px 16px; animation: hub-card-in 0.35s var(--ic-out) both; }
@media (max-width: 560px) { .settings-grid { grid-template-columns: 1fr; } }

/* Boas-vindas */
.welcome-card { max-width: 520px; }
.welcome-hero { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 26px 24px 6px; }
.welcome-hero .hub-brand-mark { height: 48px; padding: 0 15px; border-radius: 14px; font-size: 18px; white-space: nowrap; }
.welcome-hero h2 { margin: 6px 0 0; font-size: 21px; letter-spacing: -0.01em; }
.welcome-hero p { margin: 0; max-width: 380px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.welcome-steps { list-style: none; margin: 0; padding: 14px 24px 4px; display: grid; gap: 12px; }
.welcome-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--ic-r-lg); background: var(--pill-bg); animation: hub-card-in 0.45s var(--ic-out) both; }
.welcome-steps li:nth-child(2) { animation-delay: 0.08s; }
.welcome-steps li:nth-child(3) { animation-delay: 0.16s; }
.welcome-steps strong { font-size: 13.5px; }
.welcome-steps p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.welcome-n { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--ic-yellow); color: var(--ic-on-yellow); }
.welcome-steps li:nth-child(2) .welcome-n { background: var(--ic-green); color: var(--ic-on-green); }
.welcome-prefs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 24px 0; }
.welcome-card .modal-footer #ic-welcome-start { width: 100%; height: 44px; font-size: 14px; }
@media (max-width: 560px) { .welcome-prefs { grid-template-columns: 1fr; } }
.welcome-card { overflow-y: auto; }
.welcome-steps li:nth-child(4) { animation-delay: 0.24s; }
.welcome-steps li:nth-child(4) .welcome-n { background: var(--pill-hover); color: var(--text); }
.welcome-keys { margin: 10px 24px 0; font-size: 12px; line-height: 1.9; color: var(--muted); text-align: center; }
.welcome-keys kbd, .hub-pin kbd {
    min-width: 22px; height: 21px; padding: 0 6px; display: inline-grid; place-items: center; vertical-align: 1px; border-radius: 6px;
    border: 1px solid var(--border); border-bottom-width: 2px; background: var(--surface); color: var(--text);
    font-family: inherit; font-size: 11px; font-weight: 700; line-height: 1;
}
/* Dica para fixar o ícone: mesmo visual da faixa de novidade, com os ícones do Chrome no meio do texto */
.hub-pin .pin-chip { display: inline-grid; place-items: center; width: 22px; height: 22px; margin: 0 1px; vertical-align: -6px; border-radius: 7px; background: var(--pill-bg); color: var(--text); }
.hub-pin .pin-chip svg { width: 13px; height: 13px; }

/* Quanto chega no Brasil */
.ship-box { display: grid; gap: 12px; margin-top: 16px; padding: 16px; border: 1px solid var(--border); border-radius: var(--ic-r-xl, 16px); background: var(--pill-bg); animation: hub-card-in 0.4s var(--ic-out) both; }
.ship-box[hidden] { display: none; }
.ship-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ship-title { font-size: 14px; font-weight: 800; }
.ship-source { font-size: 11px; font-weight: 700; color: var(--ic-green); cursor: help; }
html.ic-light .ship-source { color: var(--ic-green-ink); }
.ship-controls { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.ship-weight { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.ship-weight input { width: 84px; height: 32px; padding: 0 10px; border-radius: var(--ic-r-md, 10px); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-variant-numeric: tabular-nums; }
.ship-weight input:focus { outline: none; border-color: var(--ic-yellow-line); box-shadow: 0 0 0 3px var(--ic-yellow-soft); }
.ship-weight em { font-style: normal; color: var(--muted); margin-left: -4px; }
.ship-guess { flex-basis: 100%; font-size: 11.5px; color: var(--muted); }
.ship-routes { display: grid; gap: 6px; }
.ship-route { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 9px 12px; border-radius: var(--ic-r-md, 10px); border: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; cursor: pointer; transition: border-color 0.2s, background 0.2s, translate 0.2s var(--ic-out); }
.ship-route:hover { border-color: var(--ic-yellow-line); translate: 0 -1px; }
.ship-route:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }
.ship-route.is-active { border-color: var(--ic-yellow); background: var(--ic-yellow-soft); }
.ship-route-name { font-size: 12.5px; font-weight: 700; }
.ship-route-meta { grid-row: 2; font-size: 11px; color: var(--muted); }
.ship-route-price { grid-row: 1 / span 2; grid-column: 2; font-size: 14px; font-variant-numeric: tabular-nums; }
.ship-empty { font-size: 12.5px; color: var(--muted); padding: 6px 0; }
.ship-totals { display: grid; gap: 2px; }
.ship-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed var(--border); }
.ship-row:last-child { border-bottom: 0; }
.ship-row span { display: grid; gap: 2px; }
.ship-row small { font-size: 11px; color: var(--muted); }
.ship-row strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ship-row.is-total strong { font-size: 15px; color: var(--ic-green); }
html.ic-light .ship-row.is-total strong { color: var(--ic-green-ink); }
.ship-row.is-tax strong { color: var(--muted); font-weight: 700; }
.ship-row.is-worst strong { color: var(--text); }
.ship-foot { font-size: 11px; line-height: 1.45; color: var(--muted); }

/* Busca por foto: "em breve" */
.photo-btn { position: relative; }
.soon-dot { position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--ic-yellow); box-shadow: 0 0 0 2px var(--surface-2, #1c1c1f); animation: soon-pulse 2.4s ease-in-out infinite; }
@keyframes soon-pulse { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: 1.35; opacity: 0.75; } }

.photo-card { position: relative; max-width: 440px; overflow-y: auto; }
.photo-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.photo-body { display: grid; gap: 12px; padding: 4px 24px 22px; text-align: center; justify-items: center; }
.photo-badge { padding: 4px 11px; border-radius: var(--ic-r-pill); background: var(--ic-yellow); color: var(--ic-on-yellow); font-size: 11px; font-weight: 800; letter-spacing: 0.02em; }
.photo-body h2 { margin: 0; font-size: 21px; letter-spacing: -0.01em; }
.photo-body > p { margin: 0; max-width: 340px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.photo-steps { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; display: grid; gap: 8px; text-align: left; }
.photo-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--ic-r-lg); background: var(--pill-bg); font-size: 13px; color: var(--muted); animation: hub-card-in 0.45s var(--ic-out) both; }
.photo-steps li:nth-child(2) { animation-delay: 0.07s; } .photo-steps li:nth-child(3) { animation-delay: 0.14s; }
.photo-steps strong { color: var(--text); }
.ps-ico { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--ic-yellow-soft); color: var(--ic-yellow); }
html.ic-light .ps-ico { color: #7A6300; }
.ps-ico svg { width: 17px; height: 17px; }
.photo-tip { width: 100%; display: grid; gap: 3px; padding: 10px 12px; border-radius: var(--ic-r-lg); border: 1px dashed var(--ic-green-line); text-align: left; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.photo-tip strong { color: var(--ic-green); font-size: 12px; }
html.ic-light .photo-tip strong { color: var(--ic-green-ink); }
.photo-actions { width: 100%; display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 2px; }
.photo-actions button { height: 42px; font-size: 13.5px; }
/* Desativado (sem foto, celular fora do ar, sem créditos): apagado e sem o brilho do hover */
.photo-actions .btn-primary:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; translate: none; scale: none; background: var(--accent); }
@media (prefers-reduced-motion: reduce) {
    .soon-dot { animation: none !important; }
}

.photo-service { width: 100%; display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; border-radius: var(--ic-r-lg); background: var(--pill-bg); font-size: 12.5px; line-height: 1.45; color: var(--muted); text-align: left; }
.photo-service-dot { flex-shrink: 0; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--muted); }
.photo-service.is-on .photo-service-dot { background: var(--ic-green); box-shadow: 0 0 0 3px var(--ic-green-soft); }
.photo-service.is-off .photo-service-dot { background: var(--ic-red, #FF4D4F); }
.photo-service.is-warn .photo-service-dot { background: var(--ic-yellow); }
.photo-service strong { color: var(--text); }
.photo-service button { margin-left: 4px; padding: 0; border: 0; background: none; color: var(--ic-yellow); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
html.ic-light .photo-service button { color: #6B5600; }

/* Busca por foto: andamento em cima da grade */
.photo-run { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--ic-r-lg); border: 1px solid var(--ic-yellow-line); background: var(--ic-yellow-soft); animation: hub-card-in 0.4s var(--ic-out) both; }
.photo-run.is-done { border-color: var(--ic-green-line); background: var(--ic-green-soft); }
.photo-run.is-error { border-color: var(--border); background: var(--pill-bg); }
.photo-run-img { flex-shrink: 0; width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: var(--surface); }
/* Busca grátis no celular (texto): ícone do celular no lugar da foto */
.photo-run-ico { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--ic-yellow); color: var(--ic-on-yellow); }
.photo-run-ico svg { width: 22px; height: 22px; }
.photo-run.is-waiting .photo-run-ico svg { animation: ph-ring 1.6s var(--ic-out) infinite; }
@keyframes ph-ring { 0%, 70%, 100% { transform: none; } 10% { transform: rotate(-10deg); } 20% { transform: rotate(9deg); } 30% { transform: rotate(-6deg); } 40% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .photo-run.is-waiting .photo-run-ico svg { animation: none; } }
.photo-run-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.photo-run-title { font-size: 14px; font-weight: 800; color: var(--text); }
.photo-run-sub { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.photo-run-bar { height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.photo-run-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ic-yellow); transition: width 0.6s var(--ic-out); }
.photo-run.is-waiting .photo-run-bar span { width: 30%; animation: photo-wait 1.4s ease-in-out infinite; }
@keyframes photo-wait { 0% { translate: -100% 0; } 100% { translate: 340% 0; } }
.photo-run.is-done .photo-run-bar { display: none; }
.photo-run-tag { flex-shrink: 0; padding: 4px 10px; border-radius: var(--ic-r-pill); background: var(--ic-yellow); color: var(--ic-on-yellow); font-size: 11px; font-weight: 800; }
.photo-run-again { flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: var(--ic-r-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.photo-run-again:hover { border-color: var(--ic-yellow-line); }
@media (max-width: 560px) { .photo-run { flex-wrap: wrap; } .photo-run-tag { display: none; } }
@media (prefers-reduced-motion: reduce) { .photo-run.is-waiting .photo-run-bar span { animation: none; width: 100%; opacity: 0.5; } }

/* Pacote avulso */
.account-pack-row { padding-top: 8px; border-top: 1px dashed var(--border); }
.account-pack-row[hidden] { display: none; }
.account-pack-row strong { color: var(--ic-green); }
html.ic-light .account-pack-row strong { color: var(--ic-green-ink); }
#ic-pack-status.is-ok { color: var(--ic-green); }
#ic-pack-status.is-error { color: var(--ic-red); }
#ic-pack-buy { display: inline-flex; align-items: center; justify-content: center; }
#ic-pack-buy[hidden] { display: none; }

/* Recurso desligado pelo Supabase */
.feature-row:has(input:disabled) { cursor: not-allowed; border-style: dashed; }

/* Aviso de versão beta */
.beta-hero { position: relative; display: grid; place-items: center; padding: 34px 24px 18px; isolation: isolate; }
.beta-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 90% at 50% 0%, var(--ic-yellow-soft), transparent 70%); -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.beta-mark { display: inline-grid; place-items: center; padding: 14px 26px; border-radius: 20px; background: var(--ic-yellow); color: var(--ic-on-yellow); font-size: 30px; font-weight: 900; letter-spacing: 0.12em; box-shadow: 0 12px 32px rgba(255, 218, 0, 0.28); animation: beta-pop 0.6s var(--ic-spring) both; }
@keyframes beta-pop { from { scale: 0.7; opacity: 0; rotate: -6deg; } to { scale: 1; opacity: 1; rotate: -2deg; } }
.beta-card .photo-steps li { align-items: flex-start; line-height: 1.45; }
.beta-card .photo-steps .ps-ico { margin-top: 1px; }
.beta-actions a { display: inline-flex; align-items: center; justify-content: center; height: 42px; font-size: 13.5px; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .beta-mark { animation: none; rotate: -2deg; } }

/* Vitrine da galera (página inicial da aba Buscar) */
.hub-vitrine { margin: 4px 0 18px; display: grid; gap: 12px; }
.hub-vitrine[hidden] { display: none; }
.vitrine-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vitrine-head-text { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.vitrine-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.vitrine-stat { font-size: 12px; color: var(--muted); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); white-space: nowrap; }
.vitrine-stat b { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.vitrine-stat.is-hot { border-color: var(--ic-yellow-line); background: var(--ic-yellow-soft); }
.vitrine-bar { display: flex; align-items: center; gap: 10px; }
.vitrine-cats { display: flex; gap: 6px; overflow-x: auto; flex: 1; min-width: 0; padding-bottom: 4px; scrollbar-width: thin; }
.vitrine-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: border-color 0.2s, background 0.2s, translate 0.3s var(--ic-spring); }
.vitrine-chip span { font-size: 11px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.vitrine-chip:hover { border-color: var(--ic-yellow-line); translate: 0 -1px; }
.vitrine-chip.is-active { background: var(--ic-yellow); border-color: var(--ic-yellow); color: var(--ic-on-yellow); }
.vitrine-chip.is-active span { color: inherit; opacity: 0.7; }
.vitrine-chip:focus-visible, .vitrine-ordem:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }
.vitrine-ordem { flex-shrink: 0; height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; }
#ic-vitrine-grid.is-loading { opacity: 0.45; pointer-events: none; transition: opacity 0.2s; }
.card-new-badge { position: absolute; top: 8px; left: 8px; background: var(--ic-yellow); color: var(--ic-on-yellow); padding: 2px 7px; border-radius: 8px; font-size: 10px; font-weight: 800; }
@media (max-width: 640px) { .vitrine-bar { flex-wrap: wrap; } .vitrine-ordem { margin-left: auto; } }

/* "Em alta": faixa parada que rola de lado (arrastar ou roda do mouse), pontas esmaecidas quando há mais */
.hub-trending-list { position: relative; padding-bottom: 2px; scrollbar-width: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.hub-trending-list::-webkit-scrollbar { display: none; }
.hub-trending-list.is-loop { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.hub-trending-list.is-dragging { cursor: grabbing; }
.hub-trending-list.is-dragging .trend-card { pointer-events: none; }
.hub-trending-list img { -webkit-user-drag: none; pointer-events: none; }

/* Lojas: mesmos cards do painel de lojas da Goofish */
.stores-result { margin: 12px 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 12px; }
.st-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 14px 14px; text-align: center; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); content-visibility: auto; contain-intrinsic-size: auto 230px; animation: st-card-in 0.4s var(--ic-out) both; animation-delay: calc(var(--i, 0) * 22ms); transition: translate 0.3s var(--ic-spring), border-color 0.25s, box-shadow 0.3s; }
.st-card:hover { translate: 0 -4px; border-color: var(--ic-yellow-line); box-shadow: var(--ic-shadow-1); }
.st-avatar { position: relative; width: 74px; height: 74px; border-radius: 50%; padding: 3px; display: block; text-decoration: none; background: var(--st-ring, var(--border)); transition: scale 0.35s var(--ic-spring); }
.st-card:hover .st-avatar { scale: 1.06; }
.st-avatar-in { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--pill-bg); color: var(--ic-yellow); font-size: 28px; font-weight: 800; border: 2px solid var(--surface); }
.st-avatar-in img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-card[data-level="L7"] { --st-ring: var(--ic-yellow); }
.st-card[data-level="L6"] { --st-ring: var(--ic-green); }
.st-level { position: absolute; right: -4px; bottom: -2px; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 900; color: #141414; background: var(--st-ring, #9a9a9a); border: 2px solid var(--surface); }
.st-name { width: 100%; font-size: 14px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; min-height: 20px; }
.st-tag { padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; color: var(--text); background: var(--ic-yellow-soft); border: 1px solid var(--ic-yellow-line); }
.st-tag.is-cond { color: var(--ic-green); background: var(--ic-green-soft); border-color: transparent; }
.st-actions { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: auto; padding-top: 4px; }
.st-visit { flex: 1; height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; font-size: 12px; font-weight: 800; color: var(--ic-on-yellow); background: var(--ic-yellow); text-decoration: none; transition: translate 0.25s var(--ic-spring), box-shadow 0.25s; }
.st-visit svg { transition: translate 0.3s var(--ic-spring); }
.st-visit:hover { translate: 0 -1px; box-shadow: var(--ic-glow-yellow); }
.st-visit:hover svg { translate: 3px 0; }
.st-fav { width: 34px; height: 34px; flex-shrink: 0; border-radius: 12px; border: 1px solid var(--border); background: var(--pill-bg); color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.st-fav:hover { color: var(--ic-green); border-color: var(--ic-green-line); }
.st-fav.is-active { color: var(--ic-green); background: var(--ic-green-soft); border-color: var(--ic-green-line); }
.st-fav.is-pop svg { animation: hub-heart-pop 0.5s var(--ic-spring); }
@keyframes hub-heart-pop { 40% { scale: 1.35; } 100% { scale: 1; } }
.st-visit:focus-visible, .st-fav:focus-visible, .st-avatar:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .st-card { animation: none; } }
@keyframes st-card-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

/* Abas na barra: mesma altura (36px) dos seletores e chips ao lado */
.hub-toolbar-inner .hub-tabs { padding: 3px; }
.hub-toolbar-inner .hub-tabs button { height: 28px; padding: 0 14px; font-size: 12.5px; }
.hub-toolbar-inner .hub-tabs-ind { top: 3px; bottom: 3px; }
/* A grade não pode crescer até a largura dos chips (empurrava o seletor de ordem para fora da tela) */
.hub-vitrine, .hub-trending { grid-template-columns: minmax(0, 1fr); }

/* Lojas: busca com lupa + categorias no mesmo chip da vitrine, numa linha que rola de lado */
.stores-bar { display: flex; align-items: center; gap: 12px; min-width: 0; }
.stores-search-box { position: relative; flex: 0 0 300px; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: var(--ic-r-pill); background: var(--search-bg); color: var(--muted); cursor: text; transition: border-color 0.2s, box-shadow 0.3s var(--ic-out); }
.stores-search-box:hover { border-color: var(--ic-line-strong); }
.stores-search-box:focus-within { border-color: var(--ic-yellow); box-shadow: 0 0 0 4px var(--ic-yellow-soft); color: var(--ic-yellow); }
html.ic-light .stores-search-box { background: #ffffff; border-color: rgba(0, 0, 0, 0.12); }
html.ic-light .stores-search-box:focus-within { border-color: var(--ic-yellow); color: #7A6300; }
.stores-search-box svg { flex-shrink: 0; transition: transform 0.35s var(--ic-spring); }
.stores-search-box:focus-within svg { transform: scale(1.08); }
.stores-search { flex: 1; min-width: 0; height: 100%; padding: 0; border: none; background: transparent; color: var(--text); font: 500 13px var(--ic-font); outline: none; }
.stores-search::placeholder { color: var(--muted); }
.stores-search::-webkit-search-cancel-button { cursor: pointer; }
.stores-chips {
    --fade-l: 0px; --fade-r: 0px;
    flex: 1; min-width: 0; display: flex; gap: 6px; padding: 3px 0; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
}
.stores-chips::-webkit-scrollbar { display: none; }
.stores-chips.fade-l { --fade-l: 32px; }
.stores-chips.fade-r { --fade-r: 32px; }
@media (max-width: 760px) {
    .stores-bar { flex-direction: column; align-items: stretch; }
    .stores-search-box { flex-basis: auto; }
}

/* Tag do plano ao lado da marca: Grátis (discreta) ou Premium (dourada). Clicar abre a conta. */
.hub-brand-wrap { justify-self: start; display: flex; align-items: center; gap: 10px; min-width: 0; }
.hub-plan-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 10px 0 8px;
    border: 1px solid var(--ic-line-strong);
    border-radius: var(--ic-r-pill);
    background: var(--pill-bg);
    color: var(--muted);
    font: 800 10.5px var(--ic-font);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    animation: hub-pop-sm 0.4s var(--ic-spring) both;
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.3s var(--ic-spring), box-shadow 0.3s;
}
.hub-plan-tag[hidden] { display: none; }
.hub-plan-tag:hover { color: var(--ic-yellow); border-color: var(--ic-yellow-line); background: var(--ic-yellow-soft); transform: translateY(-1px); }
html.ic-light .hub-plan-tag { border-color: rgba(0, 0, 0, 0.14); }
html.ic-light .hub-plan-tag:hover { color: #6B5600; }
.hub-plan-tag:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }
.hub-plan-ico { flex-shrink: 0; transition: transform 0.45s var(--ic-spring); }
.hub-plan-tag:hover .hub-plan-ico { transform: rotate(72deg) scale(1.15); }

/* Premium: dourado com um brilho que passa de vez em quando */
.hub-plan-tag.is-premium {
    color: var(--ic-on-yellow);
    border-color: transparent;
    background: linear-gradient(135deg, #FFE45C 0%, #FFDA00 45%, #F2B600 100%);
    box-shadow: 0 4px 14px rgba(255, 218, 0, 0.3);
}
.hub-plan-tag.is-premium:hover { color: var(--ic-on-yellow); box-shadow: var(--ic-glow-yellow); }
.hub-plan-tag.is-premium::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 30%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    transform: skewX(-20deg);
    animation: hub-plan-shine 4.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes hub-plan-shine { 0%, 70% { left: -40%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .hub-plan-tag.is-premium::after { animation: none; display: none; } }
@media (max-width: 1180px) { .hub-brand-wrap { gap: 8px; } }

/* Faixa "próxima atualização" na página inicial */
.hub-news { position: relative; display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 14px 44px 14px 14px; border-radius: var(--ic-r-lg); border: 1px solid var(--ic-yellow-line); background: linear-gradient(110deg, var(--ic-yellow-soft), transparent 70%), var(--surface); animation: hub-card-in 0.45s var(--ic-out) both; transition: opacity 0.25s, transform 0.25s var(--ic-in); }
.hub-news[hidden] { display: none; }
.hub-news.is-leaving { opacity: 0; transform: translateY(-6px) scale(0.98); }
.hub-news-ico { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--ic-yellow); color: var(--ic-on-yellow); box-shadow: 0 6px 16px rgba(255, 218, 0, 0.25); }
.hub-news-ico svg { width: 22px; height: 22px; }
.hub-news-text { display: grid; gap: 4px; min-width: 0; }
.hub-news-tag { justify-self: start; padding: 2px 8px; border-radius: var(--ic-r-pill); background: var(--ic-yellow-soft); color: var(--ic-yellow); font-size: 10.5px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; }
html.ic-light .hub-news-tag { color: #6B5600; background: rgba(255, 218, 0, 0.22); }
.hub-news p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.hub-news strong { color: var(--text); }
.hub-news-close { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border: none; border-radius: 50%; background: var(--pill-bg); color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: background 0.2s, color 0.2s, transform 0.3s var(--ic-spring); }
.hub-news-close:hover { background: var(--pill-hover); color: var(--text); transform: rotate(90deg); }
.hub-news-close:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }
/* Dica de novidade na janela da busca por foto */
.photo-tip-new { border-color: var(--ic-yellow-line) !important; background: var(--ic-yellow-soft) !important; }
@media (max-width: 560px) { .hub-news { align-items: flex-start; } .hub-news-ico { width: 34px; height: 34px; } }
.photo-tip-new { border-style: solid !important; }
.photo-tip-new strong { color: var(--ic-yellow); }
html.ic-light .photo-tip-new strong { color: #6B5600; }

/* ===== Oferta quando as buscas acabam ===== */
.limit-offer { grid-column: 1 / -1; position: relative; display: grid; gap: 18px; padding: 24px; border-radius: var(--ic-r-xl); border: 1px solid var(--ic-yellow-line); background: radial-gradient(120% 120% at 0% 0%, var(--ic-yellow-soft), transparent 55%), var(--surface); box-shadow: var(--card-shadow); animation: hub-card-in 0.45s var(--ic-out) both; }
.limit-head { display: flex; align-items: center; gap: 14px; }
.limit-ico { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--ic-yellow); color: var(--ic-on-yellow); box-shadow: 0 8px 20px rgba(255, 218, 0, 0.28); }
.limit-txt { display: grid; gap: 3px; min-width: 0; }
.limit-txt strong { font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: -0.2px; }
.limit-txt span { font-size: 13px; color: var(--muted); line-height: 1.45; }

.limit-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.limit-plans.is-single { grid-template-columns: minmax(0, 460px); }
.limit-plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--ic-r-lg); border: 1px solid var(--border); background: var(--pill-bg); }
.limit-plan.is-main { border-color: var(--ic-yellow); background: linear-gradient(160deg, rgba(255, 218, 0, 0.1), transparent 60%), var(--surface-2); box-shadow: 0 0 0 1px rgba(255, 218, 0, 0.15), 0 14px 34px rgba(255, 218, 0, 0.1); }
html.ic-light .limit-plan.is-main { background: linear-gradient(160deg, rgba(255, 218, 0, 0.18), transparent 60%), #fff; }
.limit-plan-tag { position: absolute; top: -11px; left: 18px; padding: 3px 10px; border-radius: var(--ic-r-pill); background: linear-gradient(135deg, #FFE45C, #FFDA00 50%, #F2B600); color: var(--ic-on-yellow); font-size: 10.5px; font-weight: 900; letter-spacing: 0.5px; text-transform: uppercase; }
.limit-plan-name { font-size: 12px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.limit-plan.is-main .limit-plan-name { color: var(--ic-yellow); }
html.ic-light .limit-plan.is-main .limit-plan-name { color: #6B5600; }
.limit-plan-price { font-size: 30px; font-weight: 900; letter-spacing: -0.8px; color: var(--text); line-height: 1; }
.limit-plan-price small { margin-left: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.limit-plan ul { list-style: none; margin: 2px 0 4px; padding: 0; display: grid; gap: 7px; }
.limit-plan li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.limit-plan li svg { flex-shrink: 0; color: var(--ic-green); }
.limit-plan-note { font-size: 11.5px; color: var(--muted); line-height: 1.4; }

.limit-buy, .limit-sec { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 18px; border-radius: var(--ic-r-md); font: 800 13.5px var(--ic-font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 0.3s var(--ic-spring), box-shadow 0.3s, background 0.2s, border-color 0.2s; }
.limit-buy { border: none; background: var(--ic-yellow); color: var(--ic-on-yellow); box-shadow: 0 8px 20px rgba(255, 218, 0, 0.25); }
.limit-buy svg { transition: transform 0.35s var(--ic-spring); }
.limit-buy:hover { background: var(--ic-yellow-hover); box-shadow: var(--ic-glow-yellow); transform: translateY(-1px); }
.limit-buy:hover svg { transform: translateX(3px); }
.limit-sec { border: 1px solid var(--ic-line-strong); background: transparent; color: var(--text); }
.limit-sec:hover { border-color: var(--ic-yellow-line); background: var(--ic-yellow-soft); transform: translateY(-1px); }
.limit-buy:active, .limit-sec:active { transform: scale(0.97); }
.limit-buy:focus-visible, .limit-sec:focus-visible, .limit-link:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }

.limit-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.limit-link { padding: 0; border: none; background: none; color: var(--text); font: 700 13px var(--ic-font); cursor: pointer; text-decoration: underline; text-decoration-color: var(--ic-yellow-line); text-underline-offset: 4px; transition: color 0.2s, text-decoration-color 0.2s; }
.limit-link:hover { color: var(--ic-yellow); text-decoration-color: var(--ic-yellow); }
html.ic-light .limit-link:hover { color: #6B5600; }
.limit-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: 0.6; }
.limit-soon { margin: 0; font-size: 12px; color: var(--muted); }

/* Versão compacta: faixa em cima dos resultados que a galera já achou */
.limit-offer.is-compact { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 4px; }
.limit-offer.is-compact .limit-ico { width: 38px; height: 38px; border-radius: 12px; }
.limit-offer.is-compact .limit-txt strong { font-size: 14.5px; }
.limit-offer.is-compact .limit-txt span { font-size: 12.5px; }
.limit-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.limit-offer.is-compact .limit-buy, .limit-offer.is-compact .limit-sec { height: 38px; padding: 0 15px; font-size: 13px; }

@media (max-width: 760px) {
    .limit-offer { padding: 18px; }
    .limit-plans { grid-template-columns: 1fr; }
    .limit-offer.is-compact { flex-wrap: wrap; }
    .limit-actions { margin-left: 0; width: 100%; flex-wrap: wrap; }
}
.limit-offer:not(.is-compact) { width: 100%; max-width: 620px; justify-self: center; margin: 12px auto 0; }
.limit-plans.is-single { grid-template-columns: 1fr; }

/* "Por que tem limite?" no card de oferta */
.limit-why { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--ic-r-md); background: var(--pill-bg); border: 1px solid var(--border); }
.limit-why strong { font-size: 12.5px; color: var(--text); }
.limit-why span { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.limit-link.is-muted { color: var(--muted); font-weight: 600; }
.limit-offer.is-compact { flex-wrap: wrap; }
.limit-why-line { flex-basis: 100%; margin: 0; padding: 10px 12px 0 52px; border-top: 1px solid var(--border); font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.limit-why-line[hidden] { display: none; }
@media (max-width: 760px) { .limit-why-line { padding-left: 0; } }

/* =====================================================================
   PLANOS (mesmo pré-checkout da extensão na Goofish). Sempre escuro,
   como lá: os logos são claros e o dourado precisa do fundo escuro.
   ===================================================================== */
.plans-backdrop { padding: 16px; }
.plans-card {
    position: relative;
    width: min(880px, 100%);
    max-height: calc(100vh - 32px);
    overflow: hidden auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    border-radius: var(--ic-r-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #111113;
    color: #f4f4f5;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: hub-pop-in 0.55s var(--ic-out) both;
    scrollbar-width: thin;
}
.modal-backdrop.is-leaving .plans-card { animation: hub-pop-out 0.3s var(--ic-in) forwards; }
.plans-close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%; background: rgba(255, 255, 255, 0.05); color: #d4d4d8; cursor: pointer; display: grid; place-items: center; transition: transform 0.35s var(--ic-spring), background 0.2s, color 0.2s; }
.plans-close:hover { transform: rotate(90deg) scale(1.06); background: rgba(255, 77, 79, 0.18); color: #fff; }
.plans-close:focus-visible, .plans-card a:focus-visible, .plans-key:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }

/* Esquerda: proposta e benefícios */
.plans-left { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 40px 36px 32px; overflow: hidden; isolation: isolate; background: radial-gradient(90% 70% at 0% 0%, rgba(255, 218, 0, 0.1), transparent 60%), linear-gradient(180deg, #1a1a1d, #121214); }
.plans-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--ic-yellow); font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.plans-left h2 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -0.6px; color: #fff; max-width: 15ch; }
.plans-sub { margin: 0 0 6px; font-size: 14.5px; line-height: 1.5; color: #a1a1aa; max-width: 36ch; }
.plans-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.plans-benefits li { display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px; line-height: 1.45; color: #d4d4d8; animation: hub-card-in 0.5s var(--ic-out) both; }
.plans-benefits li:nth-child(1) { animation-delay: 0.08s; }
.plans-benefits li:nth-child(2) { animation-delay: 0.14s; }
.plans-benefits li:nth-child(3) { animation-delay: 0.2s; }
.plans-benefits li:nth-child(4) { animation-delay: 0.26s; }
.plans-benefits li:nth-child(5) { animation-delay: 0.32s; }
.plans-benefits strong { color: #fff; font-weight: 700; }
.pb-ico { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 218, 0, 0.12); color: var(--ic-yellow); }
.pb-ico svg { width: 15px; height: 15px; }
.plans-benefits li.is-soon { color: #71717a; }
.plans-benefits li.is-soon .pb-ico { background: rgba(255, 255, 255, 0.05); color: #71717a; }
.plans-notes { position: relative; z-index: 1; display: grid; gap: 8px; margin-top: 8px; max-width: 34ch; }
.plans-notes p { display: flex; align-items: flex-start; gap: 9px; margin: 0; font-size: 11.5px; line-height: 1.45; color: #8b8b94; }
.plans-notes svg { flex-shrink: 0; margin-top: 1px; color: var(--ic-yellow); }
.plans-notes a { color: var(--ic-yellow); text-underline-offset: 3px; }
.plans-mascot { position: absolute; right: -44px; bottom: -48px; z-index: 0; width: 200px; opacity: 0.85; pointer-events: none; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)); animation: plans-float 6s ease-in-out infinite; }
@keyframes plans-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* Direita: os dois planos */
.plans-right { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding: 40px 32px 28px; background: rgba(0, 0, 0, 0.35); border-left: 1px solid rgba(255, 255, 255, 0.06); }
.plans-brand { align-self: center; height: 24px; margin: 4px 0 6px; opacity: 0.85; }
.plan-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px; border-radius: var(--ic-r-lg); border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.025); text-align: center; animation: hub-card-in 0.5s var(--ic-out) 0.1s both; }
.plan-box.is-best { margin-top: 10px; padding-top: 26px; border-color: rgba(255, 218, 0, 0.55); background: linear-gradient(180deg, rgba(255, 218, 0, 0.08), rgba(255, 218, 0, 0.02)); box-shadow: 0 0 40px rgba(255, 218, 0, 0.12), inset 0 0 0 1px rgba(255, 218, 0, 0.12); animation-delay: 0.18s; }
.plan-ribbon { position: absolute; top: -13px; left: 50%; translate: -50% 0; padding: 4px 14px; border-radius: var(--ic-r-pill); background: linear-gradient(135deg, #FFE45C, #FFDA00 50%, #F2B600); color: var(--ic-on-yellow); font-size: 11px; font-weight: 900; letter-spacing: 0.6px; text-transform: uppercase; white-space: nowrap; box-shadow: 0 6px 18px rgba(255, 218, 0, 0.35); }
.plan-name { font-size: 12.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #a1a1aa; }
.plan-box.is-best .plan-name { color: var(--ic-yellow); }
.plan-old { font-size: 13px; color: #71717a; text-decoration: line-through; }
.plan-price { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; color: #fff; line-height: 1.1; }
.plan-price.is-big { font-size: 32px; letter-spacing: -1px; }
.plan-price small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: #8b8b94; }
.plan-eq { font-size: 12px; font-weight: 600; color: var(--ic-green); }
.plan-btn { width: 100%; height: 46px; margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--ic-r-md); background: linear-gradient(135deg, #FFE45C, #FFDA00 45%, #F5C400); color: var(--ic-on-yellow); font: 800 14px var(--ic-font); letter-spacing: 0.3px; text-transform: uppercase; text-decoration: none; box-shadow: 0 10px 24px rgba(255, 218, 0, 0.3); transition: transform 0.3s var(--ic-spring), box-shadow 0.3s; }
.plan-btn svg { transition: transform 0.35s var(--ic-spring); }
.plan-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255, 218, 0, 0.45); }
.plan-btn:hover svg { transform: translateX(3px); }
.plan-btn:active { transform: scale(0.97); }
.plan-btn.is-ghost { height: 42px; background: rgba(255, 255, 255, 0.04); color: #f4f4f5; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: none; font-size: 13px; }
.plan-btn.is-ghost:hover { border-color: rgba(255, 218, 0, 0.5); background: rgba(255, 218, 0, 0.06); box-shadow: none; }
.plans-secure { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.plans-secure span { display: flex; align-items: flex-start; gap: 6px; font-size: 11.5px; line-height: 1.4; color: #8b8b94; }
.plans-secure svg { flex-shrink: 0; margin-top: 1px; }
.plans-secure img { height: 18px; opacity: 0.75; flex-shrink: 0; }
.plans-secure .plans-gateway { display: inline-flex; flex-shrink: 0; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(139,139,148,.3); font-size: 11px; color: #8b8b94; white-space: nowrap; }
.plans-secure .plans-gateway b { color: #c9c9d1; font-weight: 700; letter-spacing: .01em; }
.plans-key { align-self: center; padding: 4px; border: none; background: none; color: #d4d4d8; font: 700 12.5px var(--ic-font); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(255, 218, 0, 0.4); text-underline-offset: 4px; transition: color 0.2s; }
.plans-key:hover { color: var(--ic-yellow); }

@media (max-width: 760px) {
    .plans-card { grid-template-columns: 1fr; }
    .plans-left { padding: 32px 22px 22px; }
    .plans-left h2 { font-size: 23px; }
    .plans-mascot { width: 150px; right: -20px; bottom: -30px; opacity: 0.35; }
    /* No celular os planos vêm primeiro; os benefícios ficam logo abaixo */
    .plans-right { order: -1; padding: 56px 22px 22px; border-left: none; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
    .plans-brand { display: none; }
}
@media (prefers-reduced-motion: reduce) { .plans-mascot { animation: none; } }

/* =====================================================================
   REVISÃO DE UI/UX (v3.1)
   Menos ruído na página inicial, uma ação principal por tela, celular sem
   sobreposições e a ficha do anúncio mais direta. Fica no fim para valer
   por cima das regras antigas.
   ===================================================================== */

/* --- Cabeçalho --- */
/* Selo de status só existe para quem roda o backend local (fica [hidden] para todo mundo) */
.hub-status-pill[hidden] { display: none; }
.hub-status-pill[hidden] + .hub-actions-sep { display: none; }
/* Celular: a tag do plano ficava por cima do seletor de moeda; o plano já aparece no selo de limites */
@media (max-width: 560px) {
    /* Só a estrela: continua sendo a porta para a conta sem empurrar os seletores */
    .hub-plan-tag { width: 30px; height: 30px; padding: 0; justify-content: center; gap: 0; }
    #ic-plan-tag-text { display: none; }
    .hub-brand-wrap { min-width: 0; gap: 6px; }
}

/* --- Barra de ferramentas: filtros só com resultados de busca na tela --- */
body[data-busca="0"] .hub-filters,
body:not([data-busca]) .hub-filters { display: none; }
/* Chips de filtro mais discretos: ligado = fundo amarelo bem suave, sem caixa gritando */
.filter-chip { height: 34px; font-size: 12px; }
.filter-chip input { width: 16px; height: 16px; border-radius: 5px; }
.filter-chip:has(input:checked) { background: var(--ic-yellow-soft); }
.hub-search-meta .status-text { max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ic-active-search-btn { height: 32px; padding: 0 14px; border-radius: var(--ic-r-pill); }
@media (max-width: 900px) {
    .hub-search-meta .status-text { max-width: none; white-space: normal; }
}

/* --- Aviso de novidade: mais calmo, com uma ação clara --- */
.hub-news { border-color: var(--border); background: linear-gradient(110deg, var(--ic-yellow-soft), transparent 55%), var(--surface); padding: 12px 46px 12px 12px; }
.hub-news-ico { width: 36px; height: 36px; border-radius: 11px; box-shadow: none; }
.hub-news-ico svg { width: 19px; height: 19px; }
.hub-news-text { flex: 1; }
.hub-news p { font-size: 13px; }
.hub-news-cta { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: none; border-radius: var(--ic-r-pill); background: var(--ic-yellow); color: var(--ic-on-yellow); font: 800 12.5px var(--ic-font); cursor: pointer; transition: background 0.2s, box-shadow 0.3s, translate 0.3s var(--ic-spring); }
.hub-news-cta:hover { background: var(--ic-yellow-hover); box-shadow: var(--ic-glow-yellow); translate: 0 -1px; }
.hub-news-cta:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }
.hub-news-close { top: 50%; translate: 0 -50%; }
@media (max-width: 640px) {
    .hub-news { flex-wrap: wrap; align-items: flex-start; padding: 12px 40px 12px 12px; }
    .hub-news-text { flex: 1 1 calc(100% - 50px); }
    .hub-news-close { top: 12px; translate: none; }
    .hub-news-cta { margin-left: 50px; }
}

/* --- Aviso de limite (nosso servidor ou a Goofish pausaram por excesso de pedidos) --- */
.hub-limit { position: relative; display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; padding: 12px 46px 12px 12px; border-radius: var(--ic-r-lg); border: 1px solid rgba(255, 159, 28, 0.45); background: linear-gradient(110deg, rgba(255, 159, 28, 0.12), transparent 60%), var(--surface); animation: hub-card-in 0.4s var(--ic-out) both; }
.hub-limit[hidden] { display: none; }
.hub-limit-ico { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 159, 28, 0.16); color: #FF9F1C; }
.hub-limit-ico svg { width: 19px; height: 19px; }
.hub-limit-text { display: grid; gap: 3px; min-width: 0; }
.hub-limit-text strong { font-size: 13.5px; color: var(--text); }
.hub-limit-text p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.hub-limit-text p b { color: var(--text); font-weight: 700; }
html.ic-light .hub-limit-ico { color: #B86A00; }
.hub-limit-close { top: 10px; translate: none; }

/* --- Em alta: parado, rola de lado; pontas esmaecem só onde há mais --- */
/* Sem scroll-snap: ele puxava a faixa de volta para o card mais próximo e travava o arrasto */
.hub-trending-list { --fl: 0px; --fr: 0px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); scroll-behavior: auto; }
.hub-trending-list.fade-l { --fl: 36px; }
.hub-trending-list.fade-r { --fr: 36px; }

/* --- Cards --- */
.item-card:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }
/* O selo de limites não cobre a última linha de cards */
.hub-results-col { padding-bottom: 96px; }
.hub-section-head { padding: 2px 4px 4px; }

/* --- Ficha do anúncio --- */
.detail-topbar { padding: 8px 10px; gap: 8px; }
.detail-icon-btn { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--pill-bg); color: var(--text); cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.3s var(--ic-spring); }
.detail-icon-btn:hover { background: var(--pill-hover); border-color: var(--ic-yellow-line); }
.detail-icon-btn:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }
.detail-icon-btn[disabled] { display: none; }
.detail-icon-btn svg { transition: transform 0.5s var(--ic-spring); }
#ic-detail-refresh-h5:hover svg { transform: rotate(120deg); }
.detail-id { font-family: var(--ic-font); font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Galeria: uma foto só não precisa de setas, contador nem miniaturas */
.gallery-stage { background: var(--pill-bg); height: 320px; }
html.ic-light .gallery-stage { background: #f2f2f4; }
.detail-gallery.is-single .gallery-arrow,
.detail-gallery.is-single .gallery-counter,
.detail-gallery.is-single .gallery-thumbs { display: none; }
.detail-gallery.is-empty .gallery-stage::after { content: "Sem foto"; color: var(--muted); font-size: 13px; }
.detail-gallery.is-empty #ic-gallery-main { display: none; }
.gallery-arrow { display: grid; place-items: center; line-height: 1; padding-bottom: 2px; transition: background 0.2s, scale 0.3s var(--ic-spring); }
.gallery-arrow:hover { background: rgba(0, 0, 0, 0.85); scale: 1.08; }
.gallery-thumbs img { transition: opacity 0.2s, border-color 0.2s; }
.gallery-thumbs img:hover { opacity: 0.9; }

.detail-title { font-size: 19px; letter-spacing: -0.01em; }
.detail-price-row { margin-top: 8px; }
.detail-stats { line-height: 1.5; }

/* Uma ação principal: Comprar ocupa a linha; o resto são botões secundários do mesmo tamanho */
.detail-actions { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 14px; }
.detail-actions .btn-buy { height: 44px; font-size: 14px; font-weight: 800; border-radius: var(--ic-r-md); }
.detail-actions-sec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.detail-actions-sec .btn-secondary { height: 36px; padding: 0 8px; border-radius: var(--ic-r-md); font-size: 12.5px; white-space: nowrap; }

/* Vendedor organizado: nome em destaque, números em chips */
.seller-card { display: grid; gap: 6px; padding: 12px 14px; }
.seller-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.seller-label { font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.seller-badge { padding: 2px 8px; border-radius: var(--ic-r-pill); font-size: 10.5px; font-weight: 800; color: var(--ic-green); background: var(--ic-green-soft); }
html.ic-light .seller-badge { color: var(--ic-green-ink); }
.seller-name { font-size: 14px; font-weight: 700; color: var(--text); word-break: break-word; }
.seller-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.seller-meta span { padding: 2px 8px; border-radius: var(--ic-r-pill); background: var(--pill-bg); font-size: 11.5px; color: var(--muted); }

/* Descrição com botão de traduzir */
.desc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.desc-head .desc-label { margin-bottom: 0; }
.desc-translate { flex-shrink: 0; height: 28px; padding: 0 12px; border: 1px solid var(--ic-yellow-line); border-radius: var(--ic-r-pill); background: var(--ic-yellow-soft); color: var(--text); font: 700 12px var(--ic-font); cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.desc-translate:hover { border-color: var(--ic-yellow); }
.desc-translate:disabled { opacity: 0.6; cursor: wait; }
.desc-translate[hidden] { display: none; }
.detail-desc { font-size: 13px; color: var(--text); }

/* Abas de parecidos */
.related-tabs { gap: 2px; }
.rel-tab { border-radius: 8px 8px 0 0; transition: color 0.2s, background 0.2s; }
.rel-tab:hover { color: var(--text); background: var(--pill-bg); }

@media (max-width: 900px) {
    .gallery-stage { height: min(78vw, 380px); }
    .detail-scroll { padding: 12px 14px 40px; }
}
@media (max-width: 380px) {
    .detail-actions-sec { grid-template-columns: 1fr 1fr; }
    .detail-actions-sec .btn-secondary:last-child { grid-column: 1 / -1; }
}

/* --- Lojas: um botão amarelo em cada card virava uma parede amarela; "Visitar loja" vira secundário --- */
.st-visit { color: var(--text); background: var(--pill-bg); border: 1px solid var(--border); font-weight: 700; }
.st-visit:hover { border-color: var(--ic-yellow-line); background: var(--ic-yellow-soft); box-shadow: none; }

/* --- Chave Premium com olhinho (pontinhos por padrão) --- */
.key-field { position: relative; flex: 1; min-width: 0; display: flex; }
.key-field input { flex: 1; min-width: 0; padding-right: 40px !important; }
.key-field input[type="password"] { letter-spacing: 0.18em; }
.key-field input[type="password"]::placeholder { letter-spacing: normal; }
.key-eye { position: absolute; right: 4px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; display: grid; place-items: center; border: none; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; transition: color 0.2s, background 0.2s; }
.key-eye:hover { color: var(--text); background: var(--pill-bg); }
.key-eye:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 1px; }
.key-eye .eye-off { display: none; }
.key-eye[aria-pressed="true"] .eye-on { display: none; }
.key-eye[aria-pressed="true"] .eye-off { display: block; }

/* --- Janelas --- */
/* Selects nativos das janelas com a mesma cara dos campos */
.modal-field select { -webkit-appearance: none; appearance: none; padding-right: 34px; 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='%238b8b94' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.modal-field input:focus, .modal-field select:focus, .modal-test-row input:focus { outline: none; border-color: var(--ic-yellow); box-shadow: 0 0 0 3px var(--ic-yellow-soft); }
/* Boas-vindas: nada encolhe (as escolhas ficavam cortadas embaixo do botão) */
.welcome-card > * { flex-shrink: 0; }
.welcome-prefs { padding-bottom: 18px; }
.welcome-steps li:nth-child(2) .welcome-n { background: var(--ic-yellow); color: var(--ic-on-yellow); }
/* Conta: no celular o número do limite não espreme o nome */
.account-meter-row { gap: 10px; flex-wrap: wrap; }
.account-meter-row strong { margin-left: auto; text-align: right; }
@media (max-width: 480px) {
    .account-meter-row strong { font-size: 13.5px; }
    .account-buy { height: auto; min-height: 44px; padding: 10px 16px; line-height: 1.3; text-align: center; white-space: normal; }
}

/* --- Telas largas: tudo na mesma largura do cabeçalho; abas centralizadas embaixo da busca --- */
.hub-toolbar-inner { flex-direction: column; align-items: center; gap: 10px; }
.hub-toolbar-row { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px 14px; flex-wrap: wrap; }
body[data-busca="0"] .hub-toolbar-row, body:not([data-busca]) .hub-toolbar-row { display: none; }
.hub-toolbar-row .hub-search-meta { margin-left: 0; }
.hub-results-col > * { width: 100%; max-width: 1412px; margin-left: auto; margin-right: auto; }
.hub-results-col > .hub-news, .hub-results-col > .hub-limit { margin-bottom: 16px; }
/* Selo de limites alinhado com a borda do conteúdo, não com o canto da janela */
@media (min-width: 561px) { .quota-pill { left: max(16px, calc((100vw - 1412px) / 2)); } }

/* --- Painel de limites: vidro desfocado, anel de progresso e número grande --- */
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
.quota-pill.quota-dock {
    gap: 14px; padding: 8px 16px 8px 10px; border-radius: 18px;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: translate 0.35s var(--ic-spring), border-color 0.2s, box-shadow 0.3s;
}
html.ic-light .quota-pill.quota-dock { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12); }
.quota-pill.quota-dock:hover, .quota-pill.quota-dock:focus-visible { border-color: var(--ic-yellow-line); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4); }
.qd-item { --p: 0; --ring: var(--ic-green); display: flex; align-items: center; gap: 10px; }
.qd-item.is-mid { --ring: var(--ic-yellow); }
.qd-item.is-low { --ring: var(--ic-red, #FF4D4F); }
.qd-item.is-off { --ring: var(--muted); }
.qd-ring {
    position: relative; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--ring) calc(var(--p) * 1%), color-mix(in srgb, var(--border) 90%, transparent) 0);
    transition: --p 0.6s;
}
.qd-ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.qd-ico { position: relative; width: 15px; height: 15px; color: var(--ring); }
.qd-item.is-off .qd-ico { color: var(--muted); }
.qd-text { display: grid; line-height: 1.1; min-width: 0; }
.qd-text b { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: var(--text); font-variant-numeric: tabular-nums; }
.qd-text small { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.qd-item.is-low .qd-text b { color: var(--ic-red, #FF4D4F); }
.quota-dock .qp-sep { width: 1px; height: 28px; align-self: center; background: var(--border); }
.quota-dock .qp-item[hidden], .quota-dock .qp-sep[hidden] { display: none; }

/* --- Arrastar com o mouse nas listas que rolam de lado --- */
/* Mãozinha de arrastar só quando a lista transborda de verdade (.is-scrollable, posta pelo hub.js) */
.hub-trending-list { cursor: default; }
@media (hover: hover) and (pointer: fine) {
    .hub-pills-bar.is-scrollable, .vitrine-cats.is-scrollable, .stores-chips.is-scrollable,
    .gallery-thumbs.is-scrollable, .hub-trending-list.is-scrollable { cursor: grab; }
}
.hub-trending-list.is-dragging { cursor: grabbing; }
.hub-pills-bar.is-dragging, .vitrine-cats.is-dragging, .stores-chips.is-dragging, .gallery-thumbs.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; scroll-behavior: auto; }
.hub-pills-bar.is-dragging *, .vitrine-cats.is-dragging *, .stores-chips.is-dragging *, .gallery-thumbs.is-dragging * { pointer-events: none; }
.gallery-thumbs img, .hub-pills-bar *, .vitrine-cats * { -webkit-user-drag: none; }

/* --- Celular: grade em 2 colunas (como o app da Goofish), cards mais compactos --- */
@media (max-width: 560px) {
    .hub-results-col { padding-left: 10px; padding-right: 10px; }
    .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .item-card { border-width: 4px; border-radius: 18px; }
    .item-thumb-wrap { border-radius: 14px; }
    .item-body { padding: 6px 4px 0; }
    .item-title-pt { font-size: 13px; line-height: 19px; height: 38px; }
    .item-seller-row { height: 38px; padding: 8px 0; }
    .gf-price-int { font-size: 19px; }
    .gf-price-sign { font-size: 11px; }
    .item-price-conv { font-size: 11px; }
    .item-tags { height: 26px; padding: 5px 0; }
    .item-tags .tag-chip:nth-child(n+2) { display: none; }
    .card-actions { right: 6px; bottom: 6px; gap: 4px; }
    .card-act { width: 28px; height: 28px; }
    .hub-skel-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* Vitrine: ordenação em cima à direita, categorias com a linha inteira */
    .vitrine-bar { flex-wrap: wrap; }
    .vitrine-cats { order: 2; flex-basis: 100%; }
    .vitrine-bar > .ic-dd { order: 1; margin-left: auto; }
    .vitrine-stats { gap: 4px; }
    .vitrine-stat { padding: 3px 8px; font-size: 11px; }
}

/* --- Selo de limites no celular: centralizado embaixo, sem tampar o conteúdo --- */
@media (max-width: 560px) {
    .quota-pill { left: 50%; translate: -50% 0; bottom: 10px; }
    .quota-pill:hover, .quota-pill:focus-visible { translate: -50% -2px; }
    .hub-results-col { padding-bottom: 84px; }
}

/* Parecidos (dentro da ficha): cards menores */
.rel-grid .item-title-pt { font-size: 13px; line-height: 19px; height: 38px; }
.rel-grid .item-tags, .rel-grid .item-want, .rel-grid .card-tr-btn { display: none; }
.rel-grid .gf-price-int { font-size: 19px; }
.rel-grid .item-price-conv { font-size: 12px; }
.rel-grid .item-seller-row { height: 36px; padding: 8px 0; }
.rel-grid .card-actions { right: 6px; bottom: 6px; gap: 4px; }
.rel-grid .card-act { width: 28px; height: 28px; }

/* Botões da ficha com ícone: comprar (carrinho), favoritar (coração), copiar (corrente), Goofish em amarelo */
.detail-actions .btn-buy { gap: 8px; }
.detail-actions .btn-buy svg { flex-shrink: 0; }
.btn-ico { gap: 6px; }
.btn-ico svg { flex-shrink: 0; }
.btn-ico .btn-label { overflow: hidden; text-overflow: ellipsis; }
#ic-fav-btn.is-on { color: #FF4D4F; border-color: rgba(255, 77, 79, 0.45); }
#ic-fav-btn.is-on .ico-heart { fill: currentColor; }
#ic-copy-link-btn.is-on { color: var(--ic-green); border-color: color-mix(in srgb, var(--ic-green) 45%, transparent); }
.detail-actions-sec .btn-goofish { background: var(--ic-yellow); border-color: var(--ic-yellow); color: var(--ic-on-yellow); font-weight: 800; text-decoration: none; }
.detail-actions-sec .btn-goofish:hover { background: var(--ic-yellow-hover); border-color: var(--ic-yellow-hover); box-shadow: var(--ic-glow-yellow); color: var(--ic-on-yellow); }

/* Foto da ficha: clique abre ampliada */
#ic-gallery-main { cursor: zoom-in; }
.zoom-overlay {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(6, 6, 7, 0.94);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    opacity: 0; transition: opacity 0.18s ease;
}
.zoom-overlay.is-open { opacity: 1; }
.zoom-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 56px 88px 64px; }
.zoom-stage img {
    max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; user-select: none;
    cursor: zoom-in; transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.zoom-overlay.is-zoomed .zoom-stage img { cursor: zoom-out; transition: transform 0.12s linear; }
.zoom-btn {
    position: absolute; display: grid; place-items: center; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(30, 30, 32, 0.72); color: #fff;
    cursor: pointer; transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.zoom-btn:hover { background: var(--ic-yellow, #FFDA00); border-color: var(--ic-yellow, #FFDA00); color: #111; }
.zoom-close { top: 16px; right: 16px; width: 42px; height: 42px; }
.zoom-arrow { top: 50%; width: 52px; height: 52px; margin-top: -26px; }
.zoom-arrow.prev { left: 20px; }
.zoom-arrow.next { right: 20px; }
.zoom-overlay.is-single .zoom-arrow { display: none; }
.zoom-bar {
    position: absolute; left: 50%; bottom: 18px; translate: -50% 0;
    display: flex; align-items: center; gap: 12px; padding: 7px 14px; border-radius: 999px;
    background: rgba(30, 30, 32, 0.78); border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.86); font-size: 12.5px; white-space: nowrap;
}
.zoom-bar #ic-zoom-counter { font-weight: 800; color: #fff; }
.zoom-overlay.is-single #ic-zoom-counter { display: none; }

/* Minimizar o painel de limites: só os anéis, com a setinha para abrir de novo */
.qd-min {
    width: 24px; height: 24px; margin-left: -4px; margin-right: -8px; padding: 0; flex-shrink: 0;
    display: grid; place-items: center; border-radius: 50%;
    border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.qd-min:hover, .qd-min:focus-visible { background: var(--pill-bg); border-color: var(--border); color: var(--text); }
.qd-min svg { transition: rotate 0.3s var(--ic-spring, ease); }
.quota-pill.quota-dock.is-min { gap: 8px; padding-right: 12px; }
.quota-pill.is-min .qd-text { display: none; }
.quota-pill.is-min .qp-sep { height: 22px; }
.quota-pill.is-min .qd-min svg { rotate: 180deg; }
.item-seller-left[hidden], .item-want[hidden] { display: none; }

/* ===== Checkout do Hub (Pix aqui mesmo; cartão/boleto no Asaas) ===== */
.co-card {
    position: relative; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: hidden auto;
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    border-radius: var(--ic-r-2xl, 24px); border: 1px solid rgba(255, 255, 255, 0.1); background: #111113; color: #f4f4f5;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: hub-pop-in 0.55s var(--ic-out) both; scrollbar-width: thin;
}
.modal-backdrop.is-leaving .co-card { animation: hub-pop-out 0.3s var(--ic-in) forwards; }
.co-side {
    position: relative; display: flex; flex-direction: column; gap: 12px; padding: 36px 32px 28px; overflow: hidden; isolation: isolate;
    background: radial-gradient(90% 70% at 0% 0%, rgba(255, 218, 0, 0.12), transparent 60%), linear-gradient(180deg, #1a1a1d, #121214);
}
.co-brand { height: 22px; align-self: flex-start; opacity: 0.9; margin-bottom: 10px; }
.co-price { font-size: 38px; font-weight: 900; letter-spacing: -1px; color: var(--ic-yellow); line-height: 1; }
.co-price small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: #a1a1aa; }
.co-side-sub { margin: 0; font-size: 13.5px; color: #a1a1aa; }
.co-perks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.co-perks li { position: relative; padding-left: 26px; font-size: 13px; line-height: 1.45; color: #d4d4d8; }
.co-perks li b { color: #fff; }
.co-perks li::before {
    content: ""; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%; background: var(--ic-yellow);
    -webkit-mask: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 11px; background-repeat: no-repeat; background-position: center;
}
.co-safe { position: relative; z-index: 1; display: flex; gap: 8px; align-items: flex-start; margin: auto 0 0; padding-top: 18px; max-width: 30ch; font-size: 11.5px; line-height: 1.45; color: #8b8b94; }
.co-safe svg { flex-shrink: 0; margin-top: 1px; color: var(--ic-yellow); }
.co-safe b { color: #d4d4d8; }
.co-mascot { position: absolute; right: -50px; bottom: -56px; z-index: 0; width: 180px; opacity: 0.55; pointer-events: none; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)); }

.co-main { display: flex; flex-direction: column; padding: 36px 32px 28px; background: rgba(0, 0, 0, 0.35); border-left: 1px solid rgba(255, 255, 255, 0.06); min-height: 520px; }
.co-step { display: flex; flex-direction: column; gap: 14px; animation: hub-card-in 0.35s var(--ic-out) both; }
.co-step[hidden] { display: none; }
.co-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.4px; color: #fff; padding-right: 40px; }
.co-lead { margin: 0; font-size: 13.5px; line-height: 1.5; color: #a1a1aa; }
.co-lead b { color: #fff; }

.co-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.co-tab {
    display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; min-height: 52px; padding: 8px 10px;
    border-radius: var(--ic-r-md, 12px); border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03);
    color: #d4d4d8; font: 700 13.5px var(--ic-font); cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.co-tab em { flex-basis: 100%; margin-top: -4px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--ic-green); text-align: center; }
.co-tab:hover { border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.co-tab.is-on { border-color: var(--ic-yellow); background: rgba(255, 218, 0, 0.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 218, 0, 0.25); }
.co-tab.is-on svg { color: var(--ic-yellow); }
.co-tab:focus-visible, .co-link:focus-visible, .co-copy-btn:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }

.co-form { display: flex; flex-direction: column; gap: 12px; }
.co-form[hidden], .co-cardpane[hidden] { display: none; }
.co-field { display: grid; gap: 6px; }
.co-field > span { font-size: 12.5px; font-weight: 700; color: #d4d4d8; }
.co-field > span i { font-style: normal; font-weight: 600; color: #8b8b94; margin-left: 4px; }
.co-field input {
    height: 44px; padding: 0 14px; border-radius: var(--ic-r-md, 12px); border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04); color: #fff; font: 500 14.5px var(--ic-font); outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.co-field input::placeholder { color: #5f5f68; }
.co-field input:focus { border-color: var(--ic-yellow); box-shadow: 0 0 0 3px rgba(255, 218, 0, 0.15); background: rgba(255, 255, 255, 0.06); }
.co-field input.is-bad { border-color: #FF4D4F; box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.15); }
.co-error { margin: 0; padding: 9px 12px; border-radius: 10px; background: rgba(255, 77, 79, 0.1); border: 1px solid rgba(255, 77, 79, 0.35); color: #ffb3b4; font-size: 12.5px; line-height: 1.4; }
.co-error[hidden] { display: none; }
.co-submit { margin-top: 4px; }
.co-submit:disabled { opacity: 0.7; cursor: progress; transform: none; }
.co-fine { margin: 0; font-size: 11.5px; line-height: 1.45; color: #71717a; text-align: center; }
.co-cardpane { display: flex; flex-direction: column; gap: 14px; }
.co-cardpane p:first-child { margin: 0; font-size: 14px; line-height: 1.55; color: #d4d4d8; }

.co-qr { align-self: center; padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.co-qr img { display: block; width: 200px; height: 200px; image-rendering: pixelated; }
.co-copy { display: flex; gap: 8px; }
.co-copy input {
    flex: 1; min-width: 0; height: 42px; padding: 0 12px; border-radius: var(--ic-r-md, 12px); border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04); color: #a1a1aa; font: 500 12.5px ui-monospace, monospace; outline: none; text-overflow: ellipsis;
}
.co-copy-btn {
    flex-shrink: 0; height: 42px; padding: 0 16px; border-radius: var(--ic-r-md, 12px); border: 0; cursor: pointer;
    background: var(--ic-yellow); color: var(--ic-on-yellow); font: 800 13px var(--ic-font); transition: background 0.2s, transform 0.2s var(--ic-spring);
}
.co-copy-btn:hover { transform: translateY(-1px); }
.co-copy-btn.is-on { background: var(--ic-green); color: #fff; }
.co-wait { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(48, 203, 40, 0.08); border: 1px solid rgba(48, 203, 40, 0.25); color: #b8f5b4; font-size: 13px; font-weight: 600; }
.co-wait.is-warn { background: rgba(255, 170, 0, 0.08); border-color: rgba(255, 170, 0, 0.3); color: #ffd58a; }
.co-wait.is-warn .co-spin { display: none; }
.co-spin { width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; border: 2.5px solid rgba(48, 203, 40, 0.3); border-top-color: var(--ic-green); animation: hubSpin 0.9s linear infinite; }
.co-auto { margin: 0; font-size: 12px; line-height: 1.45; color: #8b8b94; }
.co-auto[hidden] { display: none; }
.co-auto b { color: #d4d4d8; }
.co-actions { display: flex; align-items: center; justify-content: center; gap: 10px; }
.co-link { border: 0; background: none; padding: 4px 2px; cursor: pointer; font: 700 13px var(--ic-font); color: var(--ic-yellow); text-decoration: underline; text-underline-offset: 3px; }
.co-link.is-muted { color: #8b8b94; }
.co-dot { width: 3px; height: 3px; border-radius: 50%; background: #52525b; }

.co-done { align-items: center; text-align: center; padding-top: 30px; }
.co-done .co-title { padding-right: 0; }
.co-check { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--ic-green); color: #fff; box-shadow: 0 0 0 10px rgba(48, 203, 40, 0.14), 0 16px 40px rgba(48, 203, 40, 0.35); animation: hub-pop-in 0.5s var(--ic-spring) both; }
.co-done .co-lead { max-width: 38ch; }
.co-done .plan-btn { max-width: 300px; }

@media (max-width: 760px) {
    .co-card { grid-template-columns: 1fr; }
    .co-side { padding: 28px 22px 18px; }
    .co-perks, .co-safe, .co-mascot { display: none; }
    .co-main { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 24px 22px; min-height: 0; }
}

/* Checkout: contato do Import Club (confiança) e ajuda */
.co-social { position: relative; z-index: 1; display: grid; gap: 8px; margin-top: auto; padding-top: 18px; }
.co-social > span { font-size: 11px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: #71717a; }
.co-social > div { display: flex; flex-wrap: wrap; gap: 8px; }
.co-social-btn {
    display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); color: #d4d4d8;
    font-size: 12.5px; text-decoration: none; transition: border-color 0.2s, background 0.2s, color 0.2s, translate 0.25s var(--ic-spring, ease);
}
.co-social-btn b { font-weight: 700; color: #fff; }
.co-social-btn:hover { border-color: var(--ic-yellow); background: rgba(255, 218, 0, 0.08); color: var(--ic-yellow); translate: 0 -1px; }
.co-social-btn:focus-visible, .co-help a:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }
.co-side .co-safe { margin-top: 0; padding-top: 12px; }
.co-help { margin: auto 0 0; padding-top: 18px; font-size: 12px; line-height: 1.45; color: #8b8b94; text-align: center; }
.co-help a { color: var(--ic-yellow); font-weight: 700; text-underline-offset: 3px; }
@media (max-width: 760px) { .co-social { margin-top: 4px; padding-top: 6px; } }

/* ===== Logo real (HELPER com o mascote) no lugar do "闲鱼" ===== */
.hub-brand-mark.hub-brand-logo { width: 40px; height: 40px; padding: 0; border-radius: 11px; object-fit: cover; background: none; box-shadow: 0 6px 18px rgba(255, 218, 0, 0.25); }
.welcome-hero .hub-brand-mark.hub-brand-logo { width: 64px; height: 64px; padding: 0; border-radius: 16px; }

/* ===== Carregamento inicial: esqueletos no molde dos cards (some cada um quando a parte carrega) ===== */
:root { --sk-a: rgba(255, 255, 255, 0.045); --sk-b: rgba(255, 255, 255, 0.11); }
html.ic-light { --sk-a: rgba(0, 0, 0, 0.05); --sk-b: rgba(0, 0, 0, 0.1); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.boot-skel[hidden], body:not(.is-booting) #ic-vitrine-skel { display: none; }
.is-booting #ic-results-grid > .empty-state { display: none; }
.sk {
    display: block; border-radius: 8px;
    background: linear-gradient(100deg, var(--sk-a) 20%, var(--sk-b) 40%, var(--sk-a) 60%) var(--sk-a);
    background-size: 220% 100%; animation: sk-shimmer 1.4s linear infinite;
}
@keyframes sk-shimmer { from { background-position: 120% 0; } to { background-position: -100% 0; } }
.boot-skel { display: grid; gap: 12px; margin: 4px auto 18px; animation: sk-in 0.4s ease both; }
@keyframes sk-in { from { opacity: 0; } to { opacity: 1; } }
.sk-title { width: 180px; height: 18px; }
.boot-trend-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 280px); gap: 10px; overflow: hidden; }
.sk-trend { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: var(--ic-r-lg); border: 1px solid var(--border); background: var(--surface); }
.sk-thumb { width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--ic-r-md); }
.sk-lines { display: grid; gap: 7px; flex: 1; }
.sk-line { height: 11px; }
.w92 { width: 92%; } .w70 { width: 70%; } .w64 { width: 64%; } .w45 { width: 45%; } .w40 { width: 40%; }
.boot-vit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sk-stat { width: 260px; height: 26px; border-radius: 999px; }
.boot-cats { display: flex; gap: 8px; overflow: hidden; }
.sk-chip { width: 92px; height: 32px; flex-shrink: 0; border-radius: 999px; }
.sk-chip:first-child { width: 58px; }
.sk-card { display: flex; flex-direction: column; gap: 9px; padding: 6px 6px 14px; border-radius: 20px; background: var(--surface); }
.sk-card .sk-line { height: 14px; margin: 0 8px; }
.sk-card .sk-line.w92 { margin-top: 6px; }
.sk-img { aspect-ratio: 1 / 1; width: 100%; border-radius: 16px; }
.sk-tag { width: 64px; height: 18px; margin: 4px 8px 0; border-radius: 4px; }
.sk-price { width: 55%; height: 24px; margin: 0 8px; }
.sk-seller { display: flex; align-items: center; gap: 6px; margin: 6px 8px 0; }
.sk-seller .sk-line { margin: 0; }
.sk-dot { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; }
.boot-vitrine .hub-grid .sk-card:nth-child(n+7) { opacity: 0.75; }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
@media (max-width: 560px) { .sk-stat { display: none; } .boot-vitrine .hub-grid .sk-card:nth-child(n+5) { display: none; } }

/* ===== Import.IA em destaque no topo da ficha ===== */
.ai-cta {
    position: relative; isolation: isolate; width: 100%; margin-top: 10px;
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left;
    border-radius: var(--ic-r-lg); border: 1px solid transparent; cursor: pointer; color: var(--text); font: inherit;
    background:
        linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
        linear-gradient(120deg, rgba(255, 218, 0, 0.9), rgba(255, 170, 0, 0.35) 45%, rgba(255, 218, 0, 0.15)) border-box;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: translate 0.3s var(--ic-spring), box-shadow 0.25s;
}
.ai-cta::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: radial-gradient(120% 140% at 0% 0%, rgba(255, 218, 0, 0.14), transparent 55%);
}
.ai-cta:hover:not(:disabled) { translate: 0 -1px; box-shadow: 0 12px 30px rgba(255, 218, 0, 0.14), 0 8px 24px rgba(0, 0, 0, 0.3); }
.ai-cta:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }
.ai-cta:disabled { cursor: progress; }
.ai-cta-ico { position: relative; width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--ic-yellow); color: var(--ic-on-yellow); box-shadow: 0 6px 18px rgba(255, 218, 0, 0.3); }
.ai-spark { animation: ai-twinkle 2.6s ease-in-out infinite; }
@keyframes ai-twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.12) rotate(8deg); } }
.ai-cta-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(0, 0, 0, 0.25); border-top-color: var(--ic-on-yellow); animation: hubSpin 0.8s linear infinite; }
.ai-cta[data-estado="loading"] .ai-spark { display: none; }
.ai-cta[data-estado="loading"] .ai-cta-spin { display: block; }
.ai-cta-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ai-cta-text b { font-size: 14px; font-weight: 800; letter-spacing: -0.1px; color: var(--text); }
.ai-cta-text small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.ai-cta-go { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--ic-yellow-soft); color: var(--ic-yellow); transition: translate 0.3s var(--ic-spring), background 0.2s; }
.ai-cta:hover:not(:disabled) .ai-cta-go { translate: 3px 0; background: var(--ic-yellow); color: var(--ic-on-yellow); }
.ai-cta[data-estado="loading"] .ai-cta-go { opacity: 0.35; }
.ai-cta[data-estado="done"] .ai-cta-ico { background: var(--ic-green); color: #fff; box-shadow: 0 6px 18px rgba(48, 203, 40, 0.3); }
.ai-cta[data-estado="done"] .ai-cta-go { rotate: 90deg; }
.ai-cta[data-estado="erro"] .ai-cta-ico { background: rgba(255, 77, 79, 0.16); color: #FF4D4F; box-shadow: none; }
html.ic-light .ai-cta { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06); }
html.ic-light .ai-cta-go { color: #7A6300; }
.ai-box.is-flash { animation: ai-flash 1.4s ease-out; }
@keyframes ai-flash { 0% { box-shadow: 0 0 0 0 rgba(255, 218, 0, 0.55); } 100% { box-shadow: 0 0 0 14px rgba(255, 218, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .ai-spark { animation: none; } }

/* ===== Conta: Premium e Pacote no mesmo molde de card ===== */
.account-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.account-offers.is-single { grid-template-columns: minmax(0, 1fr); }
.offer-card[hidden] { display: none; }
.offer-card {
    position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0;
    padding: 18px 16px 16px; border-radius: var(--ic-r-lg); border: 1px solid var(--border); background: var(--surface-2);
    transition: border-color 0.2s, translate 0.3s var(--ic-spring), box-shadow 0.25s;
}
.offer-card:hover { border-color: var(--ic-yellow-line); translate: 0 -2px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25); }
.offer-card.is-best {
    border-color: var(--ic-yellow-line);
    background: linear-gradient(180deg, rgba(255, 218, 0, 0.08), rgba(255, 218, 0, 0.015) 60%), var(--surface-2);
    box-shadow: inset 0 0 0 1px rgba(255, 218, 0, 0.12);
}
.offer-badge {
    position: absolute; top: -10px; right: 14px; padding: 3px 10px; border-radius: 999px;
    background: var(--ic-yellow); color: var(--ic-on-yellow); font-size: 10.5px; font-weight: 900; letter-spacing: 0.5px; text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(255, 218, 0, 0.3);
}
.offer-head { display: flex; align-items: center; gap: 9px; min-width: 0; }
.offer-ico { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--ic-yellow-soft); color: var(--ic-yellow); }
html.ic-light .offer-ico { color: #7A6300; }
.offer-name { font-size: 13.5px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-price { font-size: 28px; font-weight: 900; letter-spacing: -0.8px; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.offer-card.is-best .offer-price { color: var(--ic-yellow); }
html.ic-light .offer-card.is-best .offer-price { color: #7A6300; }
.offer-price small { margin-left: 3px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.offer-note { margin-top: -4px; min-height: 16px; font-size: 11.5px; color: var(--muted); }
.offer-list { list-style: none; margin: 2px 0 0; padding: 10px 0 0; border-top: 1px solid var(--border); display: grid; gap: 7px; flex: 1; align-content: start; }
.offer-list li { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.offer-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--ic-green); }
.offer-list b { color: var(--text); font-weight: 800; }
.offer-btn {
    margin-top: 4px; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border-radius: var(--ic-r-md); border: 1px solid var(--ic-yellow-line); background: transparent;
    color: var(--ic-yellow); font: 800 13px var(--ic-font); text-decoration: none; letter-spacing: 0.1px;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s, translate 0.3s var(--ic-spring);
}
html.ic-light .offer-btn { color: #6B5600; }
.offer-btn:hover { background: var(--ic-yellow-soft); border-color: var(--ic-yellow); translate: 0 -1px; }
.offer-btn.is-primary { background: var(--ic-yellow); border-color: var(--ic-yellow); color: var(--ic-on-yellow); box-shadow: 0 8px 20px rgba(255, 218, 0, 0.22); }
.offer-btn.is-primary:hover { background: var(--ic-yellow-hover); box-shadow: var(--ic-glow-yellow); color: var(--ic-on-yellow); }
.offer-btn:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }
@media (max-width: 440px) { .account-offers { grid-template-columns: minmax(0, 1fr); } }

/* Notebook (tela baixa): foto da ficha um pouco menor, para o botão da Import.IA aparecer sem rolar */
@media (min-width: 561px) and (max-height: 820px) { .gallery-stage { height: 240px; } }
@media (min-width: 561px) and (max-height: 790px) { .gallery-stage { height: 190px; } .ai-cta { padding: 10px 12px; } .ai-cta-ico { width: 36px; height: 36px; } }

/* ===== Busca por foto (janela): palco da foto à esquerda, escolhas à direita ===== */
.ph-card {
    --ph-ink: var(--ic-yellow);
    position: relative; width: min(848px, 100%); max-height: min(92vh, 720px);
    display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: 28px; padding: 14px;
    overflow-y: auto; overscroll-behavior: contain;
    background: radial-gradient(90% 70% at 100% 0%, rgba(255, 218, 0, 0.06), transparent 60%), var(--surface);
}
html.ic-light .ph-card { --ph-ink: #6B5600; background: radial-gradient(90% 70% at 100% 0%, rgba(255, 218, 0, 0.1), transparent 60%), var(--surface); }

.ph-close {
    position: absolute; top: 14px; right: 14px; z-index: 3; width: 34px; height: 34px; display: grid; place-items: center;
    border-radius: 50%; border: 1px solid var(--border); background: var(--pill-bg); color: var(--muted); cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s, rotate 0.3s var(--ic-spring);
}
.ph-close:hover { color: var(--text); border-color: var(--ic-yellow-line); rotate: 90deg; }
.ph-close:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }

/* Palco: área de soltar a foto (vazio) e a prévia grande (com foto) */
.ph-stage {
    position: relative; isolation: isolate; min-height: 452px; display: grid; place-items: center; overflow: hidden;
    border-radius: 20px; border: 1.5px dashed rgba(255, 255, 255, 0.14); cursor: pointer; text-align: center;
    background:
        radial-gradient(60% 46% at 50% 40%, rgba(255, 218, 0, 0.1), transparent 70%),
        radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1.4px) 0 0 / 18px 18px,
        var(--surface-2);
    transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
html.ic-light .ph-stage {
    border-color: rgba(0, 0, 0, 0.16);
    background:
        radial-gradient(60% 46% at 50% 40%, rgba(255, 218, 0, 0.16), transparent 70%),
        radial-gradient(rgba(0, 0, 0, 0.09) 1px, transparent 1.4px) 0 0 / 18px 18px,
        #f6f6f7;
}
.ph-stage:hover { border-color: var(--ic-yellow-line); }
.ph-stage.is-over { border-style: solid; border-color: var(--ic-yellow); box-shadow: inset 0 0 0 4px rgba(255, 218, 0, 0.12); }
.ph-stage:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 3px; }

.ph-empty { position: relative; display: grid; justify-items: center; gap: 6px; padding: 24px; }
.ph-empty strong { margin-top: 22px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
.ph-empty > span:not(.ph-art):not(.ph-paste) { font-size: 13px; color: var(--muted); }
.ph-paste { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.ph-paste kbd {
    min-width: 26px; height: 24px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 7px;
    border: 1px solid var(--border); border-bottom-width: 2px; background: var(--surface); color: var(--text);
    font-family: inherit; font-size: 11px; font-weight: 700; line-height: 1;
}
.ph-paste > span { margin-left: 3px; }

/* Ilustração: duas fotos atrás e o bloco amarelo da busca na frente */
.ph-art { position: relative; width: 210px; height: 140px; display: grid; place-items: center; }
.ph-sheet {
    position: absolute; top: 22px; width: 92px; height: 92px; display: grid; place-items: center; border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12); background: linear-gradient(160deg, #303035, #222226); color: #a1a1aa;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
    transition: translate 0.45s var(--ic-spring), rotate 0.45s var(--ic-spring);
}
html.ic-light .ph-sheet { border-color: rgba(0, 0, 0, 0.08); background: linear-gradient(160deg, #ffffff, #f1f1f3); color: #a1a1aa; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12); }
.ph-sheet svg { width: 38px; height: 38px; opacity: 0.8; }
.ph-sheet-l { left: 8px; rotate: -13deg; }
.ph-sheet-r { right: 8px; rotate: 13deg; }
.ph-tile {
    position: relative; width: 120px; height: 120px; display: grid; place-items: center; border-radius: 34px;
    background: linear-gradient(150deg, #FFE866 0%, #FFDA00 45%, #FFC400 100%); color: #141414;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 -2px 0 rgba(0, 0, 0, 0.08) inset, 0 18px 40px rgba(255, 200, 0, 0.3);
    transition: translate 0.45s var(--ic-spring), scale 0.45s var(--ic-spring);
    animation: ph-float 4.2s ease-in-out infinite;
}
.ph-tile svg { width: 58px; height: 58px; }
@keyframes ph-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.ph-stage:hover .ph-sheet-l, .ph-stage.is-over .ph-sheet-l { translate: -10px -2px; rotate: -17deg; }
.ph-stage:hover .ph-sheet-r, .ph-stage.is-over .ph-sheet-r { translate: 10px -2px; rotate: 17deg; }
.ph-stage.is-over .ph-tile { scale: 1.07; }
.ph-formats { position: absolute; left: 0; right: 0; bottom: 16px; font-size: 11.5px; color: var(--muted); opacity: 0.8; }

/* Com foto: prévia inteira sobre um fundo desfocado da própria foto */
.ph-blur, .ph-preview { position: absolute; pointer-events: none; }
.ph-blur { inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(30px) saturate(1.4) brightness(0.5); z-index: -1; }
html.ic-light .ph-blur { filter: blur(30px) saturate(1.2) brightness(1.08); opacity: 0.55; }
.ph-preview { inset: 30px 30px 62px; width: calc(100% - 60px); height: calc(100% - 92px); object-fit: contain; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.4)); animation: ph-in 0.5s var(--ic-out) both; }
.ph-blur[hidden], .ph-preview[hidden] { display: none; }
@keyframes ph-in { from { opacity: 0; scale: 0.94; } to { opacity: 1; scale: 1; } }
.ph-stage.has-image { border-style: solid; border-color: var(--border); background: #0c0c0d; }
html.ic-light .ph-stage.has-image { background: #fafafa; }
.ph-stage.has-image .ph-empty, .ph-stage.has-image .ph-formats { display: none; }

/* Mira nos cantos e linha de leitura (aparece ao escolher a foto e enquanto envia) */
.ph-frame { position: absolute; inset: 16px 16px 50px; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.ph-frame i { position: absolute; width: 26px; height: 26px; border: 3px solid var(--ic-yellow); }
.ph-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.ph-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 12px; }
.ph-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 12px; }
.ph-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
.ph-stage.has-image .ph-frame { opacity: 1; }
.ph-scan {
    position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; border-radius: 2px; pointer-events: none; opacity: 0;
    background: linear-gradient(90deg, transparent, var(--ic-yellow) 20%, var(--ic-yellow) 80%, transparent);
    box-shadow: 0 0 16px 3px rgba(255, 218, 0, 0.45);
}
.ph-stage.is-fresh .ph-scan { animation: ph-scan 1.1s var(--ic-out) 1 both; }
.ph-stage.is-sending .ph-scan { animation: ph-scan 1.6s ease-in-out infinite; }
@keyframes ph-scan { 0% { top: 22px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: calc(100% - 58px); opacity: 0; } }

.ph-chip {
    position: absolute; display: none; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
    font-size: 12px; font-weight: 800; white-space: nowrap; pointer-events: none;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ph-stage.has-image .ph-chip { display: inline-flex; }
.ph-chip-ready { top: 12px; left: 50%; translate: -50% 0; background: rgba(48, 203, 40, 0.94); color: #04140a; }
.ph-chip-swap { bottom: 12px; left: 50%; translate: -50% 0; background: rgba(20, 20, 20, 0.72); color: #fff; border: 1px solid rgba(255, 255, 255, 0.14); transition: background 0.2s, border-color 0.2s; }
html.ic-light .ph-chip-swap { background: rgba(255, 255, 255, 0.85); color: #141414; border-color: rgba(0, 0, 0, 0.1); }
.ph-stage.has-image:hover .ph-chip-swap { background: var(--ic-yellow); color: #141414; border-color: var(--ic-yellow); }
.ph-stage.is-sending { cursor: progress; }
.ph-stage.is-sending .ph-chip { display: none; }

/* Painel da direita */
.ph-panel { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 16px 14px 6px 0; }
.ph-head { display: grid; justify-items: start; gap: 10px; padding-right: 40px; }
.ph-kicker {
    display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px;
    border: 1px solid var(--ic-yellow-line); background: var(--ic-yellow-soft); color: var(--ph-ink);
    font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.ph-head h2 { margin: 2px 0 0; font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; color: var(--text); }
.ph-head p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

.ph-section { display: grid; gap: 10px; }
.ph-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 20px; }
.ph-label { white-space: nowrap; font-size: 11.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.ph-credits { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.ph-credits[hidden] { display: none; }
.ph-credits b { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.ph-meter { width: 44px; height: 5px; border-radius: 5px; background: var(--border); overflow: hidden; }
.ph-meter span { display: block; height: 100%; border-radius: inherit; background: var(--ic-green); transition: width 0.5s var(--ic-out); }
.ph-credits.is-low .ph-meter span { background: var(--ic-yellow); }
.ph-credits.is-out .ph-meter span { background: var(--ic-red); }

.ph-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ph-opt {
    position: relative; display: grid; align-content: start; justify-items: start; gap: 2px; min-height: 104px; padding: 14px 14px 12px;
    border-radius: 16px; border: 1.5px solid var(--border); background: var(--pill-bg); color: var(--text);
    font: inherit; text-align: left; cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, translate 0.3s var(--ic-spring);
}
.ph-opt:hover:not(:disabled) { border-color: var(--ic-yellow-line); translate: 0 -2px; }
.ph-opt:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }
.ph-opt-n { font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ph-opt-name { font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.3; }
.ph-opt-cost {
    margin-top: auto; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px;
    background: var(--pill-bg); border: 1px solid var(--border); font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap;
}
.ph-opt-cost svg { width: 11px; height: 11px; }
.ph-opt-check {
    position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%;
    border: 1.5px solid var(--border); color: transparent; transition: background 0.2s, border-color 0.2s, color 0.2s, scale 0.3s var(--ic-spring);
}
.ph-opt-check svg { width: 11px; height: 11px; }
.ph-opt.is-active {
    border-color: var(--ic-yellow);
    background: linear-gradient(160deg, rgba(255, 218, 0, 0.16), rgba(255, 218, 0, 0.03) 70%), var(--surface-2);
    box-shadow: 0 0 0 3px rgba(255, 218, 0, 0.12), 0 10px 24px rgba(255, 218, 0, 0.08);
}
.ph-opt.is-active .ph-opt-n { color: var(--ph-ink); }
.ph-opt.is-active .ph-opt-check { background: var(--ic-yellow); border-color: var(--ic-yellow); color: #141414; scale: 1.05; }
.ph-opt.is-active .ph-opt-cost { border-color: var(--ic-yellow-line); color: var(--text); }
.ph-opt.is-locked .ph-opt-n, .ph-opt.is-locked .ph-opt-name { opacity: 0.6; }
.ph-opt.is-locked .ph-opt-check { display: none; }
.ph-opt.is-locked .ph-opt-cost { border-color: var(--ic-yellow-line); background: var(--ic-yellow-soft); color: var(--ph-ink); }
.ph-opt:disabled { cursor: not-allowed; opacity: 0.42; }

/* Status do serviço */
.ph-card .photo-service { align-items: center; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--pill-bg); font-size: 13px; }
.ph-card .photo-service { align-items: flex-start; }
.ph-card .photo-service-dot { margin-top: 6px; }
.ph-card #ic-photo-service-text { text-wrap: pretty; }
.ph-card .photo-service.is-on .photo-service-dot { animation: ph-live 2s ease-out infinite; }
@keyframes ph-live { 0% { box-shadow: 0 0 0 0 rgba(48, 203, 40, 0.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(48, 203, 40, 0); } }
.ph-card .photo-service.is-warn { border-color: var(--ic-yellow-line); background: var(--ic-yellow-soft); color: var(--text); }
.ph-card .photo-service.is-off { border-color: rgba(255, 77, 79, 0.3); background: rgba(255, 77, 79, 0.07); color: var(--text); }
.ph-card .photo-service button { color: var(--ph-ink); }

/* Botão principal */
.ph-go {
    position: relative; width: 100%; height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px;
    border-radius: 16px; border: 0; background: var(--ic-yellow); color: #141414; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 12px 28px rgba(255, 200, 0, 0.22);
    transition: background 0.2s, box-shadow 0.25s, translate 0.3s var(--ic-spring), color 0.2s;
}
.ph-go:hover:not(:disabled) { background: var(--ic-yellow-hover, #FFE333); translate: 0 -2px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 16px 34px rgba(255, 200, 0, 0.32); }
.ph-go:active:not(:disabled) { translate: 0 0; }
.ph-go:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 3px; }
.ph-go:disabled { cursor: not-allowed; background: var(--pill-bg); color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
.ph-go-ico { position: relative; width: 18px; height: 18px; display: grid; place-items: center; }
.ph-go-spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(20, 20, 20, 0.25); border-top-color: #141414; animation: ph-spin 0.8s linear infinite; }
@keyframes ph-spin { to { rotate: 360deg; } }
.ph-go.is-sending { background: var(--ic-yellow); color: #141414; box-shadow: none; }
.ph-go.is-sending .ph-go-search { display: none; }
.ph-go.is-sending .ph-go-spin { display: block; }
.ph-go-cost { height: 24px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 999px; background: rgba(0, 0, 0, 0.12); font-size: 12px; font-weight: 800; }
.ph-go-cost[hidden] { display: none; }

.ph-foot { display: flex; align-items: flex-start; gap: 7px; margin: -6px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.ph-foot svg { flex-shrink: 0; margin-top: 2px; }

@media (max-width: 820px) {
    .ph-card { grid-template-columns: minmax(0, 1fr); gap: 18px; width: min(480px, 100%); }
    .ph-stage { min-height: 260px; }
    .ph-panel { padding: 0 4px 4px; }
    .ph-head { padding-right: 0; }
    .ph-head h2 { font-size: 24px; }
    .ph-close { top: 22px; right: 22px; background: rgba(20, 20, 20, 0.6); }
}
@media (max-width: 480px) { .ph-cred-wk { display: none; } }
@media (max-width: 420px) {
    .ph-opts { gap: 6px; }
    .ph-opt { min-height: 96px; padding: 12px 10px 10px; }
    .ph-opt-n { font-size: 24px; }
    .ph-opt-check { top: 10px; right: 10px; }
}
@media (max-height: 700px) and (min-width: 821px) {
    .ph-stage { min-height: 400px; }
    .ph-panel { gap: 14px; padding-top: 10px; }
    .ph-head h2 { font-size: 25px; }
    .ph-opt { min-height: 92px; }
}
@media (prefers-reduced-motion: reduce) {
    .ph-tile, .ph-card .photo-service.is-on .photo-service-dot, .ph-stage.is-fresh .ph-scan { animation: none; }
    .ph-stage.is-sending .ph-scan { animation-duration: 3s; }
}

/* =====================================================================
   Busca no celular em andamento: painel com etapas e contagem, e vagas no formato do card
   ===================================================================== */
.phx {
    grid-column: 1 / -1; position: relative; overflow: hidden;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px;
    padding: 20px 22px; border-radius: 22px; border: 1px solid var(--ic-yellow-line);
    background: radial-gradient(120% 140% at 0% 0%, rgba(255, 218, 0, 0.16), transparent 55%), var(--surface);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
    animation: hub-card-in 0.45s var(--ic-out) both;
}
.phx::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255, 218, 0, 0.07) 50%, transparent 70%); background-size: 250% 100%; animation: phx-sheen 3.2s linear infinite; }
@keyframes phx-sheen { from { background-position: 150% 0; } to { background-position: -100% 0; } }
html.ic-light .phx { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }

/* Visual: celular com radar (texto) ou a foto sendo lida (foto) */
.phx-visual { width: 96px; height: 116px; display: grid; place-items: center; }
.phx-phone { position: relative; width: 70px; height: 112px; border-radius: 16px; border: 3px solid var(--ic-yellow); background: rgba(255, 218, 0, 0.08); overflow: hidden; }
.phx-phone::before { content: ''; position: absolute; top: 6px; left: 50%; width: 18px; height: 4px; margin-left: -9px; border-radius: 4px; background: var(--ic-yellow); opacity: 0.6; }
.phx-sweep { position: absolute; left: 50%; top: 50%; width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255, 218, 0, 0.55), rgba(255, 218, 0, 0) 70deg, transparent 360deg); animation: phx-spin 2.2s linear infinite; }
@keyframes phx-spin { to { transform: rotate(360deg); } }
.phx-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--ic-yellow); box-shadow: 0 0 10px rgba(255, 218, 0, 0.9); opacity: 0; animation: phx-blip 2.2s ease-out infinite; }
.phx-dot.d1 { left: 18px; top: 30px; animation-delay: 0.3s; }
.phx-dot.d2 { right: 14px; top: 56px; animation-delay: 1s; }
.phx-dot.d3 { left: 26px; bottom: 22px; animation-delay: 1.6s; }
@keyframes phx-blip { 0% { opacity: 0; transform: scale(0.3); } 15% { opacity: 1; transform: scale(1.2); } 60% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(0.8); } }
.phx-lupa { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; display: grid; place-items: center; border-radius: 50%; background: var(--ic-yellow); color: var(--ic-on-yellow); box-shadow: 0 0 0 6px rgba(255, 218, 0, 0.18); }
.phx-lupa svg { width: 17px; height: 17px; }
.phx-photo { position: relative; width: 96px; height: 96px; border-radius: 18px; overflow: hidden; border: 3px solid var(--ic-yellow); background: var(--pill-bg); }
.phx-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phx-scan { position: absolute; left: 0; right: 0; top: 0; height: 34%; background: linear-gradient(to bottom, transparent, rgba(255, 218, 0, 0.55)); border-bottom: 2px solid var(--ic-yellow); animation: phx-scan 1.8s ease-in-out infinite alternate; }
@keyframes phx-scan { from { transform: translateY(-100%); } to { transform: translateY(300%); } }

.phx-main { position: relative; z-index: 1; min-width: 0; display: grid; gap: 8px; }
.phx-kicker { justify-self: start; padding: 3px 10px; border-radius: var(--ic-r-pill); background: var(--ic-yellow); color: var(--ic-on-yellow); font-size: 10.5px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; }
.phx-title { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
.phx-steps { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.phx-steps li { display: inline-flex; align-items: center; gap: 7px; transition: color 0.3s; }
.phx-step-dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border); color: transparent; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.phx-step-dot svg { width: 10px; height: 10px; }
.phx-steps li.is-done { color: var(--text); }
.phx-steps li.is-done .phx-step-dot { background: var(--ic-green); border-color: var(--ic-green); color: #fff; }
.phx-steps li.is-now { color: var(--text); }
.phx-steps li.is-now .phx-step-dot { border-color: var(--ic-yellow); background: radial-gradient(circle, var(--ic-yellow) 0 38%, transparent 42%); animation: phx-pulse 1.4s ease-out infinite; }
@keyframes phx-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 218, 0, 0.55); } 100% { box-shadow: 0 0 0 9px rgba(255, 218, 0, 0); } }
.phx-wait { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); max-width: 640px; }
.phx-wait strong { color: var(--text); }
.phx-feed { margin: 0; display: inline-flex; align-items: center; gap: 8px; justify-self: start; max-width: 100%; padding: 6px 12px 6px 6px; border-radius: var(--ic-r-pill); background: var(--ic-green-soft); border: 1px solid var(--ic-green-line); font-size: 12.5px; font-weight: 700; color: var(--text); }
.phx-feed[hidden] { display: none; }
.phx-feed.is-new { animation: phx-feed-in 0.5s var(--ic-spring) both; }
@keyframes phx-feed-in { from { opacity: 0; transform: translateY(6px) scale(0.96); } to { opacity: 1; transform: none; } }
.phx-feed-ico { width: 20px; height: 20px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--ic-green); color: #fff; }
.phx-feed-ico svg { width: 11px; height: 11px; }
.phx-feed-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phx-rush { justify-self: start; margin-top: 2px; border: none; background: none; padding: 0; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.phx-rush span { font-weight: 600; opacity: 0.75; text-decoration: none; }
.phx-rush:hover { color: var(--text); }
.phx-rush:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 3px; border-radius: 4px; }

/* Contagem regressiva em anel */
.phx-eta { position: relative; z-index: 1; width: 104px; display: grid; justify-items: center; gap: 4px; }
.phx-eta svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.phx-ring-bg { fill: none; stroke: var(--border); stroke-width: 6; }
.phx-ring { fill: none; stroke: var(--ic-yellow); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 4 100; transition: stroke-dasharray 1s linear; filter: drop-shadow(0 0 6px rgba(255, 218, 0, 0.45)); }
.phx-eta-txt { position: absolute; top: 0; left: 0; right: 0; height: 96px; display: grid; place-content: center; text-align: center; line-height: 1; }
.phx-eta-n { font-size: 22px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.phx-eta-u { font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 3px; }
.phx-eta-lbl { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* Vagas: mesmo molde do card (borda 6, cantos 20, foto quadrada) */
.slot-card { background: var(--surface); border: 6px solid transparent; border-radius: 20px; display: flex; flex-direction: column; min-width: 0; animation: hub-card-in 0.45s var(--ic-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
.slot-thumb { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: var(--skel); display: grid; place-items: center; }
.slot-shine { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.07) 50%, transparent 80%); background-size: 220% 100%; animation: slot-shine 1.8s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 120ms); }
html.ic-light .slot-shine { background-image: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.7) 50%, transparent 80%); }
@keyframes slot-shine { from { background-position: 130% 0; } to { background-position: -30% 0; } }
.slot-num { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: var(--ic-r-pill); background: rgba(0, 0, 0, 0.35); color: rgba(255, 255, 255, 0.85); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
html.ic-light .slot-num { background: rgba(0, 0, 0, 0.08); color: var(--muted); }
.slot-label { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.slot-line { height: 13px; border-radius: 8px; background: var(--skel); margin-top: 12px; }
.slot-line.short { width: 60%; margin-top: 8px; }
.slot-tag { height: 16px; width: 34%; border-radius: 6px; background: var(--skel); margin-top: 10px; }
.slot-price { height: 24px; width: 50%; border-radius: 8px; background: var(--skel); margin: 10px 0 0; }
.slot-seller { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; }
.slot-seller span { height: 20px; width: 20px; border-radius: 50%; background: var(--skel); }
.slot-seller span + span { width: 42%; height: 12px; border-radius: 6px; }
/* A vaga da vez: radar procurando */
.slot-card.is-active { border-color: var(--ic-yellow-line); box-shadow: 0 0 0 1px rgba(255, 218, 0, 0.18), 0 10px 30px rgba(255, 218, 0, 0.12); }
.slot-card.is-active .slot-thumb { background: radial-gradient(circle at 50% 50%, rgba(255, 218, 0, 0.12), transparent 70%), var(--skel); }
.slot-radar { position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: conic-gradient(from 0deg, rgba(255, 218, 0, 0.42), rgba(255, 218, 0, 0) 80deg, transparent 360deg); animation: slot-radar 2s linear infinite; }
@keyframes slot-radar { to { transform: translate(-50%, -50%) rotate(360deg); } }
.slot-ring { position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 218, 0, 0.45); transform: translate(-50%, -50%) scale(0.6); opacity: 0; animation: slot-ring 2s ease-out infinite; }
.slot-ring.r2 { animation-delay: 1s; }
@keyframes slot-ring { 0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.6); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.2); } }
.slot-lupa { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--ic-yellow); color: var(--ic-on-yellow); box-shadow: 0 6px 18px rgba(255, 218, 0, 0.35); animation: slot-bob 1.6s ease-in-out infinite; }
.slot-lupa svg { width: 24px; height: 24px; }
@keyframes slot-bob { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(5px, -4px); } 50% { transform: translate(0, -6px); } 75% { transform: translate(-5px, -3px); } }
.slot-card.is-active .slot-label { color: var(--text); }
.slot-card.is-active .slot-num { background: var(--ic-yellow); color: var(--ic-on-yellow); }

/* Anúncio que acabou de chegar: a vaga "vira" o card com um brilho; os que já estavam não piscam de novo */
.item-card.no-enter { animation: none; }
.item-card.is-found { animation: card-found 0.7s var(--ic-spring) both; }
@keyframes card-found { 0% { opacity: 0; transform: scale(0.9); box-shadow: 0 0 0 3px var(--ic-yellow); } 60% { opacity: 1; transform: scale(1.02); box-shadow: 0 0 0 3px var(--ic-yellow), 0 0 28px rgba(255, 218, 0, 0.45); } 100% { transform: none; box-shadow: 0 0 0 0 rgba(255, 218, 0, 0); } }
.item-card.is-found .item-thumb-wrap::after { content: 'Achado agora'; position: absolute; top: 10px; left: 10px; z-index: 4; padding: 4px 10px; border-radius: var(--ic-r-pill); background: var(--ic-green); color: #fff; font-size: 11px; font-weight: 800; animation: found-tag 3.2s ease both; }
@keyframes found-tag { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 820px) {
    .phx { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 16px; }
    .phx-visual { display: none; }
    .phx-title { font-size: 16.5px; }
    .phx-eta { width: 78px; align-self: start; }
    .phx-eta svg { width: 72px; height: 72px; }
    .phx-eta-txt { height: 72px; }
    .phx-eta-n { font-size: 17px; }
}
@media (max-width: 480px) {
    .phx-steps { gap: 4px 10px; font-size: 11.5px; }
    .phx-wait { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .phx::after, .phx-sweep, .phx-dot, .phx-scan, .slot-shine, .slot-radar, .slot-ring, .slot-lupa, .phx-steps li.is-now .phx-step-dot { animation: none; }
    .phx-dot { opacity: 1; }
    .item-card.is-found { animation: none; }
}

/* Resultado salvo: "Buscar mais novos" (celular, grátis) */
.mais-cta { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--ic-r-lg); border: 1px solid var(--border); background: linear-gradient(110deg, var(--ic-yellow-soft), transparent 60%), var(--surface); animation: hub-card-in 0.4s var(--ic-out) both; }
.mais-cta-ico { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--pill-bg); color: var(--ic-yellow); }
html.ic-light .mais-cta-ico { color: #6B5600; }
.mais-cta-ico svg { width: 20px; height: 20px; }
.mais-cta-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.mais-cta-main strong { font-size: 13.5px; color: var(--text); }
.mais-cta-main span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.mais-cta-main .mais-cta-erro { color: var(--text); font-weight: 700; }
.mais-cta-erro[hidden] { display: none; }
.mais-cta-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: none; border-radius: var(--ic-r-pill); background: var(--ic-yellow); color: var(--ic-on-yellow); font: 800 13px var(--ic-font); cursor: pointer; transition: background 0.2s, box-shadow 0.3s, translate 0.3s var(--ic-spring); }
.mais-cta-btn svg { width: 15px; height: 15px; }
.mais-cta-btn:hover:not(:disabled) { background: var(--ic-yellow-hover); box-shadow: var(--ic-glow-yellow); translate: 0 -1px; }
.mais-cta-btn:disabled { opacity: 0.7; cursor: progress; }
.mais-cta-btn:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 3px; }
.mais-cta.is-fim { justify-content: center; flex-wrap: wrap; text-align: center; margin-top: 6px; padding: 18px 16px; border-style: dashed; background: var(--surface); }
.mais-cta.is-fim .mais-cta-txt { font-size: 13px; color: var(--muted); }
.mais-cta.is-fim .mais-cta-txt strong { color: var(--text); }
@media (max-width: 640px) { .mais-cta:not(.is-fim) { flex-wrap: wrap; } .mais-cta:not(.is-fim) .mais-cta-btn { width: 100%; justify-content: center; } }

/* =====================================================================
   Atalhos do dia a dia: favoritos no topo, aba Início, buscas recentes,
   "Visto" nos cards, voltar ao topo e o aviso rápido (toast)
   ===================================================================== */

/* Coração no topo com o número de favoritos */
.hub-fav-top { position: relative; }
.hub-fav-top-n {
    position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: var(--ic-r-pill); background: var(--ic-yellow); color: var(--ic-on-yellow);
    border: 2px solid var(--header-bg); font: 800 10px/14px var(--ic-font); text-align: center;
    font-variant-numeric: tabular-nums; pointer-events: none;
}
.hub-fav-top-n[hidden] { display: none; }
.hub-fav-top.is-pop { animation: fav-top-pop 0.6s var(--ic-spring); }
.hub-fav-top.is-pop svg { color: var(--ic-green); }
@keyframes fav-top-pop { 0% { transform: scale(1); } 35% { transform: scale(1.22); } 100% { transform: scale(1); } }
body[data-view="favoritos"] .hub-fav-top { border-color: var(--ic-yellow-line); color: var(--ic-yellow); background: var(--ic-yellow-soft); }
html.ic-light body[data-view="favoritos"] .hub-fav-top { color: #7A6300; }

/* Aba Início com casinha */
.hub-tab-ico { flex-shrink: 0; margin-left: -2px; }

/* Buscas recentes embaixo da caixa de busca */
.hub-recent {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 70;
    padding: 6px; border-radius: var(--ic-r-lg);
    background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--ic-shadow-2);
    animation: recent-in 0.22s var(--ic-out);
}
html.ic-light .hub-recent { background: #ffffff; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14); }
.hub-recent[hidden] { display: none; }
@keyframes recent-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.hub-recent-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.hub-recent-clear { border: none; background: none; color: var(--muted); font: 600 11.5px var(--ic-font); cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.hub-recent-clear:hover { color: var(--text); }
.hub-recent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.hub-recent-item { display: flex; align-items: center; gap: 10px; padding: 0 4px 0 10px; height: 38px; border-radius: var(--ic-r-md); color: var(--text); cursor: pointer; font-size: 14px; }
.hub-recent-item:hover, .hub-recent-item.is-active { background: var(--pill-hover); }
.hub-recent-item svg { flex-shrink: 0; color: var(--muted); }
.hub-recent-q { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-recent-q mark { background: none; color: inherit; font-weight: 800; }
.hub-recent-del { width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; border: none; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity 0.15s, background 0.15s; }
.hub-recent-item:hover .hub-recent-del, .hub-recent-item.is-active .hub-recent-del { opacity: 1; }
.hub-recent-del:hover { background: var(--pill-bg); color: var(--text); }
@media (hover: none) { .hub-recent-del { opacity: 1; } }

/* "Visto": anúncio que a pessoa já abriu */
.card-seen-badge {
    position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px 3px 6px; border-radius: var(--ic-r-pill);
    background: rgba(20, 20, 20, 0.62); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    font-size: 10.5px; font-weight: 700; pointer-events: none;
}
.card-new-badge ~ .card-seen-badge { top: 32px; }
.item-card.is-seen .item-title-pt { color: var(--muted); }

/* Voltar ao topo: gruda no canto de baixo da coluna de resultados */
.hub-totop-wrap { position: sticky; bottom: 0; height: 0; display: flex; justify-content: flex-end; pointer-events: none; z-index: 20; }
.hub-totop {
    width: 44px; height: 44px; margin-top: -60px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--ic-line-strong); background: var(--ic-glass-strong); color: #ffffff;
    -webkit-backdrop-filter: var(--ic-blur); backdrop-filter: var(--ic-blur); box-shadow: var(--ic-shadow-1);
    cursor: pointer; opacity: 0; transform: translateY(12px) scale(0.9); pointer-events: none;
    transition: opacity 0.25s, transform 0.35s var(--ic-spring), background 0.2s, color 0.2s;
}
.hub-totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.hub-totop:hover { background: var(--ic-yellow); color: var(--ic-on-yellow); border-color: var(--ic-yellow); }
.hub-totop:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 2px; }
html.ic-light .hub-totop { background: rgba(255, 255, 255, 0.94); color: #1f1f1f; border-color: rgba(0, 0, 0, 0.1); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14); }
html.ic-light .hub-totop:hover { background: var(--ic-yellow); color: var(--ic-on-yellow); }

/* Aviso rápido (toast) */
.hub-toast {
    position: fixed; left: 16px; right: 16px; bottom: 24px; z-index: 9500; display: flex; align-items: center; gap: 10px;
    width: fit-content; max-width: 440px; margin: 0 auto; padding: 8px 8px 8px 14px; border-radius: var(--ic-r-pill);
    background: var(--ic-glass-strong); color: #ffffff; border: 1px solid var(--ic-line-strong);
    -webkit-backdrop-filter: var(--ic-blur); backdrop-filter: var(--ic-blur); box-shadow: var(--ic-shadow-2);
    font-size: 13.5px; font-weight: 600;
    animation: toast-in 0.4s var(--ic-spring);
}
.hub-toast[hidden] { display: none; }
.hub-toast.is-leaving { animation: toast-out 0.22s var(--ic-in) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }
.hub-toast-ico { width: 24px; height: 24px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--ic-green); color: #ffffff; }
.hub-toast-ico:empty { display: none; }
.hub-toast-ico.is-off { background: rgba(255, 255, 255, 0.14); }
.hub-toast-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-toast-act { flex-shrink: 0; height: 30px; padding: 0 14px; border: none; border-radius: var(--ic-r-pill); background: var(--ic-yellow); color: var(--ic-on-yellow); font: 800 12.5px var(--ic-font); cursor: pointer; transition: background 0.2s; }
.hub-toast-act:hover { background: var(--ic-yellow-hover); }
.hub-toast-act[hidden] { display: none; }

@media (max-width: 560px) {
    .hub-toast { bottom: 76px; }
    .hub-totop { margin-top: -124px; }
    .hub-recent-item { height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    .hub-toast, .hub-toast.is-leaving, .hub-recent, .hub-fav-top.is-pop { animation: none; }
    .hub-totop { transition: opacity 0.01ms; }
}

/* =====================================================================
   De onde vem a busca: selo ao lado do status, pergunta antes de gastar
   uma busca na hora e a escolha "Como buscar" do Premium
   ===================================================================== */
.hub-fonte { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--ic-r-pill); border: 1px solid var(--ic-green-line); background: var(--ic-green-soft); color: var(--ic-green-ink); font: 800 11.5px var(--ic-font); white-space: nowrap; cursor: help; animation: hub-card-in 0.3s var(--ic-out) both; }
.hub-fonte::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hub-fonte[hidden] { display: none; }
.hub-fonte[data-tipo="hora"] { border-color: var(--ic-yellow-line); background: var(--ic-yellow-soft); color: var(--ic-yellow); }
html.ic-light .hub-fonte[data-tipo="hora"] { color: #6B5600; }

.hora-ask { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--ic-r-lg); border: 1px solid var(--ic-yellow-line); background: linear-gradient(110deg, var(--ic-yellow-soft), transparent 65%), var(--surface); animation: hub-card-in 0.4s var(--ic-out) both; }
.hora-ask-ico { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--pill-bg); color: var(--ic-yellow); }
html.ic-light .hora-ask-ico { color: #6B5600; }
.hora-ask-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.hora-ask-txt strong { font-size: 14px; color: var(--text); }
.hora-ask-txt span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.hora-ask-actions { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.hora-ask-sim, .hora-ask-nao { height: 38px; padding: 0 16px; border-radius: var(--ic-r-pill); font: 800 13px var(--ic-font); cursor: pointer; transition: background 0.2s, box-shadow 0.3s, translate 0.3s var(--ic-spring), border-color 0.2s; }
.hora-ask-sim { border: none; background: var(--ic-yellow); color: var(--ic-on-yellow); }
.hora-ask-sim:hover:not(:disabled) { background: var(--ic-yellow-hover); box-shadow: var(--ic-glow-yellow); translate: 0 -1px; }
.hora-ask-nao { border: 1px solid var(--border); background: transparent; color: var(--text); }
.hora-ask-nao:hover:not(:disabled) { border-color: var(--ic-line-strong); background: var(--pill-hover); }
.hora-ask button:disabled { opacity: 0.6; cursor: progress; }
.hora-ask button:focus-visible { outline: 2px solid var(--ic-yellow); outline-offset: 3px; }
@media (max-width: 640px) {
    .hora-ask { flex-wrap: wrap; }
    .hora-ask-actions { width: 100%; }
    .hora-ask-actions button { flex: 1; }
}

.hub-modo-wrap { display: contents; }
.hub-modo-wrap[hidden] { display: none; }
.ic-dd[data-kind="modo"] .ic-dd-menu { min-width: 280px; }
.ic-dd-ico.is-modo { color: var(--ic-yellow); background: var(--ic-yellow-soft); }
html.ic-light .ic-dd-ico.is-modo { color: #6B5600; }
.ic-dd-ico.is-modo svg { width: 13px; height: 13px; }
.ic-dd-opt .ic-dd-ico.is-modo svg { width: 15px; height: 15px; }
/* Telas menores: a escolha do Premium vira só o ícone (o nome aparece ao abrir) */
@media (max-width: 1600px) { .ic-dd[data-kind="modo"] .ic-dd-pre { display: none; } }
@media (max-width: 1440px) { .ic-dd[data-kind="modo"] .ic-dd-btn .ic-dd-label { display: none; } }
/* Celular: três limites no painel (na hora, app, foto) e a escolha do Premium no topo cabendo na tela */
@media (max-width: 560px) {
    .quota-pill.quota-dock { gap: 8px; padding: 6px 10px 6px 8px; max-width: calc(100vw - 20px); }
    .quota-dock .qd-item { gap: 6px; }
    .quota-dock .qd-ring { width: 32px; height: 32px; }
    .quota-dock .qd-ring::before { inset: 3px; }
    .quota-dock .qd-text b { font-size: 14px; }
    .quota-dock .qd-text small { font-size: 10px; }
    .quota-dock .qp-sep { height: 24px; }
    .ic-dd[data-kind="currency"] .ic-dd-btn .ic-dd-label { display: none; }
}
@media (max-width: 420px) {
    /* Sem as legendas: o ícone (lupa, celular, câmera) e o número bastam; tocar abre a explicação */
    .quota-dock .qd-text small { display: none; }
    .hub-header .ic-dd-btn .ic-dd-chev { display: none; }
    .hub-header .ic-dd-btn { padding-right: 4px; }
}


/* Plano Plus: selo verde no topo (o dourado é do Premium) */
.hub-plan-tag.is-plus { color: var(--ic-green-ink); border-color: var(--ic-green-line); background: var(--ic-green-soft); }
.hub-plan-tag.is-plus:hover { color: var(--ic-green-ink); border-color: var(--ic-green); background: var(--ic-green-soft); }
.plan-box.is-plus .plan-eq { font-size: 12px; line-height: 1.4; text-align: center; }

/* Planos lado a lado: Grátis × Plus × Premium */
.plans-compare { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0 6px; font-size: 12.5px; }
.plans-compare th, .plans-compare td { padding: 8px 6px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; color: var(--text); }
.plans-compare thead th { font: 800 11px var(--ic-font); text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); border-bottom-color: var(--ic-line-strong); }
.plans-compare thead th.is-best { color: var(--ic-yellow); }
.plans-compare tbody th { text-align: left; font-weight: 700; padding-left: 0; }
.plans-compare tbody th small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.plans-compare td b { font-weight: 800; }
.plans-compare td.is-best { background: var(--ic-yellow-soft); }
.plans-compare tbody tr:last-child th, .plans-compare tbody tr:last-child td { border-bottom: none; }
.plans-compare .pc-sim { width: 15px; height: 15px; color: var(--ic-green); vertical-align: middle; }
.plans-compare .pc-nao { color: var(--muted); }
.plans-free-note { margin: 4px 0 12px; font-size: 12px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Conta por e-mail */
.account-login .login-hint { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.account-login .modal-test-row + .modal-test-row { margin-top: 8px; }
.account-login #ic-login-code { letter-spacing: 4px; font-variant-numeric: tabular-nums; }
.account-login .login-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--ic-r-md); border: 1px solid var(--ic-green-line); background: var(--ic-green-soft); color: var(--text); font-size: 13px; }
.account-login .login-in[hidden], #ic-login-out[hidden], #ic-login-code-row[hidden] { display: none; }
.account-login .login-in b { word-break: break-all; }
#ic-login-status.is-ok { color: var(--ic-green-ink); }
#ic-login-status.is-error { color: var(--ic-red); }
.account-oldkey { margin: 4px 0 14px; border: 1px solid var(--border); border-radius: var(--ic-r-md); padding: 0 12px; }
.account-oldkey > summary { cursor: pointer; padding: 10px 0; font-size: 12.5px; font-weight: 700; color: var(--muted); list-style: none; }
.account-oldkey > summary::-webkit-details-marker { display: none; }
.account-oldkey > summary::after { content: ' ▾'; }
.account-oldkey[open] > summary::after { content: ' ▴'; }
.account-oldkey[open] { padding-bottom: 6px; }
