body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1e1e1e;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    user-select: auto;
}

html,
body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background: #3e3e3e;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4e4e4e;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #3e3e3e #1e1e1e;
}

.burger-menu {
    font-size: 30px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    z-index: 100;
    background-color: #7289da;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.burger-menu:hover {
    background-color: #4e5d94;
    transform: scale(1.1);
}

.burger-icon .line {
    stroke: #fff;
    stroke-width: 5;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-menu.open .line1 {
    transform: rotate(45deg) translate(10px, -8px);
}

.burger-menu.open .line2 {
    opacity: 0;
}

.burger-menu.open .line3 {
    transform: rotate(-45deg) translate(-23px, -2px);
}

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 280px;
    background: #23272a;
    /* Darker background */
    display: flex;
    z-index: 99;
    flex-direction: column;
    justify-content: flex-start;
    /* Align items to the top */
    align-items: flex-start;
    padding-top: 0;
    /* Space for the top area */
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5);
    border-right: 1px solid #2c2f33;
    box-sizing: border-box;
}

.sidebar-header {
    width: 100%;
    padding: 25px 20px 25px 100px;
    background: #2c2f33;
    /* Slightly lighter header background */
    display: flex;
    align-items: center;
    border-bottom: 1px solid #1e2124;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.sidebar-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #7289da;
}

.sidebar-header h3 {
    color: #fff;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-bar.open {
    visibility: visible;
    transform: translateX(0);
}

.nav-bar a {
    width: 100%;
    padding: 15px 30px;
    /* Adjusted padding to match */
    box-sizing: border-box;
    text-decoration: none;
    font-size: 18px;
    color: #b9bbbe;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    margin: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border-left: 4px solid transparent;
}

.nav-bar a:hover {
    background: rgba(114, 137, 218, 0.1);
    /* Subtle hover background */
    color: #fff;
    border-left-color: #7289da;
    /* Accent color on the left */
    padding-left: 35px;
    /* Slight shift effect */
}

.nav-bar a i {
    min-width: 30px;
    /* Fixed space for icons */
    font-size: 20px;
    margin-right: 15px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .invite-button {
        position: absolute;
        top: 35px;
        right: 15px;
        z-index: 2;
        font-size: 10px;
        content: "Invite";
    }

    .discord-button {
        background: transparent;
        position: relative;
        padding: 5px 60px;
        /* Increased padding to make it wider */
        display: flex;
        align-items: center;
        font-size: 17px;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        border: 1px solid rgba(88, 101, 242, 1);
        border-radius: 25px;
        outline: none;
        overflow: hidden;
        color: rgba(88, 101, 242, 1);
        transition: color 0.3s 0.1s ease-out;
        text-align: center;
    }

    .code {
        position: relative;
        display: inline-block;
        background-color: #000000;
        border: #2c2f33;
        font-style: italic;
        color: #f0f0f0;
        padding: 5px 5px 5px 5px;
        /* Adjusted padding to accommodate the button */
        border-radius: 5px;
        margin-bottom: -10px;
        overflow-x: auto;
    }

    .copy-button {
        position: absolute;
        top: 30%;
        right: 0px;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: #f0f0f0;
        cursor: pointer;
        font-size: 16px;
        opacity: 1;
        transition: opacity 0.3s ease;
    }
}



header {
    background-color: #2c2f33;
    color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
    background-attachment: fixed;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 150px;
    /* Prevent content jump on reload */
    overflow: hidden;
}


.bot-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

@media screen and (max-width: 768px) {
    .bot-info {
        margin-top: 50px;
    }

    .bot-pfp {
        width: 50px;
        height: 50px;
    }
}


.bot-pfp {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 20px;
}


.invite-button {
    position: fixed;
    top: 40px;
    /* Lowered position */
    right: 30px;
    z-index: 100;
}

