/* ============================================================
   account.enhance.css — overlay для личного кабинета.
   Чипы, info-icons, notification items, polish.
   ============================================================ */

/* Старая tab-nav: спрячем border-bottom */
.account-wrap .tab-nav.chip-tabs {
    border-bottom: none;
    padding: 4px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 999px;
    margin-bottom: 24px;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.account-wrap .tab-nav.chip-tabs::-webkit-scrollbar { display: none; }

/* Старый .tab-btn внутри chip-tabs становится chip */
.chip-tabs .tab-btn {
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    padding: 7px 14px !important;
    margin-bottom: 0 !important;
    border-radius: 999px !important;
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.825rem !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.15s ease !important;
}

.chip-tabs .tab-btn:hover {
    color: rgba(255,255,255,0.95) !important;
    background: rgba(255,255,255,0.05) !important;
}

.chip-tabs .tab-btn.active {
    background: rgba(201,162,78,0.10) !important;
    color: #e2b35a !important;
    box-shadow: inset 0 0 0 1px rgba(201,162,78,0.7);
}

.chip-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* device stat cards получают info-icon */
.device-stat-card .device-stat-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

/* ─── Notification preferences ───────────────────────── */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    transition: all 0.15s ease;
}

.notif-item:hover {
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
}

.notif-item.checked {
    border-color: rgba(201,162,78,0.35);
    background: rgba(201,162,78,0.05);
}

.notif-item.checked .notif-item-body strong {
    color: #e2b35a;
}

.notif-item input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    accent-color: #e2b35a;
    flex-shrink: 0;
    cursor: pointer;
}

.notif-item-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notif-item-body strong {
    color: rgba(255,255,255,0.95);
    font-size: 0.92rem;
    font-weight: 600;
}

.notif-item-body small {
    color: rgba(255,255,255,0.5);
    font-size: 0.78rem;
    line-height: 1.5;
}

.notif-item-body em {
    color: rgba(201,162,78,0.85);
    font-style: normal;
}

/* ─── Login history list ─────────────────────────────── */
.login-history-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.85rem;
    align-items: center;
}

.login-history-row:last-child { border-bottom: none; }

.login-history-row:hover {
    background: rgba(255,255,255,0.02);
}

.login-history-ip {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
}

.login-history-ua {
    color: rgba(255,255,255,0.5);
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-history-when {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    text-align: right;
}

/* ─── Export button в account-header ─────────────────── */
.account-header-right .btn-export {
    background: rgba(201,162,78,0.10);
    border: 1px solid rgba(201,162,78,0.4);
    color: #e2b35a;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.account-header-right .btn-export:hover {
    background: rgba(201,162,78,0.18);
}
