/* ANNOUNCEMENT BANNER STYLES */
#announcement-banner-container {
    position: fixed;
    top: 1.5rem;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

#announcement-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between; /* This will separate content and the close button */
    pointer-events: auto;
    text-decoration: none; /* In case the element is an <a> tag */
    
    padding: 0.75rem 1rem 0.75rem 1.25rem;
    max-width: calc(100% - 3rem);
    
    background: rgba(251, 191, 36, 0.25);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    
    border: 1px solid rgba(251, 191, 36, 0.5);
    border-radius: 16px;
    
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
    font-weight: 600;

    box-shadow: 0 0 25px rgba(251, 191, 36, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    
    opacity: 0;
    transform: translateY(-20px);
    
    /* Animations */
    animation: fadeInDown 0.5s 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
               breathingGlow 4s infinite ease-in-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

#announcement-banner.closing {
    animation: fadeOutUp 0.4s ease-in forwards;
}

#announcement-banner:hover {
    transform: translateY(-4px) scale(1.02);
    background: rgba(251, 191, 36, 0.4);
    box-shadow: 0 8px 40px rgba(251, 191, 36, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

#announcement-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

#announcement-banner:hover::before {
    left: 100%;
}

@keyframes fadeInDown {
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to { 
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes breathingGlow {
    0%, 100% { box-shadow: 0 0 25px rgba(251, 191, 36, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset; }
    50% { box-shadow: 0 0 35px rgba(251, 191, 36, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1) inset; }
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
}

.announcement-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

#announcement-close-btn {
    background: none;
    border: none;
    padding: 0.25rem;
    margin-left: 0.5rem;
    cursor: pointer;
    color: inherit;
    line-height: 0;
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

#announcement-close-btn:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0B1C36 0%, #1A2A4D 40%, #2A3B65 100%);
    color: #E0E7FF;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(45deg, #fff, transparent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 0 8px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 1);
    animation: shootingStar 3s linear infinite;
    opacity: 0;
}

@keyframes shootingStar {
    0% { transform: translateX(-100px) translateY(-100px) rotate(45deg); opacity: 0; }
    10%, 90% { opacity: 1; }
    100% { transform: translateX(calc(100vw + 100px)) translateY(calc(100vh + 100px)) rotate(45deg); opacity: 0; }
}

.shooting-star:before {
    content: ''; position: absolute; top: 50%; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    width: 50px; transform: translateY(-50%);
}

.stars-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden; z-index: 0; pointer-events: none;
}

.star {
    position: absolute; background-color: #FFFFFF; border-radius: 50%;
    animation: twinkle 5s infinite ease-in-out;
    box-shadow: 0 0 5px #FFF, 0 0 10px #FFF, 0 0 15px #E0E7FF;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.content-wrapper {
    position: relative; z-index: 1; min-height: 100vh; display: flex;
    align-items: center; justify-content: center; padding: 2rem 1rem;
}

.profile-card {
    background: rgba(11, 28, 54, 0.6); backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(176, 196, 222, 0.25); border-radius: 24px;
    padding: 2rem 1.5rem; width: 100%; max-width: 420px; text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 2px 4px rgba(255, 255, 255, 0.1) inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; overflow: hidden; animation: fadeInUp 0.8s ease-out;
}

.profile-card::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: left 0.6s ease; pointer-events: none;
}
.profile-card:hover::before { left: 100%; }
.profile-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 2px 4px rgba(255, 255, 255, 0.15) inset;
}

@media (min-width: 640px) { .profile-card { padding: 2.5rem; } }

.profile-image-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem auto;
}

.profile-image-container {
    width: 100%; height: 100%; border-radius: 50%;
    overflow: hidden; border: 4px solid rgba(224, 231, 255, 0.7);
    box-shadow: 0 0 25px rgba(176, 196, 222, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.1) inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.profile-image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(176, 196, 222, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.2) inset;
}
.profile-image-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.profile-image-container:hover img { transform: scale(1.1); }

