/* Public landing styles extracted from index.html to keep markup focused on structure. */

#screen-public { display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); }
.pub-header {
    position: sticky; top: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 24px;
    background: rgba(9,9,11,0.85); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    max-width: 1200px; margin: 0 auto; width: 100%;
}
.pub-header-wrap {
    position: sticky; top: 0; z-index: 100;
    background: rgba(9,9,11,0.85); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.pub-logo { font-size: 16px; font-weight: 800; letter-spacing: 0.05em; }
.pub-logo span { color: var(--text-sub); font-weight: 400; }
.pub-nav-btns { display: flex; gap: 10px; align-items: center; }
.btn-ghost { background: none; border: 1px solid var(--border); color: var(--text-main); padding: 10px 20px; border-radius: 100px; font-size: 13px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.btn-ghost:hover { border-color: var(--text-sub); }
.btn-accent-sm { background: var(--gradient-brand); color: #000; border: none; padding: 10px 20px; border-radius: 100px; font-size: 13px; font-weight: 800; cursor: pointer; transition: 0.2s; }
.pub-hero {
    text-align: center; padding: 64px 24px 48px;
    max-width: 700px; margin: 0 auto; width: 100%;
}
.pub-hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(226,242,159,0.08); border: 1px solid rgba(226,242,159,0.2);
    color: var(--accent); font-size: 11px; font-weight: 800;
    padding: 6px 14px; border-radius: 100px; margin-bottom: 24px;
    text-transform: uppercase; letter-spacing: 0.08em;
}
.pub-hero h1 { font-size: clamp(28px, 6vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 16px; }
.pub-hero p { font-size: 15px; color: var(--text-sub); line-height: 1.7; max-width: 480px; margin: 0 auto 32px; }
.hero-search-wrap { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.hero-search { flex: 1; background: var(--surface); border: 1px solid var(--border); padding: 14px 20px; border-radius: 100px; font-size: 14px; font-weight: 500; color: var(--text-main); outline: none; transition: 0.2s; }
.hero-search:focus { border-color: var(--accent); }
.hero-search::placeholder { color: var(--text-dim); }
.btn-pesquisar { background: var(--gradient-brand); color: #000; border: none; padding: 14px 24px; border-radius: 100px; font-weight: 800; font-size: 13px; cursor: pointer; white-space: nowrap; }
.ticker-tape { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); padding: 12px 0; position: relative; }
.ticker-tape::before, .ticker-tape::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.ticker-tape::before { left: 0; background: linear-gradient(to right, var(--surface), transparent); }
.ticker-tape::after { right: 0; background: linear-gradient(to left, var(--surface), transparent); }
.ticker-inner { display: flex; gap: 40px; animation: ticker 40s linear infinite; width: max-content; }
.ticker-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ticker-name { font-size: 12px; font-weight: 800; color: var(--text-main); }
.ticker-price { font-size: 12px; font-weight: 700; color: var(--text-sub); font-family: var(--font-mono); }
.ticker-change { font-size: 11px; font-weight: 800; font-family: var(--font-mono); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.pub-section { max-width: 1200px; margin: 0 auto; padding: 40px 24px; width: 100%; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-title { font-size: 18px; font-weight: 800; }
.section-kicker { font-size: 12px; font-weight: 700; color: var(--text-sub); }
.section-link { font-size: 12px; font-weight: 700; color: var(--text-sub); text-decoration: none; cursor: pointer; }
.section-link:hover { color: var(--text-main); }
.pub-start-section { padding-top: 8px; }
.start-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.start-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,0.045), rgba(226,242,159,0.035));
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    min-height: 178px;
}
.start-card::after {
    content: '';
    position: absolute;
    right: -34px;
    top: -34px;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: rgba(226,242,159,0.08);
}
.start-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(226,242,159,0.1);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 18px;
}
.start-card strong {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
}
.start-card p {
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.65;
}
.trust-section { padding-top: 0; }
.trust-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 26px;
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(226,242,159,0.12), transparent 34%),
        linear-gradient(145deg, rgba(24,24,27,0.98), rgba(9,9,11,0.94));
    border: 1px solid rgba(226,242,159,0.16);
    border-radius: 28px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}
.trust-label {
    display: inline-block;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}
