/* =============================================
   PAGES.CSS — Estilos compartidos para páginas
   de contenido (guia, estadisticas, resultados)
   ============================================= */

/* Header Navigation */
.header-nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.2);
}

@media (max-width: 600px) {
    .header-nav {
        display: none;
    }
}

/* Page Container (wider than app) */
.page-container {
    max-width: 860px;
}

/* Page Hero */
.page-hero {
    text-align: center;
    margin: 2.5rem 0 3rem;
}

.page-hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
}

.page-hero h1 span {
    background: linear-gradient(135deg, var(--primary), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    font-weight: 300;
}

/* Table of Contents */
.toc-card {
    background: var(--bg-surface);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--radius);
    padding: 1.8rem 2rem;
    margin-bottom: 3rem;
}

.toc-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.toc-list {
    columns: 2;
    gap: 2rem;
    padding-left: 1.2rem;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
    break-inside: avoid;
}

.toc-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.toc-list a:hover {
    color: var(--primary);
}

@media (max-width: 600px) {
    .toc-list { columns: 1; }
    .page-hero h1 { font-size: 2.2rem; }
}

/* Content Sections */
.content-section {
    margin-bottom: 4rem;
    scroll-margin-top: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.section-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.section-header h2 {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.content-section p {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.content-section p strong {
    color: var(--text-main);
}

.content-section a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.subsection-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--text-main);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    transition: border-color 0.2s;
}

.info-card:hover { border-color: rgba(212, 175, 55, 0.3); }

.info-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }

.info-card h3 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.info-card p {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}

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

/* Steps List */
.steps-list {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-number {
    background: var(--primary);
    color: var(--bg-dark);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-content strong { color: var(--text-main); }

/* Modalities Grid */
.modalities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.modality-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.3rem;
    transition: all 0.2s;
}

.modality-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.modality-card.featured {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.05);
}

.modality-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}

.modality-card p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .modalities-grid { grid-template-columns: 1fr; }
}

/* Prize Table */
.prize-table-wrapper,
.prob-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.prize-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.prize-table th {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.prize-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--text-muted);
    vertical-align: middle;
}

.prize-table tr:last-child td { border-bottom: none; }
.prize-table tr:hover td { background: rgba(255,255,255,0.02); }

.prize-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
}

.prize-badge.gold { background: rgba(212, 175, 55, 0.2); color: var(--primary); }
.prize-badge.silver { background: rgba(160, 160, 170, 0.2); color: #c0c0c0; }
.prize-badge.bronze { background: rgba(176, 90, 50, 0.2); color: #cd7f32; }
.prize-badge.plain { background: rgba(255,255,255,0.07); color: var(--text-muted); }

.note-text {
    font-size: 0.85rem !important;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.8rem 1rem;
}

/* Schedule */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.schedule-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.schedule-day {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.schedule-time {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.schedule-card p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .schedule-grid { grid-template-columns: 1fr; }
}

/* Alert Box */
.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: rgba(245, 158, 11, 0.07);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-top: 1.5rem;
}

.alert-box span { font-size: 1.3rem; flex-shrink: 0; }
.alert-box p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.alert-box a { color: var(--primary); }

.alert-warning {
    background: rgba(239, 68, 68, 0.07);
    border-color: rgba(239, 68, 68, 0.25);
}

/* Games Comparison */
.games-comparison {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: all 0.2s;
}

.game-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
}

.game-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.game-emoji { font-size: 1.5rem; }
.game-header h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }

.game-card p { font-size: 0.88rem; margin: 0; line-height: 1.6; }

.game-details {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: var(--text-muted);
}

.game-link {
    display: block;
    text-align: center;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent) !important;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    margin-top: auto;
    transition: all 0.2s;
}

.game-link:hover {
    background: rgba(16, 185, 129, 0.2);
}

@media (max-width: 600px) {
    .games-comparison { grid-template-columns: 1fr; }
}

/* Pattern Grid */
.pattern-grid, .tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.2rem 0;
}

.pattern-card, .tip-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem;
}

.pattern-card.bad { border-color: rgba(239, 68, 68, 0.2); }
.tip-card { border-color: rgba(16, 185, 129, 0.15); }

.pattern-icon, .tip-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.pattern-card h4, .tip-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.pattern-card p, .tip-card p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .pattern-grid, .tips-grid { grid-template-columns: 1fr; }
}

/* Errors List */
.errors-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.error-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem;
}

