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

:root {
    --bg: #061d10;
    --panel: rgba(18, 60, 32, 0.72);
    --panel-solid: #123c20;
    --panel-2: rgba(25, 75, 42, 0.72);
    --green: #1e8d3d;
    --green-glow: #49d86e;
    --gold: #f3c54b;
    --gold-glow: #ffd76a;
    --text: #ffffff;
    --muted: #d7e3d7;
    --line: rgba(243, 197, 75, 0.24);
    --glass: rgba(4, 35, 18, 0.58);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    background:
        linear-gradient(180deg, rgba(6, 29, 16, 0.24), rgba(6, 29, 16, 0.92)),
        url("../images/background-particles.png") center top / cover fixed,
        var(--bg);
    overflow-x: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 18%, rgba(73, 216, 110, 0.18), transparent 32%),
        radial-gradient(circle at 14% 70%, rgba(243, 197, 75, 0.10), transparent 22%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.24));
    z-index: -1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 82px;
    padding: 14px clamp(20px, 5vw, 56px);
    border-bottom: 1px solid rgba(243, 197, 75, 0.18);
    background: rgba(3, 22, 11, 0.78);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
}

.brand-mark {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 0 18px rgba(73, 216, 110, 0.72));
}

.brand-copy {
    display: grid;
    line-height: 1;
}

.brand-copy strong {
    font-size: 1.55rem;
    letter-spacing: 1.4px;
}

.brand-copy span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2.8px;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: clamp(14px, 2.2vw, 30px);
    flex-wrap: wrap;
}

.main-nav a,
.main-nav summary {
    position: relative;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.main-nav a::after,
.main-nav summary::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -18px;
    height: 2px;
    content: "";
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--gold-glow), transparent);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 180ms ease, transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after,
.main-nav summary:hover::after,
.main-nav summary:focus::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-menu {
    position: relative;
}

.nav-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    list-style: none;
    cursor: pointer;
}

.nav-menu summary::-webkit-details-marker {
    display: none;
}

.nav-menu summary::before {
    order: 2;
    content: "\25BE";
    color: var(--gold-glow);
    font-size: 0.76rem;
    transition: transform 180ms ease;
}

.nav-menu[open] summary::before {
    transform: rotate(180deg);
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    z-index: 30;
    display: grid;
    min-width: 250px;
    padding: 10px;
    border: 1px solid rgba(243, 197, 75, 0.34);
    border-radius: 14px;
    background: rgba(4, 28, 13, 0.96);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
    transform: translateX(-50%);
}

.nav-submenu a {
    padding: 10px 12px;
    border-radius: 10px;
    text-align: left;
}

.nav-submenu a:hover,
.nav-submenu a:focus {
    background: rgba(243, 197, 75, 0.12);
}

.page-shell {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    padding: 28px 0 56px;
    text-align: center;
}

