@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700;800&family=Rajdhani:wght@600;700&display=swap');

:root {
    --bg-top: #0d1324;
    --bg-bottom: #1a1010;
    --panel: #1b1f2f;
    --panel-2: #151925;
    --line: #f59e0b;
    --line-soft: rgba(245, 158, 11, 0.32);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --accent: #ff8c00;
    --accent-2: #ffcc4d;
    --danger: #ff4d4d;
    --ok: #16a34a;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    color: var(--text);
    background: #070b14;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("../img/Fundo.jpeg") center center / cover no-repeat;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 19, 36, 0.52), rgba(26, 16, 16, 0.58));
    z-index: 1;
    pointer-events: none;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

.bg-circle {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.bg-circle.c1 {
    top: -120px;
    left: -100px;
    background: rgba(245, 158, 11, 0.24);
}

.bg-circle.c2 {
    bottom: -120px;
    right: -100px;
    background: rgba(239, 68, 68, 0.2);
}

.main-wrapper {
    width: 100%;
    max-width: 1060px;
    padding: 16px;
    text-align: center;
    z-index: 2;
    position: relative;
}

/* modal termos */
.terms-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.86);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.terms-modal {
    width: min(100%, 480px);
    background: #f8fafc;
    color: #1f2937;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    text-align: left;
}

.terms-modal h2 {
    margin: 0 0 10px;
    color: #111827;
}

.terms-content {
    height: 180px;
    overflow-y: auto;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 12px;
    margin: 12px 0;
    line-height: 1.45;
}

.terms-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-container {
    color: #111827;
    font-size: 14px;
}

.accept-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #9ca3af;
    color: #fff;
    font-weight: 700;
    cursor: not-allowed;
    transition: 0.25s ease;
}

.accept-btn.active {
    cursor: pointer;
    background: linear-gradient(90deg, #f97316, #f59e0b);
}

/* carrossel */
.carousel-container {
    width: min(100%, 820px);
    aspect-ratio: 16 / 9;
    margin: 0 auto 22px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 2px solid var(--line-soft);
    background: rgba(2, 6, 23, 0.55);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.36);
    --carousel-bg: url("../img/banner1.jpg");
}

.carousel-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--carousel-bg);
    background-size: cover;
    background-position: center;
    filter: blur(14px) brightness(0.62);
    transform: scale(1.08);
    z-index: 0;
}

.carousel-track {
    display: flex;
    height: 100%;
    position: relative;
    z-index: 1;
    transition: transform 0.6s ease-in-out;
}

.carousel-img {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
}

/* blocos principais */
.plataforma-container,
.bitcoin-box,
.tutorial-container {
    background: linear-gradient(180deg, rgba(27, 31, 47, 0.95), rgba(21, 25, 37, 0.95));
    border: 2px solid var(--line-soft);
    border-radius: 18px;
    padding: 18px;
    margin: 18px auto;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.plataforma-container {
    position: relative;
}

.pixel-font,
.tutorial-title,
.bitcoin-box h1 {
    margin: 0 0 14px;
    color: var(--accent-2);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: "Rajdhani", "Montserrat", sans-serif;
}

.platform-marquee {
    width: 100%;
    overflow: hidden;
}

.platform-track {
    display: flex;
    align-items: center;
}

.platform-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    width: 100%;
}

.platform-icon {
    display: flex;
    justify-content: center;
    flex: 0 1 140px;
}

.platform-icon img {
    width: 100%;
    max-width: 160px;
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.32);
}