.invite-button a {
    background-color: #7289da;
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.invite-button a:hover {
    background-color: #4e5d94;
    transform: translateY(-2px);
}

header h1 {
    margin: 0;
}

.bot-details {
    text-align: left;
}

main {
    padding: 20px;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#searchBar {
    width: 100%;
    max-width: 400px;
    padding: 10px 20px 10px 50px;
    border: 2px solid #7289da;
    border-radius: 20px;
    background-color: #2c2f33;
    color: #f0f0f0;
    outline: none;
    box-sizing: border-box;
}

.search-container lord-icon {
    margin-right: -48px;
    pointer-events: none;
    transform: scale(0.8);
}

.command-list {
    max-width: 800px;
    margin: 0 auto;
    flex: 1;
}

.command {
    background-color: #2c2f33;
    border: 1px solid #7289da;
    border-radius: 8px;
    padding: 20px;
    padding-bottom: 10px;
    margin-bottom: 15px;
    opacity: 1;
}

.command h3 {
    margin-top: 0;
    color: #7289da;
}

footer {
    background-color: #2c2f33;
    color: white;
    text-align: center;
    padding: 20px 10px;
    width: 100%;
    position: relative;
    bottom: 0;
    left: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    font-family: 'Arial', sans-serif;
    background: rgba(35, 39, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(114, 137, 218, 0.3);
}

.footer-content {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-creator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-creator img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #7289da;
    object-fit: cover;
    /* Prevent squishing */
}

.footer-creator span {
    color: #b9bbbe;
    font-size: 14px;
}

.footer-creator strong {
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #b9bbbe;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #7289da;
    transform: translateY(-2px);
}

.footer-links a i {
    font-size: 18px;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #72767d;
    margin: 0;
    font-size: 13px;
}

footer a {
    color: #7289da;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #5865f2;
}

.footer-text {
    margin: 10px 0;
}

/* Glassmorphism for Updates and Connect Discord */
.updates,
.connect-discord {
    background: rgba(44, 47, 51, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 40px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
    max-width: 1320px;
    /* Same as content-wrapper (1400 - 2*40 padding) */
    margin-left: auto;
    margin-right: auto;
}

.updates:hover,
.connect-discord:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(114, 137, 218, 0.3);
}

.updates h2,
.connect-discord h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    margin-top: 0;
}

/* Update Cards */
.update {
    background: rgba(32, 34, 37, 0.6);
    padding: 20px;
    margin-bottom: 15px;
    margin-right: 10px;
    /* Space between card and scrollbar on PC */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid #7289da;
    border-radius: 8px;
    /* Fully rounded on all corners */
    transition: background 0.2s ease;
}

.update:hover {
    background: rgba(44, 47, 51, 0.8);
}

.update .date {
    color: #7289da;
    font-size: 0.9em;
    opacity: 0.9;
}

.update h3 {
    margin-top: 0;
    color: #fff;
    font-size: 18px;
}

.update p {
    color: #dcddde;
    margin-bottom: 0;
}

.bad-update {
    background: rgba(32, 34, 37, 0.6);
    padding: 20px;
    margin-bottom: 15px;
    margin-right: 10px;
    /* Space between card and scrollbar on PC */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid #f04747;
    border-radius: 8px;
    /* Fully rounded on all corners */
    transition: background 0.2s ease;
}

.bad-update:hover {
    background: rgba(44, 47, 51, 0.8);
}

.bad-update .date {
    color: #f04747;
    font-size: 0.9em;
    opacity: 0.9;
}

.bad-update h3 {
    margin-top: 0;
    color: #fff;
    font-size: 18px;
}

.bad-update p {
    color: #dcddde;
    margin-bottom: 0;
}

.discord-button {
    background: transparent;
    position: relative;
    padding: 5px 50px;
    display: flex;
    align-items: center;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(88, 101, 242, 1);
    border-radius: 25px;
    outline: none;
    overflow: hidden;
    color: rgba(88, 101, 242, 1);
    transition: color 0.3s 0.1s ease-out;
    text-align: center;
}

.discord-button span {
    margin: 10px;
}

.discord-button::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    content: '';
    border-radius: 50%;
    display: block;
    width: 20em;
    height: 20em;
    left: -3em;
    text-align: center;
    transition: box-shadow 0.5s ease-out;
    z-index: -1;
}

.discord-button:hover {
    color: #fff;
    border: 1px solid rgba(88, 101, 242, 1);
}

.discord-button:hover::before {
    box-shadow: inset 0 0 0 10em rgba(88, 101, 242, 1);
}

.updates-container {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    scrollbar-width: thin;
    scrollbar-color: #7289da #4a4b4d;
}