.hero,
.hero-compact,
.advanced-layout {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.hero-copy {
    max-width: 920px;
    margin: 0 auto 20px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--gold-glow);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-kicker::before,
.hero-kicker::after {
    width: 22px;
    height: 1px;
    content: "";
    background: var(--gold);
}

h1 {
    max-width: 980px;
    margin: 0 auto 10px;
    color: #fff;
    font-size: clamp(2.7rem, 6.2vw, 4.55rem);
    line-height: 0.96;
    font-weight: 800;
    letter-spacing: 0;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

h1 span {
    display: block;
    color: var(--gold-glow);
    text-shadow: 0 0 24px rgba(255, 215, 106, 0.38), 0 8px 30px rgba(0, 0, 0, 0.56);
}

.lead {
    max-width: 820px;
    margin: 0 auto;
    color: #f1f7f1;
    font-size: clamp(1rem, 1.7vw, 1.18rem);
    font-weight: 700;
    line-height: 1.55;
}

.generator-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 18px;
    align-items: stretch;
    margin: 18px auto 0;
}

.generator-card,
.social-proof,
.results-panel,
.trust-strip,
.filter-surface {
    position: relative;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(18, 60, 32, 0.68), rgba(5, 36, 18, 0.62));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 24px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.generator-card {
    display: grid;
    align-items: center;
    min-height: 208px;
    padding: 24px 28px;
    border-radius: 18px;
}

.generator-form {
    display: grid;
    justify-items: center;
    gap: 18px;
    margin: 0 auto;
}

.field-label {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.field-label::after {
    content: " (opcional)";
    color: #a7f1b9;
    font-size: 0.8rem;
    opacity: 0.92;
}

.number-grid {
    display: flex;
    justify-content: center;
    gap: clamp(10px, 2vw, 26px);
    flex-wrap: wrap;
    width: 100%;
}

.number-input {
    width: clamp(64px, 8vw, 88px);
    height: clamp(64px, 8vw, 86px);
    color: #102316;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 8px;
    outline: none;
    background: linear-gradient(180deg, #ffffff, #eeeeee);
    box-shadow:
        inset 0 2px 9px rgba(0, 0, 0, 0.12),
        0 12px 28px rgba(0, 0, 0, 0.24);
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
}

.number-input:focus {
    border-color: var(--gold-glow);
    box-shadow:
        0 0 0 3px rgba(255, 215, 106, 0.34),
        0 0 28px rgba(255, 215, 106, 0.28),
        inset 0 2px 9px rgba(0, 0, 0, 0.12);
}

.check-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.check-row input[type="checkbox"] {
    width: 19px;
    height: 19px;
    accent-color: var(--gold);
    transform: scale(1.08);
}

.not-recommended {
    display: grid;
    gap: 6px;
    max-width: 720px;
    margin: 0 auto;
    color: #f4f8f0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
}

.not-recommended strong {
    color: var(--gold-glow);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-shadow: 0 0 12px rgba(255, 215, 106, 0.32);
}

.info-dot {
    position: relative;
    display: inline-grid;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    place-items: center;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
}

.info-dot::after {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    z-index: 30;
    width: min(280px, calc(100vw - 40px));
    padding: 10px 12px;
    color: #123018;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    pointer-events: none;
    content: attr(data-tooltip);
    background: #fff7d7;
    border: 1px solid rgba(255, 215, 106, 0.95);
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translate(-50%, 6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.info-dot::before {
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    z-index: 31;
    width: 12px;
    height: 12px;
    pointer-events: none;
    content: "";
    background: #fff7d7;
    border-right: 1px solid rgba(255, 215, 106, 0.95);
    border-bottom: 1px solid rgba(255, 215, 106, 0.95);
    opacity: 0;
    transform: translate(-50%, 6px) rotate(45deg);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.info-dot:hover::after,
.info-dot:focus-visible::after,
.info-dot.is-open::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.info-dot:hover::before,
.info-dot:focus-visible::before,
.info-dot.is-open::before {
    opacity: 1;
    transform: translate(-50%, 0) rotate(45deg);
}

.gold-button {
    user-select: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: min(100%, 660px);
    min-height: 92px;
    margin-top: 18px;
    padding: 18px 42px;
    color: #fff;
    border: 2px solid rgba(255, 215, 106, 0.9);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(46, 151, 66, 0.9), rgba(8, 91, 38, 0.92)),
        linear-gradient(135deg, #fff6b7, #b8891d);
    box-shadow:
        0 0 0 5px rgba(255, 215, 106, 0.16),
        0 0 32px rgba(255, 215, 106, 0.55),
        inset 0 2px 10px rgba(255, 255, 255, 0.24),
        inset 0 -8px 20px rgba(0, 0, 0, 0.34),
        0 20px 42px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.gold-button::before {
    position: absolute;
    inset: -2px 30px auto;
    height: 3px;
    content: "";
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #fff2a8, transparent);
    filter: blur(0.4px);
}

.gold-button img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 0 22px rgba(255, 215, 106, 0.42);
}

.gold-button span {
    display: grid;
    text-align: left;
}

.gold-button strong {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.gold-button small {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.gold-button:hover {
    transform: translateY(-2px);
    filter: saturate(1.1);
    box-shadow:
        0 0 0 5px rgba(255, 215, 106, 0.18),
        0 0 44px rgba(255, 215, 106, 0.72),
        inset 0 2px 10px rgba(255, 255, 255, 0.28),
        inset 0 -8px 20px rgba(0, 0, 0, 0.34),
        0 24px 52px rgba(0, 0, 0, 0.5);
}

.gold-button:active {
    transform: translateY(2px) scale(0.99);
}

.gold-button:disabled {
    cursor: wait;
    opacity: 0.78;
}

.social-proof {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 10px;
    min-height: 208px;
    padding: 24px;
    border-radius: 18px;
}

.social-proof img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 0 16px rgba(255, 215, 106, 0.48));
}

.social-proof strong {
    max-width: 190px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
}

.stars {
    color: var(--gold-glow);
    font-size: 1.35rem;
    letter-spacing: 3px;
    text-shadow: 0 0 12px rgba(255, 215, 106, 0.6);
}

.proof-number {
    color: var(--gold-glow);
    font-size: 2rem;
    font-weight: 800;
}

.social-proof small {
    color: #fff;
    font-size: 0.98rem;
    line-height: 1.25;
}

.results-panel {
    margin: 32px auto 0;
    padding: 30px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 0%, rgba(73, 216, 110, 0.2), transparent 35%),
        linear-gradient(180deg, rgba(25, 75, 42, 0.72), rgba(5, 34, 18, 0.74));
}

.results-heading {
    display: grid;
    gap: 6px;
    justify-content: center;
    margin-bottom: 22px;
    color: var(--gold-glow);
    font-size: clamp(1.35rem, 2.3vw, 1.8rem);
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(255, 215, 106, 0.32);
}

.results-heading span::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: -4px;
    background: url("../images/sparkle.svg") center / contain no-repeat;
    filter: drop-shadow(0 0 8px rgba(255, 215, 106, 0.75));
}

.results-heading small {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
    text-transform: none;
}

.rayo-summary {
    display: block;
    max-width: 820px;
    color: #e7f2e3;
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.45;
    text-transform: none;
}

.message {
    margin: -12px 0 20px;
    color: #eef8ee;
    font-size: 0.95rem;
}

.balls-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(16px, 3vw, 34px);
    flex-wrap: wrap;
    min-height: 122px;
}

.ball {
    position: relative;
    width: clamp(76px, 9vw, 108px);
    height: clamp(76px, 9vw, 108px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
    border: 3px solid rgba(255, 215, 106, 0.82);
    border-radius: 50%;
    background-image:
        radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0) 28%),
        radial-gradient(circle at 48% 46%, #2bbf5d 0%, #0f5d28 50%, #02180b 100%);
    box-shadow:
        0 0 20px 5px rgba(255, 215, 106, 0.5),
        0 0 40px 12px rgba(73, 216, 110, 0.18),
        inset -8px -10px 20px rgba(0, 0, 0, 0.58),
        inset 5px 5px 16px rgba(255, 255, 255, 0.14),
        0 22px 30px rgba(0, 0, 0, 0.38);
    animation: pop-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.ball::after {
    position: absolute;
    inset: -10px;
    content: "";
    border-radius: inherit;
    background: radial-gradient(circle, rgba(255, 215, 106, 0.26), transparent 62%);
    z-index: -1;
}

.ball:nth-child(1) { animation-delay: 0.05s; }
.ball:nth-child(2) { animation-delay: 0.1s; }
.ball:nth-child(3) { animation-delay: 0.15s; }
.ball:nth-child(4) { animation-delay: 0.2s; }
.ball:nth-child(5) { animation-delay: 0.25s; }
.ball:nth-child(6) { animation-delay: 0.3s; }

.empty-result {
    color: var(--muted);
    font-size: 1rem;
}

.filter-infographics {
    display: grid;
    gap: 26px;
    width: min(100%, 980px);
    margin: 34px auto 0;
}

.filter-infographics img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(243, 197, 75, 0.24);
    border-radius: 18px;
    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.3),
        0 0 28px rgba(73, 216, 110, 0.12);
}

.history-layout {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    padding-right: clamp(16px, 3vw, 48px);
    padding-left: clamp(16px, 3vw, 48px);
    box-sizing: border-box;
}

.history-note {
    display: grid;
    gap: 8px;
    width: min(1400px, 100%);
    margin: 0 auto 24px;
    padding: 22px 24px;
    box-sizing: border-box;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(18, 60, 32, 0.72), rgba(5, 34, 18, 0.68));
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.24);
}

