/* Client settings — aligned with profile settings panel */

.client-settings-panel {
    box-shadow: -12px 0 48px rgba(0, 0, 0, 0.28);
}

.client-settings-header {
    padding: 20.5px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.client-settings-header h2 {
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.client-settings-content {
    padding: 16px 12px 28px !important;
}

.settings-list {
    gap: 0 !important;
    padding: 0 4px 20px !important;
}

.settings-section-head {
    padding: 14px 14px 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.55);
}

.settings-group-card {
    margin: 0 6px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.012);
    border: 1px solid rgba(255, 255, 255, 0.035);
    overflow: hidden;
}

.settings-row {
    border-radius: 0 !important;
    min-height: 54px;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.028) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 11px 14px !important;
}

.settings-row--in-group:last-child,
.settings-group-card > .settings-row:last-child {
    border-bottom: none !important;
}

.settings-row:hover,
.settings-row--in-group:hover {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.028) !important;
}

.settings-row-support {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(44, 146, 242, 0.04)) !important;
    border-bottom-color: rgba(139, 92, 246, 0.1) !important;
}

.settings-row-support:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(44, 146, 242, 0.07)) !important;
}

.settings-row-title {
    font-size: 15px;
    font-weight: 600;
}

.settings-row-sub {
    font-size: 12px;
    color: rgba(148, 163, 184, 0.88);
}

.settings-list-divider {
    height: 0;
    margin: 0;
    background: none;
}

.account-current-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    margin: 4px 10px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.018);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.account-current-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 22px;
    color: #cbd5e1;
}

.account-current-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-current-name {
    font-size: 16px;
    font-weight: 650;
    color: #f8fafc;
}

.account-current-username {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 2px;
}

.settings-group-label {
    padding: 0 14px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
}

.settings-hint {
    padding: 0 14px;
    margin-bottom: 12px;
    line-height: 1.45;
    color: rgba(148, 163, 184, 0.9);
    font-size: 12px;
}

.account-session-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 10px;
    margin-bottom: 8px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.035);
    background: rgba(255, 255, 255, 0.012);
}

.account-session-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.028);
}

.account-session-item:last-child {
    border-bottom: none;
}

.account-session-item.is-current {
    background: rgba(44, 146, 242, 0.05);
}

.account-session-device {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
}

.account-session-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    line-height: 1.4;
}

.account-session-badge {
    display: inline-flex;
    margin-top: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
}

.account-session-revoke {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.22);
    background: rgba(239, 68, 68, 0.08);
    color: #fca5a5;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.account-session-empty {
    padding: 18px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    border: none;
    background: transparent;
}

.settings-qr-transfer-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 0 10px 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.012);
    border: 1px solid rgba(255, 255, 255, 0.035);
}

.settings-qr-transfer-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.35), rgba(44, 146, 242, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-qr-transfer-body h4 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 650;
    color: #f8fafc;
}

.settings-qr-transfer-body p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #94a3b8;
}

.settings-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 20px);
    margin: 0 10px 10px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, transform 0.15s;
}

.settings-action-btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.settings-action-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.settings-action-btn-accent {
    background: linear-gradient(145deg, rgba(44, 146, 242, 0.28), rgba(99, 102, 241, 0.22));
    border-color: rgba(96, 165, 250, 0.28);
    color: #fff;
    box-shadow: none;
}

.settings-action-btn-accent:hover {
    transform: translateY(-1px);
    background: linear-gradient(145deg, rgba(44, 146, 242, 0.35), rgba(99, 102, 241, 0.28));
}

.settings-action-btn-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.settings-action-btn-danger:hover {
    background: rgba(239, 68, 68, 0.12);
}

.settings-action-btn[hidden] {
    display: none !important;
}

/* QR modals */
.qr-auth-modal-content {
    width: min(440px, 94vw);
}

.qr-auth-show-body,
.qr-auth-scan-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.qr-auth-frame {
    width: min(280px, 72vw);
    aspect-ratio: 1;
    border-radius: 22px;
    padding: 14px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-auth-frame-inner {
    color: #2c92f2;
    font-size: 28px;
}

.qr-auth-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.qr-auth-image.is-hidden,
.is-hidden {
    display: none !important;
}

.qr-auth-timer {
    font-size: 13px;
    font-weight: 600;
    color: #93c5fd;
}

.qr-auth-status {
    margin: 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.45;
    color: #94a3b8;
    max-width: 320px;
}

.qr-auth-refresh-btn {
    width: 100%;
    max-width: 280px;
}

.qr-auth-display-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.qr-auth-code-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
}

.qr-auth-code-toggle:hover,
.qr-auth-code-toggle.is-active {
    background: rgba(44, 146, 242, 0.14);
    border-color: rgba(96, 165, 250, 0.32);
}

.qr-auth-pair-panel {
    width: 100%;
    max-width: 320px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.qr-auth-pair-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
}

.qr-auth-pair-code {
    margin: 10px 0 6px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #f8fafc;
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
}

.qr-auth-pair-hint {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.45;
    color: #94a3b8;
}

.qr-auth-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.qr-auth-copy-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.qr-auth-scanner-wrap {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-auth-scanner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-auth-scanner-overlay {
    position: absolute;
    inset: 10%;
    border: 2px solid rgba(96, 165, 250, 0.85);
    border-radius: 18px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.qr-auth-manual {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
}

.qr-auth-manual input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    font-size: 13px;
}

.qr-auth-scan-body .lg-btn-primary {
    width: 100%;
}

.qr-auth-code-entry {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qr-auth-code-input {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-align: center;
    text-transform: uppercase;
}

.qr-auth-code-submit {
    width: 100%;
}

.qr-auth-entry-divider {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.qr-auth-entry-divider::before,
.qr-auth-entry-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.qr-auth-link-details {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 12px;
}

.qr-auth-link-details summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    list-style: none;
}

.qr-auth-link-details summary::-webkit-details-marker {
    display: none;
}

.qr-auth-link-details[open] summary {
    margin-bottom: 10px;
}

.qr-auth-link-submit {
    width: 100%;
    margin-top: 8px;
}

@media (max-width: 767px) {
    .client-settings-panel {
        width: 100% !important;
        max-width: 100% !important;
    }
}
