/* ==========================================================================
   RONY GTAG HUB — STYLESHEET COMPARTILHADO
   Carregado uma única vez e cacheado pelo navegador em todas as páginas.
   ========================================================================== */

@font-face {
    font-family: "GOGGA";
    src: url("../../fonts/GOGGA_THORAX.OTF") format("opentype");
    font-display: swap;
}
@font-face {
    font-family: "COFFEE";
    src: url("../../fonts/coffee.otf") format("opentype");
    font-display: swap;
}

:root {
    --brown-dark: rgba(70,45,30,0.95);
    --brown: rgba(160,95,60,1);
    --brown-glow: rgba(200,130,80,0.6);
    --card-bg: rgba(40,26,18,0.9);
    --card-bg-solid: rgb(30,19,13);
    --text-highlight: #e8d9a8;
    --text-dim: rgba(232,217,168,0.6);
    --accent: #c87c3e;
    --accent-bright: #f0a060;
    --border: rgba(160,95,60,0.35);
    --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: COFFEE, sans-serif;
    text-transform: uppercase;
    background: url("../background.png") center / cover no-repeat fixed;
    color: #f5f5f5;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* ── SCROLLBAR — fina e no tema, no lugar da barra padrão do navegador ── */
html { scrollbar-width: thin; scrollbar-color: var(--accent) rgba(15,8,4,0.4); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(15,8,4,0.4); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-bright); }

/* ── NOISE + VIGNETTE (custados de GPU: desligados no Lite Mode) ── */
body::before {
    content: "";
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 0;
}
body::after {
    content: "";
    position: fixed; inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(10,5,2,0.78) 100%);
    pointer-events: none; z-index: 0;
}

/* ── LITE MODE — aplicado automaticamente em dispositivos fracos ── */
body.lite-mode::before { display: none; }
body.lite-mode {
    background-attachment: scroll; /* fixed custa caro pra repintar no mobile/fraco */
}
body.lite-mode .panel,
body.lite-mode .audio-card,
body.lite-mode .asset-item,
body.lite-mode .credit-card,
body.lite-mode .changelog,
body.lite-mode .gtag-pill,
body.lite-mode nav.main-nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--card-bg-solid) !important;
}
body.lite-mode * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.08s !important;
    box-shadow: none !important;
}
body.lite-mode .panel::before,
body.lite-mode .changelog::before { display: none; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ── HEADER ── */
header {
    position: relative; z-index: 10;
    text-align: center;
    padding: 40px 20px 26px;
    animation: fadeDown 0.6s ease both;
}

.logo-wrap { display: inline-block; position: relative; }
.logo-wrap::before {
    content: attr(data-text);
    font-family: GOGGA;
    font-size: 54px;
    color: rgba(160,95,60,0.18);
    position: absolute; top: 4px; left: 4px;
    pointer-events: none; letter-spacing: 2px; white-space: nowrap;
}

h1 {
    font-family: GOGGA;
    font-size: 54px;
    color: var(--text-highlight);
    letter-spacing: 3px; line-height: 1;
    position: relative;
    text-shadow: 0 0 40px rgba(200,140,70,0.5), 0 2px 0 rgba(0,0,0,0.6);
}

.hub-quote {
    margin-top: 12px;
    font-size: 13px; letter-spacing: 3px;
    color: var(--text-dim); text-transform: none;
    animation: fadeDown 0.6s 0.1s ease both;
}

.divider {
    display: flex; align-items: center; justify-content: center;
    gap: 14px; margin: 22px auto 0; max-width: 480px;
    animation: fadeDown 0.6s 0.15s ease both;
}
.divider::before, .divider::after {
    content: ""; flex: 1; height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.divider-icon {
    width: 8px; height: 8px;
    border: 1.5px solid var(--accent);
    transform: rotate(45deg);
    background: var(--accent-bright);
    box-shadow: 0 0 8px var(--brown-glow);
}

/* ── NAV (desktop: pílulas no topo | mobile: barra inferior fixa) ── */
nav.main-nav {
    display: flex; justify-content: center;
    gap: 10px; margin-top: 26px; flex-wrap: wrap;
    animation: fadeDown 0.6s 0.2s ease both;
}
nav.main-nav a {
    font-family: GOGGA; font-size: 13px; letter-spacing: 1.5px;
    padding: 10px 22px; border-radius: 6px;
    text-decoration: none; color: var(--text-highlight);
    background: var(--brown-dark); border: 1px solid var(--border);
    position: relative; overflow: hidden;
    transition: color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
nav.main-nav a::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(200,130,80,0.15) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.2s;
}
nav.main-nav a:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,0,0,0.45), 0 0 14px rgba(200,130,70,0.2); }
nav.main-nav a:hover::before { opacity: 1; }
nav.main-nav a.active {
    background: linear-gradient(135deg, rgba(160,95,60,0.9), rgba(100,60,35,0.9));
    border-color: var(--accent-bright);
    box-shadow: 0 0 16px rgba(200,130,70,0.3);
}
.nav-icon { display: none; }
.nav-label-short { display: none; }

