:root {
    --green-dark: #0d4a2e;
    --green-medium: #1a6b42;
    --green-light: #e8f5ee;
    --green-pale: #f0faf4;
    --yellow: #f5c518;
    --yellow-glow: #ffd84d;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-400: #adb5bd;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --shadow: 0 8px 32px rgba(13, 74, 46, 0.12);
    --shadow-lg: 0 16px 48px rgba(13, 74, 46, 0.18);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, var(--green-light) 0%, var(--green-pale) 40%, var(--white) 100%);
    min-height: 100vh;
    color: var(--gray-800);
    -webkit-font-smoothing: antialiased;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, var(--green-dark) 0%, #0a3d25 100%);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.btn-header-ranking {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-header-ranking:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: var(--white);
}

.trophy-icon {
    font-size: 0.85rem;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--yellow);
    letter-spacing: 1px;
}

.btn-header-vip {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-glow) 100%);
    color: var(--green-dark);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(245, 197, 24, 0.5);
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-header-vip:hover {
    transform: scale(1.05);
    color: var(--green-dark);
    box-shadow: 0 0 30px rgba(245, 197, 24, 0.7);
}

/* Main layout */
.app-main {
    min-height: calc(100vh - 120px);
    padding: 24px 16px 40px;
}

.page-container {
    max-width: 520px;
    margin: 0 auto;
}

.main-card,
.result-card,
.analysis-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--green-dark);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.4;
}

.card-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: -16px 0 24px;
}

/* Lottery grid */
.lottery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lottery-btn {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.lottery-btn:hover {
    border-color: var(--green-medium);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26, 107, 66, 0.15);
}

.lottery-btn:active {
    transform: translateY(0);
}

.lottery-icon {
    font-size: 1.75rem;
}

.lottery-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
}

/* Modal */
.lottery-modal {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
}

.lottery-modal .modal-body {
    padding: 32px 24px;
    position: relative;
}

.btn-close-modal {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.modal-lottery-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 8px;
}

.modal-lottery-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.modal-info {
    text-align: left;
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 24px;
}

.modal-info p {
    margin-bottom: 8px;
}

.modal-info strong {
    color: var(--green-dark);
}

/* Buttons */
.btn-continue {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-medium) 100%);
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-continue:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13, 74, 46, 0.3);
    color: var(--white);
}

.btn-skip {
    background: transparent;
    color: var(--gray-600);
    border: 1.5px solid var(--gray-200);
    font-weight: 500;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}

.btn-skip:hover {
    border-color: var(--gray-400);
    color: var(--gray-800);
}

.btn-outline-green {
    background: transparent;
    color: var(--green-dark);
    border: 2px solid var(--green-medium);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
}

.btn-outline-green:hover {
    background: var(--green-light);
    color: var(--green-dark);
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
    font-weight: 600;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-sm);
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #20bd5a;
    color: var(--white);
}

/* Funnel options */
.option-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.option-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-800);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-align: center;
}

.option-btn-full {
    text-align: left;
}

.option-btn:hover {
    border-color: var(--green-medium);
    background: var(--green-pale);
}

.option-btn.selected {
    border-color: var(--green-dark);
    background: var(--green-light);
    color: var(--green-dark);
    font-weight: 600;
}

.custom-input-wrap {
    margin-bottom: 16px;
}

.custom-input {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.custom-input:focus {
    border-color: var(--green-medium);
    box-shadow: 0 0 0 3px rgba(26, 107, 66, 0.15);
    outline: none;
}

.info-box {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 0.8rem;
    color: var(--green-medium);
    line-height: 1.5;
}

/* Funnel steps */
.funnel-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.funnel-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Analysis screen */
.analysis-card {
    padding: 24px 20px;
}

.analysis-header {
    text-align: center;
    margin-bottom: 20px;
}

.analysis-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.analysis-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green-dark);
}

.analysis-source {
    font-size: 0.75rem;
    color: var(--green-medium);
    margin-top: 6px;
    font-weight: 600;
}

.analysis-source-mock {
    color: #b45309;
}

.analysis-source code {
    font-size: 0.65rem;
    background: #fff8e6;
    padding: 2px 4px;
    border-radius: 4px;
}

.analysis-terminal {
    background: #0a1f14;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #1a4a30;
}

