/* Extensão da Mussika. A base aprovada continua em app.css. */

html { color-scheme: dark; scrollbar-color: #27303b transparent; }
body { overflow-x: hidden; }
::selection { background: #16bcef; color: #041016; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
button, a, [role="button"], .card, .product, .exp, .music-card { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip { position: absolute; left: 12px; top: 8px; transform: translateY(-140%); background: #fff; color: #111; padding: 8px 12px; z-index: 120; border-radius: 8px; }
.skip:focus { transform: none; }

#descobrir, #musica, #agro-inicio, #experiencias, #cultura, .page-pad section { scroll-margin-top: 92px; }
.top { padding-top: env(safe-area-inset-top); height: calc(76px + env(safe-area-inset-top)); }
.top nav a[aria-current="page"] { color: #fff; }
.actions button, .profile-btn { transition: background .2s var(--ease), transform .2s var(--ease); }
.actions button:active, .primary:active, .ghost:active { transform: translateY(1px); }
.icon-count { position: relative; }
.badge { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--cyan); color: #061016; font-size: 10px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.profile-btn { width: 42px; height: 42px; padding: 0; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.profile-btn svg, .bottom-nav .nav-ico svg { display: block; }
.actions #searchBtn,
.actions #favBtn,
.actions #notifBtn,
.actions #profileBtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.actions #searchBtn svg,
.actions #favBtn svg,
.actions #notifBtn svg,
.actions #profileBtn svg { width: 20px; height: 20px; display: block; flex: none; }
#favCount { font-size: 13px; font-weight: 600; line-height: 1; }
.net { position: relative; display: inline-flex; align-items: center; gap: 6px; color: #8d99a8; font-size: 11px; letter-spacing: .08em; margin-right: 4px; }
.net i { width: 7px; height: 7px; border-radius: 50%; background: #5c6774; display: block; }
.net.is-on i { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.net.is-off i { background: #8d99a8; }
.net:hover::after, .net:focus-visible::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); right: 0; background: #f5f8fb; color: #10141a; font-size: 12px; letter-spacing: 0; padding: 6px 8px; border-radius: 8px; white-space: nowrap; z-index: 5; }

.places button { background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit; padding: 8px 0; }
.places button:hover { color: #fff; }
.link, .back, .banner-back { background: transparent; border: 0; color: #aab5c2; text-decoration: none; cursor: pointer; font: inherit; }
.link:hover, .back:hover, .banner-back:hover { color: #fff; }
.lede { max-width: 540px; color: #c3ccd7; font-size: 16px; line-height: 1.6; margin: 6px 0 0; }
.demo-note { display: block; margin-top: 8px; color: #8d99a8; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.chips button { cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease); }
.chips button:active { transform: scale(.97); }
.chips button:first-child:not(.is-on) { background: #0d1218; color: #bdc6d1; }
.chips button.is-on { background: #fff; color: #080a0d; border-color: #fff; }
.chips { scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

.card, .product, .exp, .music-card, .agro-card { transition: transform .45s var(--ease); }
.card:hover, .product:hover, .exp:hover, .music-card:hover, .agro-card:hover { transform: translateY(-3px); }
.card:active, .product:active, .exp:active, .agro-card:active { transform: translateY(-1px) scale(.995); }
.stretch { position: absolute; inset: 0; z-index: 1; }
.product-info, .exp-copy, .card-copy { pointer-events: none; }
.product-info button, .float-fav, .ghost-fav { pointer-events: auto; }
.agro-body, .pill { position: relative; z-index: 2; }
.product-info, .exp-copy { z-index: 2; }
.float-fav, .product-info button, .ghost-fav, #playerFav { transition: transform .25s var(--ease), background .2s; }
.float-fav.is-pop, .product-info button.is-pop, .ghost-fav.is-pop, #playerFav.is-pop { animation: pop .35s var(--ease); }
.product-info button.is-on, #playerFav.is-on, .float-fav.is-on, .ghost-fav.is-on { background: #fff; color: #111; }
@keyframes pop { 40% { transform: scale(1.28); } }
.music-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ghost-fav { width: 34px; height: 34px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: #121820; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ghost-fav svg { width: 16px; height: 16px; display: block; fill: currentColor; }
.culture { min-height: 0; }
.culture h2 { margin-bottom: 36px; }
.culture-rail { position: relative; }
.culture-links { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-top: 0; padding: 2px 0 6px; }
.culture-links::-webkit-scrollbar { height: 0; }
.culture-links a { flex: 0 0 clamp(176px, 20vw, 236px); scroll-snap-align: start; text-decoration: none; border-bottom: 0; padding: 0; color: #f5f8fb; }
.culture-links a:hover { color: #fff; padding-left: 0; }
.culture-media { display: block; aspect-ratio: 16/10; overflow: hidden; border-radius: 14px; border: 1px solid var(--border); background: #121820; }
.culture-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.culture-card:hover img { transform: scale(1.04); }
.culture-card > span { display: block; margin-top: 8px; font-size: 15px; }
.culture-media.culture-ph { display: grid; place-items: center; color: #d7dee6; }
.culture-ph svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.culture-rail .rail-nav { top: calc(clamp(176px, 20vw, 236px) * 0.3125); margin-top: -22px; }
.culture-rail .rail-prev { left: -18px; }
.culture-rail .rail-next { right: -18px; }
@media (prefers-reduced-motion: reduce) {
  .culture-links { scroll-behavior: auto; }
}
.float-fav { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #090c10cc; color: #fff; }
.exp { position: relative; }

.js .reveal.pre { opacity: 0; transform: translateY(12px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .stagger.pre > * { opacity: 0; }
.js .stagger.in > * { animation: fadein .55s var(--ease) forwards; }
.js .stagger.in > *:nth-child(2) { animation-delay: .05s; }
.js .stagger.in > *:nth-child(3) { animation-delay: .1s; }
.js .stagger.in > *:nth-child(4) { animation-delay: .15s; }
.js .stagger.in > *:nth-child(5) { animation-delay: .2s; }
.js .stagger.in > *:nth-child(n+6) { animation-delay: .25s; }
@keyframes fadein { to { opacity: 1; } }

.pulse-feed { margin-top: 18px; max-width: 420px; }
.pulse-feed p { margin: 0; color: #d5dde6; font-size: 16px; line-height: 1.45; min-height: 46px; }
.pulse-nav { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.pulse-nav button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: #ffffff0a; color: #fff; }
#pulseDots { display: flex; gap: 6px; }
#pulseDots button { width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 0; background: #3c4654; }
#pulseDots button.is-on { background: var(--cyan); }

.culture-photo { width: min(100%, 760px); height: 380px; object-fit: cover; border-radius: 20px; display: block; margin: 18px 0 8px; background: #121820; }

#search.overlay { opacity: 0; transition: opacity .3s var(--ease); }
#search.overlay.open { opacity: 1; }
#results { max-height: calc(100vh - 280px); overflow: auto; }
.suggest { color: #9aa7b7; }
.recent-row, .suggest-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip-link { border: 1px solid var(--border); background: #0d1218; color: #d5dde6; border-radius: 99px; padding: 8px 12px; }
.result-group { margin: 22px 0 8px; }
.result-group h3 { margin: 0 0 6px; font-size: 11px; letter-spacing: .16em; color: #9aa7b7; font-weight: 800; }
.result-row { width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: #fff; }
.result-row:hover { background: #ffffff08; }
.result-row span { color: #9aa7b7; font-size: 13px; }
mark { background: transparent; color: var(--cyan); font-weight: 700; }

.player-cover { border: 0; background: transparent; padding: 0; border-radius: 10px; }
.player-cover img { display: block; }
.player { gap: 12px; }
.player .progress { cursor: pointer; position: relative; }
.player .progress i { width: 0; transition: width .2s linear; }
.time { font-size: 11px; color: var(--muted); min-width: 36px; font-variant-numeric: tabular-nums; }
#volume { width: 72px; height: 3px; appearance: none; background: #27303b; border-radius: 3px; }
#volume::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.vol-only { border: 0; background: transparent; color: #fff; display: inline-flex; }
.player > button { border: 0; background: transparent; color: #fff; }
#playerClose { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--border); background: #ffffff0a; font-size: 20px; line-height: 1; }
.rail-wrap { position: relative; }
.rail-nav { position: absolute; top: 50%; z-index: 4; width: 44px; height: 44px; margin-top: -28px; border-radius: 50%; border: 1px solid #ffffff2e; background: #07090df2; color: #fff; display: grid; place-items: center; font-size: 18px; line-height: 1; box-shadow: 0 8px 24px #000a; }
.rail-nav[hidden] { display: none; }
.rail-prev { left: 12px; }
.rail-next { right: 12px; }
#recentRail { scroll-snap-type: x mandatory; }
#recentRail .card { scroll-snap-align: start; }

.drawer { visibility: visible; }
.drawer .link { display: inline-flex; margin: -12px 0 18px; }
.notif-item { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.notif-item strong, .notif-item span, .notif-item small { display: block; }
.notif-item span, .notif-item small { color: var(--muted); font-size: 13px; margin-top: 4px; }
.notif-item.is-unread strong { color: #fff; }
.notif-item.is-unread { box-shadow: inset 2px 0 0 var(--cyan); padding-left: 10px; }

.modal-veil { position: fixed; inset: 0; z-index: 80; background: #07090de8; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .3s var(--ease); }
.modal-veil.show { opacity: 1; }
.modal { width: min(560px, 100%); max-height: min(88vh, 820px); overflow: auto; background: #0b0f14; border: 1px solid var(--border); border-radius: 22px; padding: 28px 22px 22px; position: relative; transform: translateY(12px); transition: transform .35s var(--ease); }
.modal-veil.show .modal { transform: none; }
.modal.wide-modal { width: min(760px, 100%); }
.modal-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #ffffff0c; color: #fff; font-size: 22px; }
.modal h3 { margin: 6px 0 8px; font-size: 28px; letter-spacing: -.04em; }
.step-label { color: #9aa7b7; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.choices, .checks { display: grid; gap: 8px; margin: 12px 0; }
.choice, .check { text-align: left; border: 1px solid var(--border); background: #0d1218; color: #e8eef5; border-radius: 12px; padding: 12px 14px; }
.choice.is-on, .check.is-on { border-color: #fff; background: #fff; color: #111; }
.field { margin: 12px 0; }
.field label { display: block; font-size: 12px; color: #9aa7b7; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; background: #0d1218; color: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font: inherit; outline: none; color-scheme: dark; }
.field textarea { min-height: 88px; resize: vertical; }
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid { border-color: #c46b6b; }
.field-error { color: #e0a0a0; font-size: 12px; margin: 6px 0 0; }
.field-warn { color: #d9c48a; font-size: 12px; margin: 6px 0 0; }
.modal-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.ghost { background: transparent; color: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.ghost:hover, .chip-link:hover { background: #ffffff0f; }
.ghost.is-on { background: #fff; color: #111; }
.primary.slim, .ghost.slim { margin-top: 0; padding: 10px 14px; gap: 10px; font-size: 13px; }
.primary.wide { width: 100%; }
.ports { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.success { text-align: center; padding: 12px 8px 6px; }
.ok-mark { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.ref { margin: 12px auto; display: inline-flex; border: 1px solid var(--border); background: transparent; color: #fff; border-radius: 12px; padding: 10px 14px; letter-spacing: .06em; }
.sk { height: 14px; border-radius: 8px; margin: 10px 0; background: linear-gradient(90deg, #121820 25%, #1c2632 37%, #121820 63%); background-size: 400% 100%; animation: shimmer 1.1s infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.agro-banner, .detail-banner { position: relative; display: flex; align-items: flex-end; overflow: hidden; padding: 12vh 6vw 7vh; }
.agro-banner { min-height: 520px; height: 68vh; }
.detail-banner { min-height: 440px; height: 54vh; }
.agro-banner-art, .detail-art { position: absolute; inset: -8% 0; background-position: center; background-size: cover; }
.agro-banner-art { background-image: radial-gradient(circle at 75% 35%, #12bce744, transparent 28%), linear-gradient(115deg, #071019 8%, transparent 52%), url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?auto=format&fit=crop&w=2000&q=80'); }
.banner-back { position: absolute; z-index: 3; top: calc(92px + env(safe-area-inset-top)); left: 6vw; color: #d5dde6; text-decoration: none; }
.agro-banner h1, .detail-banner h1 { font-size: clamp(40px, 6vw, 84px); line-height: .9; letter-spacing: -.06em; margin: 12px 0 14px; }
.hero, .agro-banner, .detail-banner { overflow: hidden; }
.hero-art, .agro-banner-art, .detail-art { top: -8%; bottom: -8%; }
.agro-banner .hero-copy, .detail-banner .hero-copy { position: relative; z-index: 2; }
.page-pad { padding: 108px 6vw 80px; }
.brand img { width: 42px; height: auto; border-radius: 0; object-fit: contain; flex-shrink: 0; background: transparent; }
.fav-page .chips button { display: inline-flex; align-items: center; gap: 7px; }
.fav-page .chips button svg, .fav-remove svg, .fav-ph svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fav-list { display: grid; gap: 12px; }
.fav-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; border: 1px solid var(--border); background: #0c1218; border-radius: 16px; }
.fav-main { display: flex; flex-direction: column; justify-content: center; gap: 2px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.fav-main b { font-size: 15px; line-height: 1.3; }
.fav-main span { color: #9aa7b7; font-size: 13px; }
.fav-thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: #121820; }
.fav-ph { display: grid; place-items: center; color: #d7dee6; }
.fav-remove { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.fav-remove.is-on { background: transparent; color: #fff; }
@media (max-width: 900px) {
  .brand img { width: 36px; }
}
@media (max-width: 400px) {
  .brand img { width: 34px; }
  .fav-thumb { width: 48px; height: 48px; }
  .fav-remove span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
}
#subscricao { scroll-margin-top: 96px; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 8px 0 18px; }
.toolbar select, .sort { background: #0d1218; color: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; font: inherit; }
.origin-chip { border: 1px solid var(--border); background: #101820; color: #fff; border-radius: 99px; padding: 8px 12px; }
.market { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 12px; overflow: auto; scrollbar-width: none; padding-bottom: 6px; }
.market-card { display: flex; flex-direction: column; background: #0c1218; border: 1px solid var(--border); border-radius: 16px; padding: 16px 16px 14px; min-height: 168px; color: inherit; text-decoration: none; }
.market-card h3 { margin: 12px 0 14px; font-size: 20px; letter-spacing: -.03em; line-height: 1.15; }
.market-rows { margin: auto 0 0; display: grid; gap: 8px; }
.market-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.market-rows dt { margin: 0; color: #8d99a8; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.market-rows dd { margin: 0; color: #f5f8fb; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.trend-up { color: #8dcea8; }
.trend-down { color: #e0a0a0; }
.agro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.agro-card { background: #0c1218; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.agro-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #121820; flex: none; }
.agro-media img, .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.agro-media img { position: absolute; inset: 0; }
.agro-card:hover .agro-media img { transform: scale(1.045); }
.pill { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: #090c10d0; border: 1px solid var(--border); border-radius: 99px; padding: 5px 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.agro-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.agro-body h3 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.meta, .seller, .qty { margin: 0; color: #9aa7b7; font-size: 13px; }
.qty { color: #d5dde6; }
.price-line { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.price-line span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #9aa7b7; }
.price-line strong { font-size: 18px; }
.seller em { font-style: normal; color: #c9d0da; }
.agro-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.fact-card .agro-actions { align-items: center; flex-wrap: wrap; }
.fact-card .agro-actions .primary,
.fact-card .agro-actions .ghost { display: inline-flex; align-items: center; justify-content: center; margin-top: 0; min-height: 46px; padding: 0 16px; gap: 8px; font-size: 14px; line-height: 1; font-weight: 600; }
.fact-card .agro-actions svg { width: 16px; height: 16px; flex: none; }
.fact-card .agro-actions svg,
.fact-card .agro-actions svg * { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fact-card .agro-actions [data-fav].is-on svg path { fill: currentColor; }
.action-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px; }
.action-bar-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.action-bar .primary { margin-top: 0; }
.action-bar .primary, .action-bar .ghost { min-height: 46px; padding: 12px 16px; }
.action-bar .next-link { margin-left: 14px; }
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.producer-card { display: grid; gap: 10px; padding: 12px; border-radius: 18px; border: 1px solid var(--border); background: #0c1218; color: inherit; text-decoration: none; }
.producer-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; background: #121820; }
.producer-card h3 { margin: 0; font-size: 16px; }
.producer-card p { margin: 0; color: #9aa7b7; font-size: 13px; }
.badge-demo { display: inline-flex; margin-top: 6px; border: 1px solid var(--border); border-radius: 99px; padding: 3px 8px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #c9d0da; }

.map-layout, .split, .neg-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: start; }
.map-frame { position: relative; background: radial-gradient(circle at 70% 40%, #16bcef14, transparent 36%), #0b1016; border: 1px solid var(--border); border-radius: 22px; min-height: 460px; overflow: hidden; }
.map-stage { position: relative; height: 520px; width: 238px; margin: 0 auto; }
.map-frame svg { width: 100%; height: 100%; display: block; }
.map-frame .water { position: absolute; right: 16px; top: 16px; color: #6f7c8c; font-size: 11px; letter-spacing: .16em; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 14px; height: 14px; border-radius: 50%; border: 0; background: #d5dde6; padding: 0; }
.pin span { position: absolute; left: 18px; top: -6px; white-space: nowrap; font-size: 11px; color: #d5dde6; opacity: 0; pointer-events: none; }
.pin:hover span, .pin:focus-visible span, .pin.is-on span { opacity: 1; }
.pin.is-on { background: var(--cyan); box-shadow: 0 0 0 6px #16bcef33; }
.province-panel, .chain-panel, .side-card, .fact-card { background: #0c1218; border: 1px solid var(--border); border-radius: 20px; padding: 18px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.mini-stats strong { display: block; font-size: 28px; letter-spacing: -.04em; }
.mini-stats span { color: #9aa7b7; font-size: 12px; }
.chain { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.chain button { display: flex; align-items: center; justify-content: center; gap: 6px; background: #0c1218; border: 1px solid var(--border); color: #d5dde6; border-radius: 14px; padding: 12px 8px; min-height: 52px; font-size: 14px; line-height: 1.15; white-space: nowrap; }
.chain button span { min-width: 0; }
.chain button svg { width: 16px; height: 16px; flex: none; }
.chain button svg, .chain button svg * { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chain button.is-on { background: #fff; color: #111; }
.chain-panel { margin-top: 12px; }
.chain-panel h3, .chain-panel p { margin: 0; }
.chain-panel h3 { margin-bottom: 6px; font-size: 18px; }
.chain-panel p { color: var(--muted); line-height: 1.5; }
.logi-teaser { margin-top: 20px; }
.logi-list, .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 12px 0; }
.logi-list div, .facts div { border-top: 1px solid var(--border); padding-top: 8px; }
.logi-list span, .facts dt { display: block; color: #9aa7b7; font-size: 12px; }
.logi-list strong, .facts dd { margin: 4px 0 0; font-size: 16px; }
.export-box { margin-top: 28px; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.terms { display: flex; gap: 8px; margin: 12px 0; }
.tip-pop { position: fixed; z-index: 90; max-width: 280px; background: #f5f8fb; color: #15191e; border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.45; box-shadow: 0 12px 40px #0008; }

.neg-list { display: grid; gap: 8px; }
.neg-item, .plain-link { display: block; text-decoration: none; color: inherit; border: 1px solid var(--border); background: #0c1218; border-radius: 16px; padding: 12px 14px; }
.neg-item b, .neg-item span, .neg-item small { display: block; }
.neg-item span, .neg-item small { color: #9aa7b7; font-size: 13px; margin-top: 4px; }
.neg-item.is-on { border-color: #fff; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; color: #8d99a8; }
.timeline li i { position: absolute; left: 0; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: #3c4654; }
.timeline li.done { color: #d5dde6; }
.timeline li.done i, .timeline li.current i { background: var(--cyan); }
.timeline li.current { color: #fff; }
.chat-log { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow: auto; padding: 8px 0; }
.bubble { max-width: 82%; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.bubble.me { margin-left: auto; background: #f5f8fb; color: #15191e; }
.bubble.them { background: #121820; border: 1px solid var(--border); }
.bubble small, .sys { color: #8d99a8; font-size: 12px; }
.sys { text-align: center; margin: 6px 0; }
.composer { display: flex; gap: 8px; margin-top: 8px; }
.composer input { flex: 1; background: #0d1218; color: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; font: inherit; }
.prompts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.prompts button { border: 1px solid var(--border); background: transparent; color: #d5dde6; border-radius: 99px; padding: 8px 10px; font-size: 12px; }

.empty { padding: 28px 8px; color: #9aa7b7; }
.empty strong { display: block; color: #fff; font-size: 20px; margin-bottom: 6px; }
.crumbs { display: flex; gap: 8px; color: #9aa7b7; font-size: 13px; margin-bottom: 12px; }
.crumbs a { color: #c9d0da; text-decoration: none; }
.person { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; }
.person img { width: 120px; height: 120px; object-fit: cover; border-radius: 16px; background: #121820; }
.role { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--border); gap: 4px; }
.role button { border: 0; background: transparent; color: #c9d0da; border-radius: 999px; padding: 8px 14px; }
.role button.is-on { background: #fff; color: #111; }
.switch { width: 38px; height: 22px; border-radius: 99px; border: 1px solid var(--border); background: #0d1218; position: relative; }
.switch i { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #c9d0da; top: 2px; left: 2px; transition: left .2s var(--ease); }
.switch[aria-checked="true"] { background: #fff; }
.switch[aria-checked="true"] i { left: 18px; background: #111; }
.pref { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.dash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dash div { background: #0c1218; border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.dash strong { display: block; font-size: 28px; }
.dash span { color: #9aa7b7; font-size: 12px; }
.now { display: grid; grid-template-columns: 180px 1fr; gap: 16px; }
.now img { width: 180px; height: 180px; object-fit: cover; border-radius: 16px; }
.queue button { width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--border); color: #d5dde6; padding: 10px 0; }
.queue button.is-on { color: #fff; }

.site-foot { padding: 28px 6vw 48px; border-top: 1px solid var(--border); display: grid; gap: 12px; color: #9aa7b7; }
.site-foot strong { letter-spacing: .14em; color: #fff; }
.site-foot p { margin: 6px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.foot-links a { color: #c9d0da; text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: #fff; }
.site-foot--mini { padding: 28px 0 10px; border: 0; }
.bottom-nav { display: none; }
img.is-broken { opacity: 0; }
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-grid .product,
.product-grid .product:nth-child(1) { grid-column: auto; grid-row: auto; min-height: 480px; height: 480px; }
.toast:not(.show) { opacity: 0; visibility: hidden; }
.toast.show { opacity: 1; visibility: visible; }
.toast { max-width: min(320px, calc(100vw - 32px)); overflow-wrap: anywhere; }

@media (max-width: 1200px) {
  .top { gap: 2vw; }
  .top nav { gap: 16px; }
  .agro-grid, .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .chain { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .map-layout, .split, .neg-layout, .now { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .actions { margin-left: auto; }
  .actions #searchBtn { display: inline-flex; }
  .actions #favBtn, .actions #profileBtn { display: none; }
  .hero { height: 72vh; min-height: 520px; max-height: 620px; }
  .net-label { display: none; }
  .bottom-nav { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; display: flex; height: calc(68px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #07090df2; border-top: 1px solid var(--border); backdrop-filter: blur(16px); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; color: #c5ced8; text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
  .bottom-nav .nav-ico { width: 40px; height: 28px; display: grid; place-items: center; border-radius: 10px; color: #d7dee6; }
  .bottom-nav .nav-ico svg { width: 22px; height: 22px; display: block; }
  .bottom-nav .nav-ico svg, .bottom-nav .nav-ico svg * { fill: currentColor; stroke: none; }
  .bottom-nav a[aria-current="page"] { color: #fff; }
  .bottom-nav a[aria-current="page"] .nav-ico { background: #ffffff18; color: #fff; }
  .player { bottom: calc(80px + env(safe-area-inset-bottom)); left: 10px; right: 10px; height: 72px; padding-top: 16px; }
  .track { width: auto; min-width: 0; }
  .player .progress { display: block; position: absolute; left: 14px; right: 14px; top: 7px; }
  .player .time, .player .vol-only { display: none; }
  html { scroll-padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
  main { padding-bottom: calc(148px + env(safe-area-inset-bottom)); }
  .page-pad, .site-foot { padding-left: 20px; padding-right: 20px; }
  .agro-grid, .prod-grid, .check-grid, .facts, .logi-list { grid-template-columns: 1fr; }
  .agro-banner, .detail-banner { padding: 108px 20px 32px; height: auto; min-height: 420px; }
  .banner-back { left: 20px; top: 96px; }
  .agro-banner h1, .detail-banner h1 { font-size: 42px; }
  .person { grid-template-columns: 88px 1fr; }
  .person img { width: 88px; height: 88px; }
  .market { grid-auto-columns: 78vw; }
  .chain { grid-template-columns: 1fr 1fr; }
  .map-stage { height: 420px; width: 192px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-grid .product,
  .product-grid .product:nth-child(1) { grid-column: auto; grid-row: auto; min-height: 340px; height: 340px; }
}
@media (max-width: 420px) {
  .page-pad .agro-actions { flex-direction: column; align-items: stretch; }
  .page-pad .agro-actions > * { justify-content: center; text-align: center; }
}
@media (max-width: 700px) {
  .action-bar, .action-bar-main { flex-direction: column; align-items: stretch; }
  .action-bar .next-link { margin-left: 0; }
}
@media (max-width: 700px) {
  .modal-veil { align-items: flex-end; padding: 0; }
  .modal { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .overlay h2 { font-size: 36px; }
  .composer { flex-direction: column; }
}
@media (max-width: 400px) {
  #queueBtn { display: none; }
  .hero h1 { font-size: 52px; }
  .culture h2 { font-size: 46px; }
  .agro-banner h1, .detail-banner h1 { font-size: 36px; }
  .bottom-nav a { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
html[data-reduce="1"] *, html[data-reduce="1"] *::before, html[data-reduce="1"] *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important;
}

.profile-page h2 { margin: 8px 0 6px; }
.profile-page .heading h2 { font-size: clamp(28px, 3vw, 42px); }
#planos { scroll-margin-top: 108px; }
.profile-hero { display: flex; gap: 18px; align-items: center; margin-top: 10px; }
.profile-role { margin-top: 28px; }
.profile-page button:not(.switch) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.profile-page button svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.prefs-card .pref span { display: inline-flex; align-items: center; gap: 8px; }
.prefs-card .pref span svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.prefs-card { margin-top: 14px; }
.profile-avatar, .sub-mark, .profile-ico { display: grid; place-items: center; flex: none; color: #fff; }
.profile-avatar { width: 84px; height: 84px; border-radius: 50%; background: #121820; border: 1px solid var(--border); }
.profile-avatar svg { width: 36px; height: 36px; }
.sub-hero { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 20px; border-radius: 22px; border: 1px solid #16bcef55; background: radial-gradient(420px 180px at 100% 0%, #16bcef24, transparent 62%), #0c1218; }
.sub-mark { width: 52px; height: 52px; border-radius: 16px; background: #071018; border: 1px solid #16bcef44; }
.sub-mark svg { width: 22px; height: 22px; }
.sub-copy { flex: 1; min-width: 0; }
.sub-copy h3, .plan-card h3, .profile-card h3 { margin: 4px 0 6px; letter-spacing: -.03em; }
.sub-copy h3 { font-size: 28px; }
.sub-copy p { margin: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.plan-grid-modal { grid-template-columns: 1fr 1fr; }
.modal.wide-modal:has(.plan-grid) { width: min(920px, 100%); }
.plan-card { display: flex; flex-direction: column; gap: 8px; min-height: 320px; padding: 16px; border-radius: 18px; border: 1px solid var(--border); background: #0c1218; }
.plan-card.is-on { border-color: #fff; background: #10161e; }
.plan-card h3 { font-size: 22px; }
.plan-card .price { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.04em; }
.plan-card .price small { font-size: 13px; font-weight: 500; color: #9aa7b7; }
.plan-card p { margin: 0; color: #c9d0da; font-size: 14px; line-height: 1.4; }
.plan-card ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.plan-card li { display: flex; gap: 8px; align-items: flex-start; color: #d5dde6; font-size: 13px; line-height: 1.35; }
.plan-card li svg { width: 14px; height: 14px; margin-top: 2px; flex: none; }
.plan-card .primary, .plan-card .ghost { width: 100%; margin-top: auto; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.profile-card { background: #0c1218; border: 1px solid var(--border); border-radius: 20px; padding: 16px; }
.profile-card-wide, .prefs-card { grid-column: 1 / -1; }
.profile-card h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.profile-card h3 svg { width: 16px; height: 16px; }
.profile-rows { display: grid; gap: 8px; }
.profile-row { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; padding: 10px; border-radius: 14px; background: #090d12; border: 1px solid transparent; }
.profile-row:hover { border-color: var(--border); }
.profile-ico { width: 34px; height: 34px; border-radius: 10px; background: #121820; }
.profile-ico svg { width: 16px; height: 16px; }
.profile-row b, .profile-row small { display: block; }
.profile-row small { color: #9aa7b7; font-size: 12px; margin-top: 2px; }
.prefs-card .ghost { margin-top: 16px; }
.profile-avatar svg, .sub-mark svg, .profile-card svg, .profile-ico svg, .plan-card svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cover { position: relative; }
.lock-pill { position: absolute; z-index: 2; top: 10px; left: 10px; border-radius: 99px; padding: 4px 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: #090c10e6; border: 1px solid var(--border); }
#musicAccess { display: block; margin: 0 0 14px; }
@media (max-width: 1100px) {
  .plan-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .profile-hero, .sub-hero { align-items: flex-start; }
  .sub-hero { flex-direction: column; }
  .profile-grid, .plan-grid, .plan-grid-modal { grid-template-columns: 1fr; }
  .plan-card { min-height: 0; }
}

.install-sheet {
  position: fixed;
  z-index: 38;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(440px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px 12px;
  align-items: center;
  padding: 14px 44px 14px 14px;
  background: #0c1218f5;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  box-shadow: 0 18px 50px #000c;
  backdrop-filter: blur(18px);
}
.install-sheet[hidden] { display: none; }
.install-sheet img { width: 52px; height: 52px; border-radius: 14px; grid-row: 1 / span 2; object-fit: cover; }
.install-copy strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.install-copy p { margin: 4px 0 0; color: #c5ced8; font-size: 13px; line-height: 1.45; }
.install-copy svg { width: 15px; height: 15px; display: inline-block; vertical-align: -2px; }
.install-actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 4px; }
.install-actions button { border-radius: 12px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
#installGo { background: #fff; color: #07090d; border: 0; }
#installGo[hidden] { display: none; }
#installLater { background: transparent; color: #fff; border: 1px solid var(--border); }
.install-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #ffffff12; color: #fff; font-size: 18px; line-height: 1; }
body:has(#player:not(.hidden)) .install-sheet { bottom: 108px; }
@media (max-width: 900px) {
  .install-sheet { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body:has(#player:not(.hidden)) .install-sheet { bottom: calc(168px + env(safe-area-inset-bottom)); }
}
