/* Stats Modal Styles */

.stats-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-modal.active {
    opacity: 1;
}

.stats-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.stats-modal-content {
    position: relative;
    background: #87CEEB;
    border: 5px solid var(--text-dark, #000);
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.stats-modal.active .stats-modal-content {
    transform: scale(1);
}

.stats-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--text-dark, #000);
    color: #87CEEB;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    line-height: 1;
    transition: all 0.2s;
}

.stats-modal-close:hover {
    transform: rotate(90deg);
    background: #FFEB00;
    color: var(--text-dark, #000);
}

.stats-modal h2 {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2.5rem;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

/* Keep modal title styled like homepage - don't override global classes */

.stats-modal h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: var(--text-dark, #000);
}

.stats-modal-body {
    color: var(--text-dark, #000);
}

/* Stats Summary */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-item {
    background: #FFEB00;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 3px solid var(--text-dark, #000);
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.3);
}

.summary-value {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: var(--text-dark, #000);
    margin-bottom: 0.5rem;
}

.summary-label {
    font-size: 0.9rem;
    color: var(--text-dark, #000);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Distribution Stats */
.distribution-stats {
    background: #FFEB00;
    padding: 1.5rem;
    border-radius: 15px;
    border: 3px solid var(--text-dark, #000);
    margin-bottom: 2rem;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.3);
}

.dist-bars {
    margin-top: 1rem;
}

.dist-item {
    margin-bottom: 1.5rem;
}

.dist-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark, #000);
}

.distribution-stats h3 {
    color: var(--text-dark, #000);
}

.dist-bar {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--text-dark, #000);
}

.dist-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(90deg, #FFEB00, #61DAFB);
    transition: width 0.5s ease;
}

.dist-value {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text-dark, #000);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

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

.holder-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #FFEB00;
    border: 3px solid var(--text-dark, #000);
    border-radius: 15px;
    transition: all 0.2s;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
}

.holder-item:hover {
    transform: translateX(5px);
    border-color: #FF69B4;
    box-shadow: 5px 5px 0px #FF69B4;
}

.holder-rank {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--text-dark, #000);
    min-width: 50px;
    text-align: center;
}

.holder-info {
    flex: 1;
}

.holder-address {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark, #000);
}

.whale-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: #FF69B4;
    color: var(--text-dark, #000);
    border-radius: 5px;
    font-weight: 900;
}

.holder-count {
    font-size: 0.9rem;
    color: var(--text-dark, #000);
}

.view-chain-btn {
    padding: 0.5rem 1rem;
    background: var(--blue, #61DAFB);
    color: var(--text-dark, #000);
    border: 3px solid var(--text-dark, #000);
    border-radius: 10px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.view-chain-btn:hover {
    background: #FFEB00;
    transform: scale(1.05);
}

/* Supply Info */
.supply-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: #FFEB00;
    padding: 1.5rem;
    border-radius: 15px;
    border: 3px solid var(--text-dark, #000);
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.3);
}

.info-card h3 {
    margin-top: 0;
    color: var(--text-dark, #000);
}

.info-card p {
    margin: 0.5rem 0;
    color: var(--text-dark, #000);
}

.info-card strong {
    color: #FF69B4;
}

.text-muted {
    color: #aaa;
    font-size: 0.9rem;
}

.supply-bar {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    height: 30px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--text-dark, #000);
    margin: 1rem 0;
}

.supply-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(90deg, #FFEB00, #61DAFB);
    transition: width 0.5s ease;
}

/* Modal Footer */
.modal-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.modal-footer .btn {
    margin: 0 auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .stats-modal-content {
        padding: 1.5rem;
        max-height: 95vh;
    }

    .stats-modal h2 {
        font-size: 2rem;
        margin-right: 40px;
    }

    .holder-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-chain-btn {
        width: 100%;
        text-align: center;
    }

    .summary-value {
        font-size: 2rem;
    }
}

/* Scrollbar Styling */
.stats-modal-content::-webkit-scrollbar {
    width: 10px;
}

.stats-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.stats-modal-content::-webkit-scrollbar-thumb {
    background: #FFEB00;
    border-radius: 10px;
}

.stats-modal-content::-webkit-scrollbar-thumb:hover {
    background: #FF69B4;
}
