/* ================= SETTINGS PAGE ================= */

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.settings-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.settings-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #f0f0f0;
}

/* AVATAR блок вверху — на всю ширину */
.settings-avatar-card {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 24px;
}

.settings-avatar-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.settings-avatar-wrap img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.settings-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: #e91e63;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(233,30,99,0.3);
}

.settings-avatar-info {
    flex: 1;
}

.settings-avatar-info .s-name {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 2px;
}

.settings-avatar-info .s-username {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 8px;
}

.settings-avatar-info .s-logout {
    display: inline-block;
    font-size: 13px;
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 5px 14px;
    font-weight: 600;
}

.settings-avatar-info .s-logout:hover {
    color: #e91e63;
    border-color: #e91e63;
}

/* ================= INPUTS ================= */
.s-field {
    margin-bottom: 12px;
}

.s-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.s-field input,
.s-field textarea,
.s-field select {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #111;
    background: #fafafa;
    outline: none;
    transition: border-color 0.15s;
    font-family: Arial, sans-serif;
}

.s-field input:focus,
.s-field textarea:focus,
.s-field select:focus {
    border-color: #e91e63;
    background: #fff;
}

.s-field textarea {
    height: 80px;
    resize: vertical;
}

/* ================= КНОПКИ ================= */
.s-btn {
    display: inline-block;
    padding: 9px 22px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
}

.s-btn:hover { opacity: 0.85; }

.s-btn--primary {
    background: linear-gradient(90deg, #e84393, #a855f7);
    color: #fff;
    box-shadow: 0 3px 10px rgba(232,67,147,0.25);
}

.s-btn--light {
    background: #f3f4f6;
    color: #374151;
    border: 1.5px solid #e5e7eb;
}

.s-btn--anketa {
    background: linear-gradient(90deg, #e84393, #a855f7);
    color: #fff;
    box-shadow: 0 3px 10px rgba(232,67,147,0.25);
    text-decoration: none;
}

/* ================= СООБЩЕНИЯ ================= */
.s-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    margin-bottom: 14px;
}

.s-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    margin-bottom: 14px;
}

/* ================= DETAILS CARD HEADER ================= */
.dc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
}

.dc-header__left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.dc-bars {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.dc-bar {
    width: 28px;
    height: 5px;
    border-radius: 3px;
    background: #e91e63;
    transition: background 0.3s ease;
}

.dc-bar--filled {
    background: #16a34a;
}

.dc-required {
    font-size: 12px;
    font-weight: 700;
    color: #e91e63;
    white-space: nowrap;
}

.dc-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dc-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.dc-tooltip-text {
    display: none;
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    background: #111;
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 8px;
    width: 220px;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.dc-tooltip-text::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #111;
    border-left: none;
}

.dc-tooltip-wrap:hover .dc-tooltip-text {
    display: block;
}

.dc-done {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dc-done__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.dc-done__text {
    font-size: 13px;
    font-weight: 700;
    color: #16a34a;
}

/* ================= PROFILE VIEWS ================= */
.pv-wrap {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pv-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pv-avatars {
    display: flex;
    flex-direction: row;
}

.pv-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    margin-left: -10px;
    filter: blur(3px);
    transition: filter 0.2s;
}

.pv-avatar:first-child {
    margin-left: 0;
}

.pv-avatars:hover .pv-avatar {
    filter: blur(5px);
}

.pv-label {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.pv-count {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.pv-text {
    font-size: 11px;
    color: #9ca3af;
}

.pv-row--guests {
    opacity: 0.7;
}

.pv-guest-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.pv-empty {
    font-size: 12px;
    color: #9ca3af;
}


/* ── TASKS CARD ── */
.tasks-card .tasks-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
}

.task-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    flex-wrap: wrap;
}

.task-done {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    color: #15803d;
}

.task-pending {
    background: #fff7f7;
    border: 1.5px solid #fecaca;
    color: #374151;
}

.task-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.task-done .task-check {
    background: #22c55e;
    color: #fff;
}

.task-pending .task-check {
    background: #fecaca;
    color: transparent; /* пустой кружок */
    border: 2px solid #f87171;
}

.task-label {
    flex: 1;
}

.task-meta {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
    margin-left: 4px;
}

/* прогресс-бар анкеты */
.task-progress {
    width: 100%;
    height: 6px;
    background: #f3f4f6;
    border-radius: 4px;
    margin-top: 6px;
    overflow: hidden;
}

.task-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f97316, #ec4899);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* статус внизу */
.task-status {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.task-status--active {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #15803d;
}

.task-status--inactive {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    color: #9ca3af;
}


/* ── МОНЕТКА В АВАТАРКЕ ── */
.settings-avatar-card {
    align-items: flex-start;
}

.avatar-coin-wrap {
    margin-left: auto;
    flex-shrink: 0;
}

.avatar-active-badge {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #15803d;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 20px;
    padding: 4px 12px;
    display: inline-block;
}

/* ── LANGUAGE SWITCHER ── */
.settings-avatar-card {
    position: relative; /* нужно для абсолютного позиционирования кнопки */
}

.lang-switcher {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

.lang-switcher__btn {
    background: none;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 15px;
    cursor: pointer;
    color: #6b7280;
    transition: border-color 0.15s, color 0.15s;
    line-height: 1.4;
}

.lang-switcher__btn:hover {
    border-color: #e91e63;
    color: #e91e63;
}

.lang-switcher__menu {
    display: none;
    position: absolute;
    top: 38px;
    right: 0;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    min-width: 155px;
    z-index: 200;
    overflow: hidden;
}

.lang-switcher__menu.open {
    display: block;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: background 0.1s;
}

.lang-item:hover { background: #f9fafb; }

.lang-item--active {
    color: #e91e63;
    background: #fdf2f8;
}


/* ================= MOBILE ================= */
@media (max-width: 1024px) {

    .settings-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 4px;
    }

    .settings-avatar-card {
        grid-column: 1;
        flex-direction: row;
        gap: 16px;
        padding: 18px;
    }

    .settings-avatar-wrap {
        width: 72px;
        height: 72px;
    }

    .settings-avatar-wrap img {
        width: 72px;
        height: 72px;
    }

    .settings-avatar-info .s-name {
        font-size: 17px;
    }

    .settings-card {
        border-radius: 12px;
        padding: 18px;
    }

    .settings-card h3 {
        font-size: 15px;
    }

    .s-field input,
    .s-field textarea,
    .s-field select {
        font-size: 16px;
        padding: 11px 12px;
    }

    .s-btn {
        width: 100%;
        text-align: center;
        padding: 12px 22px;
        font-size: 14px;
    }

    .dc-bar {
        width: 20px;
        height: 5px;
    }

    .dc-required {
        font-size: 11px;
    }

    .dc-tooltip-text {
        left: auto;
        right: 0;
        top: 24px;
        transform: none;
        width: 200px;
    }

    .dc-tooltip-text::before {
        left: auto;
        right: 6px;
        top: -10px;
        transform: none;
        border: 6px solid transparent;
        border-bottom-color: #111;
        border-top: none;
    }

    .pv-avatar {
        width: 28px;
        height: 28px;
    }
}