:root {
    --bg: #0d1017;
    --panel: #151a25;
    --panel-2: #1c2331;
    --panel-3: #222b3c;
    --text: #f4f7fb;
    --muted: #96a2b6;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #8475ff;
    --accent-2: #63d4ff;
    --danger: #ff7b8f;
    --success: #66ddb2;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
}

body {
    background:
        radial-gradient(circle at 15% 15%, rgba(99, 212, 255, 0.10), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(132, 117, 255, 0.16), transparent 32%),
        var(--bg);
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-shell {
    width: min(100%, 470px);
}

.auth-card {
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 34px;
    background: rgba(21, 26, 37, 0.94);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 850;
    margin-bottom: 38px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #071019;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.auth-card h1 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: -0.045em;
}

.muted {
    color: var(--muted);
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.auth-form label {
    display: grid;
    gap: 8px;
    color: #cbd3df;
    font-size: 0.88rem;
    font-weight: 700;
}

.auth-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 14px;
    background: #0e131c;
    color: var(--text);
    outline: none;
}

.auth-form input:focus {
    border-color: rgba(132, 117, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(132, 117, 255, 0.12);
}

.button {
    border: 0;
    border-radius: 12px;
    padding: 13px 18px;
    cursor: pointer;
    font-weight: 850;
}

.button.primary {
    color: #071019;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.button.full {
    width: 100%;
}

.switch-link {
    margin: 24px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.switch-link a {
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 800;
}

.error-box {
    margin-top: 22px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 123, 143, 0.26);
    border-radius: 12px;
    color: #ffc1ca;
    background: rgba(255, 123, 143, 0.08);
    line-height: 1.5;
}

.app-body {
    min-height: 100vh;
    overflow: hidden;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 76px 280px 1fr;
}

.server-rail {
    padding: 14px 10px;
    border-right: 1px solid var(--line);
    background: #0a0d13;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.server-icon {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: #aab5c7;
    background: var(--panel-2);
    font-weight: 900;
}

.server-icon.active {
    color: #071019;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.server-icon.add {
    cursor: pointer;
    color: var(--success);
}

.sidebar {
    position: relative;
    border-right: 1px solid var(--line);
    background: rgba(18, 23, 33, 0.96);
    padding: 22px 16px 92px;
}

.sidebar-title {
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.sidebar-nav {
    display: grid;
    gap: 7px;
}

.sidebar-nav a {
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
}

.sidebar-nav a.active {
    color: var(--text);
    background: var(--panel-3);
}

.channel-label {
    margin: 30px 10px 10px;
    color: #69758a;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.empty-box {
    padding: 16px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.87rem;
}

.empty-box button {
    display: block;
    width: 100%;
    margin-top: 13px;
    border: 0;
    border-radius: 9px;
    padding: 9px;
    color: var(--text);
    background: var(--panel-3);
    cursor: pointer;
}

.profile-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 76px;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    background: #10151e;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #071019;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    font-weight: 900;
}

.profile-text {
    min-width: 0;
    flex: 1;
    display: grid;
}

.profile-text strong,
.profile-text span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-text span {
    color: var(--muted);
    font-size: 0.75rem;
}

.icon-button {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.2rem;
}

.main-panel {
    min-width: 0;
    padding: 34px;
    overflow: auto;
}

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

.main-header small,
.mini-label {
    color: #758198;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.main-header h1 {
    margin: 4px 0 0;
    font-size: 2rem;
}

.status-pill {
    padding: 9px 13px;
    border: 1px solid rgba(102, 221, 178, 0.18);
    border-radius: 999px;
    color: var(--success);
    background: rgba(102, 221, 178, 0.07);
    font-size: 0.82rem;
}

.welcome-grid {
    margin-top: 34px;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 20px;
}

.welcome-hero,
.roadmap-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 85% 10%, rgba(132, 117, 255, 0.18), transparent 36%),
        var(--panel);
    padding: 34px;
}

.welcome-hero h2 {
    margin: 18px 0 12px;
    max-width: 660px;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.welcome-hero p {
    max-width: 620px;
    color: var(--muted);
    line-height: 1.7;
}

.welcome-hero .button {
    margin-top: 22px;
}

.roadmap-card h3 {
    margin-top: 0;
}

.roadmap-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.roadmap-item span {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--panel-3);
    font-size: 0.78rem;
    font-weight: 900;
}

.roadmap-item.done {
    color: var(--text);
}

.roadmap-item.done span {
    color: #071019;
    background: var(--success);
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #202838;
    color: var(--text);
    transform: translateY(30px);
    opacity: 0;
    pointer-events: none;
    transition: 180ms ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: 66px 1fr;
    }

    .sidebar {
        display: none;
    }

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

@media (max-width: 620px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .server-rail {
        display: none;
    }

    .main-panel {
        padding: 22px;
    }

    .status-pill {
        display: none;
    }

    .welcome-hero,
    .roadmap-card {
        padding: 24px;
    }
}


/* Clyvard ana sayfa logosu */
.server-rail .server-icon.home-logo {
    padding: 5px;
    overflow: hidden;
    box-sizing: border-box;
    background: #080a14;
}

.server-rail .server-icon.home-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 12px;
    pointer-events: none;
    user-select: none;
}