.terminal-bar {
    background: #0d2818;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.terminal-bar .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.terminal-label {
    color: #4ade80;
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: 8px;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #4ade80;
    min-height: 100px;
    max-height: 140px;
    overflow-y: auto;
}

.terminal-line {
    margin-bottom: 6px;
    opacity: 0;
    animation: terminalType 0.3s forwards;
}

@keyframes terminalType {
    to { opacity: 1; }
}

.analysis-checklist {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--gray-600);
    padding: 6px 0;
    transition: var(--transition);
}

.check-item.done {
    color: var(--green-dark);
    font-weight: 500;
}

.check-item.done .check-icon {
    color: #22c55e;
}

.check-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Progress */
.progress-section {
    text-align: center;
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.dot-progress {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-200);
    transition: var(--transition);
}

.dot-progress.active {
    background: var(--green-medium);
    box-shadow: 0 0 8px rgba(26, 107, 66, 0.5);
}

.progress-bar-wrap {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-medium), #22c55e);
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.progress-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--green-dark);
    letter-spacing: 0.5px;
}

.progress-percent {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--green-medium);
}

.progress-sub {
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* Result screen */
.result-card {
    padding: 28px 20px;
}

.result-header {
    text-align: center;
    margin-bottom: 24px;
}

.result-lock {
    font-size: 1.5rem;
}

.result-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-dark);
    margin: 8px 0;
}

.result-lottery-badge {
    display: inline-block;
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
}

.numbers-grid {
    display: grid;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.numbers-grid-compact {
    grid-template-columns: repeat(5, 1fr);
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.numbers-grid-wide {
    grid-template-columns: repeat(6, 1fr);
}

.number-ball {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-medium) 100%);
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(13, 74, 46, 0.25);
    animation: ballPop 0.4s ease backwards;
}

.number-ball:nth-child(1) { animation-delay: 0.05s; }
.number-ball:nth-child(2) { animation-delay: 0.1s; }
.number-ball:nth-child(3) { animation-delay: 0.15s; }
.number-ball:nth-child(4) { animation-delay: 0.2s; }
.number-ball:nth-child(5) { animation-delay: 0.25s; }
.number-ball:nth-child(6) { animation-delay: 0.3s; }
.number-ball:nth-child(7) { animation-delay: 0.35s; }
.number-ball:nth-child(8) { animation-delay: 0.4s; }
.number-ball:nth-child(9) { animation-delay: 0.45s; }
.number-ball:nth-child(10) { animation-delay: 0.5s; }
.number-ball:nth-child(11) { animation-delay: 0.55s; }
.number-ball:nth-child(12) { animation-delay: 0.6s; }
.number-ball:nth-child(13) { animation-delay: 0.65s; }
.number-ball:nth-child(14) { animation-delay: 0.7s; }
.number-ball:nth-child(15) { animation-delay: 0.75s; }

@keyframes ballPop {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.prize-section {
    text-align: center;
    margin-bottom: 28px;
}

.prize-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 12px;
}

.prize-banner {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-glow) 100%);
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 24px rgba(245, 197, 24, 0.35);
}

.prize-icon {
    font-size: 1.5rem;
}

.prize-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-800);
}

.prize-disclaimer {
    display: block;
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--gray-400);
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 16px;
    text-align: center;
}

.score-section {
    margin-bottom: 28px;
}

.score-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
}

.score-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-bg {
    fill: none;
    stroke: var(--gray-200);
    stroke-width: 8;
}

.score-fill {
    fill: none;
    stroke: var(--green-medium);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease;
}

.score-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--green-dark);
    line-height: 1;
}

.score-label-sm {
    font-size: 0.7rem;
    color: var(--gray-600);
}

.score-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.indicators-section {
    margin-bottom: 28px;
}

.indicators-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.indicator-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--green-dark);
    background: var(--green-pale);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}

.indicator-icon {
    color: #22c55e;
    font-weight: 700;
}

.stats-section {
    margin-bottom: 28px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-item {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-dark);
}

.other-games-section {
    margin-bottom: 28px;
}

.other-games-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.other-game-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-100);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
}

.other-game-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    min-width: 50px;
}

.other-game-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
}

.mini-ball {
    background: var(--green-dark);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
}

