:root {
    --bg-black: #000000;
    --card-bg: #181818;
    --cyan: #00f0ff;
    --white: #ffffff;
    --gray: #888888;
    --border: #222222;
}

body {
    margin: 0;
    background: var(--bg-black);
    color: var(--white);
    font-family: sans-serif;
}

.pc-only {
    display: flex !important;
}

.mobile-only {
    display: none !important;
}

.pc-top-bar {
    background: #1e1e1e;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.bar-text {
    font-size: 14px;
}

.bar-btn {
    background: var(--white);
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 15px;
    cursor: pointer;
    color: #000;
}

.bar-close {
    font-size: 14px;
    color: var(--gray);
    position: absolute;
    right: 20px;
    cursor: pointer;
}

.mobile-app-promo {
    background: #000;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    align-items: center;
    justify-content: space-between;
}

.promo-left {
    display: flex;
    align-items: center;
}

.app-icon {
    width: 36px;
    height: 36px;
    background: var(--cyan);
    border-radius: 8px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
}

.app-name {
    font-weight: bold;
    font-size: 15px;
}

.app-desc {
    font-size: 12px;
    color: var(--gray);
}

.app-open {
    background: var(--white);
    color: #000;
    padding: 6px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.main-header {
    height: 64px;
    background: var(--bg-black);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-box {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    height: 26px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.auth-link {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
}

.auth-btn-signup {
    background: var(--white);
    color: #000;
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.tool-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tool-icons i {
    cursor: pointer;
    font-size: 24px;
}

.lang-trigger-container {
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-lang-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    background: #222;
    border-radius: 8px;
    width: 120px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
}

.mobile-lang-dropdown.active {
    display: flex;
}

.mobile-lang-dropdown a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #333;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.lang-modal-box {
    background: var(--card-bg);
    width: 850px;
    border-radius: 16px;
    padding: 32px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #333;
    margin-bottom: 24px;
}

.modal-tabs {
    display: flex;
    gap: 32px;
}

.m-tab {
    padding-bottom: 12px;
    cursor: pointer;
    color: var(--gray);
}

.m-tab.active {
    color: var(--cyan);
    border-bottom: 2px solid var(--cyan);
}

.lang-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.lang-cell {
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #bbb;
}

.lang-cell.selected {
    background: #262626;
    color: var(--cyan);
    text-align: center;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 3000;
}

.drawer-overlay.active {
    display: block;
}

.side-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100%;
    background: #000;
    transform: translateX(100%);
    transition: 0.3s;
    z-index: 3001;
    padding: 24px;
}

.side-drawer.active {
    transform: translateX(0);
}

.drawer-auth {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.drawer-auth a {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.d-login {
    border: 1px solid #333;
    color: #fff;
}

.d-signup {
    background: #fff;
    color: #000;
}

.d-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .pc-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .main-header {
        height: 56px;
    }
}