.profile-name {
    font-family: 'Nunito Sans', sans-serif; font-size: 2.4rem; color: #FFFFFF; font-weight: 800;
    margin-bottom: 0.5rem; text-shadow: 0 0 15px rgba(224, 231, 255, 0.8), 0 0 30px rgba(100, 150, 255, 0.4);
    letter-spacing: 0.25px; text-transform: none;
    background: linear-gradient(135deg, #E0E7FF 0%, #B0C4DE 50%, #FFFFFF 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.profile-title {
    font-size: 0.95rem; color: #B0C4DE; font-weight: 300; margin-bottom: 2rem;
    line-height: 1.6; opacity: 0.9;
}

.links-container { display: flex; flex-direction: column; gap: 1rem; }

.link-button {
    display: flex; align-items: center; justify-content: flex-start;
    background: rgba(42, 59, 101, 0.6); color: #E0E7FF; font-weight: 600;
    padding: 1rem 1.5rem; border-radius: 16px; text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(176, 196, 222, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative; overflow: hidden; text-align: left;
}
.link-button:focus-visible {
    outline: 2px solid #88A2FF; outline-offset: 2px;
    box-shadow: 0 8px 20px rgba(176, 196, 222, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 0 0 2px #88A2FF;
}
.link-button::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}
.link-button:hover::before { left: 100%; }
.link-button::after {
    content: ''; position: absolute; right: 1.5rem; top: 50%; width: 22px; height: 22px;
    background-color: currentColor; -webkit-mask-size: contain; mask-size: contain;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
    transform: translateY(-50%) translateX(-10px); opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"/></svg>');
}
.link-button:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.link-button.discord-copy-button:not(.copied)::after {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>');
}
.link-button.discord-copy-button.copied:not(.fading-out-checkmark)::after {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>');
    opacity: 1; transform: translateY(-50%) translateX(0);
}
.link-button.discord-copy-button.copied.fading-out-checkmark::after {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>');
    opacity: 0;
}
.link-button:hover {
    background: rgba(176, 196, 222, 0.4); color: #FFFFFF; transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(176, 196, 222, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border-color: rgba(224, 231, 255, 0.6);
}
.link-button:hover, .link-button.discord-copy-button.copied { padding-right: 3rem; }
.link-button:active { transform: translateY(-2px) scale(1.01); }
.link-button svg {
    width: 24px; height: 24px; margin-right: 1rem; fill: currentColor;
    transition: all 0.3s ease; flex-shrink: 0;
}
.link-button:hover svg { transform: scale(1.15); filter: drop-shadow(0 0 6px rgba(224, 231, 255, 0.5)); }

.link-button-icon-wrapper {
    width: 24px; height: 24px; margin-right: 1rem; display: inline-block;
    vertical-align: middle; position: relative; flex-shrink: 0;
}
.link-button-icon {
    width: 100%; height: 100%; object-fit: contain; display: block;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.link-button .roblox-logo-single, .link-button .paypal-logo-single {
    filter: none;
    transform: scale(1);
    transition: filter 0.3s ease, transform 0.3s ease;
}
.link-button:hover .roblox-logo-single, .link-button:hover .paypal-logo-single {
    filter: grayscale(100%) brightness(250%) contrast(100%) drop-shadow(0 0 6px rgba(224, 231, 255, 0.5));
    transform: scale(1.15);
}

.button-text-wrapper { display: flex; flex-direction: column; line-height: 1.2; }
.button-main-text { font-size: 1em; }
.button-subtitle {
    font-size: 0.8em; color: #A0A8C0; opacity: 0.9; margin-top: 1px; font-weight: 400;
    transition: opacity 0.2s ease-in-out;
}
.footer-text { font-size: 0.8rem; color: #A0A8C0; margin-top: 2.5rem; opacity: 0.8; }

@media (max-width: 480px) {
    #announcement-banner { padding: 0.75rem 1rem; }
    .profile-card { margin: 1rem; padding: 1.5rem 1.2rem; }
    .profile-name { font-size: 2rem; letter-spacing: 0.1px; }
    .link-button { padding: 0.9rem 1rem; }
    .link-button svg, .link-button-icon-wrapper { width: 20px; height: 20px; margin-right: 0.7rem; }
    .button-subtitle { font-size: 0.75em; }
    .link-button::after { width: 20px; height: 20px; right: 1rem; }
    .link-button:hover, .link-button.discord-copy-button.copied { padding-right: 2.5rem; }
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ripple { to { transform: translate(-50%, -50%) scale(4); opacity: 0; } }
.profile-card { animation: fadeInUp 0.8s ease-out; }
.link-button { animation: fadeInUp 0.8s ease-out backwards; }
.link-button:nth-child(1) { animation-delay: 0.1s; }
.link-button:nth-child(2) { animation-delay: 0.2s; }
.link-button:nth-child(3) { animation-delay: 0.3s; }
.link-button:nth-child(4) { animation-delay: 0.4s; }
.link-button:nth-child(5) { animation-delay: 0.5s; }
.link-button:nth-child(6) { animation-delay: 0.6s; }
.link-button:nth-child(7) { animation-delay: 0.7s; }
.link-button:nth-child(8) { animation-delay: 0.8s; }
.link-button:nth-child(9) { animation-delay: 0.9s; }
.link-button:nth-child(10) { animation-delay: 1.0s; }

/* STATUS ICON STYLES */
#status-indicator-container {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    
    background-color: #1A2A4D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#status-indicator-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    
    -webkit-mask-size: 100%;
    mask-size: 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

#status-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 16px;
    background: #0B1C36;
    border: 1px solid rgba(176, 196, 222, 0.3);
    border-radius: 12px;
    color: #E0E7FF;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, bottom 0.2s ease;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 20;
    width: max-content;
}

#status-indicator-container:hover #status-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 15px);
}

#status-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #0B1C36 transparent transparent transparent;
}

#status-tooltip-availability {
    font-size: 0.75rem;
    font-style: italic;
    color: #FBBF24; /* amber-400 */
    margin-top: 0.5rem;
}

#status-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#status-modal.hidden {
    opacity: 0;
    visibility: hidden;
}

#status-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

#status-modal-content {
    position: relative;
    background: rgba(11, 28, 54, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(176, 196, 222, 0.3);
    border-radius: 18px;
    padding: 1.75rem;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

#status-modal:not(.hidden) #status-modal-content {
    transform: scale(1);
    opacity: 1;
}

#status-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #E0E7FF;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
#status-modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.schedule-list li {
    border-bottom: 1px solid rgba(176, 196, 222, 0.15);
}
.schedule-list li:last-child {
    border-bottom: none;
}

/* Fix for Cumulative Layout Shift (CLS) */
.profile-name {
    /* Sets a minimum height to reserve space for the text before the font loads */
    min-height: 46px; 
}

.profile-title {
    min-height: 24px;
}