.other-game-score {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--green-medium);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Ranking */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.ranking-top {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
    border: 1px solid var(--yellow);
}

.ranking-position {
    font-size: 1rem;
    font-weight: 800;
    color: var(--green-dark);
    min-width: 36px;
}

.ranking-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ranking-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.ranking-lottery {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.ranking-points {
    font-weight: 700;
    color: var(--green-medium);
    font-size: 0.9rem;
}

/* VIP */
.vip-card {
    text-align: center;
}

.vip-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-glow));
    color: var(--green-dark);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 6px 20px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.vip-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 24px 0;
    text-align: left;
}

.vip-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--green-pale);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
}

.vip-feature span {
    font-size: 1.25rem;
}

.vip-pricing {
    margin: 24px 0;
}

.price-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--green-dark);
}

.price-period {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.btn-vip-glow {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-glow) 100%);
    color: var(--green-dark);
    font-weight: 800;
    padding: 16px;
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 30px rgba(245, 197, 24, 0.5);
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Hero & Transparency */
.hero-banner {
    background: linear-gradient(135deg, var(--green-dark) 0%, #0a3d25 100%);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    color: var(--white);
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.hero-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-text {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.92;
    margin: 0;
}

.hero-text strong {
    color: var(--yellow);
}

.transparency-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff8e6;
    border: 1px solid #f5d76e;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-top: 20px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--gray-800);
}

.sync-status {
    text-align: center;
    font-size: 0.75rem;
    color: var(--green-medium);
    font-weight: 600;
    margin-bottom: 16px;
}

.transparency-box-sm {
    margin-top: 0;
    margin-bottom: 20px;
}

.transparency-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.modal-disclaimer {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.4;
}

.section-desc {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-600);
    margin: -8px 0 16px;
}

/* Hit probability */
.hit-probability-section {
    background: var(--green-pale);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    margin-bottom: 28px;
    border: 1px solid var(--green-light);
}

.hit-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.hit-stat-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 14px 10px;
    text-align: center;
    border: 1px solid var(--gray-200);
}

.hit-stat-main {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
    border: none;
}

.hit-stat-main .hit-stat-value {
    color: var(--white);
    font-size: 2rem;
}

.hit-stat-main .hit-stat-label {
    color: rgba(255, 255, 255, 0.85);
}

.hit-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--green-dark);
    line-height: 1.2;
}

.hit-stat-value.text-positive {
    color: #16a34a;
}

.hit-stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-600);
    margin-top: 4px;
}

.hit-distribution {
    margin-bottom: 12px;
}

.hit-dist-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    display: block;
    margin-bottom: 8px;
}

.hit-dist-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hit-dist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
}

.hit-dist-num {
    width: 20px;
    font-weight: 700;
    color: var(--green-dark);
    text-align: center;
}

.hit-dist-bar-wrap {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.hit-dist-bar {
    height: 100%;
    background: var(--green-medium);
    border-radius: 4px;
    min-width: 2px;
}

.hit-dist-count {
    width: 30px;
    text-align: right;
    color: var(--gray-600);
}

.hit-note {
    font-size: 0.7rem;
    color: var(--gray-600);
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

.period-analysis {
    margin-bottom: 16px;
}

.period-table {
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.period-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr 0.8fr;
    gap: 8px;
    padding: 10px 12px;
    font-size: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
    text-align: center;
}

.period-row:last-child {
    border-bottom: none;
}

.period-header {
    background: var(--green-dark);
    color: var(--white);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.period-label {
    text-align: left;
    font-weight: 600;
    color: var(--green-dark);
}

.period-media {
    font-weight: 700;
    color: var(--green-medium);
}

/* Footer */
.app-footer {
    padding: 16px;
    text-align: center;
}

/* Modal backdrop */
.modal-backdrop.show {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 380px) {
    .numbers-grid-compact {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .number-ball {
        font-size: 0.8rem;
    }

    .prize-value {
        font-size: 1.2rem;
    }

    .card-title {
        font-size: 1.15rem;
    }
}

@media (min-width: 768px) {
    .main-card,
    .result-card,
    .analysis-card {
        padding: 40px 36px;
    }

    .card-title {
        font-size: 1.5rem;
    }
}