/* ── MAIN / PANEL (comum a todas as páginas) ── */
main {
    position: relative; z-index: 10;
    display: flex; flex-direction: column; align-items: center;
    margin: 40px auto 60px; padding: 0 20px;
    gap: 28px;
}

.panel {
    width: 100%; max-width: 900px;
    background: rgba(15,8,4,0.55);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border); border-radius: 20px;
    padding: 40px 36px;
    animation: fadeUp 0.6s 0.3s ease both;
    position: relative; overflow: hidden;
}
.panel::before {
    content: ""; position: absolute; top: -60px; left: 50%;
    transform: translateX(-50%); width: 340px; height: 120px;
    background: radial-gradient(ellipse, rgba(160,95,60,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.panel.wide { max-width: 1200px; }
.panel.narrow { max-width: 780px; }

.page-title {
    font-family: GOGGA; font-size: 44px; letter-spacing: 3px;
    text-align: center; color: var(--text-highlight);
    text-shadow: 0 0 50px rgba(200,140,80,0.35);
    margin-bottom: 28px;
}

/* ── SEARCH ── */
.search-wrap { position: relative; margin-bottom: 28px; }
.search-wrap input {
    width: 100%;
    padding: 13px 20px 13px 46px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-highlight);
    font-family: COFFEE, sans-serif;
    font-size: 13px; letter-spacing: 1.5px;
    text-transform: uppercase; outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-wrap input::placeholder { color: var(--text-dim); }
.search-wrap input:focus { border-color: var(--accent); box-shadow: 0 0 14px rgba(200,130,70,0.2); }
.search-icon {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%); font-size: 16px; opacity: 0.6; pointer-events: none;
}

.count-bar {
    margin-bottom: 20px;
    font-size: 11px; letter-spacing: 2px;
    color: var(--text-dim); text-align: center;
}
.count-bar span { color: var(--accent-bright); }

/* ── FOOTER ── */
footer {
    position: relative; z-index: 10;
    text-align: center; padding: 24px 20px 36px;
    font-size: 11px; letter-spacing: 2px;
    color: var(--text-dim); opacity: 0.7;
}
footer span { color: var(--accent); }

/* ── ANIMATIONS ── */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes wave {
    from { transform: scaleY(0.4); }
    to   { transform: scaleY(1); }
}

/* ==========================================================================
   AUDIOS PAGE
   ========================================================================== */
.audio-list { display: flex; flex-direction: column; gap: 14px; }

.audio-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    animation: fadeUp 0.35s ease both;
    position: relative; overflow: hidden;
    /* pula layout/paint de cards fora da tela: grande ganho de performance
       em listas longas, sem precisar de virtualização em JS */
    content-visibility: auto;
    contain-intrinsic-size: 120px;
}
.audio-card::before {
    content: "";
    position: absolute; top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(to bottom, var(--accent-bright), transparent);
    border-radius: 3px 0 0 3px;
    opacity: 0; transition: opacity 0.2s;
}
.audio-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 16px rgba(200,130,70,0.12); }
.audio-card:hover::before { opacity: 1; }
.audio-card.playing { border-color: var(--accent-bright); box-shadow: 0 0 24px rgba(200,130,70,0.3); }
.audio-card.playing::before { opacity: 1; }
.audio-card.errored { opacity: 0.45; }