.trust-card h2 {
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}
.trust-card p {
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.75;
}
.trust-points {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.trust-points div {
    background: rgba(255,255,255,0.035);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
}
.trust-points strong {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
}
.trust-points span {
    display: block;
    color: var(--text-sub);
    font-size: 12px;
    line-height: 1.55;
}
.ranking-tabs { display: flex; gap: 8px; }
.r-tab { background: none; border: 1px solid var(--border); color: var(--text-sub); font-size: 11px; font-weight: 800; padding: 8px 16px; border-radius: 100px; cursor: pointer; transition: 0.2s; }
.r-tab.active { background: var(--text-main); color: var(--bg); border-color: var(--text-main); }
.ranking-table { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.rt-head { display: grid; grid-template-columns: 40px 1fr 100px 100px 100px; gap: 0; padding: 12px 20px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.rt-head span { font-size: 10px; font-weight: 800; color: var(--text-sub); text-transform: uppercase; text-align: right; }
.rt-head span:first-child, .rt-head span:nth-child(2) { text-align: left; }
.rt-row { display: grid; grid-template-columns: 40px 1fr 100px 100px 100px; gap: 0; padding: 14px 20px; border-bottom: 1px solid var(--border); cursor: pointer; transition: 0.15s; align-items: center; }
.rt-row:last-child { border-bottom: none; }
.rt-row:hover { background: rgba(255,255,255,0.03); }
.rt-rank { font-size: 12px; font-weight: 800; color: var(--text-dim); }
.rt-asset { display: flex; align-items: center; gap: 10px; }
.rt-asset img { width: 32px; height: 32px; border-radius: 50%; background: var(--border); object-fit: contain; }
.rt-asset-name { font-size: 14px; font-weight: 800; }
.rt-asset-sub { font-size: 11px; color: var(--text-sub); font-weight: 500; }
.rt-val { font-size: 13px; font-weight: 700; font-family: var(--font-mono); text-align: right; }
.rt-badge { display: inline-block; background: rgba(52,211,153,0.1); color: var(--success); font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.rt-badge.neg { background: rgba(248,113,113,0.1); color: var(--danger); }
.news-grid { display: grid; grid-template-columns: 1fr 1fr 320px; gap: 20px; }
.news-main { display: flex; flex-direction: column; }
.news-main-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; cursor: pointer; transition: 0.2s; }
.news-main-card:hover { border-color: var(--text-dim); }
.news-main-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--border); }
.news-main-body { padding: 20px; }
.news-tag { display: inline-block; background: rgba(226,242,159,0.08); border: 1px solid rgba(226,242,159,0.15); color: var(--accent); font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.news-tag.mercado { background: rgba(96,165,250,0.08); border-color: rgba(96,165,250,0.2); color: #60A5FA; }
.news-tag.inter { background: rgba(167,139,250,0.08); border-color: rgba(167,139,250,0.2); color: #A78BFA; }
.news-main-title { font-size: 16px; font-weight: 800; line-height: 1.4; color: var(--text-main); }
.news-main-sub { font-size: 12px; color: var(--text-sub); margin-top: 8px; line-height: 1.5; }
.news-time { font-size: 11px; color: var(--text-dim); margin-top: 12px; }
.news-col { display: flex; flex-direction: column; gap: 12px; }
.news-card-sm { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; cursor: pointer; transition: 0.2s; display: flex; flex-direction: column; }
.news-card-sm:hover { border-color: var(--text-dim); }
.news-sm-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--border); }
.news-sm-body { padding: 16px; }
.news-sm-title { font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--text-main); }
.news-sidebar { display: flex; flex-direction: column; gap: 8px; }
.news-sidebar-title { font-size: 14px; font-weight: 800; margin-bottom: 4px; color: var(--text-main); }
.news-row { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; cursor: pointer; transition: 0.15s; }
.news-row:hover { border-color: var(--text-dim); }
.news-row-img { width: 56px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--border); flex-shrink: 0; }
.news-row-txt { flex: 1; }
.news-row-title { font-size: 12px; font-weight: 700; line-height: 1.4; color: var(--text-main); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-row-tag { display: inline-block; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; background: rgba(226,242,159,0.08); color: var(--accent); }
.gate-overlay { position: relative; }
.gate-blur { filter: blur(4px); pointer-events: none; user-select: none; }
.gate-card {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 32px;
    background: rgba(9,9,11,0.7); backdrop-filter: blur(4px);
    border-radius: 20px; text-align: center; z-index: 10;
}
.gate-icon { font-size: 32px; margin-bottom: 12px; }
.gate-title { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.gate-sub { font-size: 13px; color: var(--text-sub); margin-bottom: 20px; line-height: 1.6; }
.gate-btn { background: var(--gradient-brand); color: #000; border: none; padding: 14px 28px; border-radius: 100px; font-weight: 800; font-size: 13px; cursor: pointer; }
.gate-btn-ghost { background: none; border: 1px solid var(--border); color: var(--text-main); padding: 12px 24px; border-radius: 100px; font-size: 13px; font-weight: 700; cursor: pointer; margin-top: 8px; width: 100%; }
.skel { background: var(--surface); border-radius: 8px; animation: skeletonPulse 1.5s ease infinite; }
.cta-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 64px 24px; text-align: center; }
.cta-inner { max-width: 560px; margin: 0 auto; }
.cta-title { font-size: clamp(22px, 4vw, 32px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.cta-sub { font-size: 15px; color: var(--text-sub); margin-bottom: 32px; line-height: 1.7; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-plan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 640px; margin: 0 auto 32px; }
.plan-card { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 24px; text-align: left; position: relative; }
.plan-card.featured { border-color: var(--accent); }
.plan-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--gradient-brand); color: #000; font-size: 10px; font-weight: 800; padding: 4px 14px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.plan-name { font-size: 12px; font-weight: 800; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.plan-price { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.plan-price span { font-size: 14px; font-weight: 500; color: var(--text-sub); }
.plan-features { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.plan-features li { font-size: 12px; color: var(--text-sub); display: flex; align-items: center; gap: 8px; }
.plan-features li::before { content: '\2713'; color: var(--success); font-weight: 800; flex-shrink: 0; }
.plan-features li.locked::before { content: '\1F512'; font-size: 10px; }
.pub-footer {
    border-top: 1px solid var(--border);
    padding: 36px 24px calc(132px + env(safe-area-inset-bottom));
    text-align: center;
}
.pub-footer p {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.8;
    max-width: 760px;
    margin: 0 auto;
}
#pub-search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; z-index: 200; display: none; box-shadow: var(--shadow-md); text-align: left; }
.pub-search-helper {
    padding: 10px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.pub-search-result-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
    transition: background 0.16s ease;
}
.pub-search-result-item:last-child { border-bottom: none; }
.pub-search-result-item:hover,
.pub-search-result-item.active { background: rgba(255,255,255,0.055); }
.pub-search-result-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border);
    object-fit: contain;
    flex-shrink: 0;
}
.pub-search-result-main {
    flex: 1;
    min-width: 0;
}
.pub-search-result-main strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
}
.pub-search-result-main small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--text-sub);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pub-search-result-main mark {
    background: rgba(226,242,159,0.18);
    color: var(--accent);
    border-radius: 4px;
    padding: 0 2px;
}
.pub-search-result-type {
    background: var(--accent);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}