.updates-container::-webkit-scrollbar {
    width: 8px;
}

.updates-container::-webkit-scrollbar-track {
    background: #f4f4f4;
    border-radius: 10px;
}

.updates-container::-webkit-scrollbar-thumb {
    background-color: #7289da;
    border-radius: 10px;
    border: 2px solid #f4f4f4;
}

.commands-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 10px;
}

.sort-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    justify-content: center;
}

.sort-container label {
    font-size: 16px;
    margin-right: 10px;
}

#sortOptions {
    padding: 5px;
    border: 2px solid #7289da;
    border-radius: 5px;
    font-size: 16px;
    background-color: #7289da;
    color: #fff;
}

#sortOptions option {
    background-color: #1e1e1e;
    color: #fff;
}

.note {
    font-size: 14px;
    font-weight: italic;
    color: rgba(220, 50, 50, 0.406);
}

.new-label {
    display: inline-block;
    background-color: #ff5733;
    color: white;
    padding: 2px 8px;
    margin-left: 10px;
    font-size: 12px;
    border-radius: 5px;
}

.update-label {
    display: inline-block;
    background-color: #52d95b;
    color: white;
    padding: 2px 8px;
    margin-left: 10px;
    font-size: 12px;
    border-radius: 5px;
}

.bug-label {
    display: inline-block;
    background-color: #7f42a3;
    color: white;
    padding: 2px 8px;
    margin-left: 10px;
    font-size: 12px;
    border-radius: 5px;
}

.code {
    position: relative;
    display: inline-block;
    background-color: #000000;
    border: #2c2f33;
    font-style: italic;
    color: #f0f0f0;
    padding: 5px 23px 5px 5px;
    /* Adjusted padding to accommodate the button */
    border-radius: 5px;
    margin-bottom: -10px;
    overflow-x: auto;
}

.copy-button {
    position: absolute;
    top: 30%;
    right: 0px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #f0f0f0;
    cursor: pointer;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.code:hover .copy-button {
    opacity: 1;
}

#no-result,
#no-result2 {
    border: solid 1px #7289da;
    border-style: dashed;
    max-width: 500px;
    margin: 0 auto;
    flex: 1;
    text-align: center;
    font-size: 20px;
    color: #7289da;
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    animation: pulse 5s infinite;
    background-color: rgba(114, 137, 218, 0.1);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Features Section */
.features {
    max-width: 1320px;
    margin: 60px auto;
    padding: 0 40px;
    text-align: center;
}

.features h2 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: rgba(44, 47, 51, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    border-color: rgba(114, 137, 218, 0.4);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #7289da, #5865f2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(114, 137, 218, 0.3);
}

.feature-icon i {
    font-size: 32px;
    color: #fff;
}

.feature-card h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    color: #b9bbbe;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Animated Line Divider */
.line-divider {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 40px;
}

.line-divider svg {
    width: 100%;
    height: 4px;
    overflow: visible;
}

.animated-line {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    /* Start hidden - will animate to 0 */
    opacity: 0.6;
}

/* Responsive Features */
@media screen and (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features {
        margin: 30px auto;
        padding: 0 20px;
    }

    .features h2 {
        font-size: 24px;
        /* Smaller title */
        margin-bottom: 30px;
    }

    .feature-card {
        padding: 25px 20px;
        /* Reduced padding */
    }

    .feature-icon {
        width: 60px;
        /* Smaller icon */
        height: 60px;
        margin-bottom: 15px;
    }

    .feature-icon i {
        font-size: 24px;
    }
}

/* Server Statistics Section */
/* Wrapper for Intro and Stats - Glassmorphism Layout */
.content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 40px;
    max-width: 1400px;
    margin: 40px auto;
    align-items: stretch;
    /* Stretch to same height */
    padding: 0 40px;
    /* More breathing room */
}

/* Card base style for Intro and Stats sections */
.intro,
.server-stats {
    background: rgba(44, 47, 51, 0.4);
    /* More transparent for glass effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border */
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    /* Default equal flex */
    margin-bottom: 0px;
    /* Reset override */
}

.intro:hover,
.server-stats:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(114, 137, 218, 0.3);
}

