.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    padding: 40px;
    position: relative;
    overflow-y: auto;
    max-height: 80vh;
    animation: fadeIn 0.3s ease-in;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
    user-select: none;
}

.modal-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.modal-content a {
    color: #66b3ff;
    text-decoration: none;
    transition: color 0.2s;
}

.modal-content a:hover {
    color: #99ccff;
    text-decoration: underline;
}

.modal-content h2 {
    margin-top: 0;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
}

.modal-content h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 15px 0 10px;
}

.modal-content p {
    line-height: 1.6;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.modal-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.modal-content li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.modal-content li:last-child {
    border-bottom: none;
}

.modal-content li strong {
    color: #fff;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.modal-button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: 180px;
}

.modal-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.modal-button:active {
    transform: translateY(0);
}

.discord-join-btn {
    display: inline-block;
    background: rgba(114, 137, 218, 0.2);
    border: 2px solid rgba(114, 137, 218, 0.5);
    color: #7289DA;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: 16px;
}

.discord-join-btn:hover {
    background: rgba(114, 137, 218, 0.3);
    border-color: #7289DA;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.easter-egg-hidden {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: transparent;
    top: 10px;
    left: 10px;
    opacity: 0;
    transition: opacity 0.4s;
}

.easter-egg-hidden:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
}

.easter-egg-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.easter-egg-content {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    padding: 40px;
    position: relative;
    color: #fff;
    animation: fadeIn 0.3s ease-in;
}

.easter-egg-content h2 {
    margin-top: 0;
    font-size: 1.8rem;
    color: #fff;
}

.easter-egg-content p {
    line-height: 1.6;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.easter-egg-content img {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    cursor: pointer;
}

.easter-egg-content img:hover {
    opacity: 0.8;
}

.modern-button {
    background: linear-gradient(135deg, #4a90e2, #50e3c2);
    color: white;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin: 5px;
}

.modern-button:hover {
    background: linear-gradient(135deg, #50e3c2, #4a90e2);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.modern-button:active {
    transform: translateY(1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.modern-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-45deg);
    transition: left 0.5s ease;
}

.modern-button:hover::before {
    left: 100%;
}

.capplehub-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.capplehub-modal-content {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    padding: 40px;
    position: relative;
    overflow-y: auto;
    max-height: 80vh;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.capplehub-modal-content::-webkit-scrollbar {
    width: 8px;
}

.capplehub-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.capplehub-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.capplehub-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.capplehub-modal-content h2 {
    margin-top: 0;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

.capplehub-modal-content p {
    line-height: 1.8;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.capplehub-modal-content a {
    text-decoration: none;
    color: #66b3ff;
    font-weight: 600;
    transition: color 0.2s;
}

.capplehub-modal-content a:hover {
    color: #99ccff;
    text-decoration: underline;
}

.capplehub-modal-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.capplehub-modal-content li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.capplehub-modal-content li:last-child {
    border-bottom: none;
}

.capplehub-modal-content li strong {
    color: #fff;
}

.capplehub-modal-content img {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.capplehub-modal-content img:hover {
    opacity: 0.8;
}

.capplehub-dropdown {
    position: relative;
    display: inline-block;
    margin-top: 20px;
}

.capplehub-dropdown-button {
    background-color: #0078D7;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.capplehub-dropdown-button:hover {
    background-color: #005BBB;
    transform: scale(1.05);
}

.capplehub-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 250px;
    max-height: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    padding: 10px;
    overflow-y: auto;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.capplehub-dropdown-content.show {
    display: block;
    transform: scaleY(1);
    opacity: 1;
}

.capplehub-dropdown-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.capplehub-dropdown-content li {
    padding: 8px 0;
    color: #333;
}

.capplehub-dropdown-content a {
    text-decoration: none;
    color: #0078D7;
    font-weight: bold;
    transition: color 0.3s ease;
}

.capplehub-dropdown-content a:hover {
    color: #005BBB;
}

#discord-embed {
    font-family: Arial, sans-serif;
    background: rgba(35, 39, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFF;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

#server-name {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    color: #fff;
}

.channels, .members {
    font-size: 14px;
    margin-bottom: 15px;
}

.channel, .member {
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(44, 47, 51, 0.6);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.member {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.member img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 10px;
}

.status {
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    padding: 3px 8px;
}

.status.online { background-color: #43B581; color: #FFF; }
.status.idle { background-color: #FAA61A; color: #FFF; }
.status.dnd { background-color: #F04747; color: #FFF; }
.status.offline { background-color: #747F8D; color: #FFF; }

.owner-tag {
    font-weight: bold;
    color: #FFCC00;
    margin-left: 5px;
    font-size: 0.9rem;
}

.friend-tag {
    font-weight: bold;
    color: #7289DA;
    margin-left: 5px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .modal-content, .capplehub-modal-content {
        width: 95%;
        padding: 25px;
        max-height: 85vh;
    }
    
    .modal-content h2, .capplehub-modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .modal-content p, .capplehub-modal-content p {
        font-size: 0.9rem;
    }
    
    .modal-close {
        font-size: 28px;
        top: 15px;
        right: 15px;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-button {
        min-width: 100%;
        width: 100%;
    }
    
    .discord-join-btn {
        width: 100%;
        text-align: center;
    }
    
    #discord-embed {
        padding: 15px;
    }
    
    #server-name {
        font-size: 16px;
    }
    
    .channels, .members {
        font-size: 13px;
    }
    
    .easter-egg-content {
        width: 95%;
        padding: 25px;
    }
    
    .easter-egg-content h2 {
        font-size: 1.5rem;
    }
    
    .capplehub-dropdown-content {
        min-width: 200px;
        max-height: 150px;
    }
    
    .context-menu {
        min-width: 180px;
    }
    
    .context-menu li {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

