/* Profile palette shared with the sign-in and document verification pages. */
body.profile-page { --profile-red: #bd2036; --profile-red-dark: #981a2d; --profile-ink: #1a2a45; --profile-muted: #65748a; font-family: 'Inter', Arial, sans-serif; color: var(--profile-ink); background: #f5f6f8; }
.profile-page .layout-page { background: transparent; }
.profile-page .content-wrapper { min-height: 100vh; background: #f5f6f8; }
.profile-page .page-content-wrapper { width: 100%; padding: 0 24px; }
.profile-page .page-content-wrapper > .container-fluid { width: 100%; max-width: none; margin: 0; padding: 0; }
.profile-banner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; margin-bottom: 20px; border: 1px solid #e4e8ee; border-radius: 18px; background: #fff; box-shadow: 0 8px 28px #65102108; }
.profile-banner::after { content: none; position: absolute; right: -65px; top: -105px; width: 260px; height: 260px; border: 42px solid rgba(189,32,54,.035); border-radius: 50%; pointer-events: none; }
.profile-banner > * { position: relative; z-index: 1; }
.profile-kicker { display: block; margin-bottom: 10px; color: var(--profile-red); font-size: 11px; font-weight: 700; letter-spacing: 1.8px; }
.profile-banner h1 { color: var(--profile-ink); font-size: clamp(25px, 3vw, 34px); font-weight: 700; letter-spacing: -.8px; margin: 0 0 10px; }
.profile-banner p { color: var(--profile-muted); margin: 0; font-size: 14px; line-height: 1.7; }
.profile-back { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; color: var(--profile-red); padding: 11px 15px; border: 1px solid #ecd4d8; border-radius: 10px; background: #fff; font-size: 13px; font-weight: 600; }
.profile-back:hover { color: #9e182b; background: #fff5f5; }
.profile-page .form-section { border: 1px solid #e4e8ee; border-radius: 18px; box-shadow: 0 10px 32px #65102109; }
.profile-page .profile-identity { position: static; padding: 24px 18px 20px; text-align: center; background: #fff; }
.profile-page .avatar-section { min-height: 0; width: 172px; height: 172px; margin: 0 auto 18px; border-radius: 50%; background: #fff; box-shadow: 0 7px 24px #65102118; overflow: hidden; border: 6px solid #fff; }
.profile-page #avatarPreview { display: block; width: 100% !important; height: 100%; min-height: 0; max-height: none; border-radius: 50% !important; object-fit: cover !important; }
.profile-page .avatar-overlay { border-radius: 50% !important; }
.profile-identity h2 { font-size: 21px; font-weight: 700; color: var(--profile-ink); overflow-wrap: anywhere; margin-bottom: 8px; }
.profile-affiliation { color: var(--profile-muted); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.profile-avatar-hint { font-size: 11px; color: var(--profile-muted); margin: 14px auto; max-width: 210px; line-height: 1.6; }
.profile-note { display: flex; gap: 10px; padding: 17px; border-radius: 12px; border: 1px solid #e4e8ee; background: #fff; color: var(--profile-muted); font-size: 12px; line-height: 1.8; margin-bottom: 24px; }
.profile-note i { margin-top: 3px; font-size: 20px; }
.profile-page .text-primary, .profile-page .accordion-button i { color: var(--profile-red) !important; }
.profile-page .btn-primary, .profile-page .btn-danger { background: var(--profile-red); border-color: var(--profile-red); box-shadow: none; }
.profile-page .btn-primary:hover, .profile-page .btn-danger:hover { background: #9e182b; border-color: #9e182b; }
.profile-identity .btn-danger { background: #fff !important; color: var(--profile-red); border-color: #e6c9ce; }
.profile-identity .d-flex { flex-wrap: wrap; }
.profile-page .accordion-item { background: #fff; border-color: #eee5e4 !important; }
.profile-page .accordion-button { min-height: 58px; padding: 17px 22px; color: var(--profile-ink); font-size: 14px; font-weight: 600; box-shadow: none; gap: 4px; }
.profile-page .accordion-button:not(.collapsed) { color: var(--profile-red); background: #f8f9fb; box-shadow: inset 3px 0 var(--profile-red); }
.profile-page .accordion-button i { font-size: 21px; }
.profile-page .accordion-body { padding: 24px 22px 8px; }
.profile-page .form-label { color: #65748a; font-size: 12px; text-transform: none; letter-spacing: 0; }
.profile-page .form-control { min-height: 46px; border-radius: 9px; }
.profile-page .form-control:disabled, .profile-page .value-box { opacity: 1; background: #f8f9fb; border-color: #e4e8ee; color: var(--profile-ink); font-size: 14px; min-height: 46px; }
.profile-page .form-control::placeholder { color: #9299a4; font-size: 12px; font-weight: 400; }
.profile-page .form-control:focus { border-color: var(--profile-red); box-shadow: 0 0 0 3px #bd203615; }
.profile-page :focus-visible { outline: 3px solid #bd2036; outline-offset: 3px; }
.profile-page footer { margin-top: 28px !important; padding: 20px 16px 70px !important; border-top: 1px solid rgba(189,32,54,.1); }
.profile-page footer p, .profile-page footer a { color: var(--profile-muted) !important; font-size: 12px !important; line-height: 1.9; }
.profile-page footer a { color: var(--profile-red) !important; }
.profile-page .btn-buy-now { box-shadow: 0 5px 20px #65102120 !important; border-radius: 12px; }
.profile-page .layout-navbar { border: 1px solid #e9e4e1; border-radius: 12px; box-shadow: 0 4px 16px rgba(26,42,69,.05) !important; }
.profile-page .bg-menu-theme { background: #fff !important; color: var(--profile-ink); box-shadow: 1px 0 0 #e8e5e2; }
.profile-page .bg-menu-theme .menu-link { color: #42516a; }
.profile-page .bg-menu-theme .menu-link:hover { color: var(--profile-red); background: #faf3f3; }
.profile-page .bg-menu-theme .menu-item.active > .menu-link { color: var(--profile-red) !important; background: #fbecef !important; }
.profile-page .bg-menu-theme .menu-item.active::before { background: var(--profile-red) !important; }
.profile-page .btn-success { color: #fff; background: #27765f; border-color: #27765f; }
.profile-page .btn-success:hover { background: #1f624f; border-color: #1f624f; }
.profile-page .modal-content { border: 1px solid #e4e8ee; border-radius: 16px; box-shadow: 0 24px 80px rgba(26,42,69,.18); overflow: hidden; }
.profile-page .modal-header { background: #f8f9fb; border-bottom-color: #eee2e4; }
.profile-page .modal-title { color: var(--profile-ink); font-weight: 700; }
.profile-page .form-section:hover { box-shadow: 0 12px 36px rgba(101,16,33,.08); }
.profile-page .row > [class*='col-'] { min-width: 0; }
.profile-status { margin-bottom: 18px; color: var(--profile-muted); font-size: 13px; }
.profile-status.error { padding: 14px; border: 1px solid #efc4c7; border-radius: 10px; color: #a42132; background: #fff1f0; }
.profile-status button { margin-left: 10px; color: inherit; background: white; border: 1px solid currentColor; border-radius: 6px; padding: 4px 10px; }
@media (max-width: 991px) { .profile-page .profile-identity { position: static; padding: 24px; } .profile-page .avatar-section { width: 150px; height: 150px; } .profile-banner { padding: 24px; } .profile-note { margin-bottom: 20px; } }
@media (max-width: 575px) { .profile-page .page-content-wrapper { padding: 0 12px; } .profile-banner { align-items: flex-start; flex-direction: column; gap: 16px; padding: 22px; border-radius: 14px; } .profile-banner h1 { font-size: 26px; } .profile-back { width: 100%; justify-content: center; } .profile-page .accordion-button { padding: 18px 16px; } .profile-page .accordion-body { padding: 20px 16px 4px; } .profile-page .buy-now { right: 16px; bottom: 16px; } .profile-page footer { padding-bottom: 80px !important; } }
@media (prefers-reduced-motion: reduce) { .profile-page *, .profile-page *::before, .profile-page *::after { transition: none !important; animation: none !important; } }

/* Keep the summary compact and let the details fill the available workspace. */
.profile-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.profile-layout > * { min-width: 0; }
.profile-details .profile-details-heading { color: var(--profile-ink); font-size: 18px; }
.profile-field-group { margin: 6px 0 16px; display: flex; align-items: center; gap: 12px; color: var(--profile-ink); font-size: 12px; font-weight: 600; }
.profile-field-group::after { content: ''; height: 1px; background: #e8ecf1; flex: 1; }
.profile-page .profile-identity { margin-bottom: 16px; }
@media (min-width: 992px) and (max-width: 1199px) { .profile-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 20px; } }
@media (max-width: 991px) { .profile-layout { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
