:root {
    --primary-gradient: linear-gradient(135deg, #2d1b1b, #8b0000, #4a0e0e);
    --secondary-gradient: linear-gradient(135deg, #dc143c, #b22222);
    --accent-color: #ff6b6b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --glow: 0 0 20px rgba(255, 107, 107, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--primary-gradient);
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    animation: bodyFadeIn 1.5s ease-out;
    position: relative;
}



@keyframes bodyFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.8s ease-out;
}

.header-controls {
    display: flex;
    gap: 15px;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #666;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.profile-pic:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #666;
}

.profile-pic.live-pulse {
    border-color: #ff0000;
    animation: pulse-red 1s infinite;
}

.profile-pic.live-pulse:hover {
    box-shadow: 0 0 20px #ff0000;
}

@keyframes pulse-red {
    0%, 100% { border-color: #ff0000; box-shadow: var(--shadow); }
    50% { border-color: #ff4444; box-shadow: 0 0 20px #ff0000; }
}

.title-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.live-indicator {
    background: linear-gradient(135deg, #ff0000, #ff4444);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: glow 1s infinite alternate;
}

.live-indicator.offline {
    background: #666;
    color: #ccc;
    animation: none;
    text-shadow: none;
}

@keyframes glow {
    from { box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
    to { box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 0 10px #ff0000; }
}

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

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    text-shadow: var(--shadow);
}

#lang-select {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

#lang-select:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

#lang-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

#lang-select option {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px;
    border: none;
}

/* Visitor Counter */
.visitor-counter {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    color: #fff;
    transition: all 0.3s ease;
}

.visitor-icon {
    font-size: 16px;
}

/* Visitor counter update animation */
@keyframes countUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background: rgba(255, 255, 255, 0.2); }
    100% { transform: scale(1); }
}



main {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.description {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease-out forwards;
}

.description p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
    color: white;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    margin-bottom: 40px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: cardStagger 0.8s ease-out forwards;
    cursor: pointer;
    width: 250px;
}

.link-card:nth-child(1) { animation-delay: 0.6s; }
.link-card:nth-child(2) { animation-delay: 0.8s; }
.link-card:nth-child(3) { animation-delay: 1s; }
.link-card:nth-child(4) { animation-delay: 1.2s; }

@keyframes cardStagger {
    from { opacity: 0; transform: translateY(30px) rotate(-5deg); }
    to { opacity: 1; transform: translateY(0) rotate(0); }
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.link-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.link-card:hover img {
    transform: scale(1.1);
}

.link-card span {
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
}



@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#live {
    margin-top: 50px;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: var(--shadow); }
    50% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.5); }
    100% { box-shadow: var(--shadow); }
}

#trophies {
    margin-top: 50px;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

#trophies h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
}

#trophy-container {
    width: 100%;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trophy-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    transition: opacity 0.5s ease-in-out;
}

.trophy-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.trophy-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.trophy-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
    text-align: center;
}

.trophy-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    max-width: 400px;
}

#live h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Auction Section */
#auction {
    margin-top: 50px;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

#auction h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: white;
}

.auction-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.auction-image-container {
    flex: 0 0 auto;
    max-width: 400px;
    width: 100%;
}

#auction-image {
    width: 100%;
    height: auto;
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

#auction-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.auction-content {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: left;
}

.auction-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
}

.auction-content p {
    color: white;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.auction-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: white;
    font-weight: 600;
}

#bid-button {
    background: var(--secondary-gradient);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

#bid-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

#auction-ended {
    color: white;
    font-weight: bold;
    margin-top: 15px;
}

#bid-amount {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    width: 100%;
    margin-bottom: 15px;
    font-size: 16px;
}

#bid-amount:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

#bid-amount::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    margin-top: 50px;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.popup-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease-out;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: white;
    transition: var(--transition);
}

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

.popup-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.popup-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: white;
    line-height: 1.5;
}

.popup-button {
    display: inline-block;
    background: var(--secondary-gradient);
    color: white;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.popup-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

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

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

.ghost-popup-content {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ff0000;
    animation: ghostPulse 1s infinite alternate;
}

@keyframes ghostPulse {
    from { box-shadow: 0 0 20px rgba(255, 0, 0, 0.5); }
    to { box-shadow: 0 0 40px rgba(255, 0, 0, 1); }
}

/* Token Popup Styles */
.token-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #00d4ff, #667eea);
    color: white;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 1000;
    display: none;
    animation: tokenPopup 3s ease-out forwards;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes tokenPopup {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
    10% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        background: rgba(255, 255, 255, 0.1);
    }
    .profile-section {
        gap: 10px;
    }
    .profile-pic {
        width: 50px;
        height: 50px;
    }
    h1 {
        font-size: 2rem;
    }
    main {
        padding: 30px 15px;
    }
    .description {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    .link-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .link-card {
        padding: 20px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    .link-card img {
        width: 60px;
        height: 60px;
    }
    .link-card span {
        font-size: 1rem;
    }
    #live {
        padding: 20px;
        background: rgba(255, 255, 255, 0.9);
    }
    #live h2 {
        font-size: 1.5rem;
    }
    #trophies {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    #auction {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    .auction-layout {
        flex-direction: column;
        gap: 20px;
    }
    .auction-image-container {
        max-width: 100%;
    }
    .auction-content {
        text-align: center;
        min-width: unset;
        max-width: unset;
    }
    footer {
        padding: 15px;
        background: rgba(0, 0, 0, 0.1);
    }
    .popup-content {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}