.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.card-heading { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.audio-card h3 { font-family: GOGGA; font-size: 16px; letter-spacing: 1.5px; color: var(--text-highlight); }
.card-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── TAGS (music / sfx) ── */
.tag-badge {
    font-family: GOGGA; font-size: 9px; letter-spacing: 1.5px;
    padding: 3px 9px; border-radius: 20px;
    border: 1px solid var(--border);
    color: var(--text-highlight);
    flex-shrink: 0;
}
.tag-badge.tag-music { background: rgba(200,130,80,0.22); border-color: var(--accent); }
.tag-badge.tag-sfx { background: rgba(90,140,160,0.22); border-color: #5a8ca0; }

/* ── FILE SIZE ── */
.file-size {
    font-size: 10px; letter-spacing: 1px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.download-btn {
    font-family: GOGGA; font-size: 11px; letter-spacing: 1px;
    padding: 6px 14px; border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(70,45,30,0.7);
    color: var(--text-highlight);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.download-btn:hover { background: rgba(160,95,60,0.6); border-color: var(--accent); box-shadow: 0 0 10px rgba(200,130,70,0.2); }

.custom-player { display: flex; align-items: center; gap: 12px; }
.play-btn {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--brown-dark); color: var(--text-highlight);
    font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.play-btn:hover { background: var(--accent); color: #fff; transform: scale(1.08); box-shadow: 0 0 14px rgba(200,130,70,0.4); }
.play-btn.is-playing { background: var(--accent); color: #fff; box-shadow: 0 0 18px rgba(200,130,70,0.5); }
.play-btn.is-loading { opacity: 0.6; cursor: wait; }

.track-wrap { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.barra { height: 6px; background: rgba(255,255,255,0.08); border-radius: 10px; cursor: pointer; overflow: hidden; position: relative; }
.progresso { height: 100%; width: 0%; background: linear-gradient(to right, var(--accent), var(--accent-bright)); border-radius: 10px; transition: width 0.1s linear; position: relative; z-index: 1; }

.waveform { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.wave-bar { width: 3px; border-radius: 2px; background: var(--accent); animation: wave 0.8s ease-in-out infinite alternate; opacity: 0.5; }
.wave-bar:nth-child(1) { height: 5px;  animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 10px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 14px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 8px;  animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 12px; animation-delay: 0.15s; }
.wave-bar:nth-child(6) { height: 6px;  animation-delay: 0.25s; }
.waveform.active .wave-bar { opacity: 1; }

.time-row { display: flex; justify-content: space-between; }
.time { font-family: GOGGA; font-size: 11px; color: var(--text-dim); letter-spacing: 1px; }

/* ==========================================================================
   ASSETS PAGE
   ========================================================================== */
.asset-tabs { display: flex; justify-content: center; gap: 12px; margin-top: 26px; margin-bottom: 20px; }
.asset-tabs button {
    font-family: GOGGA; font-size: 13px; letter-spacing: 1.5px;
    padding: 10px 22px; border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--brown-dark); color: var(--text-dim);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.asset-tabs button.active {
    color: var(--text-highlight);
    background: linear-gradient(135deg, rgba(160,95,60,0.9), rgba(100,60,35,0.9));
    border-color: var(--accent-bright);
}

.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.asset-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    animation: fadeUp 0.35s ease both;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    content-visibility: auto;
    contain-intrinsic-size: 260px;
}
.asset-item:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 32px rgba(0,0,0,0.5); }

.media-wrap {
    position: relative;
    width: 100%; aspect-ratio: 16 / 10;
    background: rgba(0,0,0,0.35);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.media-wrap img, .media-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-placeholder {
    font-size: 12px; letter-spacing: 1.5px; color: var(--text-dim);
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
}
.media-load-btn {
    font-family: GOGGA; font-size: 11px; letter-spacing: 1px;
    padding: 8px 16px; border-radius: 20px;
    border: 1px solid var(--accent); background: rgba(0,0,0,0.4);
    color: var(--text-highlight); cursor: pointer;
}

/* ── CUSTOM VIDEO PLAYER ── */
.video-player-wrap {
    position: relative;
    width: 100%; aspect-ratio: 16 / 10;
    background: #000;
    overflow: hidden;
}
.video-player-wrap video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }

.video-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: opacity 0.2s ease;
    opacity: 1;
}
.video-overlay.hidden { opacity: 0; pointer-events: none; }

.video-play-btn {
    width: 56px; height: 56px; border-radius: 50%;
    border: 2px solid var(--accent);
    background: rgba(20,12,8,0.75); color: var(--text-highlight);
    font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.video-play-btn:hover { background: var(--accent); color: #fff; transform: scale(1.08); box-shadow: 0 0 14px rgba(200,130,70,0.4); }

.video-controls { display: flex; align-items: center; gap: 10px; padding: 12px 14px 0; }
.video-controls .play-btn { width: 34px; height: 34px; font-size: 12px; }

.video-btn {
    font-family: GOGGA; font-size: 10px; letter-spacing: 1px;
    padding: 6px 10px; border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(70,45,30,0.7);
    color: var(--text-highlight);
    cursor: pointer; flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.video-btn:hover { background: rgba(160,95,60,0.6); border-color: var(--accent); box-shadow: 0 0 10px rgba(200,130,70,0.2); }

.type-badge {
    position: absolute; top: 8px; right: 8px;
    font-size: 10px; letter-spacing: 1px;
    padding: 3px 9px; border-radius: 20px;
    background: rgba(0,0,0,0.55);
    border: 1px solid var(--border);
    color: var(--text-highlight);
    pointer-events: none;
}

.size-badge {
    position: absolute; top: 8px; left: 8px;
    font-size: 10px; letter-spacing: 1px;
    padding: 3px 9px; border-radius: 20px;
    background: rgba(0,0,0,0.55);
    border: 1px solid var(--border);
    color: var(--text-dim);
    pointer-events: none;
}

.asset-name {
    padding: 12px 14px 0;
    font-size: 12px; letter-spacing: 1px;
    color: var(--text-highlight);
    word-break: break-word;
    text-align: center;
}

.download-btn.block {
    display: block;
    margin: 10px 14px 14px;
    width: calc(100% - 28px);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(160,95,60,0.4);
    background: linear-gradient(135deg, rgba(70,45,30,0.95), rgba(120,75,45,0.9));
    color: var(--text-highlight);
    font-family: GOGGA; font-size: 13px; letter-spacing: 1.5px;
    cursor: pointer; text-align: center; text-decoration: none;
    transition: transform 0.15s, box-shadow 0.2s;
}
.download-btn.block:hover { transform: scale(1.02); box-shadow: 0 8px 22px rgba(0,0,0,0.5); }

.empty-state {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-dim);
    font-size: 14px; letter-spacing: 2px;
}

/* ==========================================================================
   COLOR CONVERTER PAGE
   ========================================================================== */
.preview-wrap { position: relative; width: 100%; max-width: 500px; margin: 0 auto 28px; }
.color-preview {
    width: 100%; height: 130px; border-radius: 16px;
    border: 2px solid rgba(255,255,255,0.12);
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    position: relative; overflow: hidden;
}
.color-preview::after {
    content: "";
    position: absolute; inset: 0;
    background-image: linear-gradient(45deg, rgba(255,255,255,0.04) 25%, transparent 25%),
                      linear-gradient(-45deg, rgba(255,255,255,0.04) 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.04) 75%),
                      linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.04) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    pointer-events: none;
}

.output-pills { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.pill {
    display: flex; align-items: center; gap: 10px;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 10px; padding: 10px 18px;
    transition: border-color 0.2s;
}
.pill-label { font-size: 11px; letter-spacing: 2px; color: var(--text-dim); }
.pill-value { font-family: GOGGA; font-size: 15px; letter-spacing: 1px; color: var(--text-highlight); }
.copy-btn {
    background: none; border: none; font-size: 14px; cursor: pointer; opacity: 0.6;
    transition: opacity 0.2s, transform 0.15s; color: var(--text-highlight); padding: 2px 4px;
}
.copy-btn:hover { opacity: 1; transform: scale(1.15); }
.copy-btn.copied { color: var(--accent-bright); opacity: 1; }

.gtag-pill {
    width: 100%; max-width: 500px; margin: 0 auto 30px;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px 20px;
    display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.gtag-label { font-size: 11px; letter-spacing: 2px; color: var(--text-dim); }
.gtag-value { font-family: GOGGA; font-size: 16px; letter-spacing: 1px; color: var(--accent-bright); }

.sliders { max-width: 500px; margin: 0 auto 30px; display: flex; flex-direction: column; gap: 18px; }
.slider-row { display: flex; align-items: center; gap: 14px; }
.slider-label {
    font-family: GOGGA; font-size: 16px; width: 22px; text-align: center; flex-shrink: 0;
}
.slider-label.r { color: #e07a5f; }
.slider-label.g { color: #81c784; }
.slider-label.b { color: #64b5f6; }
.slider-row input[type="range"] {
    flex: 1;
    -webkit-appearance: none; appearance: none;
    height: 8px; border-radius: 10px;
    background: rgba(255,255,255,0.1);
    outline: none;
    min-height: 24px; /* alvo de toque maior no mobile */
}
.slider-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--accent-bright);
    border: 2px solid var(--brown-dark);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(200,130,70,0.5);
}
.slider-row input[type="range"]::-moz-range-thumb {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--accent-bright);
    border: 2px solid var(--brown-dark);
    cursor: pointer;
}
.slider-val { font-family: GOGGA; font-size: 14px; width: 20px; text-align: center; color: var(--text-highlight); flex-shrink: 0; }

.btn-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.action-btn {
    font-family: GOGGA; font-size: 13px; letter-spacing: 1.5px;
    padding: 11px 26px; border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--brown-dark); color: var(--text-highlight);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.action-btn:hover { background: rgba(160,95,60,0.6); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 12px rgba(200,130,70,0.2); }
.action-btn:active { transform: translateY(0); }

.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--card-bg); border: 1px solid var(--accent);
    border-radius: 10px; padding: 10px 22px;
    font-family: GOGGA; font-size: 13px; letter-spacing: 1px;
    color: var(--accent-bright);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   HOME PAGE
   ========================================================================== */
.home-title {
    font-family: GOGGA; font-size: 52px; letter-spacing: 4px;
    color: var(--text-highlight);
    text-shadow: 0 0 60px rgba(200,140,80,0.4);
    text-align: center;
}
.home-sub {
    font-size: 13px; letter-spacing: 4px; margin-top: 8px;
    color: var(--text-dim); text-align: center;
}

.stats-row { display: flex; justify-content: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.stat-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 14px; padding: 16px 26px; min-width: 120px;
    text-align: center;
}
.stat-value { font-family: GOGGA; font-size: 26px; color: var(--accent-bright); }
.stat-label { font-size: 10px; letter-spacing: 1.5px; color: var(--text-dim); margin-top: 4px; }

.cards-grid {
    width: 100%; max-width: 1050px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}
.feature-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 16px; padding: 26px 20px;
    text-decoration: none; color: inherit;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    cursor: pointer;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 14px 32px rgba(0,0,0,0.55), 0 0 20px rgba(200,130,70,0.18); }
.feature-card:hover .card-icon { transform: scale(1.12); filter: drop-shadow(0 0 10px rgba(240,160,96,0.5)); }
.card-icon { font-size: 38px; transition: transform 0.22s ease, filter 0.22s ease; }
.card-title { font-family: GOGGA; font-size: 18px; letter-spacing: 1.5px; color: var(--text-highlight); }
.card-desc { font-size: 12px; letter-spacing: 1px; color: var(--text-dim); line-height: 1.6; text-transform: none; }

.changelog {
    width: 100%; max-width: 1050px;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 18px; padding: 34px 38px;
    position: relative; overflow: hidden;
}
.changelog::before {
    content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: linear-gradient(to bottom, var(--accent-bright), var(--accent), transparent);
    border-radius: 4px 0 0 4px;
}
.changelog-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.changelog h3 { font-family: GOGGA; font-size: 28px; letter-spacing: 2px; color: var(--text-highlight); }
.badge {
    font-size: 10px; letter-spacing: 1.5px; padding: 4px 10px; border-radius: 20px;
    background: rgba(200,130,70,0.2); border: 1px solid rgba(200,130,70,0.4); color: var(--accent-bright);
}
.changelog-entries { display: flex; flex-direction: column; gap: 12px; }
.entry {
    display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px;
    background: rgba(255,255,255,0.025); border-radius: 10px;
    border: 1px solid rgba(160,95,60,0.12); text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.entry:hover { background: rgba(255,255,255,0.04); border-color: rgba(160,95,60,0.3); }
.entry-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 6px var(--brown-glow); flex-shrink: 0; margin-top: 5px; }
.entry-text { font-size: 14px; letter-spacing: 0.5px; line-height: 1.5; color: var(--text-highlight); opacity: 0.9; text-transform: none; }

/* ==========================================================================
   CREDITS PAGE
   ========================================================================== */
.credits-grid { display: flex; flex-direction: column; gap: 14px; }
.credit-card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px;
    padding: 20px 24px; display: flex; align-items: center; gap: 18px; text-align: left;
    position: relative; overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    animation: fadeUp 0.4s ease both;
}
.credit-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
    background: linear-gradient(to bottom, var(--accent-bright), transparent);
    border-radius: 3px 0 0 3px;
}
.credit-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 16px rgba(200,130,70,0.12); }
.credit-icon {
    font-size: 30px; flex-shrink: 0; width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(160,95,60,0.12); border: 1px solid var(--border); border-radius: 12px;
}
.credit-info { flex: 1; }
.credit-name { font-family: GOGGA; font-size: 17px; letter-spacing: 1.5px; color: var(--text-highlight); margin-bottom: 4px; }
.credit-role { font-size: 12px; letter-spacing: 1.5px; color: var(--text-dim); text-transform: uppercase; line-height: 1.5; }
.credit-link {
    font-family: GOGGA; font-size: 12px; letter-spacing: 1px; color: var(--accent-bright);
    text-decoration: none; padding: 6px 14px; border: 1px solid rgba(240,160,96,0.35);
    border-radius: 6px; white-space: nowrap; flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.credit-link:hover { background: rgba(240,160,96,0.12); border-color: var(--accent-bright); box-shadow: 0 0 10px rgba(240,160,96,0.2); }

.thanks-banner {
    margin-top: 30px; padding: 20px 24px;
    background: linear-gradient(135deg, rgba(160,95,60,0.15), rgba(70,45,30,0.3));
    border: 1px solid rgba(240,160,96,0.25); border-radius: 14px;
    font-size: 13px; letter-spacing: 2px; color: var(--text-dim); line-height: 1.8; text-transform: none;
}
.thanks-banner strong {
    font-family: GOGGA; color: var(--accent-bright); font-size: 15px; letter-spacing: 1.5px;
    display: block; margin-bottom: 6px; text-transform: uppercase;
}

/* ==========================================================================
   RESPONSIVE — TABLET
   ========================================================================== */
@media (max-width: 900px) {
    .assets-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
}

/* ==========================================================================
   RESPONSIVE — MOBILE
   Vira barra de navegação fixa no rodapé (padrão de app), alvos de toque
   maiores, layout de uma coluna. Isso é o "detecta que é celular e adapta":
   feito via media query, que é o jeito mais confiável de checar (não
   depende de JS nem pode "errar" o dispositivo).
   ========================================================================== */
@media (max-width: 720px) {
    h1 { font-size: 34px; }
    .logo-wrap::before { font-size: 34px; }
    .hub-quote { font-size: 11px; letter-spacing: 2px; }
    header { padding: 28px 16px 20px; }

    .panel, .panel.wide, .panel.narrow { padding: 24px 16px; border-radius: 16px; }
    .page-title, .panel h2 { font-size: 28px; }
    .home-title { font-size: 32px; }

    main { margin: 20px auto; padding: 0 12px; padding-bottom: calc(var(--nav-h) + 24px); gap: 18px; }

    /* nav vira barra inferior fixa, tipo app */
    nav.main-nav {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
        margin: 0; gap: 0; flex-wrap: nowrap;
        background: rgba(15,8,4,0.92);
        border-top: 1px solid var(--border);
        padding: 4px 4px calc(env(safe-area-inset-bottom, 0px) + 4px);
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        animation: none;
    }
    nav.main-nav a {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
        padding: 8px 4px; border-radius: 10px;
        background: none; border: none;
        font-size: 9px; letter-spacing: 0.5px;
        min-height: 48px; justify-content: center;
    }
    nav.main-nav a:hover { transform: none; box-shadow: none; }
    nav.main-nav a.active { background: rgba(200,130,70,0.18); box-shadow: none; }
    .nav-icon { display: block; font-size: 19px; line-height: 1; }
    .nav-label-full { display: none; }
    .nav-label-short { display: block; }


    .stats-row { gap: 10px; }
    .stat-card { padding: 12px 16px; min-width: 90px; }

    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .assets-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .card-top { flex-direction: column; align-items: flex-start; gap: 10px; }
    .credit-card { flex-wrap: wrap; }
    .credit-link { width: 100%; text-align: center; }

    .output-pills { flex-direction: column; align-items: center; }

    /* alvos de toque maiores */
    .play-btn { width: 46px; height: 46px; }
    .download-btn, .action-btn, .asset-tabs button { padding: 12px 20px; }

    .video-controls { flex-wrap: wrap; row-gap: 8px; }
    .video-controls .track-wrap { flex-basis: 100%; order: 3; }
}

@media (max-width: 420px) {
    .cards-grid, .assets-grid { grid-template-columns: repeat(2, 1fr); }
}
