.cp-wrap h1,
.cp-wrap h2,
.cp-wrap h3,
.cp-wrap h4,
.cp-wrap p,
.cp-wrap span,
.cp-wrap div,
.cp-wrap a,
.cp-wrap button {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Profile Page Styles */
.cp-wrap {
    max-width: 1200px;
    margin: calc(2 * 30px) auto calc(3 * 30px) !important;
    ;
    padding: 20px;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: #0A0A0A;
}

.cp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.cp-header-left h1 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 600;
    color: #0A0A0A;
    letter-spacing: -0.5px;
}

.cp-sub {
    margin: 0;
    color: #65758B;
    font-size: 16px;
    line-height: 1.5;
}

.cp-header-right {
    display: flex;
    gap: 12px;
}

.cp-edit-btn {
    background: #072B55;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.cp-edit-btn:hover {
    background: #374151;
}

.cp-edit-actions {
    display: flex;
    gap: 12px;
}

.cp-cancel-btn {
    background: transparent;
    color: #65758B;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.cp-cancel-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.cp-save-btn {
    background: #1f2937;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s;
}

.cp-save-btn:hover {
    background: #374151;
}

.cp-save-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.cp-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: flex-start;
}

.cp-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.cp-card-inner {
    padding: 32px;
}

.cp-section-header {
    margin-bottom: 24px;
}

.cp-section-header h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.cp-section-subtitle {
    margin: 0;
    color: #65758B;
    font-size: 14px;
}

.cp-personal-head {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
}

.cp-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.cp-personal-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.cp-name-role {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cp-name {
    font-weight: 600;
    font-size: 24px;
    color: #111827;
    margin: 0;
}

.cp-role-label {
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.cp-role-sub {
    color: #65758B;
    font-size: 16px;
    margin: 0;
}

.cp-agency-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    max-width: fit-content;
}

.cp-details {
    display: block;
}

.cp-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    padding: 20px 0;
    align-items: flex-start;
    border-bottom: 1px solid #f3f4f6;
}

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

.cp-label {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    padding-top: 2px;
}

.cp-value-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cp-value {
    color: #111827;
    font-size: 16px;
    line-height: 1.5;
}

.cp-bio-row .cp-value {
    max-width: 100%;
    color: #65758B;
    line-height: 1.6;
}

.cp-edit-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cp-edit-field:focus {
    outline: none;
    border-color: #1f2937;
    box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
    border-radius: 8px;
}

.cp-edit-field[type="text"],
.cp-edit-field[type="text"]:focus {
    height: 48px;
    border-radius: 6px !important;
    outline: none !important;
}

textarea.cp-edit-field {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
    border-radius: 6px !important;

}

select.cp-edit-field {
    height: 48px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2365758B' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

.cp-error-message {
    color: #dc2626;
    font-size: 14px;
    margin-top: 4px;
}

/* Account Information Card */
.cp-card-small .cp-card-inner {
    padding: 24px;
}

.cp-card-small h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.cp-side-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.cp-side-row:last-child {
    border-bottom: none;
}

.cp-side-label {
    color: #65758B;
    font-weight: 500;
    font-size: 14px;
}

.cp-side-value {
    color: #111827;
    font-weight: 500;
    font-size: 14px;
}

/* Notification */
.cp-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.cp-notification.cp-show {
    transform: translateY(0);
    opacity: 1;
}

.cp-notification.cp-success {
    background: #10b981;
    color: #ffffff;
}

.cp-notification.cp-error {
    background: #ef4444;
    color: #ffffff;
}

/* Login Message */
.cp-please-login {
    text-align: center;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    color: #65758B;
    font-size: 16px;
}

.cp-please-login a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
}

.cp-please-login a:hover {
    text-decoration: underline;
}

.cp-error {
    text-align: center;
    padding: 40px 20px;
    background: #fef2f2;
    border-radius: 12px;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cp-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cp-wrap {
        padding: 16px;
    }

    .cp-card-inner {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .cp-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .cp-header-right {
        justify-content: flex-end;
    }

    .cp-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cp-label {
        font-weight: 600;
        color: #111827;
    }

    .cp-personal-head {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .cp-name-role {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .cp-edit-actions {
        flex-direction: column;
    }

    .cp-notification {
        right: 16px;
        bottom: 16px;
        left: 16px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .cp-header-left h1 {
        font-size: 28px;
    }

    .cp-card-inner {
        padding: 20px;
    }

    .cp-personal-head {
        padding: 20px;
    }

    .cp-edit-btn,
    .cp-save-btn,
    .cp-cancel-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}