﻿/* ============================================================
   SETTINGS PAGE — WORLD CLASS UI
   ============================================================ */

.settings-container {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

.settings-title {
    font-size: 2.4rem;
    font-weight: 800;
}

.settings-subtitle {
    opacity: 0.7;
    margin-bottom: 30px;
}

.settings-alert {
    background: var(--surface);
    padding: 14px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

/* GRID */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* GLASS CARDS */
.glass-card {
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    animation: fadeUp 0.5s ease both;
}

/* INFO ROWS */
.settings-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

    .settings-info label {
        font-size: 0.85rem;
        opacity: 0.7;
    }

    .settings-info p {
        margin: 0;
        font-weight: 600;
    }

/* BUTTONS */
.btn-edit,
.btn-save-pill,
.btn-logout-pill {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    transition: 0.2s ease;
}

    .btn-edit:hover,
    .btn-save-pill:hover,
    .btn-logout-pill:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
    }

.btn-danger-pill {
    background: #dc2626;
    color: white;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    transition: 0.2s ease;
}

    .btn-danger-pill:hover {
        background: #b91c1c;
        transform: translateY(-2px);
    }

.btn-danger-pill-sm {
    background: #dc2626;
    color: white;
    padding: 6px 14px;
    border-radius: 999px;
    border: none;
    font-size: 0.8rem;
    transition: 0.2s ease;
}

    .btn-danger-pill-sm:hover {
        background: #b91c1c;
        transform: translateY(-2px);
    }

.modal-close-pill {
    background: var(--surface);
    color: var(--text);
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 600;
    width: 100%;
    transition: 0.2s ease;
}

    .modal-close-pill:hover {
        background: color-mix(in srgb, var(--surface) 80%, var(--primary) 10%);
        transform: translateY(-2px);
    }

/* FORMS */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .settings-form input {
        padding: 12px 16px;
        border-radius: var(--radius);
        border: 1px solid var(--border);
        background: var(--surface);
        font-size: 0.95rem;
    }

/* MODALS */
.settings-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    z-index: 9999;
}

.modal-content-glass {
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    width: 380px;
    animation: scaleIn 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .modal-content-glass.danger {
        border-color: #dc2626;
    }

/* HOUSEHOLD MANAGER */
.household-modal {
    width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.household-info-block {
    margin-bottom: 20px;
}

.household-members-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.member-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: color-mix(in srgb, var(--surface) 60%, transparent);
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.badge-owner {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
}

.badge-member {
    background: var(--surface);
    color: var(--text);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.75rem;
}

/* SECURITY SCORE */
.security-score-card {
    margin-bottom: 30px;
}

.security-score-wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
}

.security-score-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary) 20%, transparent);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    animation: pulse 2.5s infinite ease-in-out;
}

.security-score-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .security-score-list li {
        margin-bottom: 6px;
        font-size: 0.9rem;
    }

/* SETTINGS LIST */
.settings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .settings-list li {
        margin-bottom: 6px;
    }

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.92) translateY(10px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}


/* =========================================
   HOUSEHOLD INFO NOTE
========================================= */
.household-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: color-mix(in srgb, var(--primary, #4A6CF7) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary, #4A6CF7) 30%, transparent);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin: 4px 0 18px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text);
}

    .household-note .household-note-ico {
        flex-shrink: 0;
        font-size: 1rem;
        line-height: 1.4;
    }

    .household-note strong {
        font-weight: 700;
    }

/* =========================================
   HOUSEHOLD MEMBERS TABLE
========================================= */
.household-members-title {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    color: var(--text-muted, color-mix(in srgb, var(--text) 60%, transparent));
    margin: 8px 0 12px;
}

.household-table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 18px;
}

.household-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

    .household-table thead {
        background: color-mix(in srgb, var(--text) 8%, transparent);
    }

    .household-table th {
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--text-muted, color-mix(in srgb, var(--text) 55%, transparent));
        padding: 12px 16px;
    }

    .household-table td {
        padding: 14px 16px;
        border-top: 1px solid var(--border);
        vertical-align: middle;
    }

    .household-table tbody tr:first-child td {
        border-top: none;
    }

    .household-table .household-email {
        color: var(--text-muted, color-mix(in srgb, var(--text) 65%, transparent));
    }

    .household-table .household-row-action {
        text-align: right;
    }

.household-you-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary, #4A6CF7);
    background: color-mix(in srgb, var(--primary, #4A6CF7) 16%, transparent);
    vertical-align: middle;
}

/* HOUSEHOLD ACTION BUTTONS ROW */
.household-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

    .household-actions button {
        flex: 0 1 auto;
    }
