/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --outline-color: #1B3A34;
    --mint-color: #60CB87;
    --mint-shadow: #337E5B;
    --white: #FFFFFF;
    --white-shadow: #D9D9D9;
    --bg-dark: #15161B;
    --bg-light: #1C2530;
    
    /* Legacy variable mappings for compatibility */
    --primary-color: var(--mint-color);
    --secondary-color: var(--mint-color);
    --dark-bg: var(--bg-dark);
    --card-bg: var(--bg-light);
    --text-primary: var(--white);
    --text-secondary: var(--white-shadow);
    --border-color: var(--outline-color);
    --success-color: var(--mint-color);
    --warning-color: #ff9500;
    --error-color: #ff3b30;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    width: 95%;
    max-width: none;
    margin: 0 auto;
    padding: 0 2.5%;
}


/* Disclaimer Banner */
.disclaimer-banner {
    background: var(--bg-light);
    color: var(--white);
    text-align: center;
    padding: 12px 0;
    font-size: 13px;
    font-weight: 400;
    border-bottom: 1px solid var(--outline-color);
}

/* Navigation */
.navbar {
    background: var(--bg-light);
    border-bottom: 2px solid var(--outline-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

.nav-header-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.header-contract {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-contract .contract-label {
    font-weight: 600;
    color: var(--white);
    font-size: 13px;
    white-space: nowrap;
}

.header-contract .contract-address-header {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--mint-color);
    background: transparent;
    padding: 0;
}

.header-description h2 {
    font-size: 16px;
    color: var(--white);
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

.header-description p {
    font-size: 13px;
    color: var(--white-shadow);
    margin: 0;
    line-height: 1.3;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.btn-header {
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
    margin-left: 10px;
}

/* POWERBALL Logo */
.powerball-logo-link {
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s;
}

.powerball-logo-link:hover {
    opacity: 0.8;
}

.powerball-logo {
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-dark);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--outline-color);
    flex-shrink: 0;
}

.logo-circle-red {
    background: var(--mint-color);
    color: var(--white);
    width: 65px;
    height: 65px;
    font-size: 20px;
    font-weight: 700;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--mint-color);
}

/* Main Content Split */
.main-content-split {
    padding: 0;
    background: var(--bg-dark);
}

.split-layout {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 20px;
}

.jackpot-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Top Stats Panel (Above Ball Box) */
.top-stats-panel {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    align-items: stretch;
    margin-top: 15px;
}

.top-stat-card {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 16px 20px;
    border: 1px solid var(--outline-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    min-height: 80px;
}

.top-stat-content {
    width: 100%;
    text-align: center;
}

.top-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--mint-color);
    line-height: 1.3;
    margin-bottom: 4px;
    text-align: center;
}

.stat-separator {
    color: var(--white-shadow);
    margin: 0 6px;
}

.top-stat-label {
    font-size: 11px;
    color: var(--white-shadow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-align: center;
}

.jackpot-visualization {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    min-height: 400px;
    border: 1px solid var(--outline-color);
}

/* Disclaimer Below Ball Box */
.visualization-disclaimer {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid var(--outline-color);
    text-align: center;
}

.visualization-disclaimer p {
    font-size: 11px;
    color: var(--white-shadow);
    line-height: 1.4;
    margin: 0;
    font-style: italic;
}

.last-winners-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 15px;
}

.winners-header {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--outline-color);
}

.winners-header h3 {
    font-size: 18px;
    color: var(--white);
    margin: 0 0 8px 0;
    font-weight: 600;
}

.winners-header a {
    color: var(--mint-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.winners-header a:hover {
    color: #7EDBA4;
    transform: translateX(2px);
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--white-shadow);
}

.shield-icon {
    font-size: 14px;
}

.live-stats-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.stat-card {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid var(--outline-color);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--mint-color);
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: var(--white-shadow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.winners-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc((100vh - 400px) * 1.15);
    overflow-y: auto;
    padding-right: 8px;
}

.winners-cards::-webkit-scrollbar {
    width: 6px;
}

.winners-cards::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.winners-cards::-webkit-scrollbar-thumb {
    background: var(--outline-color);
    border-radius: 3px;
}

.winners-cards::-webkit-scrollbar-thumb:hover {
    background: var(--mint-color);
}

.winner-card {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid var(--outline-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.winner-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.winner-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint-color);
    flex-shrink: 0;
}

.winner-address {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--white);
    font-weight: 500;
    word-break: break-all;
    line-height: 1.4;
    flex: 1;
}

