/* Font variables */
:root {
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-special: 'Outfit', sans-serif;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Inter', sans-serif;
    --special-font: 'Quicksand', sans-serif;
    --primary-color: hsla(340, 100%, 90%, 0.9);
    --secondary-color: hsla(340, 80%, 85%, 0.6);
    --accent-color: hsla(330, 100%, 85%, 0.9);
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --shadow-standard: 0 4px 15px rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    --transition-standard: all 0.3s ease;
}

/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Dancing+Script:wght@400;700&display=swap');

/* Animation keyframes section */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); }
}

@keyframes subtleFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

@keyframes popupFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes floatAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes glowPulse {
    0% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.3); }
    50% { text-shadow: 0 0 15px rgba(255, 255, 255, 0.7), 0 0 10px var(--accent-color); }
    100% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.3); }
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    position: relative;
    height: 100vh;
    background-color: #121212; /* Fallback dark color */
    overflow-x: hidden;
    overflow-y: hidden; /* Thay đổi từ auto thành hidden */
    animation: fadeIn 1s ease-out;
    font-size: 1rem; /* Cơ bản cho font-size */
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../media/background.gif') center/cover fixed no-repeat;
    opacity: 0.7;
    filter: brightness(0.7) contrast(1.1);
    z-index: -2;
}

/* Black overlay layer */
.background-overlay::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    opacity: 0.5;
    z-index: -1;
}

.container {
    padding: 0; /* Giảm padding từ 20px xuống 0 */
    margin: 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100vh;
    justify-content: flex-start;
    gap: 5px;
    overflow-x: hidden;
    overflow-y: auto; /* Cho phép container có thể cuộn nếu cần */
    width: 100%;
    max-width: 100vw;
}

.header {
    width: 100%;
    position: relative;
    margin-bottom: 10px; /* Giảm margin-bottom từ 20px xuống 10px */
    margin-top: 10px; /* Giảm margin-top từ 20px xuống 10px */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 1rem; /* Sử dụng rem thay vì px */
    animation: fadeIn 1.2s ease-out;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    box-shadow: var(--shadow-standard);
    backdrop-filter: blur(5px);
}

.header-left {
    position: absolute;
    top: 10px; /* Giảm top từ 20px xuống 10px */
    left: 10px; /* Giảm left từ 20px xuống 10px */
    z-index: 10;
}

.header-right {
    margin-top: 10px;
    width: 100%;
    text-align: center;
}

.logo {
    width: 80px; /* Giảm kích thước từ 100px xuống 80px */
    height: 80px; /* Giảm kích thước từ 100px xuống 80px */
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    animation: pulseGlow 3s infinite ease-in-out;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(10deg);
}

.title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5em; /* Giảm font size từ 3em xuống 2.5em */
    letter-spacing: 1px;
    background: linear-gradient(45deg, #ffffff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
    animation: glowPulse 3s infinite;
    margin-bottom: 5px; /* Giảm margin-bottom từ 10px xuống 5px */
    margin-top: 0;
}

/* Thêm tagline dưới tiêu đề */
.tagline {
    color: #fff;
    font-family: var(--font-special);
    font-size: 1.2em;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-top: -10px;
    margin-bottom: 20px;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.slogan {
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 30px;
    animation: fadeIn 1.8s ease-out;
}

.button-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px; /* Giảm margin-top từ 25px xuống 10px */
    width: 100%;
    animation: fadeIn 2s ease-out;
}

.button {
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.2px;
    font-size: 1em;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-color);
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 220px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.button i {
    font-size: 1.2em;
}

.footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9em;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    text-align: center;
    width: auto;
    z-index: 1000;
    animation: fadeIn 2.2s ease-out;
}

.footer:hover {
    opacity: 1;
}

.dev-link {
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    font-family: var(--font-special);
    font-weight: 500;
}

.dev-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.dev-link:hover {
    color: #7289da;
}

.dev-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
    background-color: #7289da;
}

.donate {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 20px;
    background-color: var(--accent-color);
    backdrop-filter: blur(5px);
    border: 1px solid hsla(330, 100%, 90%, 0.3);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-special);
    font-weight: 500;
    font-size: 0.95em;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 2.4s ease-out;
    display: flex;
    align-items: center;
    gap: 8px;
}