.pub-empty-state {
    padding: 34px 24px;
    text-align: center;
    color: var(--text-sub);
}
.pub-empty-state strong {
    display: block;
    color: var(--text-main);
    font-size: 14px;
    margin-bottom: 6px;
}
.pub-empty-state span {
    display: block;
    font-size: 12px;
    line-height: 1.6;
    max-width: 360px;
    margin: 0 auto;
}
.pub-search-wrap { position: relative; max-width: 480px; margin: 0 auto; }
.pub-nav-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); background: transparent; overflow-x: auto; scrollbar-width: none; }
.pub-nav-tabs::-webkit-scrollbar { display: none; }
.pnt { padding: 14px 20px; border: none; background: none; font-size: 12px; font-weight: 600; color: var(--text-sub); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: 0.2s; }
.pnt.active { color: var(--text-main); font-weight: 800; border-bottom-color: var(--text-main); }
.pub-section-wrap { max-width: 1200px; margin: 0 auto; width: 100%; }
.painel-duplo {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
@media (max-width: 900px) {
    .news-grid { grid-template-columns: 1fr; }
    .painel-duplo { grid-template-columns: 1fr; }
    .start-grid { grid-template-columns: 1fr; }
    .trust-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .pub-hero { padding: 48px 18px 34px; }
    .hero-search-wrap { flex-direction: column; }
    .hero-search,
    .btn-pesquisar { width: 100%; }
    .rt-head, .rt-row { grid-template-columns: 32px 1fr 80px 80px; }
    .rt-head span:nth-child(4), .rt-row > *:nth-child(4) { display: none; }
    .pub-nav-btns .btn-ghost { display: none; }
    .section-header { align-items: flex-start; flex-direction: column; gap: 8px; }
    .trust-card { padding: 22px; border-radius: 22px; }
}
@media (max-width: 500px) {
    .cta-plan-cards { grid-template-columns: 1fr; }
}
