:root {
    --bg-dark: #1a1a1a;
    --bg-card: #242424;
    --money-green: #00ff66;
    --money-green-glow: rgba(0, 255, 102, 0.2);
    --gold: #ffd700;
    --accent: #ff3e3e;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-dark);
    color: #ffffff;
    min-height: 100vh;
}

header {
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    padding: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--money-green);
    box-shadow: 0 2px 20px var(--money-green-glow);
}

h1 {
    margin: 0;
    font-size: 2.5rem;
    color: var(--money-green);
    text-shadow: 0 0 10px var(--money-green-glow);
    animation: glow 1.5s ease-in-out infinite alternate;
}

.primary-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.coin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.coin-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Bronze Tier (10,000+ votes) */
.coin-card.bronze-tier {
    background: linear-gradient(45deg, #8B4513, #CD7F32);
    border: 2px solid #CD7F32;
}

.coin-card.bronze-tier::before {
    content: '🥉';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
}

/* Silver Tier (25,000+ votes) */
.coin-card.silver-tier {
    background: linear-gradient(45deg, #808080, #C0C0C0);
    border: 2px solid #C0C0C0;
}

.coin-card.silver-tier::before {
    content: '🥈';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
}

/* Gold Tier (50,000+ votes) */
.coin-card.gold-tier {
    background: linear-gradient(45deg, #FFD700, #DAA520);
    border: 2px solid #FFD700;
}

.coin-card.gold-tier::before {
    content: '🥇';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
}

/* Diamond Tier (100,000+ votes) */
.coin-card.diamond-tier {
    background: linear-gradient(135deg, #b8c6db 0%, #f5f7fa 50%, #b8c6db 100%);
    border: 2px solid transparent;
    position: relative;
}

.coin-card.diamond-tier::before {
    content: '💎';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
}

.coin-card.diamond-tier::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, 
        #5e5e5e,
        #b8c6db,
        #ffffff,
        #b8c6db,
        #5e5e5e
    );
    z-index: -1;
    animation: diamond-border 3s linear infinite;
    background-size: 200% 200%;
}

@keyframes diamond-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Adjust text colors for better visibility on metallic backgrounds */
.bronze-tier .coin-name,
.silver-tier .coin-name,
.gold-tier .coin-name,
.diamond-tier .coin-name {
    color: #1a1a1a;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.bronze-tier .coin-address,
.silver-tier .coin-address,
.gold-tier .coin-address,
.diamond-tier .coin-address {
    color: rgba(0, 0, 0, 0.7);
}

/* Add tier label */
.tier-label {
    position: absolute;
    top: 40px;
    right: 10px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.7);
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}

.coin-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.coin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 255, 102, 0.2);
    border-color: var(--money-green);
}

.coin-name {
    color: var(--money-green);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.coin-address {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    word-break: break-all;
}

.vote-btn {
    background: transparent;
    color: var(--money-green);
    border: 2px solid var(--money-green);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.vote-btn:hover {
    background: var(--money-green);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--money-green-glow);
}

.votes-count {
    font-size: 1.2rem;
    color: var(--gold);
    margin-top: 0.5rem;
    font-weight: bold;
}

.trending-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.leaderboard {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.leaderboard h2 {
    color: var(--money-green);
    margin-top: 0;
    font-size: 1.8rem;
    text-shadow: 0 0 10px var(--money-green-glow);
}

.leaderboard-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.leaderboard-entry:hover {
    background: rgba(0, 255, 102, 0.1);
    transform: scale(1.02);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

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

.modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid var(--money-green);
    box-shadow: 0 0 30px var(--money-green-glow);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--accent);
}

input[type="text"] {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--money-green);
    box-shadow: 0 0 10px var(--money-green-glow);
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px var(--money-green-glow), 0 0 10px var(--money-green-glow);
    }
    to {
        text-shadow: 0 0 10px var(--money-green), 0 0 20px var(--money-green);
    }
}

/* Winning animation for vote clicks */
@keyframes win {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.win-animation {
    animation: win 0.5s ease-out;
}

.coin-info {
    padding: 1rem;
}

.description {
    margin: 1rem 0;
}

.vote-stats {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hammer-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.05s;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    width: 80%;
}

.hammer-btn:hover {
    background: #c0392b;
}

.hammer-btn:active {
    transform: scale(0.95);
    background: #ff5544;
}

.votes {
    font-weight: bold;
    font-size: 1.2rem;
}

.leaderboard-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-period {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.period-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.period-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.period-btn.active {
    background: #3498db;
}

#leaderboardList {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 5px;
    transition: transform 0.3s;
}

.leaderboard-entry:hover {
    transform: translateX(5px);
}

.rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3498db;
    min-width: 2rem;
}

.coin-info-compact {
    flex: 1;
}

.coin-name-compact {
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.click-stats {
    text-align: right;
}

.clicks-per-minute {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2ecc71;
}

.trend-indicator {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.trend-up {
    color: #2ecc71;
}

.trend-down {
    color: #e74c3c;
}

.payment-form {
    margin-top: 20px;
    padding: 20px;
    border-top: 1px solid #ddd;
}

#card-element {
    background-color: white;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 20px;
}

.StripeElement--focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.StripeElement--invalid {
    border-color: #dc3545;
}

.StripeElement--complete {
    border-color: #28a745;
}

.coin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.edit-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 1rem;
    font-size: 1rem;
    transition: background 0.3s;
}