.platform-switch-wrap {
    position: absolute;
    left: 14px;
    top: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-switch-label {
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
}

.platform-toggle {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.95);
    padding: 0;
    cursor: pointer;
    display: inline-block;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.platform-toggle.is-paused {
    background: linear-gradient(120deg, #22c55e, #16a34a);
    border-color: rgba(134, 239, 172, 0.9);
}

.bounce {
    animation: bounceSync 2s infinite ease-in-out;
}

@keyframes bounceSync {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.social-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.btn {
    padding: 12px 10px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    color: #fff;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-whatsapp {
    background: linear-gradient(120deg, #15803d, #22c55e);
}

.btn-instagram {
    background: linear-gradient(120deg, #f97316, #db2777);
}

.btn-como-jogar {
    background: linear-gradient(120deg, #0ea5e9, #2563eb);
}

.blink-white {
    animation: pulseBorder 1.4s infinite alternate;
}

@keyframes pulseBorder {
    from { box-shadow: 0 0 0 transparent; }
    to { box-shadow: 0 0 14px rgba(255, 255, 255, 0.35); }
}

.bitcoin-box p,
.tutorial-container p {
    margin: 8px 0;
    color: var(--muted);
}

.howto-intro {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(219, 39, 119, 0.22);
    border: 1px solid rgba(244, 114, 182, 0.45);
}

.howto-intro p {
    margin: 0;
    color: #dbeafe;
    font-size: 13px;
    line-height: 1.45;
}

.howto-steps {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.howto-step {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(190, 24, 93, 0.36), rgba(131, 24, 67, 0.42));
    border: 1px solid rgba(244, 114, 182, 0.45);
}

.howto-step-num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(120deg, #ec4899, #db2777);
}

.howto-step h3 {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.15;
    color: #f8fafc;
    font-family: "Rajdhani", "Montserrat", sans-serif;
    letter-spacing: 0.4px;
}

.howto-step p {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: #dbeafe;
}

.howto-rules {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 10px;
}

.howto-rule {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.58);
}

.howto-rule strong {
    color: #fbcfe8;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.howto-rule span {
    color: #f8fafc;
    font-size: 12px;
    line-height: 1.3;
}

.howto-rule-clock {
    grid-column: 1 / -1;
    border-color: rgba(244, 114, 182, 0.52);
    background: rgba(219, 39, 119, 0.28);
}

.howto-rule-clock strong {
    color: #fbcfe8;
}

#btc-trend.trend-up {
    color: #22c55e;
    font-weight: 700;
}

#btc-trend.trend-down {
    color: #ef4444;
    font-weight: 700;
}

.trend-mini {
    display: inline-block;
    width: 18px;
    height: 12px;
    margin-left: 4px;
    position: relative;
    vertical-align: middle;
}

.trend-mini::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.45);
}

.trend-mini::after {
    content: "";
    position: absolute;
    left: 2px;
    width: 13px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.trend-mini.up {
    color: #22c55e;
}

.trend-mini.up::after {
    bottom: 3px;
    transform: rotate(-28deg);
    transform-origin: left center;
}

.trend-mini.down {
    color: #ef4444;
}

.trend-mini.down::after {
    top: 3px;
    transform: rotate(28deg);
    transform-origin: left center;
}

.trend-mini.neutral {
    color: #94a3b8;
}

.trend-mini.neutral::after {
    top: 5px;
}

.marquee-wrapper {
    margin: 16px 0;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
}

.marquee-content {
    white-space: nowrap;
    display: inline-block;
    padding: 10px 0;
    color: #fde68a;
    font-weight: 700;
    animation: scroll 18s linear infinite;
}

@keyframes scroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

.timer-display {
    margin: 12px auto 6px;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    padding: 10px;
    width: fit-content;
    min-width: 260px;
    color: #fef3c7;
    font-weight: 700;
}

.signal-search {
    margin: 0 auto 8px;
    min-width: 260px;
    width: fit-content;
    max-width: 460px;
    display: none;
    flex-direction: column;
    gap: 6px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    padding: 8px 12px;
    color: #e2e8f0;
    font-size: 13px;
    text-align: left;
}

.signal-search.active {
    display: flex;
}

.signal-search-bar {
    width: 100%;
    height: 8px;
    background: rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    overflow: hidden;
}

.signal-search-bar-fill {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #facc15, #f97316);
    transition: width 0.2s linear;
}

.last-update-display {
    margin: 0 auto 12px;
    min-width: 260px;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    padding: 8px 12px;
    color: #e2e8f0;
    font-size: 13px;
}

.refresh-icon {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: var(--accent-2);
    border-right-color: var(--accent-2);
    border-radius: 50%;
    display: inline-block;
    animation: spinRefresh 1.1s linear infinite;
}

@keyframes spinRefresh {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.slots-controls {
    margin: 14px 0 4px;
    display: grid;
    gap: 10px;
}

.tabs-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.filter-tab,
.favorites-filter {
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
    font-weight: 700;
    padding: 10px;
    cursor: pointer;
    transition: 0.2s ease;
}

.filter-tab.active,
.favorites-filter.active {
    background: linear-gradient(120deg, #f59e0b, #f97316);
    color: #111827;
    border-color: rgba(254, 243, 199, 0.8);
}

.hot-tab {
    background: linear-gradient(120deg, rgba(124, 45, 18, 0.75), rgba(180, 83, 9, 0.75));
}

.favorites-filter {
    max-width: 220px;
    justify-self: center;
    width: 100%;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.slot-card {
    background: linear-gradient(180deg, rgba(72, 16, 104, 0.96), rgba(49, 11, 72, 0.96));
    border: 1px solid rgba(236, 72, 153, 0.28);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.35);
}

.slot-pg { background: linear-gradient(180deg, rgba(72, 16, 104, 0.96), rgba(49, 11, 72, 0.96)); }
.slot-wg { background: linear-gradient(180deg, rgba(65, 52, 6, 0.96), rgba(52, 36, 6, 0.96)); }
.slot-pp { background: linear-gradient(180deg, rgba(8, 51, 80, 0.96), rgba(7, 38, 61, 0.96)); }

.slot-media {
    position: relative;
}

.slot-img {
    width: 100%;
    aspect-ratio: 1 / 0.85;
    border-radius: 0;
    margin-bottom: 0;
    object-fit: cover;
}

.slot-distribution {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 700;
    color: #f8fafc;
    text-align: center;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.88));
}

.slot-hot-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: #111827;
    background: linear-gradient(120deg, #facc15, #f97316);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.slot-content {
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.slot-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
    min-height: 36px;
}

.slot-game-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 30px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.slot-name {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    padding: 0;
    font-family: "Rajdhani", "Montserrat", sans-serif;
    letter-spacing: 0.3px;
    line-height: 1.1;
}

.slot-header {
    display: none;
}

.fav-btn {
    border: none;
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    border-radius: 999px;
    min-width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    position: absolute;
    right: 8px;
    top: 8px;
    transform: none;
    z-index: 2;
}

.fav-btn.active {
    color: #fb7185;
    background: rgba(136, 19, 55, 0.55);
}

.slot-provider {
    align-self: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #fef3c7;
    border: 1px solid rgba(253, 224, 71, 0.45);
    border-radius: 999px;
    padding: 3px 8px;
    margin: 0 0 8px;
}

.slot-status {
    margin-bottom: 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    border-radius: 8px;
    padding: 4px 6px;
    min-height: 24px;
}

.status-good {
    color: #052e16;
    background: rgba(34, 197, 94, 0.85);
}

.status-cold {
    color: #450a0a;
    background: rgba(239, 68, 68, 0.85);
}

.status-neutral {
    color: #111827;
    background: rgba(253, 224, 71, 0.85);
}

.slot-confidence {
    margin-bottom: 8px;
    text-align: center;
    color: #e5e7eb;
    font-size: 11px;
    font-weight: 700;
}

.bar-container {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    height: 13px;
    border-radius: 8px;
    margin-bottom: 7px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    transition: width 0.8s ease;
}

.percent-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 9px;
    font-weight: 700;
    color: #fff;
}

.green { background: #22c55e; }
.yellow { background: #f59e0b; }
.red { background: #ef4444; }

.metric-row {
    margin-bottom: 4px;
}

.metric-label {
    display: block;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.slot-suggest-title {
    margin: 8px 0 6px;
    color: #facc15;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.slot-suggest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.slot-suggest-grid span {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #f8fafc;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 6px;
    padding: 3px 2px;
}

.slot-suggest-grid span:last-child {
    grid-column: 1 / -1;
}

.slot-meta {
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.9;
    color: #f3f4f6;
    text-align: center;
}

.slot-play-btn {
    display: block;
    margin-top: auto;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(120deg, #22c55e, #16a34a);
    border-radius: 999px;
    padding: 7px 10px;
}

.slot-play-btn.disabled {
    background: linear-gradient(120deg, #6b7280, #4b5563);
    color: #d1d5db;
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.75;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    border-radius: 12px;
    padding: 18px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.5);
}

.back-top-wrap {
    display: flex;
    justify-content: center;
    margin: 14px 0 8px;
}

.back-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 120px;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #f8fafc;
    background: linear-gradient(120deg, #ec4899, #db2777);
    box-shadow: 0 10px 18px rgba(219, 39, 119, 0.35);
}

.back-top-btn:hover {
    filter: brightness(1.06);
}

.legal-notice {
    margin-top: 14px;
    text-align: left;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(8, 8, 8, 0.9));
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.legal-title {
    margin: 0 0 8px;
    color: #fde68a;
    font-family: "Rajdhani", "Montserrat", sans-serif;
    letter-spacing: 0.8px;
    font-size: 18px;
    font-weight: 800;
}

.legal-body {
    margin: 0 0 8px;
    color: #e5e7eb;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
}

.legal-copy {
    margin: 10px 0 0;
    color: #fef3c7;
    font-size: 12px;
    font-weight: 700;
}

.conscious-play {
    margin-top: 10px;
    border-left-color: #22c55e;
    border-color: rgba(34, 197, 94, 0.35);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(8, 8, 8, 0.9));
}

.conscious-play .legal-title {
    color: #bbf7d0;
}

@media (max-width: 520px) {
    body::before {
        background-position: center top;
    }

    .social-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .btn-como-jogar {
        grid-column: 1 / -1;
    }

    .platform-group {
        gap: 8px;
    }

    .platform-icon {
        flex: 0 1 calc((100% - 16px) / 3);
    }

    .platform-icon img {
        max-width: 88px;
    }

    .howto-rules {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .main-wrapper {
        padding: 24px;
        max-width: 960px;
    }

    .carousel-container {
        width: min(100%, 800px);
    }

    .slots-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .slots-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .tabs-row {
        width: 580px;
    }

    .favorites-filter {
        width: auto;
        min-width: 160px;
        justify-self: auto;
    }

    .platform-group {
        width: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 14px;
        padding-right: 14px;
    }

    .platform-track.running {
        width: max-content;
        will-change: transform;
    }

    .platform-track.paused {
        will-change: auto;
    }

    .platform-icon img {
        max-width: 130px;
    }

    .platform-toggle {
        display: inline-block;
    }
}

@media (max-width: 767px) {
    .platform-switch-wrap {
        display: none;
    }

    .platform-toggle {
        display: none;
    }
}
