@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
    -webkit-font-smoothing: antialiased; 
}

body { 
    background-color: #0b0f19; 
    color: #cbd5e1; 
    margin: 0; 
    padding: 0; 
    display: flex; 
    justify-content: center; 
    min-height: 100vh; 
    overflow-x: hidden;
}

/* Главная центрированная оболочка */
.main-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
}

/* Двухколоночный горизонтальный блок */
.content-wrapper {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    gap: 30px !important;
    align-items: flex-start !important;
    flex: 1;
}

/* Зафиксированный сайдбар слева */
.sidebar { 
    width: 240px !important; 
    display: flex !important; 
    flex-direction: column !important; 
    padding: 25px 0 !important; 
    flex-shrink: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
}

/* Логотип */
.logo { 
    font-size: 1.85rem; 
    font-weight: 800; 
    margin-bottom: 25px; 
    letter-spacing: -0.5px; 
    text-align: center; 
    width: 100%;
}
.logo a { 
    color: #fff; 
    text-decoration: none; 
    display: inline-block; 
    transition: opacity 0.15s ease;
}
.logo a:hover { opacity: 0.85; }
.logo span { color: #3897f0; }

.menu-list { 
    display: flex; 
    flex-direction: column; 
    gap: 5px; 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    width: 100%; 
}

.menu-item { width: 100%; }

.menu-item:nth-child(2) {
    border-bottom: 1px solid #161c28;
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.menu-item a { 
    display: flex; 
    align-items: center; 
    gap: 14px; 
    color: #eff3f8; 
    text-decoration: none; 
    padding: 12px 20px; 
    border-radius: 50px; 
    font-weight: 600; 
    font-size: 1.05rem; 
    transition: all 0.15s ease; 
}

.menu-item a:hover { background: rgba(255, 255, 255, 0.03); color: #fff; }
.menu-item.active a { background: #16222f; color: #3897f0; font-weight: 700; }
.menu-item a .menu-emoji { font-size: 1.25rem; width: 24px; text-align: center; }

/* Контентная зона справа */
.main-content { 
    flex: 1 !important; 
    padding: 25px 0 40px 0 !important; 
    display: flex !important; 
    flex-direction: column !important; 
    min-width: 0 !important;
}

/* Верхняя панель */
.top-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 30px; 
    width: 100%; 
}

.search-bar-fake { 
    background: #111622; 
    padding: 0 16px; 
    border-radius: 14px; 
    width: 360px; 
    height: 48px; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    border: 1px solid #161c28; 
}
.search-bar-fake i { color: #475569; font-size: 1rem; }
.search-bar-fake input { 
    background: transparent !important; 
    border: none !important; 
    color: #fff !important; 
    width: 100% !important; 
    outline: none !important; 
}

.header-right { display: flex; align-items: center; gap: 16px; }

.icon-bell { 
    background: #111622; 
    border: 1px solid #161c28; 
    width: 44px; 
    height: 44px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.user-balance-block { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    background: #111622; 
    border: 1px solid #1c2635; 
    padding: 4px 6px 4px 18px; 
    border-radius: 50px; 
    height: 44px; 
}
.balance-num { color: #eff3f8 !important; font-weight: 700; font-size: 1rem; }

.btn-topup { 
    color: #22c55e; 
    border: none; 
    padding: 6px 12px; 
    border-radius: 20px; 
    font-weight: 700; 
    font-size: 0.95rem; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    text-decoration: none;
}

.btn-plus-ic {
    background: #22c55e; 
    color: #0b0f19; 
    width: 18px; 
    height: 18px; 
    border-radius: 50%; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 900;
}

.discount-badge { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    background: #111622; 
    border: 1px solid #1c2635; 
    padding: 0 6px 0 18px; 
    border-radius: 50px; 
    font-weight: 700; 
    height: 44px; 
}

.discount-circle { 
    background: #111622; 
    color: #eff3f8 !important; 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 800; 
    border: 3px solid transparent;
    background-image: linear-gradient(#111622, #111622), linear-gradient(135deg, #22c55e, #3897f0, #ec4899);
    background-origin: border-box; 
    background-clip: padding-box, border-box;
}

.section-title { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 22px; }

/* Список соцсетей */
.soc-list { display: flex; flex-direction: column; width: 100%; margin-bottom: 25px; }
.soc-row { 
    background: transparent; border: none; border-bottom: 1px solid #161c28;
    padding: 18px 6px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: background 0.1s; 
}
.soc-row:hover { background: rgba(255, 255, 255, 0.01); }
.soc-row.active { background: rgba(56, 151, 240, 0.02); }
.soc-info { display: flex; align-items: center; gap: 18px; }

/* Иконки соцсетей */
.soc-logo-img, img.soc-logo-img { 
    width: 26px !important; 
    height: 26px !important; 
    max-width: 26px !important;
    max-height: 26px !important;
    object-fit: contain !important; 
    flex-shrink: 0 !important;
}

.form-title-icon, img#form_soc_icon {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}

.soc-name { font-size: 1.05rem; font-weight: 600; color: #eff3f8 !important; }
.arrow-icon { color: #2a3547; font-size: 1rem; font-weight: 700; }

.order-card { 
    background: #111622; 
    border: 1px solid #1c2635;
    border-radius: 20px; 
    padding: 32px 36px; 
    width: 100%; 
}

.order-card-header {
    display: flex; flex-direction: column; gap: 16px;
    margin-bottom: 30px; border-bottom: 1px solid #1a2332; padding-bottom: 20px;
}

.btn-back {
    background: rgba(255, 255, 255, 0.03); border: 1px solid #1e293b; color: #94a3b8; 
    padding: 8px 16px; border-radius: 30px; font-weight: 600; font-size: 0.88rem; 
    cursor: pointer; display: inline-flex; align-items: center; gap: 8px; width: fit-content;
}

.form-title-wrap { display: flex; align-items: center; gap: 14px; }

.field-block { margin-bottom: 24px; display: flex; flex-direction: column; }
.field-block label { display: block; margin-bottom: 10px; color: #cbd5e1; font-weight: 600; }

.field-block input, .field-block select {
    width: 100%; padding: 15px 18px; border: 1px solid #1e293b;
    background: #0d121f; color: #f8fafc; border-radius: 12px; font-size: 0.98rem;
}

.btn-submit-order { 
    width: 100%; padding: 16px; background: #3897f0; color: #fff; 
    border: none; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 1.05rem; 
    transition: all 0.2s ease;
}
.btn-submit-order:hover {
    background: #2582d6;
    transform: translateY(-1px);
}

/* Стили авторизации и регистрации */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 20px;
}

.auth-card {
    background: #111622;
    border: 1px solid #1c2635;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.auth-card .logo {
    margin-bottom: 30px;
}

.auth-card h2 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
}

.auth-card p.subtitle {
    color: #64748b;
    text-align: center;
    margin: 0 0 30px 0;
    font-size: 0.95rem;
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    color: #64748b;
    font-size: 0.92rem;
}

.auth-footer a {
    color: #3897f0;
    text-decoration: none;
    font-weight: 600;
}
.auth-footer a:hover {
    text-decoration: underline;
}

/* Переключатель видимости пароля (глазик) */
.password-input-wrap {
    position: relative;
    width: 100%;
}

.password-input-wrap input {
    padding-right: 48px !important;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.15s ease;
    user-select: none;
    z-index: 5;
}

.toggle-password:hover {
    color: #3897f0;
}

/* Нижнее меню (Футер) */
.site-footer {
    display: flex; justify-content: center; align-items: center; 
    gap: 35px; padding: 30px 0 25px 0; margin-top: auto; width: 100%;
    border-top: 1px solid #161c28;
}
.footer-link { color: #64748b; text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.footer-link:hover { color: #3897f0; }

/* Адаптивность под мобильные устройства */
@media (max-width: 868px) {
    .content-wrapper {
        flex-direction: column !important;
        gap: 0 !important;
    }
    .sidebar {
        width: 100% !important;
        position: relative !important;
        padding: 15px 0 !important;
    }
    .top-bar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    .search-bar-fake {
        width: 100%;
    }
    .header-right {
        justify-content: space-between;
    }
    .site-footer {
        flex-direction: column;
        gap: 15px;
    }
}