.winner-address > div {
    line-height: 1.4;
}

.winner-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: 13px;
}

.winner-label {
    color: var(--white-shadow);
    font-weight: 600;
    min-width: 70px;
}

.winner-address-link {
    color: var(--mint-color);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px dotted transparent;
}

.winner-address-link:hover {
    color: #7EDBA4;
    border-bottom-color: #7EDBA4;
}

.winner-amount {
    color: var(--white);
    font-weight: 600;
    margin-left: auto;
}

.winner-tx-link {
    color: var(--mint-color);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    padding: 2px 6px;
    background: rgba(96, 203, 135, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(96, 203, 135, 0.3);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.winner-tx-link:hover {
    background: rgba(96, 203, 135, 0.2);
    border-color: var(--mint-color);
    color: #7EDBA4;
    transform: translateY(-1px);
}

.winner-tx-pending {
    color: var(--white-shadow);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.winner-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.winner-detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--white-shadow);
    line-height: 1.3;
}

.winner-detail-item strong {
    color: var(--white);
    font-weight: 600;
}

.winner-detail-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.winner-prize {
    margin-bottom: 12px;
}

.prize-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--mint-color);
    margin-bottom: 2px;
}

.prize-sol {
    font-size: 12px;
    color: var(--white-shadow);
}

.winner-ticket {
    font-size: 12px;
    color: var(--white-shadow);
    margin-bottom: 12px;
    line-height: 1.3;
}

.winner-ticket strong {
    color: var(--white);
}

.winner-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.winner-action-btn {
    padding: 6px 10px;
    border: 1px solid #60CB87;
    background: transparent;
    color: #60CB87;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    white-space: nowrap;
}

.winner-action-btn:hover {
    background: #60CB87;
    color: var(--white);
}

.winner-action-btn.wallet-btn {
    background: #60CB87;
    color: var(--white);
    border-color: #60CB87;
}

.winner-action-btn.wallet-btn:hover {
    background: var(--mint-shadow);
}

/* Buttons */
.btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--mint-color);
    color: var(--white);
    box-shadow: 0 4px 8px var(--mint-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--mint-shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--mint-color);
}

.btn-secondary:hover {
    background: var(--mint-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 50px;
    font-size: 18px;
}

/* Jackpot Sections */
.jackpot-section {
    padding: 0 0 40px 0;
}

.jackpot-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}


.jackpot-header h3 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
}

.jackpot-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.jackpot-amount {
    text-align: center;
}

.amount-label {
    display: block;
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.amount-value {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--mint-color);
    margin-bottom: 5px;
}

.amount-sol {
    display: block;
    font-size: 24px;
    color: var(--mint-color);
}

.countdown {
    text-align: center;
}

.countdown-label {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.countdown-timer {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    border-radius: 10px;
    min-width: 80px;
}

.time-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--mint-color);
}

.time-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Winners Section */
.winners-section {
    padding: 60px 0;
}

.winners-section h3 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.winners-table-container {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.winners-table,
.results-table {
    width: 100%;
    border-collapse: collapse;
}

.winners-table th,
.winners-table td,
.results-table th,
.results-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.winners-table th,
.results-table th {
    background: rgba(96, 203, 135, 0.1);
    font-weight: 600;
    color: var(--mint-color);
    cursor: pointer;
    user-select: none;
}

.winners-table th.sortable:hover,
.results-table th.sortable:hover {
    background: rgba(96, 203, 135, 0.2);
}

.winners-table tbody tr,
.results-table tbody tr {
    transition: background 0.3s;
    cursor: pointer;
}

.winners-table tbody tr:hover,
.results-table tbody tr:hover {
    background: rgba(96, 203, 135, 0.05);
}

.action-links {
    display: flex;
    gap: 10px;
}

.action-link {
    padding: 5px 15px;
    background: var(--mint-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background 0.3s;
}

.action-link:hover {
    background: var(--mint-shadow);
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.stat-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--mint-color);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--mint-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
}

/* How It Works */
.how-it-works {
    padding: 60px 0;
    background: var(--bg-dark);
}

.how-it-works h3 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--mint-color);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--mint-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 8px var(--mint-shadow);
}