.intro {
    flex: 1;
    /* intro takes less space visual weight, but here we balance it */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.server-stats {
    flex: 1.5;
    /* Stats area slightly wider if needed, or keeping balanced */
    text-align: center;
}


/* Titles inside the glass cards */
.intro h2,
.server-stats h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 0;
}

.intro p {
    font-size: 18px;
    color: #dcddde;
    line-height: 1.6;
    margin-bottom: 0;
}

.intro h2 {
    color: #7289da;
    /* Brand color for welcome title */
}

/* Stats Grid Polish */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns = 2 rows of 3 */
    gap: 25px;
    /* More spacing between cards */
}

.stat-card {
    background: rgba(32, 34, 37, 0.6);
    /* Darker inner cards */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(114, 137, 218, 0.5);
    background: rgba(44, 47, 51, 0.8);
}

.stat-card i {
    font-size: 28px;
    color: #7289da;
    margin-bottom: 15px;
    /* Removed drop-shadow for cleaner look */
}

.stat-card h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8e9297;
    font-weight: 600;
}

.stat-card span {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    font-family: "Changa", sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Connect Discord Section Alignment (Global/PC) */
.connect-discord {
    display: grid;
    grid-template-areas:
        "title button"
        "text button";
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px 40px;
    /* Row gap 10px, Col gap 40px */
    text-align: left;
    padding-right: 40px;
}

.connect-discord h2 {
    grid-area: title;
    margin: 0;
}

.connect-discord p {
    grid-area: text;
    margin: 0;
    max-width: 600px;
}

.discord-button {
    grid-area: button;
    margin: 0;
}

/* Mobile / Responsive Adaptation */
@media screen and (max-width: 1000px) {
    .content-wrapper {
        flex-direction: column;
        padding: 0 20px;
        gap: 30px;
        margin: 20px auto;
    }

    .intro,
    .server-stats {
        width: 100%;
        margin-bottom: 0;
        padding: 30px;
        /* Reduce padding on mobile */
        height: auto;
        box-sizing: border-box;
        /* Ensure padding doesn't overflow width */
    }

    .intro {
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Force 2 columns on mobile/tablet */
        gap: 15px;
    }
}

@media screen and (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Keep 2 cols even on small phones for density */
    }

    .stat-card {
        padding: 15px;
    }

    .stat-card span {
        font-size: 20px;
    }

    .stat-card i {
        font-size: 24px;
    }

    /* Footer Mobile Adaptation */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        justify-content: center;
        gap: 20px;
    }


}

/* Mobile / Responsive Adaptation */
@media screen and (max-width: 1000px) {

    /* Connect Discord Section Alignment (Mobile Override) */
    .connect-discord {
        display: flex;
        /* Switch back to flex for column layout */
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding-right: 20px;
        gap: 20px;
    }

    .connect-discord p {
        max-width: 100%;
    }

    .discord-button {
        margin: 20px auto 0;
    }
}

/* Migrated from inline styles in index.html */
.update:nth-child(n+4) {
    display: none;
}

.see-more {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background: #7289da;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Changa", sans-serif;
    font-size: 16px;
    transition: background 0.3s;
}

.see-more:hover {
    background: #5a6cb2;
}

/* Header Animation Styles */
#star-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.wave-divider {
    position: absolute;
    bottom: -1px;
    /* Overlap slightly to prevent gaps */
    left: 0;
    width: 100%;
    height: 15vw;
    /* Responsive height based on width */
    min-height: 100px;
    max-height: 250px;
    background-image: url('../photos/wave.svg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 2;
    pointer-events: none;
}

/* Ensure content sits above canvas */
header .title,
header .bot-info,
header .invite-button {
    position: relative;
    z-index: 3;
}

/* Adjust header padding if needed */
/* Adjust header padding if needed */
header {
    position: relative;
    padding-bottom: 10vw;
    /* Reduced further to be minimal */
    padding-top: 50px;
    min-height: 30vh;
    /* Reduced further */
    background: transparent;
    /* Let canvas show through */
}

/* Initial state for animated elements to prevent FOUC */
.features,
.updates,
.connect-discord,
footer,
.intro,
.server-stats {
    opacity: 0;
    visibility: hidden;
}