.history-note p {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.55;
}

.history-note span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.historico-table-card {
    width: min(1400px, 100%);
    margin: 40px auto;
    padding: 24px;
    box-sizing: border-box;
    border: 1px solid rgba(243, 197, 75, 0.35);
    border-radius: 28px;
    background: rgba(8, 40, 18, 0.82);
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.historico-table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
}

.historico-table {
    width: 100%;
    min-width: 1600px;
    border-collapse: separate;
    border-spacing: 0;
    color: #fff;
}

.col-fecha { width: 9%; }
.col-combinacion { width: 18%; }
.col-no-recomendados { width: 18%; }
.col-promedio { width: 8%; }
.col-primos { width: 12%; }
.col-tercio { width: 35%; }

.historico-table thead th {
    padding: 18px 14px;
    color: #ffffff;
    font-weight: 800;
    text-align: center;
    border-bottom: 2px solid #f3c54b;
    background: linear-gradient(180deg, #2f8d3d, #17662c);
}

.historico-table thead th:first-child {
    border-top-left-radius: 16px;
}

.historico-table thead th:last-child {
    border-top-right-radius: 16px;
}

.historico-table tbody tr {
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease;
}

.historico-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.10);
}

.historico-table tbody tr:hover {
    background: rgba(73, 216, 106, 0.16);
}

