/* =========================
   BILLY - STYLE PRINCIPAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0b0b12;
    color: #ffffff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(11, 11, 18, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 21px;
    font-weight: 800;
}

.logo-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: linear-gradient(
        135deg,
        #7c5cff,
        #9c7cff
    );

    font-weight: 900;
    color: white;

    box-shadow: 0 8px 30px rgba(124, 92, 255, 0.25);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: #9ca3af;
    font-size: 14px;
    transition: 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* =========================
   BUTTONS
========================= */

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 18px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    transition: 0.2s ease;
}

.primary-button {
    background: #7c5cff;
    color: #ffffff;

    box-shadow:
        0 10px 30px rgba(124, 92, 255, 0.22);
}

.primary-button:hover {
    transform: translateY(-2px);
    background: #8a6cff;
}

.secondary-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.09);
}

/* =========================
   HERO
========================= */

.hero {
    max-width: 1200px;
    min-height: 680px;

    margin: 0 auto;
    padding: 100px 24px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.hero-content {
    max-width: 650px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 7px 12px;

    border-radius: 999px;

    background: rgba(70, 220, 140, 0.08);
    border: 1px solid rgba(70, 220, 140, 0.15);

    color: #9ae6b4;

    font-size: 13px;
    font-weight: 600;

    margin-bottom: 25px;
}

.status-badge span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #4ade80;

    box-shadow: 0 0 12px rgba(74, 222, 128, 0.7);
}

