:root {
    --bg: #192e3e;
    --accent: #cccccc;
    --card: rgba(255,255,255,0.08);
    --border: rgba(255,255,255,0.12);
    --muted: rgba(255,255,255,0.66);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.10), transparent 35%),
        linear-gradient(135deg, #192e3e, #162836);
    color: white;
    min-height: 100vh;
}

.login-card,
.server-card,
.config-card,
.billing-card,
.sidebar,
.server-sidebar {
    background: var(--card);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    box-shadow: 0 18px 50px rgba(0,0,0,0.20);
}

.login-card {
    width: min(460px, calc(100% - 32px));
    margin: 120px auto;
    padding: 42px;
    border-radius: 28px;
    text-align: center;
}

.brand-pill {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--accent);
    margin-bottom: 18px;
}

.layout,
.server-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar,
.server-sidebar {
    width: 280px;
    padding: 26px;
    border-radius: 0;
}

.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content,
.page-content {
    flex: 1;
    padding: 42px;
}

.profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.profile small,
.muted {
    display: block;
    color: var(--muted);
}

.avatar,
.guild-icon {
    border-radius: 50%;
}

.avatar {
    width: 42px;
    height: 42px;
}

.guild-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.10);
    font-weight: bold;
    font-size: 28px;
}

.server-grid,
.config-grid,
.billing-grid {
    display: grid;
    gap: 20px;
}

.server-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.config-grid,
.billing-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.server-card,
.config-card,
.billing-card {
    padding: 24px;
    border-radius: 22px;
}

.config-card.large {
    max-width: 720px;
}

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

.primary-btn,
.secondary-btn,
.logout-btn,
.back-btn,
.nav-link {
    text-decoration: none;
    border-radius: 14px;
}

.primary-btn {
    display: inline-block;
    border: none;
    cursor: pointer;
    background: var(--accent);
    color: var(--bg);
    font-weight: bold;
    padding: 12px 18px;
    margin-top: 16px;
}

.secondary-btn {
    display: inline-block;
    color: white;
    background: rgba(255,255,255,0.10);
    padding: 12px 18px;
    margin-top: 10px;
}

.logout-btn,
.back-btn {
    color: var(--accent);
    margin-top: 22px;
    display: inline-block;
}

.nav-link {
    display: block;
    color: white;
    padding: 13px 14px;
    margin-top: 10px;
    background: rgba(255,255,255,0.05);
}

.nav-link.active {
    background: var(--accent);
    color: var(--bg);
    font-weight: bold;
}

label {
    display: block;
    margin-top: 18px;
    margin-bottom: 8px;
    color: white;
}

input[type=text] {
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.08);
    color: white;
}

input[disabled] {
    opacity: .55;
}

.switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255,255,255,0.2);
    transition: .25s;
    border-radius: 999px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .25s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent);
}

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

@media (max-width: 800px) {
    .layout,
    .server-layout {
        flex-direction: column;
    }

    .sidebar,
    .server-sidebar {
        width: 100%;
    }
}