.historico-table td {
    padding: 18px 14px;
    color: #ffffff;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.historico-table tbody tr:last-child td {
    border-bottom: 0;
}

.draw-date {
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
}

.numeros-cell {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3px;
}

.numero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 3px;
    color: #fff;
    font-weight: 800;
    border: 2px solid #f3c54b;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #7cff94, #1e8d3d 55%, #064817);
    box-shadow: 0 0 10px rgba(73, 216, 110, 0.55);
}

.numero-badge-warning {
    border-color: rgba(255, 215, 106, 0.85);
    background: radial-gradient(circle at 30% 25%, #ffe8a3, #d99c25 55%, #684110);
    box-shadow: 0 0 10px rgba(243, 197, 75, 0.48);
}

.no-recomendados-cell {
    max-width: 270px;
    margin: 0 auto;
}

.empty-cell {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.86rem;
    font-weight: 700;
}

.promedio-badge {
    display: inline-block;
    padding: 8px 14px;
    color: #ffd76a;
    font-weight: 800;
    border: 1px solid rgba(243, 197, 75, 0.45);
    border-radius: 999px;
    background: rgba(243, 197, 75, 0.16);
}

.primos-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    font-weight: 700;
}

.primos-box span {
    display: inline-block;
    min-width: 130px;
    padding: 6px 10px;
    color: #effaf0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.tercio-mini {
    min-width: 320px;
}

.tercio-mini-table {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.18);
}

.tercio-mini-table th {
    padding: 8px;
    color: #ffd76a;
    font-size: 0.85rem;
    font-weight: 800;
    text-align: center;
}