.step-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Verification Section */
.verification-section {
    padding: 60px 0;
}

.verification-section h3 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
}

.section-intro {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.verification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.verification-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
}

.verification-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--mint-color);
}

.verification-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.verification-steps,
.fairness-reasons {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
}

.verification-steps h4,
.fairness-reasons h4 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--mint-color);
}

.verification-steps ol,
.fairness-reasons ul {
    margin-left: 20px;
}

.verification-steps li,
.fairness-reasons li {
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--card-bg);
    border-top: 2px solid var(--border-color);
    padding: 60px 0 20px;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--mint-color);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.contract-address {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
    font-size: 14px;
    color: var(--mint-color);
    word-break: break-all;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--mint-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Results Page */
.results-page {
    padding: 60px 0;
}

.results-page h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 40px;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.summary-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.summary-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--mint-color);
    margin-bottom: 5px;
}

.summary-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.results-table-container {
    background: var(--card-bg);
    border-radius: 15px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination button {
    padding: 10px 20px;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover {
    background: var(--mint-color);
}

.pagination button.active {
    background: var(--mint-color);
    border-color: var(--mint-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--error-color);
}

.modal-content h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--mint-color);
}

.modal-body {
    color: var(--text-secondary);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-label {
    font-weight: 600;
    color: var(--text-primary);
}

.detail-value {
    color: var(--mint-color);
    word-break: break-all;
}

/* How to Play Page */
.how-to-play-page {
    padding: 60px 0;
}

.how-to-play-page h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
}

.guide-steps {
    max-width: 900px;
    margin: 0 auto;
}

.guide-step {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
}

.guide-step-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.guide-step-number {
    width: 60px;
    height: 60px;
    background: var(--mint-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 8px var(--mint-shadow);
}

.guide-step-header h3 {
    font-size: 28px;
    margin: 0;
}

.guide-step-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.guide-step-content ul,
.guide-step-content ol {
    margin: 20px 0 20px 20px;
}

.guide-step-content li {
    margin-bottom: 10px;
}

.note {
    background: rgba(96, 203, 135, 0.1);
    border-left: 4px solid var(--mint-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.contract-info,
.entry-calculator,
.buy-options,
.example-box,
.results-info,
.verification-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
}

.contract-info h4,
.entry-calculator h4,
.buy-options h4,
.example-box h4,
.results-info h4,
.verification-info h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--mint-color);
}

.contract-address-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-copy {
    padding: 8px 15px;
    background: var(--mint-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-copy:hover {
    background: var(--mint-shadow);
}

.entry-table {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.entry-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card-bg);
    padding: 15px 20px;
    border-radius: 8px;
}

.entry-row .tokens {
    flex: 1;
    font-weight: 600;
    color: var(--mint-color);
}

.entry-row .arrow {
    font-size: 24px;
    color: var(--mint-color);
}

.entry-row .entries {
    flex: 1;
    font-weight: 600;
    color: var(--mint-color);
}

.buy-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* FAQ Page */
.faq-page {
    padding: 60px 0;
}

.faq-page h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--white);
}

/* FAQ Section */
.faq-section {
    max-width: 900px;
    margin: 0 auto;
}

.faq-section h3 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--white);
}

.faq-item {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    user-select: none;
}

.faq-question:hover {
    background: rgba(96, 203, 135, 0.1);
}

.faq-answer {
    padding: 0 25px 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: rgba(96, 203, 135, 0.1);
    padding: 60px 40px;
    border-radius: 20px;
    margin-top: 60px;
}