.donate:hover {
    background-color: hsl(330, 100%, 85%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px hsla(330, 100%, 90%, 0.4);
}

.server-status {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    padding: 18px;
    border-radius: 16px;
    margin: 10px auto;
    width: 90%;
    max-width: 420px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-color);
    color: #fff;
    overflow: visible;
    overflow-x: hidden;
    z-index: 2;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    animation: fadeIn 1.8s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
}

.server-status:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.server-status h2 {
    color: #fff;
    margin: 0 0 18px 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.3em;
    letter-spacing: 1px;
    text-shadow: none;
    padding: 5px 15px;
    background: var(--gradient-primary);
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

.server-status h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1));
    border-radius: 2px;
}

.voice-channels {
    position: relative;
    max-height: 350px;
    overflow-y: auto;
    z-index: 1;
    padding-bottom: 40px;
}

.voice-channels::-webkit-scrollbar {
    width: 6px;
}

.voice-channels::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.voice-channels::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.channel-group {
    position: relative;
    padding-bottom: 20px;
    animation: fadeIn 0.5s ease-out;
}

.voice-channel {
    position: relative;
    margin-bottom: 8px;
    border-radius: 8px;
    background-color: hsla(330, 100%, 90%, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: visible;
    z-index: 1;
    animation: fadeIn 0.5s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.voice-channel:hover {
    z-index: 200;
    background-color: hsla(330, 100%, 90%, 0.5);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.channel-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--gradient-primary);
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.voice-channel:hover .channel-header {
    background: var(--gradient-primary);
}

.channel-members {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background-color: hsla(330, 100%, 90%, 0.95);
    border: 1px solid hsla(330, 100%, 90%, 0.15);
    border-radius: 0 0 8px 8px;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.channel-members::before {
    display: none;
}

.channel-members::-webkit-scrollbar {
    width: 4px;
}

.channel-members::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.channel-members::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.channel-member {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.channel-member:hover {
    background-color: hsla(330, 100%, 90%, 0.15);
    transform: translateX(2px);
}

.member-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.member-avatar:hover {
    transform: scale(1.1);
}

.member-name {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
}

.channel-category {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 15px 0 10px 0;
    font-family: var(--font-special);
    animation: fadeIn 1s ease-out;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
    padding-left: 2px;
}

.voice-channel.hot {
    background-color: hsla(330, 100%, 90%, 0.15);
    border-left: 3px solid hsla(330, 100%, 90%, 1);
    animation: pulseGlow 2s infinite ease-in-out;
}

.channel-name {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 0.95em;
    font-family: var(--font-body);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.channel-icon {
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.voice-channel:hover .channel-icon {
    transform: scale(1.2) rotate(5deg);
    opacity: 1;
}

.member-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    font-family: var(--font-special);
    min-width: 80px;
    text-align: right;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 3px 10px;
}

.voice-channel:hover .member-count {
    color: #fff;
    background-color: rgba(88, 101, 242, 0.4);
}

.online-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #43b581;
    border-radius: 50%;
    margin-right: 5px;
    animation: pulseGlow 2s infinite ease-in-out;
}

.member-list {
    margin-top: 10px;
    font-size: 0.9em;
}

.member-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
    animation: fadeIn 0.3s ease-out;
}

.member-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
}

/* Popup styles */
.popup {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 2000;
    animation: popupFade 0.3s ease-in-out;
}

.popup-content {
    position: relative;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 20px;
    width: 280px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s ease-out;
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent-color);
    color: white;
}

.close-popup {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 24px;
    font-weight: bold;
    color: hsla(330, 100%, 40%, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 5px;
}

.close-popup:hover {
    color: hsla(330, 100%, 40%, 1);
    transform: rotate(90deg);
}

.popup-header h3 {
    color: white;
    font-family: var(--heading-font);
    margin-bottom: 20px;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bank-img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 15px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.bank-img:hover {
    transform: scale(1.05);
}

.note {
    color: var(--primary-color);
    font-family: var(--font-special);
    font-size: 1.1em;
    margin: 10px 0 0 0;
}

/* Overlay behind popup */
.popup::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.popup.active::before {
    opacity: 1;
}

/* Discord link styles */
.discord-invite {
    margin: 30px 0;
    animation: fadeIn 2s ease-out;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--accent-color);
    border-radius: 30px;
    padding: 15px 20px;
    width: 90%;
    max-width: 450px;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.search-box:hover {
    transform: translateY(-5px);
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.button-group {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Typing effect for discord-text */
.discord-text {
    color: #fff;
    font-family: var(--font-special);
    font-weight: 500;
    font-size: 1.2em;
    flex-grow: 1;
    cursor: pointer;
    letter-spacing: 0.8px;
    padding: 0;
    user-select: all;
    white-space: nowrap;
    overflow: visible;
    position: relative;
    display: inline-block;
    max-width: 100%;
    width: auto;
    border-right: none;
}

/* Thay đổi cách hiển thị dấu nháy */
.discord-text::after {
    content: none;
}

/* Thêm CSS cho phần tử con chứa dấu nháy */
.discord-text .cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: #fff;
    vertical-align: bottom;
    margin-left: 1px;
    position: relative;
    top: 1px;
    animation: blink 0.75s step-end infinite;
}

.discord-text.typed,
.discord-text.deleting {
    width: auto;
}

.copy-btn, .join-btn {
    background-color: hsla(340, 80%, 85%, 0.3);
    color: #fff;
    border: 1px solid hsla(340, 80%, 85%, 0.2);
    border-radius: 20px;
    padding: 8px 15px;
    font-family: var(--font-special);
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.copy-btn:hover, .join-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.join-btn {
    background-color: #5865F2;
    color: white;
}

.join-btn:hover {
    background-color: #4752C4;
}

.copy-btn.copied {
    background-color: hsla(340, 80%, 85%, 0.9);
    animation: fadeIn 0.3s ease-out;
}

/* Style for no active channels */
.no-active-channels {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
    text-align: center;
    padding: 12px;
    font-style: italic;
    animation: fadeIn 0.5s ease-out;
}

.error-message {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 15px;
    font-style: italic;
    animation: fadeIn 0.5s ease-out;
}

/* Media queries for small screens */
@media screen and (max-width: 768px) {
    .search-box, .server-status {
        width: 95%;
    }
    
    .discord-text {
        font-size: 0.9em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }
    
    .copy-btn, .join-btn {
        padding: 5px 10px;
        font-size: 0.8em;
        min-width: 50px;
    }
    
    .button-group {
        gap: 5px;
    }
    
    .title {
        font-size: 2.5em;
    }
    
    .voice-channels {
        max-height: 250px;
    }
    
    .countdown-container {
        position: relative;
        top: unset;
        right: unset;
        margin: 20px auto;
        width: 90%;
    }
    
    .countdown-title {
        font-size: 1.3em;
    }
    
    .channel-header {
        padding: 10px;
    }
    
    .member-count {
        min-width: 60px;
        font-size: 0.8em;
    }
    
    .button-container {
        flex-direction: column;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        padding: 1rem; /* Sử dụng rem thay vì px */
    }
    
    .header-left {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 15px;
    }
    
    .tagline {
        font-size: 1em;
    }
}

@media screen and (max-width: 480px) {
    .header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .header-left {
        position: relative;
        margin-bottom: 20px;
    }
    
    .header-right {
        margin-top: 20px;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .title {
        font-size: 2em;
    }
    
    .discord-text {
        max-width: 120px;
    }
    
    .voice-channels {
        max-height: 200px;
    }
    
    .member-name {
        font-size: 0.8em;
    }
    
    .button {
        width: 90%;
        padding: 12px 15px;
    }
    
    .countdown-timer {
        gap: 15px;
    }
    
    #days, #hours, #minutes, #seconds {
        font-size: 20px;
        padding: 5px 8px;
        min-width: 30px;
    }
    
    .countdown-label {
        font-size: 10px;
    }
}

/* Open channel members styling */
.channel-members.active {
    padding: 8px 12px;
    max-height: 120px;
    opacity: 1;
    overflow-y: auto;
    z-index: 199;
    animation: fadeIn 0.3s ease-out;
}

/* Ensure container doesn't overlap */
.discord-invite, .button-container {
    position: relative;
    z-index: 1;
    margin-top: 10px;
}

/* Update information styling */
.last-update {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 10px;
    font-style: italic;
    animation: fadeIn 1s ease-out;
}

/* Countdown box styles */
.countdown-container {
    position: fixed;
    top: 20px; /* Điều chỉnh từ bottom: 70px về top: 20px như cũ */
    right: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    padding: 10px; /* Giữ nguyên padding đã giảm */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    font-family: var(--font-special);
    backdrop-filter: blur(10px);
    animation: fadeIn 1.5s ease-out;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 90vw;
    box-sizing: border-box;
    /* Giảm kích thước tổng thể để tiết kiệm không gian */
    transform: scale(0.9);
    transform-origin: top right;
}

.countdown-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.countdown-title {
    font-size: 1em; /* Giảm từ 1.3em xuống 1em */
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px; /* Giảm từ 10px xuống 5px */
    letter-spacing: 0.5px;
    animation: fadeIn 0.5s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px; /* Giảm từ 10px xuống 5px */
}

.countdown-timer {
    display: flex;
    gap: 10px;
    justify-content: center;
    animation: fadeIn 0.8s ease-out;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 30px; /* Giảm từ 40px xuống 30px */
    animation: floatAnimation 5s infinite ease-in-out;
    animation-delay: calc(var(--i) * 0.5s);
}

.countdown-timer span {
    font-weight: bold;
    color: #ffffff;
}

#days, #hours, #minutes, #seconds {
    font-size: 18px; /* Giảm từ 24px xuống 18px */
    font-weight: 700;
    color: white;
    background: var(--gradient-primary);
    border-radius: 8px; /* Giảm từ 10px xuống 8px */
    padding: 5px 8px; /* Giảm từ 8px 12px xuống 5px 8px */
    min-width: 30px; /* Giảm từ 40px xuống 30px */
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.countdown-label {
    font-size: 10px; /* Giảm từ 12px xuống 10px */
    color: hsla(330, 100%, 85%, 0.9);
    margin-top: 3px; /* Giảm từ 5px xuống 3px */
    font-weight: 500;
}

/* Link button styles */
.button-link {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

/* Hover effects for link buttons */
.button:hover, .button-link:hover {
    background-color: hsla(340, 80%, 85%, 0.5);
    border-color: hsla(340, 80%, 85%, 0.4);
    transform: translateY(-3px); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.exam-date {
    font-weight: 500;
    margin-bottom: 15px; /* Giảm từ 15px xuống 5px */
    color: hsl(330, 100%, 90%);
    text-align: center;
    font-size: 14px; /* Giảm từ 16px xuống 14px */
    letter-spacing: 0.2px;
    animation: fadeIn 1s ease-out;
    text-shadow: 0 1px 2px hsla(330, 100%, 40%, 0.2);
}

.title, h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    letter-spacing: -0.02em; /* Làm cho chữ gần nhau hơn một chút */
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem; /* Đồng bộ khoảng cách dưới các tiêu đề */
    line-height: 1.3;
}

/* Thêm style cụ thể cho từng cấp độ heading */
h1 {
    font-size: 2.4em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.5em;
    color: #000;

}

h4 {
    font-size: 1.5em;
}

h5 {
    font-size: 1.3em;
}

h6 {
    font-size: 1.1em;
    font-weight: 500;
}

/* Cập nhật lại style cho heading trong các container khác nhau */
.server-status h2 {
    color: #fff;
    margin: 0 0 15px 0;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1.2em;
    letter-spacing: 0.3px;
    text-shadow: none;
}

/* Thêm hiệu ứng hover cho headings có thể click được */
h1[role="button"], h2[role="button"], h3[role="button"], h4[role="button"], h5[role="button"], h6[role="button"] {
    cursor: pointer;
    transition: color 0.3s ease;
}

h1[role="button"]:hover, h2[role="button"]:hover, h3[role="button"]:hover, 
h4[role="button"]:hover, h5[role="button"]:hover, h6[role="button"]:hover {
    color: #7289da;
}

/* Điều chỉnh font-family của các heading chính */
.header-right h1, .header-right h2 {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
}

/* Responsive adjustments cho các heading */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.7em;
    }
    
    h3 {
        font-size: 1.5em;
    }
    
    h4, h5, h6 {
        font-size: 1.2em;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    h3, h4, h5, h6 {
        font-size: 1.1em;
    }
}

/* Thêm hiệu ứng hover cho các số */
.countdown-box:hover #days,
.countdown-box:hover #hours,
.countdown-box:hover #minutes,
.countdown-box:hover #seconds {
    color: hsl(330, 100%, 90%);
}