.error-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(212, 175, 55, 0.3);
    flex-shrink: 0;
    line-height: 1;
    min-width: 36px;
}

.error-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.error-content p { font-size: 0.87rem; margin: 0; line-height: 1.6; }

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(16, 185, 129, 0.04) 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    margin: 4rem 0 2rem;
}

.cta-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.cta-section p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.35);
}

.btn-cta-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.btn-cta-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Inline Ad */
.ad-inline {
    margin: 2.5rem 0;
    text-align: center;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* =============================================
   STATISTICS PAGE SPECIFIC
   ============================================= */

.disclaimer-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1.3rem 1.5rem;
    margin-bottom: 3rem;
}

.disclaimer-icon { font-size: 1.5rem; flex-shrink: 0; }

.disclaimer-card strong {
    display: block;
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.disclaimer-card p {
    font-size: 0.87rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Chart Controls */
.chart-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.chart-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-weight: 500;
}

.chart-btn.active,
.chart-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--primary);
}

/* Frequency Chart */
.frequency-chart {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.freq-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.55rem;
    animation: fadeIn 0.3s ease both;
}

.freq-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 24px;
    text-align: right;
}

.freq-bar-wrap {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border-radius: 4px;
    height: 14px;
    overflow: hidden;
}

.freq-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}

.freq-bar.hot { background: linear-gradient(90deg, #ef4444, #f97316); }
.freq-bar.warm { background: linear-gradient(90deg, #d4af37, #fbbf24); }
.freq-bar.neutral { background: rgba(148, 163, 184, 0.5); }
.freq-bar.cold { background: linear-gradient(90deg, #3b82f6, #60a5fa); }

.freq-pct {
    font-size: 0.7rem;
    color: var(--text-muted);
    min-width: 36px;
    text-align: right;
}

/* Legend */
.legend-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.legend-item {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Hot/Cold Grid */
.hot-cold-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.hot-title { color: #f97316; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.cold-title { color: #60a5fa; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }

.number-rank-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
}

.rank-pos {
    font-size: 0.72rem;
    color: var(--text-muted);
    min-width: 18px;
}

.rank-ball {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.rank-ball.hot-ball {
    background: radial-gradient(circle at 35% 35%, #f97316, #7c2d12);
    color: white;
}

.rank-ball.cold-ball {
    background: radial-gradient(circle at 35% 35%, #60a5fa, #1e3a5f);
    color: white;
}

.rank-freq {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-left: auto;
}

@media (max-width: 600px) {
    .hot-cold-grid { grid-template-columns: 1fr; }
}

/* Zone Analysis */
.zones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.zone-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.3rem;
    text-align: center;
}

.zone-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.zone-range {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.zone-bar-wrap {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    height: 8px;
    margin-bottom: 0.4rem;
    overflow: hidden;
}

.zone-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

.zone-low .zone-bar { background: linear-gradient(90deg, var(--primary), #fbbf24); }
.zone-mid .zone-bar { background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.zone-high .zone-bar { background: linear-gradient(90deg, #10b981, #059669); }

.zone-pct {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.zone-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

@media (max-width: 600px) {
    .zones-grid { grid-template-columns: 1fr; }
}

/* Insight Box */
.insight-box {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 1.3rem 1.5rem;
    margin-top: 1.5rem;
}

.insight-box h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.insight-box p { font-size: 0.88rem; margin: 0; color: var(--text-muted); line-height: 1.65; }
.insight-box strong { color: var(--text-main); }

/* Parity Chart */
.parity-chart {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    justify-content: center;
    height: 140px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem;
    margin: 1.5rem 0;
}

.parity-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
}

.parity-bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--primary), rgba(212,175,55,0.4));
    min-height: 4px;
    transition: height 0.8s cubic-bezier(0.4,0,0.2,1);
}

.parity-bar-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
}

.parity-bar-pct {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
}

.parity-rows {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
}

.parity-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem 1rem;
}

.parity-combo { 
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    min-width: 160px;
}

.parity-freq-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.parity-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), #fbbf24);
}

.parity-pct {
    font-size: 0.78rem;
    color: var(--text-muted);
    min-width: 40px;
    text-align: right;
}

/* Sum Chart */
.sum-explanation {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.sum-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
}

.sum-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 0.3rem; }
.sum-value { font-size: 1.6rem; font-weight: 800; color: var(--primary); margin-bottom: 0.3rem; }
.sum-desc { font-size: 0.75rem; color: var(--text-muted); }

.sum-bar-chart {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    margin: 1.5rem 0;
    overflow: hidden;
}

.sum-bar-seg {
    flex: 1;
    border-radius: 2px 2px 0 0;
    background: rgba(212, 175, 55, 0.3);
    min-height: 3px;
    transition: height 0.8s ease;
    cursor: pointer;
    position: relative;
}

.sum-bar-seg.peak {
    background: linear-gradient(180deg, var(--primary), rgba(212,175,55,0.4));
}

/* Consecutive Stats */
.consecutive-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.consec-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.3rem;
    text-align: center;
}

.consec-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.consec-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Methodology */
.methodology-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.methodology-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.3rem;
}

.methodology-item h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.methodology-item p { font-size: 0.85rem; margin: 0; line-height: 1.6; }
.methodology-item a { color: var(--primary); }

@media (max-width: 600px) {
    .methodology-list { grid-template-columns: 1fr; }
    .sum-explanation { grid-template-columns: 1fr; }
    .consecutive-stats { grid-template-columns: 1fr; }
}

/* =============================================
   RESULTS PAGE SPECIFIC
   ============================================= */

.official-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(59, 130, 246, 0.07);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1.3rem 1.5rem;
    margin-bottom: 3rem;
}

.official-icon { font-size: 1.5rem; flex-shrink: 0; }
.official-notice strong { display: block; color: #60a5fa; font-size: 0.9rem; margin-bottom: 0.4rem; }
.official-notice p { font-size: 0.87rem; color: var(--text-muted); margin: 0; line-height: 1.6; }
.official-notice a { color: var(--primary); }

/* Verify Panel */
.verify-panel {
    background: var(--bg-surface);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius);
    padding: 2rem;
}

.verify-game-select {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.verify-game-select label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.verify-select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

.verify-select:focus { border-color: var(--primary); }

.verify-input-row {
    display: flex;
    gap: 0.5rem;
}

.verify-num {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 0;
    text-align: center;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
    outline: none;
    font-family: inherit;
    min-width: 0;
    transition: border-color 0.2s;
}

.verify-num:focus { border-color: var(--primary); }

.verify-result {
    margin-top: 1.5rem;
    padding: 1.2rem;
    border-radius: 12px;
    text-align: center;
}

.verify-result.hidden { display: none; }
.verify-result.win { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); }
.verify-result.no-win { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.2); }
.verify-result.partial { background: rgba(212, 175, 55, 0.08); border: 1px solid rgba(212, 175, 55, 0.25); }

.verify-result-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.verify-result p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* Results Tabs */
.results-game-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.res-tab {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-weight: 500;
}

.res-tab.active,
.res-tab:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--primary);
}

/* Results Container */
.results-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.3rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.2s;
}