/* Legal Pages Header */
.legal-header {
    height: 120px;
    padding-top: 0px;
    padding-bottom: 0px;
    min-height: 15vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(135deg, #1e1e1e 0%, #2c2f33 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid #7289da;
}

.legal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(114, 137, 218, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.legal-header h1 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 5px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.legal-header p {
    color: #dcddde;
    font-size: 0.9rem;
    z-index: 1;
    opacity: 0.8;
}

/* Commands Header PC/Global Tweaks */
.commands-header .bot-info {
    display: display;
    /* Mistake in thought process, wait. Default is flex. If I set none here, I must override in mobile. */
    /* User said: "enlève bot info dans commandes" (PC) */
    display: none;
}

.commands-header {
    min-height: 25vh;
    /* Reduced height on PC */
    padding-bottom: 5vw;
}

@media screen and (max-width: 768px) {

    /* Legal Header Mobile Optimization */
    .legal-header {
        height: auto;
        padding: 20px 10px;
        min-height: 100px;
    }

    .legal-header h1 {
        font-size: 1.5rem;
        /* Smaller title on mobile */
    }

    .legal-header p {
        font-size: 0.8rem;
    }

    /* Index/Commands Header Mobile Optimization */
    .bot-info {
        flex-direction: row;
        /* Side by side */
        align-items: center;
        justify-content: center;
        gap: 15px;
        text-align: left;
    }

    .bot-pfp {
        width: 60px;
        /* Even smaller image */
        height: 60px;
        border-width: 2px;
    }

    .bot-details h1 {
        font-size: 2rem;
        /* Smaller bot name */
    }

    .bot-details p {
        font-size: 0.9rem;
    }

    header .title {
        font-size: 2rem;
        /* Smaller 'Discord Bot Commands' title */
        margin-bottom: 15px;
    }

    /* Specific Commands Page Header Tweaks */
    .commands-header .bot-pfp {
        display: none;
        /* icon remains hidden on mobile */
    }

    .commands-header {
        min-height: 20vh;
        padding-bottom: 10px;
        padding-top: 60px;
        /* Reduced from default/80px to move content up */
    }
}

/* Legal Content Styling */
.legal-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background-color: #23272a;
    /* Darker card background */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.legal-container h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #7289da;
    /* Pulsar Blue accent */
    margin-top: 30px;
}

.legal-container h2:first-child {
    margin-top: 0;
}

.legal-container p,
.legal-container ul {
    color: #dcddde;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-container ul {
    list-style-type: disc;
    margin-left: 20px;
}

.legal-container strong {
    color: #fff;
}

.legal-container a {
    color: #7289da;
    text-decoration: none;
    transition: color 0.2s;
}



/* Body Layout for Contact Page (Compact) */
body.contact-page {
    background-color: #1e1e1e;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* Fixed height to prevent body scroll */
    min-height: 100vh;
    background-image: radial-gradient(circle at 50% 0%, #2c2f33 0%, #1e1e1e 100%);
    overflow: hidden;
    /* Hide body scrollbar */
}

/* Make main content shrink/grow to fit */
body.contact-page main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    overflow-y: auto;
    /* Allow main content to scroll if needed (e.g. small screens) */
    width: 100%;
}

/* Custom Header for Contact Page layout */
.contact-page .legal-header {
    flex-shrink: 0;
    /* Don't shrink header */
    /* Restore standard look */
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: auto;
    height: auto;
}

.contact-page .legal-header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.contact-page .legal-header p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Footer Adaptation */
.contact-page footer {
    flex-shrink: 0;
    /* Don't shrink footer */
    /* Restore standard look */
    padding: 10px 0;
    width: 100%;
}

.contact-page .footer-content {
    justify-content: center;
    gap: 30px;
}

/* Contact Form Styling - Modern Glassmorphism */
.contact-container {
    width: 90%;
    max-width: 500px;
    /* Slightly narrower for elegance */
    padding: 30px;
    background: rgba(32, 34, 37, 0.6);
    /* Use standard dark theme base */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: auto;
    /* Center in main */
}

/* Subtle glowing accent at top */
.contact-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #7289da, #9b59b6);
}

.contact-container h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
    margin-top: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    text-align: left;
    position: relative;
    width: 100%;
}

.form-group label {
    display: block;
    color: #b9bbbe;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    padding-left: 2px;
}