.cta-section h3 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 98%;
        padding: 0 1%;
    }

    .navbar .container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .nav-header-content {
        order: 2;
    }

    .nav-links {
        gap: 10px;
        order: 3;
        flex-wrap: wrap;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .jackpot-body {
        grid-template-columns: 1fr;
    }

    .countdown-timer {
        flex-wrap: wrap;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

    .guide-step-header {
        flex-direction: column;
        text-align: center;
    }

    .results-summary {
        grid-template-columns: 1fr;
    }

    .entry-row {
        flex-direction: column;
        text-align: center;
    }
}

/* In-game Mini Notifications for Bucket Claims */
.ingame-notification {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid var(--mint-color);
    font-size: 13px;
    z-index: 100;
    pointer-events: none;
    animation: slideInRight 0.3s ease-out, fadeOut 0.3s ease-in 2.7s forwards;
}

.ingame-notification .prize {
    color: #f1c40f;
    font-weight: 800;
}

.ingame-notification .wallet {
    font-family: 'Courier New', monospace;
    color: var(--mint-color);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Holder Visualization Styles */
#holder-canvas-container {
    position: relative;
    width: 100%;
    min-height: 600px;
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
}

#holder-canvas-container canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Holder Popup Modal */
.holder-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.holder-popup.hidden {
    display: none;
}

.holder-popup-content {
    background: linear-gradient(135deg, #1C2530 0%, #15161B 100%);
    border: 2px solid var(--mint-color);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: popupSlideIn 0.3s ease;
    overflow: hidden; /* Prevent content from overflowing */
    box-sizing: border-box;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.holder-popup-content h3 {
    color: var(--mint-color);
    margin: 0 0 24px 0;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

.holder-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.holder-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.holder-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.holder-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    gap: 12px;
    min-width: 0; /* Allow flex items to shrink */
}

.holder-info-row .label {
    color: var(--white-shadow);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.holder-info-row span:not(.label) {
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    min-width: 0;
    flex: 1;
    text-align: right;
    word-break: break-all;
    overflow-wrap: break-word;
}

.wallet-link {
    color: var(--mint-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
    flex: 1;
    min-width: 0;
    text-align: right;
}

.wallet-link:hover {
    color: #7EDBA4;
    transform: translateX(2px);
}

.wallet-link::after {
    content: '→';
    font-size: 18px;
}

/* Winner Notification */
.winner-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    animation: winnerSlideIn 0.5s ease-out;
}

.winner-notification-content {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 40px 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.5);
    text-align: center;
    border: 4px solid #FFF;
}

.winner-notification-content h2 {
    font-size: 48px;
    color: #000;
    margin: 0 0 20px 0;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.winner-wallet {
    font-size: 24px;
    color: #000;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    margin: 10px 0;
}

.winner-prize {
    font-size: 36px;
    color: #000;
    font-weight: 900;
    margin: 10px 0 0 0;
}

.winner-notification.fade-out {
    animation: winnerFadeOut 0.5s ease-out forwards;
}

@keyframes winnerSlideIn {
    from {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes winnerFadeOut {
    from {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

/* Winner Popup Notification (when ball wins during race) */
.winner-popup-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002;
    animation: winnerPopupSlideIn 0.4s ease-out;
}

.winner-popup-notification.fade-out {
    animation: winnerPopupFadeOut 0.5s ease-out forwards;
}

.winner-popup-content {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
    border: 3px solid #FFF;
    min-width: 280px;
    text-align: center;
}

.winner-popup-header {
    font-size: 24px;
    font-weight: 900;
    color: #000;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.winner-popup-wallet {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
    word-break: break-all;
}

.winner-popup-prize {
    font-size: 32px;
    font-weight: 900;
    color: #000;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.winner-popup-tickets {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

@keyframes winnerPopupSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes winnerPopupFadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-stats-panel {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .top-stat-card {
        padding: 12px 16px;
    }
    
    .top-stat-icon {
        font-size: 24px;
    }
    
    .top-stat-value {
        font-size: 18px;
    }
    
    .holder-popup-content {
        padding: 24px;
        width: 95%;
    }

    .holder-popup-content h3 {
        font-size: 24px;
    }

    .holder-info-row span:not(.label) {
        font-size: 16px;
    }
    
    .winner-notification-content {
        padding: 30px 40px;
    }
    
    .winner-notification-content h2 {
        font-size: 36px;
    }
    
    .winner-wallet {
        font-size: 18px;
    }
    
    .winner-prize {
        font-size: 28px;
    }
}

