/* Profile & Settings Page Redesign */
.profile-settings-redesign {
    padding: 24px 32px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

.ps-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    max-width: 1100px;
}

/* User Card - Left Column */
.ps-user-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8e8ed;
    padding: 40px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.ps-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #00D4FF;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-family: Inter, -apple-system, sans-serif;
}

.ps-name {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 4px 0;
}

.ps-email {
    font-size: 13px;
    color: #86868b;
    margin: 0 0 16px 0;
}

.ps-badge {
    display: inline-block;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.ps-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f5;
    width: 100%;
    justify-content: center;
}

.ps-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ps-stat-num {
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.2;
}

.ps-stat-label {
    font-size: 10px;
    font-weight: 600;
    color: #86868b;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

.ps-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1d1d1f;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    font-family: Inter, -apple-system, sans-serif;
}

.ps-edit-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

/* Right Column Cards */
.ps-right-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ps-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8e8ed;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.ps-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 20px 0;
}

/* Account Rows */
.ps-account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f5;
}

.ps-account-row--last {
    border-bottom: none;
    padding-bottom: 0;
}

.ps-account-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ps-account-label {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
}

.ps-account-desc {
    font-size: 12px;
    color: #86868b;
}

.ps-account-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ps-account-value {
    font-size: 14px;
    color: #424245;
}

.ps-account-action {
    font-size: 13px;
    font-weight: 600;
    color: #00D4FF;
    text-decoration: none;
    transition: color 0.15s ease;
}

.ps-account-action:hover {
    color: #00b8db;
    text-decoration: none;
}

/* Preferences Rows */
.ps-pref-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f5;
}

.ps-pref-row--last {
    border-bottom: none;
    padding-bottom: 0;
}

.ps-pref-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ps-pref-label {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
}

.ps-pref-desc {
    font-size: 12px;
    color: #86868b;
}

/* Toggle Switch */
.ps-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.ps-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ps-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #d1d1d6;
    border-radius: 24px;
    transition: background 0.2s ease;
}

.ps-toggle-slider:before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.ps-toggle input:checked + .ps-toggle-slider {
    background: #00D4FF;
}

.ps-toggle input:checked + .ps-toggle-slider:before {
    transform: translateX(20px);
}

/* Responsive */
@media (max-width: 900px) {
    .ps-grid {
        grid-template-columns: 1fr;
    }
}

/* Hide the page title if exists */
.tpl-profile .content__main .content__block > .account__profile {
    /* keep this in case we need to target original */
}