/* Specific styling for side-by-side inputs (Desktop) */
.form-row .form-group {
    flex: 1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.contact-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b9bbbe' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 10px;
    padding-right: 40px;
    cursor: pointer;
}

.contact-form select option {
    background-color: #2c2f33;
    color: #fff;
}

.contact-form textarea {
    min-height: 100px;
    resize: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #7289da;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 2px rgba(114, 137, 218, 0.2);
}

#submitBtn {
    margin-top: 10px;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #7289da;
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#submitBtn:hover {
    background: #5b6eae;
    transform: translateY(-2px);
}

#submitBtn:active {
    transform: translateY(0);
}

/* Mobile Optimizations (iPhone) */
@media (max-width: 768px) {
    body.contact-page {
        height: 100vh;
        /* Ensure full viewport height on mobile */
        overflow: hidden;
        /* Prevent body scroll */
    }

    body.contact-page main {
        flex-direction: column;
        /* Explicit column layout */
        align-items: center;
        /* Horizontally center cross-axis */
        justify-content: center;
        /* Vertically center main-axis */
        padding: 15px;
        /* Use padding for side gutters */
        width: 100%;
        box-sizing: border-box;
        /* Ensure padding is included in width */
    }

    .contact-container {
        width: 100%;
        /* Fill the available space within main padding */
        max-width: 450px;
        /* Cap width for larger mobile/tablets */
        padding: 25px 20px;
        /* Internal padding */
        margin: 0;
        /* Remove auto margin, let flex center it */
        /* Glassmorphism */
        border-radius: 20px;
        background: rgba(32, 34, 37, 0.7);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    .contact-page .legal-header h1 {
        font-size: 2rem;
    }

    .form-row {
        flex-direction: column;
        /* Stack name/email */
        gap: 15px;
    }

    .contact-form textarea {
        min-height: 80px;
        /* Smaller text area to fit screen */
    }

    #submitBtn {
        padding: 12px;
    }
}

/* Ultra small screens (e.g. iPhone SE) */
@media (max-height: 700px) {
    .contact-page .legal-header {
        padding-top: 10px;
    }

    .contact-page .legal-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .contact-container {
        padding: 15px;
    }

    .contact-container h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .form-group label {
        margin-bottom: 2px;
        font-size: 0.8rem;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 8px 10px;
        font-size: 13px;
    }

    .contact-form textarea {
        min-height: 60px;
    }
}






.contact-form button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(114, 137, 218, 0.6);
}





/* Custom Notification Toast */
.notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.notification-toast {
    display: flex;
    align-items: center;
    background: rgba(35, 39, 42, 0.95);
    /* Glassmorphismish opacity */
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 24px;
    margin-bottom: 10px;
    border-radius: 50px;
    /* Pill shape */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    width: fit-content;
    max-width: 90%;
    transform: translateY(-100%);
    /* Start above */
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    /* Bouncy slide */
    border-left: none;
    /* Removing side border for cleaner look */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Color accents via icons or text instead of border */
.notification-toast.success .notification-icon {
    color: #43b581;
}

.notification-toast.error .notification-icon {
    color: #f04747;
}

.notification-toast.warning .notification-icon {
    color: #faa61a;
}

.notification-toast.info .notification-icon {
    color: #7289da;
}

.notification-icon {
    margin-right: 15px;
    font-size: 1.2rem;
}

.notification-content {
    flex-grow: 1;
    font-size: 0.95rem;
    font-weight: 500;
}

.notification-close {
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.6;
    margin-left: 15px;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

/* Sidebar Dropdown */
.nav-item-dropdown {
    width: 100%;
    padding: 0;
}

.dropdown-toggle {
    cursor: pointer;
    justify-content: space-between;
}

.dropdown-toggle .arrow {
    transition: transform 0.3s ease;
    font-size: 14px;
    margin-right: 0;
}

.nav-item-dropdown.active .dropdown-toggle .arrow {
    transform: rotate(180deg);
}

/* Smooth Dropdown Animation */
.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.2);
    padding-left: 0;
    display: flex;
    flex-direction: column;
}

.nav-item-dropdown.active .dropdown-content {
    max-height: 500px;
    /* Arbitrary large height to allow content */
    opacity: 1;
    transition: max-height 0.4s ease-in, opacity 0.4s ease-in;
}