.edit-btn:hover {
    background: #2980b9;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.price-tag {
    font-family: 'Arial', sans-serif;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    position: relative;
    border: 2px solid #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4),
                inset 0 0 20px rgba(0, 255, 136, 0.2);
    backdrop-filter: blur(5px);
}

.price-tag::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #00ff88, 
        transparent 20%,
        transparent 80%,
        #00ff88
    );
    border-radius: 8px;
    z-index: -1;
    animation: neon-border 3s linear infinite;
    opacity: 0.7;
}

.dollar {
    color: #00ff88;
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8),
                 0 0 20px rgba(0, 255, 136, 0.4),
                 0 0 30px rgba(0, 255, 136, 0.2);
    margin-right: 4px;
    animation: neon-pulse 2s ease-in-out infinite;
}

.amount {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(255, 255, 255, 0.4),
                 0 0 30px rgba(0, 255, 136, 0.4);
    animation: neon-pulse 2s ease-in-out infinite;
}

.sparkle {
    display: none;
}

@keyframes neon-pulse {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.8;
        filter: brightness(1.2);
    }
}

@keyframes neon-border {
    0% {
        filter: hue-rotate(0deg) brightness(1);
    }
    50% {
        filter: hue-rotate(180deg) brightness(1.2);
    }
    100% {
        filter: hue-rotate(360deg) brightness(1);
    }
}

.search-container {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, 
        rgba(0, 255, 136, 0.1),
        transparent
    );
}

.search-bar {
    position: relative;
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
}

.search-bar input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--money-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.search-icon {
    position: absolute;
    right: 1rem;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    pointer-events: none;
}

.search-bar input:focus + .search-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Casino Animations */
@keyframes jackpotFlash {
    0%, 100% { box-shadow: 0 0 10px #ffd700; }
    50% { box-shadow: 0 0 30px #ffd700, 0 0 50px #ffd700; }
}

@keyframes coinFall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.vote-btn.voting {
    animation: shake 0.1s ease-in-out infinite, jackpotFlash 0.5s ease-in-out;
}

.coin-rain {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 20px;
    height: 20px;
    background: #ffd700;
    border-radius: 50%;
    animation: coinFall 1s linear forwards;
}

.votes-count.updating {
    animation: jackpotFlash 0.5s ease-in-out;
}

/* Remove sound toggle button styles */
.sound-toggle {
    display: none;
}

/* Promotional Banner for 100+ votes */
.promo-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(45deg, #FFD700, #FF4500);
    color: #fff;
    padding: 1.5rem;
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    z-index: 10000;
    animation: slideDown 0.5s ease-out, pulse 2s infinite;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    display: none;
    font-family: 'Rubik Mono One', sans-serif;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #FF4500,
                 4px 4px 0 #FF8C00,
                 6px 6px 0 #FFD700;
    letter-spacing: 2px;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { 
        background: linear-gradient(45deg, #FFD700, #FF4500);
        transform: scale(1);
    }
    50% { 
        background: linear-gradient(45deg, #FF4500, #FFD700);
        transform: scale(1.02);
    }
}

.coin-card.legendary {
    border: 3px solid #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    animation: legendaryPulse 2s infinite;
}

@keyframes legendaryPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 50px rgba(255, 215, 0, 0.5); }
}

.coin-card.ultra-legendary {
    border: 4px solid transparent;
    background: linear-gradient(45deg, #1a1a1a, #242424);
    position: relative;
    overflow: hidden;
    animation: ultraPulse 3s infinite;
}

.coin-card.ultra-legendary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff);
    z-index: -1;
    animation: rainbow-border 3s linear infinite;
    background-size: 200% 200%;
}

.coin-card.ultra-legendary .coin-name {
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow-text 3s linear infinite;
    background-size: 200% 200%;
    font-size: 1.6rem;
}

@keyframes ultraPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes rainbow-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rainbow-text {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Add casino font */
@import url('https://fonts.googleapis.com/css2?family=Rubik+Mono+One&display=swap');

.top-communities {
    color: #ffd700 !important;
    font-size: 2rem !important;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5) !important;
    margin-top: 2rem !important;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
}

.top-communities-list .leaderboard-entry {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.top-communities-list .leaderboard-entry:hover {
    transform: translateX(5px);
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08));
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.competition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timer-container {
    text-align: center;
}

.timer {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--money-green);
    text-shadow: 0 0 10px var(--money-green-glow);
    font-family: 'Rubik Mono One', monospace;
}

.timer-label {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.5rem;
}

.competition-status {
    text-align: right;
}

.status-label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.3rem;
}

#competitionPhase {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--money-green);
}

#competitionPhase.cooldown {
    color: var(--accent);
}

/* Animation for timer when under 5 minutes */
@keyframes urgentPulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.timer.urgent {
    animation: urgentPulse 1s infinite;
    color: var(--accent);
}

.competition-points {
    font-size: 0.9rem;
    color: var(--gold);
    margin-top: 0.3rem;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Add a special effect for coins with points */
.leaderboard-entry:has(.competition-points) {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.leaderboard-entry:has(.competition-points):hover {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08));
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
} 