.tercio-mini-table td {
    padding: 8px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tercio-mini-table tr:last-child td {
    border-bottom: 0;
}

.tercio-mini-table td:first-child {
    color: #ffffff;
    font-weight: 700;
    text-align: left;
}

.tercio-mini-table td:not(:first-child) {
    font-weight: 800;
    text-align: center;
}

.tercio-list-balls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px;
    min-width: 260px;
    max-width: 360px;
    margin: 0 auto;
}

.tercio-list-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: rgba(16, 38, 23, 0.9);
    font-size: 0.72rem;
    font-weight: 900;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #ffffff, #d8dfd9 58%, #a9b5ac);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.8), 0 2px 5px rgba(0, 0, 0, 0.24);
}

.tercio-list-ball.is-real {
    color: #15310f;
    border-color: rgba(255, 235, 159, 0.95);
    background: radial-gradient(circle at 30% 25%, #fff7bf, #f5ce5c 58%, #bf8326);
    box-shadow: 0 0 10px rgba(255, 215, 106, 0.62), inset 0 1px 3px rgba(255, 255, 255, 0.78);
}

.result-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 28px auto 0;
    border: 1px solid rgba(243, 197, 75, 0.2);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(1, 30, 13, 0.36);
}

.metric-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 88px;
    padding: 16px 22px;
    text-align: left;
    border-right: 1px solid rgba(243, 197, 75, 0.16);
}

.metric-card:last-child {
    border-right: 0;
}

.metric-card img {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 10px;
}

.metric-card span {
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.metric-card strong {
    color: var(--gold-glow);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.result-note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 22px auto 0;
    border-radius: 20px;
    overflow: hidden;
}

.trust-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    column-gap: 14px;
    min-height: 86px;
    padding: 16px 24px;
    text-align: left;
    border-right: 1px solid rgba(243, 197, 75, 0.16);
}

.trust-item:last-child {
    border-right: 0;
}

.trust-item img {
    grid-row: span 2;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 10px;
}

.trust-item strong {
    color: var(--gold-glow);
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
}

.trust-item span {
    color: #fff;
    font-size: 0.82rem;
    line-height: 1.4;
}

.advanced-layout {
    max-width: 920px;
}

.intro-block {
    margin-bottom: 22px;
}

.casino-strip {
    display: none;
}

.filter-surface {
    width: 100%;
    padding: 24px;
    border-radius: 18px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: min(100%, 760px);
    margin: 0 auto 20px;
}

.filter-field {
    display: grid;
    gap: 8px;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    text-align: left;
}

.filter-field select {
    min-height: 50px;
    width: 100%;
    color: #102316;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    outline: none;
    background: #fff;
    box-shadow: inset 0 2px 9px rgba(0, 0, 0, 0.12);
    font: 700 0.92rem "Poppins", "Segoe UI", Arial, sans-serif;
    padding: 0 12px;
}

.filter-field select:focus {
    border-color: var(--gold-glow);
    box-shadow: 0 0 0 3px rgba(255, 215, 106, 0.34);
}

.advanced-check {
    margin: 0 auto 22px;
}

.tercio-custom-panel {
    display: grid;
    gap: 16px;
    width: min(100%, 820px);
    margin: -6px auto 24px;
    padding: 18px;
    border: 1px solid rgba(243, 197, 75, 0.22);
    border-radius: 18px;
    background: rgba(4, 35, 18, 0.42);
}

.tercio-custom-panel[hidden],
.tercio-custom-content[hidden],
.tercio-validation[hidden] {
    display: none;
}

.tercio-custom-check {
    margin: 0;
}

