@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-green: #1db954;
    --accent-hover: #1ed760;
    --accent-blue: #2d9cdb;
    --danger: #e74c3c;
    --font-main: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--accent-blue);
    transition: 0.3s;
}

a:hover {
    color: #54FFC1;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: rgba(0,0,0,0.9);
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: #54FFC1;
    letter-spacing: 1px;
}

.nav-links a {
    margin-left: 20px;
    font-weight: 500;
    color: var(--text-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vip-btn {
    background: #54FFC1;
    padding: 5px 15px;
    border-radius: 20px;
    color: black !important;
    font-weight: bold !important;
}

.vip-btn:hover {
    background: var(--accent-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    width: 100%;
}

.hero {
    text-align: center;
    padding: 40px 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #1db954, #2d9cdb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.invisible-iframe {
    border: none;
    background: transparent;
    width: 250px;
    height: 40px;
}

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

.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    color: var(--text-primary);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.btn-primary {
    background-color: #333;
    color: white;
    border: 1px solid #444;
}

.btn-primary:hover {
    background-color: #54FFC1;
    color: black;
    border-color: #54FFC1;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #444;
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-outline:hover {
    background: var(--accent-blue);
    color: white;
}

.btn-discord {
    background-color: #5865F2;
    color: white;
}

.btn-discord:hover {
    background-color: #4752c4;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
    background: #333;
    color: white;
    margin-right: 5px;
}

.btn-music {
    text-align: left;
    padding-left: 20px;
    margin-bottom: 8px;
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-music.youtube { background: #c4302b; }
.btn-music.spotify { background: #1db954; }
.btn-music.apple { background: #fa243c; }

.btn-music:hover {
    opacity: 0.9;
    padding-left: 30px;
}

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

.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #444;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    color: white;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}

.close-btn:hover { color: white; }

.modern-input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #2b2b2b;
    border: 1px solid #444;
    border-radius: 6px;
    color: white;
    font-family: inherit;
}

.modern-input:focus {
    outline: none;
    border-color: #54FFC1;
}

.full-width { width: 100%; margin-top: 15px; }

.btn-success {
    background-color: #54FFC1;
    color: black;
}

footer {
    background-color: #000;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #222;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #666;
    font-size: 0.9rem;
}

.partners img {
    vertical-align: middle;
    border-radius: 4px;
    opacity: 0.7;
    transition: 0.3s;
}

.partners img:hover { opacity: 1; }

.ad-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.chat-container {
    height: 600px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.countdown-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.count-item {
    background: #333;
    padding: 20px;
    border-radius: 10px;
    min-width: 100px;
    text-align: center;
    border: 1px solid #54FFC1;
}

.count-item h2 {
    font-size: 2.5rem;
    color: #54FFC1;
    margin: 0;
}

.count-item span {
    font-size: 0.9rem;
    color: #ccc;
    text-transform: uppercase;
}

.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--accent-blue);
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--accent-blue);
    border-radius: 50%;
    border: 2px solid var(--card-bg);
}

.timeline-item h4 {
    color: var(--accent-blue);
    margin-bottom: 5px;
}

.feedback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.music-card {
    text-align: center;
}

.music-card h4 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 25px;
    margin-bottom: 15px;
}

.music-card .btn-music {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100%;
    padding: 12px 0 !important;
    margin-bottom: 10px;
}

.profile-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    transition: 0.3s;
    background: rgba(255,255,255,0.05);
}

.profile-widget:hover {
    background: rgba(255,255,255,0.1);
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.avatar-circle {
    width: 35px;
    height: 35px;
    background-color: #54FFC1;
    color: black;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    overflow: hidden;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 60px;
    right: 5%;
    background-color: var(--card-bg);
    border: 1px solid #444;
    border-radius: 8px;
    width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    flex-direction: column;
    overflow: hidden;
}

.profile-dropdown a {
    padding: 12px 15px;
    color: white;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
    display: block;
}

.profile-dropdown a:hover {
    background-color: #333;
    color: #54FFC1;
}

.profile-dropdown.show {
    display: flex;
}

@media (max-width: 600px) {
    .feedback-grid { grid-template-columns: 1fr; }
    
    .election-bar {
        flex-direction: column;
        gap: 5px;
        padding: 10px 0;
        font-size: 0.8rem;
    }
    
    .navbar {
        padding: 15px;
    }
    
    .grid-layout {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
}

@media (min-width: 900px) {
    .music-card {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
    }

    .music-card .music-links {
        display: flex;
        flex-direction: column;
        align-items: center; 
        width: 100%;
    }
    
    .music-card .btn-music {
        width: 100% !important; 
        max-width: 400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

@keyframes popInEvent {
    0% { transform: scale(0.5) translateY(50px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

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

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease-out;
    justify-content: center;
}

.nav-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header h3 {
    margin: 0;
    border: none;
    padding: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.badge-admin { background: rgba(231, 76, 60, 0.2); color: #e74c3c; }
.badge-vip { background: rgba(29, 185, 84, 0.2); color: #1db954; }

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.widget-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

.widget-box {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #333;
}

.widget-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.compact-iframe {
    width: 100%;
    height: 150px;
    border: none;
    background: white;
    border-radius: 4px;
}

.election-bar {
    background: linear-gradient(90deg, 
        rgba(206, 41, 57, 0.2) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(71, 112, 80, 0.2) 100%
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    padding: 8px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
    z-index: 900;
}

.election-bar b {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.election-timer {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 8px;
    border-radius: 4px;
    color: #54FFC1;
    min-width: 140px;
    display: inline-block;
}
        
.event-modal-overlay {
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(5px);
}

.event-card {
    background: linear-gradient(145deg, #1e1e1e, #252525);
    border: 1px solid #333;
    text-align: center;
    border-radius: 20px;
    padding: 40px 20px !important;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: popInEvent 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.event-national h2 {
    color: #4caf50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
}

.event-love h2 {
    color: #e91e63;
    text-shadow: 0 0 10px rgba(233, 30, 99, 0.4);
}

.event-party h2 {
    color: #f1c40f;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.4);
}

.event-namesday h2 {
    color: #2d9cdb;
    text-shadow: 0 0 10px rgba(45, 156, 219, 0.4);
}

.live-player-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 10px;
}

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

.live-header-row h4 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-primary);
    border: none;
    padding: 0;
}

.live-indicator-badge {
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    color: #888;
    transition: all 0.3s ease;
}

.live-indicator-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--danger);
    transition: 0.3s;
}

.live-indicator-badge.is-live {
    background: rgba(29, 185, 84, 0.2);
    color: var(--accent-green);
    border: 1px solid rgba(29, 185, 84, 0.3);
}

.live-indicator-badge.is-live .dot {
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.live-status-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.player-controls-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.play-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: #333;
    color: #555;
    font-size: 1.1rem;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-btn.active {
    background: var(--accent-green);
    color: black;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(29, 185, 84, 0.3);
}

.play-btn.active:hover {
    transform: scale(1.1);
    background: #fff;
}

.visualizer {
    flex: 1;
    height: 30px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    background: rgba(0,0,0,0.3);
    padding: 5px 10px;
    border-radius: 6px;
}

.visualizer .bar {
    flex: 1;
    background: #444;
    height: 4px;
    border-radius: 2px;
    transition: height 0.1s ease;
}

.visualizer.playing .bar {
    background: var(--accent-blue);
    animation: equalizer 0.8s infinite ease-in-out alternate;
}

.visualizer.playing .bar:nth-child(3n) { background: var(--accent-green); }

.visualizer.playing .bar:nth-child(1) { animation-duration: 0.6s; }
.visualizer.playing .bar:nth-child(2) { animation-duration: 0.9s; }
.visualizer.playing .bar:nth-child(3) { animation-duration: 1.1s; }
.visualizer.playing .bar:nth-child(4) { animation-duration: 0.7s; }
.visualizer.playing .bar:nth-child(5) { animation-duration: 1.0s; }
.visualizer.playing .bar:nth-child(6) { animation-duration: 0.8s; }

@keyframes equalizer {
    0% { height: 10%; }
    100% { height: 90%; }
}

.stream-info-box {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
}

.stream-iframe {
    width: 100%;
    height: 40px;
    border: none;
    overflow: hidden;
    background: transparent;
}