* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #111;
    color: #fff;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.app {
    display: flex;
    min-height: 100vh;
    background: #111;
}

/* sidebar */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    padding: 24px 18px;
    background: #111;
    color: #fff;
    overflow-y: auto;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 36px;
}

.side-nav,
.account-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-group {
    margin-bottom: 8px;
}

.menu-item,
.account-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 15px;
    color: #cfcfcf;
    transition: 0.2s;
}

.menu-item:hover,
.account-nav a:hover {
    background: #222;
    color: #fff;
}

.menu-item.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-weight: 700;
}

.sub-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 6px 0 10px;
    padding-left: 12px;
}

.sub-menu a {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #9f9f9f;
}

.sub-menu a:hover {
    background: #1d1d1d;
    color: #fff;
}

.sub-menu a.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-weight: 600;
}

.menu-title {
    margin: 34px 0 10px;
    padding: 0 14px;
    font-size: 12px;
    color: #777;
    font-weight: 700;
}

/* main */

.app-body {
    width: 100%;
    min-width: 0;
    padding-left: 260px;
    background: #111;
}

.mobile-header {
    display: none;
}

.content {
    width: 100%;
    min-height: 100vh;
    padding: 32px;
    background: #111;
    color: #fff;
}

/* common */

.page-title,
.content h1,
.content h2,
.content h3 {
    color: #fff;
}

.page-box {
    background: #181818;
    border-radius: 18px;
    padding: 24px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
    background: #1b1b1b;
    color: #fff;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #666;
}

.btn,
.join-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #2d2d2d;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* login popup */

.popup-dim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.popup-dim.active {
    display: flex;
}

.login-popup {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.login-popup h2 {
    margin: 0 0 30px;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.login-popup form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-popup label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.login-popup input {
    height: 52px;
    padding: 0 16px;
    border: 1px solid #333;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font-size: 15px;
}

.login-popup input::placeholder {
    color: #777;
}

.login-popup input:focus {
    border-color: #555;
    outline: none;
}

.login-submit {
    width: 100%;
    height: 52px;
    margin-top: 8px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #111;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.login-submit:hover {
    background: #e6e6e6;
}

.popup-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #999;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.popup-close:hover {
    color: #fff;
}

@media (max-width: 640px) {

    .popup-dim {
        padding: 16px;
    }

    .login-popup {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .login-popup h2 {
        font-size: 28px;
    }
}

/* mobile */

.mobile-dim {
    display: none;
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-dim {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 900;
    }

    .mobile-dim.open {
        display: block;
    }

    .app-body {
        padding-left: 0;
    }

    .mobile-header {
        position: sticky;
        top: 0;
        display: flex;
        align-items: center;
        height: 60px;
        padding: 0 18px;
        background: #111;
        border-bottom: 1px solid #222;
        z-index: 800;
    }

    .hamburger {
        width: 42px;
        height: 42px;
        border: 0;
        background: #222;
        color: #fff;
        border-radius: 10px;
        font-size: 20px;
        cursor: pointer;
    }

    .mobile-logo {
        margin-left: 12px;
        font-size: 20px;
        font-weight: 800;
        color: #fff;
    }

    .content {
        min-height: calc(100vh - 60px);
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .sidebar {
        width: 82vw;
        max-width: 320px;
        padding: 22px 16px;
    }

    .content {
        padding: 16px;
    }

    .page-box {
        padding: 18px;
        border-radius: 14px;
    }

    .join-popup {
        padding: 26px 20px;
        border-radius: 16px;
    }
}

.login-desc{
    margin: -15px 0 25px;
    color:#888;
    font-size:14px;
}

/* Chrome, Edge, Safari */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #2c2c2c;
    border-radius: 999px;
    border: 2px solid #111;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

::-webkit-scrollbar-corner {
    background: #111;
}

/* Firefox */

* {
    scrollbar-width: thin;
    scrollbar-color: #2c2c2c #111;
}