.tercio-mode-note {
    max-width: 720px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.tercio-custom-content {
    display: grid;
    gap: 16px;
}

.tercio-select-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tercio-validation {
    margin: 0;
    color: #ffd76a;
    font-size: 0.9rem;
    font-weight: 800;
}

.tercio-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tercio-list-card {
    display: grid;
    gap: 12px;
    align-content: start;
    min-height: 150px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.tercio-list-card strong {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tercio-list-card div {
    display: flex;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
}

.tercio-number-badge {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.22);
}

.tercio-list-card-hot .tercio-number-badge {
    border: 1px solid rgba(255, 215, 106, 0.72);
    background: radial-gradient(circle at 30% 25%, #7cff94, #1e8d3d 58%, #064817);
}

.tercio-list-card-once .tercio-number-badge {
    border: 1px solid rgba(150, 210, 255, 0.75);
    background: radial-gradient(circle at 30% 25%, #8fd4ff, #1d6cb0 58%, #08345b);
}

.tercio-list-card-missing .tercio-number-badge {
    border: 1px solid rgba(243, 197, 75, 0.55);
    background: radial-gradient(circle at 30% 25%, #d8d8d8, #777 58%, #2a2a2a);
}

.site-footer {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 0 16px 28px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.86rem;
    text-align: center;
}

.footer-brandline {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-disclaimer {
    max-width: 980px;
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    line-height: 1.55;
}

.star-decoration {
    display: none;
}

.historico-error-indicator {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 5px;
    height: 5px;
    background: #ff1d1d;
}

.about-page {
    display: grid;
    gap: 30px;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.about-hero {
    padding: 18px 0 4px;
    text-align: center;
}

.about-card {
    position: relative;
    padding: clamp(22px, 3vw, 34px);
    text-align: left;
    border: 1px solid rgba(243, 197, 75, 0.28);
    border-radius: 24px;
    background:
        radial-gradient(circle at 12% 0%, rgba(73, 216, 110, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(18, 60, 32, 0.76), rgba(5, 34, 18, 0.72));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 24px 70px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(10px);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.about-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 106, 0.46);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 28px 82px rgba(0, 0, 0, 0.32),
        0 0 26px rgba(73, 216, 110, 0.12);
}

.about-card h2,
.about-card h3 {
    margin: 0;
    color: #fff;
    line-height: 1.15;
}

.about-card h2 {
    font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.about-card h3 {
    font-size: 1.15rem;
}

.about-card p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.7;
    text-align: justify;
}

.about-intro > div,
.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.about-card-icon {
    display: inline-grid;
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--gold-glow);
    font-size: 1rem;
    font-weight: 800;
    border: 1px solid rgba(243, 197, 75, 0.38);
    border-radius: 16px;
    background: rgba(243, 197, 75, 0.14);
    box-shadow: 0 0 18px rgba(255, 215, 106, 0.16);
}

.process-flow {
    display: grid;
    grid-template-columns: repeat(7, auto);
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 24px 0;
}

.process-step {
    display: grid;
    justify-items: center;
    min-width: 150px;
    min-height: 74px;
    padding: 16px 18px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.process-step strong {
    color: #fff;
    font-size: 0.88rem;
}

.process-arrow {
    color: var(--gold-glow);
    font-size: 1.25rem;
    font-weight: 800;
    text-shadow: 0 0 14px rgba(255, 215, 106, 0.46);
}

.about-split {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.comparison-card {
    display: grid;
    gap: 12px;
    padding: 22px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
}

.comparison-card.highlighted {
    border-color: rgba(255, 215, 106, 0.42);
    background: linear-gradient(180deg, rgba(31, 108, 50, 0.56), rgba(255, 215, 106, 0.08));
}

.comparison-card p {
    margin: 0;
}

.comparison-card strong {
    color: var(--gold-glow);
    font-size: 1.05rem;
}

.comparison-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid rgba(243, 197, 75, 0.28);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.about-note {
    padding: 16px 18px;
    color: #fff !important;
    border: 1px solid rgba(243, 197, 75, 0.24);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.18);
}

.filter-about-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.filter-about-grid article {
    display: grid;
    gap: 12px;
    align-content: start;
    min-height: 150px;
    padding: 18px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.filter-about-grid article strong {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
}

.filter-about-grid article p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.55;
    text-align: center;
}

.philosophy-card,
.disclaimer-card {
    text-align: center;
}

.disclaimer-card {
    border-color: rgba(255, 215, 106, 0.52);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 215, 106, 0.18), transparent 35%),
        linear-gradient(180deg, rgba(36, 67, 24, 0.82), rgba(5, 34, 18, 0.76));
}

@keyframes pop-in {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 980px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .main-nav {
        justify-content: flex-start;
        gap: 18px;
    }

    .generator-stage {
        grid-template-columns: 1fr;
    }

    .hero-compact {
        display: flex;
        flex-direction: column;
    }

    .hero-compact .hero-copy {
        order: 1;
    }

    .hero-compact .generator-stage {
        display: contents;
    }

    .hero-compact .generator-card {
        order: 2;
    }

    .hero-compact .results-panel {
        order: 3;
    }

    .hero-compact .social-proof {
        order: 4;
        margin-top: 0;
    }

    .hero-compact .trust-strip {
        order: 5;
    }

    .social-proof {
        grid-template-columns: 58px 1fr auto;
        justify-items: start;
        min-height: auto;
        text-align: left;
    }

    .social-proof img {
        width: 54px;
        height: 54px;
    }

    .stars,
    .proof-number,
    .social-proof small {
        display: none;
    }

    .result-metrics,
    .trust-strip {
        grid-template-columns: 1fr;
    }

    .process-flow {
        grid-template-columns: 1fr;
    }

    .process-arrow {
        transform: rotate(0deg);
    }

    .about-split,
    .comparison-grid {
        grid-template-columns: 1fr;
    }

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

    .metric-card,
    .trust-item {
        border-right: 0;
        border-bottom: 1px solid rgba(243, 197, 75, 0.16);
    }

    .metric-card:last-child,
    .trust-item:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 24px, 1180px);
        padding-top: 22px;
    }

    .site-header {
        min-height: auto;
        padding: 12px 16px;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
    }

    .brand-copy strong {
        font-size: 1.24rem;
    }

    .brand-copy span {
        font-size: 0.66rem;
    }

    .main-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 12px 16px;
    }

    .main-nav a,
    .main-nav summary {
        font-size: 0.82rem;
        text-align: left;
    }

    .nav-submenu {
        left: 0;
        min-width: min(280px, 86vw);
        transform: none;
    }

    h1 {
        font-size: clamp(2rem, 10vw, 2.55rem);
        line-height: 1.02;
        overflow-wrap: anywhere;
    }

    .generator-card,
    .results-panel,
    .filter-surface {
        padding: 18px;
        border-radius: 16px;
    }

    .number-grid {
        gap: 8px;
    }

    .number-input {
        width: 52px;
        height: 58px;
        font-size: 1.2rem;
    }

    .check-row {
        align-items: flex-start;
        font-size: 0.88rem;
        text-align: left;
    }

    .info-dot::after {
        right: -4px;
        left: auto;
        width: min(260px, calc(100vw - 48px));
        transform: translate(0, 6px);
    }

    .info-dot::before {
        right: 1px;
        left: auto;
        transform: translate(0, 6px) rotate(45deg);
    }

    .info-dot:hover::after,
    .info-dot:focus-visible::after,
    .info-dot.is-open::after {
        transform: translate(0, 0);
    }

    .info-dot:hover::before,
    .info-dot:focus-visible::before,
    .info-dot.is-open::before {
        transform: translate(0, 0) rotate(45deg);
    }

    .gold-button {
        min-height: 78px;
        padding: 14px 18px;
        gap: 12px;
    }

    .gold-button img {
        width: 38px;
        height: 38px;
    }

    .gold-button strong {
        font-size: 1.1rem;
    }

    .gold-button small {
        font-size: 0.78rem;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-about-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 20px;
        border-radius: 18px;
    }

    .about-intro > div,
    .section-heading {
        align-items: flex-start;
    }

    .tercio-select-grid,
    .tercio-list-grid {
        grid-template-columns: 1fr;
    }

    .balls-container {
        gap: 16px;
    }
}
