:root {
    --primary-color: #0f1923;
    --secondary-color: #ff4655;
    --text-color: #ece8e1;
    --accent-color: #28b5b5;
    --card-bg: rgba(15, 25, 35, 0.95);
    --bs-primary: #5865F2;
    --bs-primary-rgb: 88, 101, 242;
}

body.minecraft-mode {
    --secondary-color: #465eff;
}

body.minecraft-mode header {
    border-bottom: 2px solid #465eff;
}

body.minecraft-mode .card {
    box-shadow: 0 0 20px rgba(70, 94, 255, 0.1);
    border: 1px solid rgba(70, 94, 255, 0.2) !important;
}

body.minecraft-mode .btn-primary {
    background: linear-gradient(135deg, #465eff 0%, #3d52e6 100%);
    box-shadow: 0 5px 15px rgba(70, 94, 255, 0.3);
}

body.minecraft-mode .btn-primary:hover {
    background: linear-gradient(135deg, #3d52e6 0%, #3448cc 100%);
    box-shadow: 0 8px 25px rgba(70, 94, 255, 0.4);
}

body.minecraft-mode .status-pending {
    background: rgba(70, 94, 255, 0.1);
}

body.minecraft-mode .premier-badge.premier-elite,
body.minecraft-mode .premier-badge.premier-master-elite {
    background: rgba(70, 94, 255, 0.1) !important;
    border-color: #465eff !important;
}

body.minecraft-mode .faceit-badge.faceit-10 {
    background-color: rgba(70, 94, 255, 0.1) !important;
    border-color: #465eff !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: #1a1a1a !important;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    overflow: hidden;
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://assetsio.reedpopcdn.com/counter-strike-2-release-date.png?width=1920&height=1920&fit=bounds&quality=80&format=jpg&auto=webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    animation: backgroundZoom 30s ease infinite;
}

.background-overlay.mc-mainback {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
        url('image/mc-mainback.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    animation: backgroundZoom 30s ease infinite;
}

@keyframes backgroundZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 25, 35, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--secondary-color);
    padding: 1rem;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.school-logo {
    width: 180px;
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

.music-kit {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.music-icon {
    width: 89px;
    height: 58px;
    cursor: pointer;
    animation: spin 6s linear infinite;
    transition: all 0.3s ease;
}

.music-icon.paused {
    animation-play-state: paused;
    opacity: 0.6;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.volume-control {
    width: 80px;
}

.volume-control input[type="range"] {
    width: 100%;
    height: 4px;
    background: rgba(255, 70, 85, 0.3);
    border-radius: 2px;
    outline: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
.equalizer {
    display: flex;
    gap: 3px;
    height: 20px;
}

.equalizer .bar {
    width: 3px;
    background: var(--secondary-color);
    animation: equalize 1s infinite;
}

.equalizer .bar:nth-child(2) { animation-delay: 0.2s; }
.equalizer .bar:nth-child(3) { animation-delay: 0.4s; }

@keyframes equalize {
    0% { height: 60%; }
    50% { height: 100%; }
    100% { height: 60%; }
}

.container {
    padding-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 1;
}

.tournament-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(255, 70, 85, 0.1);
    border: 1px solid rgba(255, 70, 85, 0.2);
    margin: 80px 0;
    max-width: 800px;
    width: 100%;
}

h1 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
}

input, select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-color);
    font-family: 'Rajdhani', sans-serif;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.submit-btn {
    position: relative;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 70, 85, 0.3);
}

.btn-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 25, 35, 0.9);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--secondary-color);
    padding: 1rem;
    z-index: 100;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    text-align: center;
}

.footer-version {
    position: absolute;
    right: 20px;
    bottom: 20px;
    color: var(--secondary-color);
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-author {
    position: absolute;
    left: 20px;
    bottom: 20px;
    color: var(--text-color);
    font-size: 0.8rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .school-logo {
        height: 40px;
    }

    h1 {
        font-size: 2rem;
    }

    .tournament-card {
        padding: 1rem;
    }
}

select, select option {
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
    padding: 8px;
    border-radius: 4px;
    width: 100%;
    font-family: 'Rajdhani', sans-serif;
}

select:focus {
    outline: none;
    border-color: #4CAF50;
}

select option {
    padding: 10px;
    background-color: #1a1a1a;
}

select option:hover {
    background-color: #333;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-section {
    position: relative;
}

.profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.profile-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    background: #1f2326;
    border: 1px solid #ff4655;
    min-width: 150px;
    z-index: 1000;
}

.profile-menu a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
}

.profile-menu a:hover {
    background: rgba(255, 70, 85, 0.1);
    color: #ff4655;
}

.dropdown-divider {
    height: 1px;
    background: #ff4655;
    opacity: 0.2;
    margin: 4px 0;
}

.text-danger {
    color: #ff4655 !important;
}

.text-danger:hover {
    color: #ff4655 !important;
    background: rgba(255, 70, 85, 0.1) !important;
}

.profile-dropdown {
    border-top: 2px solid #ff4655;
}

.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

.menu-item-danger {
    color: var(--secondary-color) !important;
}

.menu-item-danger:hover {
    background: rgba(255, 70, 85, 0.1) !important;
}

.gif-upload {
    margin-top: 10px;
    font-size: 0.9em;
    color: #4CAF50;
    cursor: pointer;
}

#gifInput {
    display: none;
}

.music-kit {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.music-kit i {
    font-size: 24px;
}

.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    background: #1a1a1a;
}

.login-box {
    background: #222;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.login-logo img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.login-box h1 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

.login-text {
    color: #999;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 25px;
}

.login-text p {
    margin: 5px 0;
}

.programmed-text {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 10px;
}

.discord-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #5865F2;
    color: white;
    padding: 12px 0;
    width: 100%;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.discord-login-btn:hover {
    background: #4752C4;
}

.discord-login-btn img {
    width: 20px;
    height: 20px;
}

.version-info {
    position: fixed;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    color: #666;
    font-size: 0.8rem;
    z-index: 10;
}

.version {
    color: #4752C4;
}

.card {
    background: linear-gradient(145deg, rgba(15, 25, 35, 0.95), rgba(25, 35, 45, 0.95));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(88, 101, 242, 0.2) !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    max-width: 450px;
    margin: 0 auto;
}

.card:hover {
    box-shadow: 0 15px 30px rgba(88, 101, 242, 0.2) !important;
    border-color: rgba(88, 101, 242, 0.4) !important;
}

.google-icon {
    background: #fff;
    border-radius: 50%;
    padding: 4px;
    margin-right: 2px;
}

.btn-primary {
    background: linear-gradient(45deg, #4285f4, #5865F2) !important;
    border: none !important;
    position: relative;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.profile-section .dropdown-menu {
    background: rgba(15, 25, 35, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 8px !important;
    backdrop-filter: blur(10px);
    min-width: 180px !important;
}

.profile-section .dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 8px 16px !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 14px !important;
}

.profile-section .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.profile-section .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1) !important;
    margin: 4px 0 !important;
}

.profile-section .text-danger {
    color: #ff4655 !important;
}

.profile-section .text-danger:hover {
    background-color: rgba(255, 70, 85, 0.1) !important;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
    transition: opacity 0.3s ease;
}

.vr {
    height: 1em;
    opacity: 0.25;
    border-left: 1px solid currentColor;
}

.lead {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lead-sub {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bs-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}