.result-card:hover {
    border-color: rgba(212, 175, 55, 0.25);
    transform: translateX(4px);
}

.result-date-col {
    min-width: 100px;
}

.result-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.result-day {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.result-balls-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
}

.result-ball {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #2a2c3d, #0f1015);
    border: 2px solid rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
}

.result-pozo {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: right;
    min-width: 80px;
}

.result-pozo strong { display: block; color: var(--accent); font-size: 0.85rem; }

@media (max-width: 600px) {
    .result-card { flex-direction: column; align-items: flex-start; }
    .result-pozo { text-align: left; }
    .result-ball { width: 36px; height: 36px; font-size: 0.8rem; }
    .verify-input-row { flex-wrap: wrap; }
    .verify-num { min-width: 40px; }
}

/* Verify Methods */
.verify-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.verify-method {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.3rem;
}

.verify-method-icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.verify-method h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-main); }
.verify-method p { font-size: 0.85rem; margin: 0; line-height: 1.6; }
.verify-method a { color: var(--primary); }

@media (max-width: 600px) {
    .verify-methods-grid { grid-template-columns: 1fr; }
}

/* Prize Collection Steps */
.prize-collection-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.collection-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.collection-step .step-icon { font-size: 1.8rem; }
.collection-step h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-main); }
.collection-step p { font-size: 0.87rem; color: var(--text-muted); margin: 0; line-height: 1.65; }

.step-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 0.2rem 0.75rem;
    font-size: 0.73rem;
    font-weight: 700;
    margin-top: 0.3rem;
    width: fit-content;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