.hero h1 {
    font-size: clamp(45px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 25px;
}

.hero h1 strong {
    display: block;

    background: linear-gradient(
        135deg,
        #8b70ff,
        #b19cff
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content > p {
    max-width: 600px;

    color: #9ca3af;

    font-size: 18px;
    line-height: 1.8;

    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================
   DISCORD MOCKUP
========================= */

.hero-card {
    width: 100%;
}

.discord-window {
    overflow: hidden;

    border-radius: 18px;

    background: #171721;

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45),
        0 0 80px rgba(124, 92, 255, 0.08);
}

.discord-header {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 18px 20px;

    background: #1d1d29;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.discord-header strong {
    display: block;
}

.discord-header span {
    display: inline-block;

    margin-top: 2px;

    padding: 2px 5px;

    border-radius: 4px;

    background: #5865f2;

    font-size: 9px;
    font-weight: 800;
}

.discord-avatar,
.message-avatar {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #7c5cff,
        #a084ff
    );

    font-weight: 800;
}

.discord-message {
    display: flex;
    gap: 13px;

    padding: 22px 20px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.message-avatar {
    width: 40px;
    height: 40px;
}

.message-content strong {
    display: inline-block;
    margin-bottom: 3px;
}

.message-content p {
    color: #b5b7c2;
    font-size: 14px;
}

.message-content code {
    padding: 3px 6px;

    border-radius: 5px;

    background: #0e0e15;

    color: #b49cff;
}

/* =========================
   SECTIONS
========================= */

.features-section,
.docs-section {
    max-width: 1200px;

    margin: 0 auto;

    padding: 100px 24px;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 55px;

    text-align: center;
}

.section-label {
    color: #8d75ff;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;
}

.section-header h2,
.about-content h2 {
    margin-top: 12px;
    margin-bottom: 15px;

    font-size: 40px;
    line-height: 1.15;

    letter-spacing: -1px;
}

.section-header p,
.about-content p {
    color: #9ca3af;
}

/* =========================
   FEATURES
========================= */

.features-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.feature-card {
    padding: 28px;

    border-radius: 17px;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid rgba(255, 255, 255, 0.07);

    transition: 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);

    background: rgba(255, 255, 255, 0.05);

    border-color: rgba(124, 92, 255, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 13px;

    background: rgba(124, 92, 255, 0.12);

    font-size: 23px;
}

.feature-card h3 {
    margin-bottom: 10px;

    font-size: 18px;
}

.feature-card p {
    color: #9ca3af;

    font-size: 14px;
    line-height: 1.7;
}

/* =========================
   ABOUT
========================= */

.about-section {
    max-width: 1200px;

    margin: 0 auto;

    padding: 100px 24px;
}

.about-content {
    max-width: 750px;

    padding: 55px;

    border-radius: 22px;

    background:
        radial-gradient(
            circle at top right,
            rgba(124, 92, 255, 0.12),
            transparent 45%
        ),
        rgba(255, 255, 255, 0.035);

    border: 1px solid rgba(255, 255, 255, 0.07);
}

.about-content p {
    margin-top: 15px;
    line-height: 1.8;
}

/* =========================
   USER PROFILE
========================= */

.user-profile {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 6px 10px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.06);
}

.user-profile img {
    width: 32px;
    height: 32px;

    border-radius: 50%;

    object-fit: cover;
}

.user-profile span {
    max-width: 130px;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    font-size: 13px;
    font-weight: 700;
}

/* =========================
   FOOTER
========================= */

footer {
    margin-top: 60px;

    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-container {
    max-width: 1200px;

    margin: 0 auto;

    padding: 30px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-weight: 800;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;

    border-radius: 9px;
}

.footer-container p {
    color: #6f7280;
    font-size: 13px;
}

/* =========================
   DASHBOARD
========================= */

.dashboard-page {
    max-width: 1200px;

    margin: 0 auto;

    padding: 80px 24px;

    min-height: calc(100vh - 180px);
}

.dashboard-header {
    margin-bottom: 40px;
}

.dashboard-header h1 {
    margin: 12px 0;

    font-size: 42px;
}

.dashboard-header p {
    color: #9ca3af;
    font-size: 17px;
}

.dashboard-card {
    padding: 30px;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-card-header h2 {
    margin-bottom: 8px;

    font-size: 24px;
}

.dashboard-card-header p {
    color: #9ca3af;
}

.server-empty {
    padding: 80px 20px;

    text-align: center;
}

.server-empty-icon {
    width: 80px;
    height: 80px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: rgba(124, 92, 255, 0.12);

    font-size: 35px;
}

.server-empty h3 {
    margin-bottom: 10px;

    font-size: 21px;
}

.server-empty p {
    max-width: 520px;

    margin: 0 auto;

    color: #9ca3af;

    line-height: 1.6;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .nav-links {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;

        padding-top: 70px;
    }

    .hero-card {
        max-width: 650px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {

    .nav-container {
        padding: 13px 16px;
    }

    .nav-actions .secondary-button {
        display: none;
    }

    .hero {
        padding: 60px 18px;
    }

    .hero h1 {
        font-size: 43px;
        letter-spacing: -2px;
    }

    .hero-content > p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons a {
        width: 100%;
    }

    .features-section,
    .about-section,
    .docs-section {
        padding: 70px 18px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2,
    .about-content h2 {
        font-size: 32px;
    }

    .about-content {
        padding: 30px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .dashboard-page {
        padding: 50px 18px;
    }

    .dashboard-header h1 {
        font-size: 32px;
    }

    .dashboard-card {
        padding: 20px;
    }
}
.servers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.server-card {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 18px;

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid rgba(255, 255, 255, 0.07);

    transition: 0.2s ease;
}

.server-card:hover {
    transform: translateY(-2px);

    background: rgba(255, 255, 255, 0.055);

    border-color: rgba(124, 92, 255, 0.3);
}

.server-icon {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    border-radius: 16px;

    object-fit: cover;
}

.server-info {
    min-width: 0;
    flex: 1;
}

.server-info h3 {
    margin-bottom: 5px;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    font-size: 16px;
}

.server-permission {
    color: #8ee6a9;

    font-size: 12px;
    font-weight: 600;
}

.server-permission.no-permission {
    color: #9ca3af;
}

.server-action {
    flex-shrink: 0;
}

.server-action .primary-button {
    min-height: 38px;
    padding: 0 14px;

    font-size: 13px;
}

.server-disabled {
    color: #6f7280;

    font-size: 12px;
}

@media (max-width: 800px) {

    .servers-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 550px) {

    .server-card {
        flex-wrap: wrap;
    }

    .server-action {
        width: 100%;
    }

    .server-action .primary-button {
        width: 100%;
    }

}
/* =========================================================
   CONFIGURATION SERVEUR
   ========================================================= */

.configure-server-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.configure-server-icon {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    object-fit: cover;
    flex-shrink: 0;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 25px;
}

.setting-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.setting-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 92, 255, 0.12);
    font-size: 21px;
    flex-shrink: 0;
}

.setting-content {
    flex: 1;
    min-width: 0;
}

.setting-content h3 {
    margin-bottom: 5px;
    font-size: 15px;
}

.setting-content p {
    color: #8d91a0;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   SWITCH
   ========================================================= */

.switch {
    position: relative;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    border-radius: 999px;
    background: #30323d;
    transition: 0.2s ease;
}

.slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: white;
    transition: 0.2s ease;
}

.switch input:checked + .slider {
    background: #7c5cff;
}

.switch input:checked + .slider::before {
    transform: translateX(20px);
}


/* =========================================================
   INFORMATIONS SERVEUR
   ========================================================= */

.server-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.server-details > div {
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.server-details span {
    display: block;
    margin-bottom: 8px;
    color: #858997;
    font-size: 12px;
}

.server-details strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.status-online {
    color: #8ee6a9;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .server-details {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 550px) {

    .configure-server-header {
        align-items: flex-start;
    }

    .configure-server-icon {
        width: 58px;
        height: 58px;
        border-radius: 15px;
    }

    .setting-card {
        align-items: flex-start;
    }

}
.save-success {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.25);
    color: #8ee6a9;
    font-size: 14px;
}

.settings-save {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

.settings-save .primary-button {
    border: 0;
    cursor: pointer;
}