.dropdown-content a {
    padding-left: 60px;
    font-size: 16px;
    display: block;
    /* Ensure full width click */
}

/* Category Headers */
.category-block {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 columns */
    gap: 20px;
    /* Gap between cards */
}

/* Header spans full width */
.category-header {
    grid-column: 1 / -1;
    background-color: transparent;
    /* No background */
    padding: 10px 0;
    /* Less padding */
    border-radius: 0;
    margin-bottom: 10px;
    border-bottom: 2px solid #7289da;
    /* Separation bar */
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    margin-top: 0;
    font-size: 24px;
}

.category-header i {
    font-size: 28px;
}

/* Specific Colors - Header Border & Text */
#general .category-header {
    border-color: #7289da;
    color: #7289da;
}

#moderation .category-header {
    border-color: #f04747;
    color: #f04747;
}

#admin .category-header {
    border-color: #9b59b6;
    color: #9b59b6;
}

#utility .category-header {
    border-color: #43b581;
    color: #43b581;
}

#fun .category-header {
    border-color: #faa61a;
    color: #faa61a;
}

/* Command Styling */
.category-block .command {
    margin-bottom: 0;
    /* Reset margin since we use grid gap */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(44, 47, 51, 0.3);
    /* Subtle background */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    /* Equal height */
    box-sizing: border-box;
}

.category-block .command:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Specific Colors - Command Borders */
#general .command {
    border-color: rgba(114, 137, 218, 0.5);
}

#general .command:hover {
    border-color: #7289da;
    box-shadow: 0 5px 15px rgba(114, 137, 218, 0.2);
}

#moderation .command {
    border-color: rgba(240, 71, 71, 0.5);
}

#moderation .command:hover {
    border-color: #f04747;
    box-shadow: 0 5px 15px rgba(240, 71, 71, 0.2);
}

#admin .command {
    border-color: rgba(155, 89, 182, 0.5);
}

#admin .command:hover {
    border-color: #9b59b6;
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.2);
}

#utility .command {
    border-color: rgba(67, 181, 129, 0.5);
}

#utility .command:hover {
    border-color: #43b581;
    box-shadow: 0 5px 15px rgba(67, 181, 129, 0.2);
}

#fun .command {
    border-color: rgba(250, 166, 26, 0.5);
}

#fun .command:hover {
    border-color: #faa61a;
    box-shadow: 0 5px 15px rgba(250, 166, 26, 0.2);
}

/* Hide category via class for search */
.category-block.hidden {
    display: none;
}

/* Responsive adjustment for mobile: back to 1 column */
@media screen and (max-width: 768px) {
    .category-block {
        grid-template-columns: 1fr;
    }
}

/* Controls Container Layout */
.controls-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    /* Reduced gap for tighter PC look */
    margin-bottom: 30px;
    flex-wrap: wrap;
    width: 100%;
}

.controls-container .search-container,
.controls-container .sort-container {
    margin-bottom: 0;
}

/* Sidebar Styling Fix */
/* Sidebar Styling Fix */
.nav-item-dropdown .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* Removed min-height to allow natural sizing matching others */
}

/* The span containing icon and text */
.dropdown-toggle span {
    display: flex;
    align-items: center;
}

/* Ensure the icon inside the span aligns correctly */
.dropdown-toggle span i {
    min-width: 30px;
    margin-right: 15px;
    text-align: center;
}

/* The arrow itself */
.dropdown-toggle .arrow {
    margin-left: auto;
    font-size: 14px;
    padding: 0;
    /* Remove padding to fix height mismatch */
    margin-right: 0;
}


@media screen and (max-width: 768px) {
    .controls-container {
        flex-direction: column;
        gap: 15px;
    }

    .sort-container {
        width: 100%;
        justify-content: space-between;
    }

    #sortOptions {
        flex-grow: 1;
        margin-left: 10px;
    }
}

/* Loader Animation */
.loader {
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 5px solid #7289da;
    width: 60px;
    height: 60px;
    -webkit-animation: spin 1s linear infinite;
    /* Safari */
    animation: spin 1s linear infinite;
    margin: 60px auto;
    display: block;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}