.profile-page-container,
.profile-page-container p,
.profile-page-container li,
.profile-page-container td,
.profile-page-container th {
    font-size: 1rem;
}

.profile-page-container input,
.profile-page-container select,
.profile-page-container textarea {
    font-size: 1rem;
}

.profile-page-container label,
.profile-page-container button,
.profile-page-container .btn {
    font-size: 0.95rem;
}

.profile-page-container small {
    font-size: 0.9rem;
}

.profile-page-header {
    width: 100%;
    margin: 1rem 0 1.5rem;
    background: transparent;
    text-align: center;
}

body.dark .profile-page-header {
    background: transparent;
}

.profile-pro-status {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: #fff5cc;
    color: #5c4810;
    line-height: 1.25;
    box-shadow: 0 8px 22px rgba(126, 96, 12, 0.1);
}

.profile-pro-status__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: #f4c430;
    color: #302400;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.profile-pro-status__active {
    font-weight: 700;
}

.profile-pro-status strong {
    color: inherit;
    font-weight: 900;
}

.profile-pro-status__separator {
    opacity: 0.55;
}

body.dark .profile-pro-status {
    background: #40391f;
    color: #ffe99a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

body.dark .profile-pro-status__badge {
    background: #e3b62b;
    color: #241b00;
}

.profile-sidebar-card {
    display: grid;
    gap: 0.85rem;
    width: 100%;
    margin: 0 0 0.85rem;
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
    color: #172033;
    box-shadow: 0 14px 34px rgba(28, 51, 84, 0.1);
}

.profile-sidebar-card__identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.8rem;
}

.profile-sidebar-card__avatar {
    display: block;
    width: 3.35rem;
    height: 3.35rem;
    flex: 0 0 3.35rem;
    border-radius: 1rem;
    background-color: #dce8f5;
    background-position: center;
    background-size: cover;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 8px 18px rgba(28, 51, 84, 0.12);
}

.profile-sidebar-card__copy {
    display: grid;
    min-width: 0;
    gap: 0.18rem;
}

.profile-sidebar-card__eyebrow {
    color: #66758a;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.profile-sidebar-card__copy strong {
    overflow-wrap: anywhere;
    color: #172033;
    font-size: 1.08rem;
    line-height: 1.25;
}

.profile-sidebar-card .profile-pro-status {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    gap: 0.45rem;
    padding: 0.65rem;
    border-radius: 0.85rem;
    background: #fff3bc;
    box-shadow: none;
}

.profile-sidebar-card .profile-pro-status__badge {
    flex: 0 0 auto;
}

.profile-sidebar-card__upgrade {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem;
    border-radius: 0.85rem;
    background: #eaf3ff;
    color: #155ca8;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.profile-sidebar-card__upgrade:hover,
.profile-sidebar-card__upgrade:focus-visible {
    background: #d9ebff;
    transform: translateY(-1px);
}

.profile-sidebar-card__upgrade:focus-visible {
    outline: 2px solid #2187ff;
    outline-offset: 2px;
}

.profile-sidebar-card__upgrade-icon {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 2.35rem;
    place-items: center;
    border-radius: 0.75rem;
    background: #1670cc;
    color: #fff;
}

.profile-sidebar-card__upgrade span:last-child {
    display: grid;
    gap: 0.1rem;
}

.profile-sidebar-card__upgrade strong {
    color: inherit;
    line-height: 1.2;
}

.profile-sidebar-card__upgrade small {
    color: #58708e;
    font-size: 0.9rem;
    font-weight: 700;
}

body.dark .profile-sidebar-card {
    background: linear-gradient(180deg, #262e38 0%, #20262f 100%);
    color: #f1f6fd;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

body.dark .profile-sidebar-card__avatar {
    background-color: #343f4d;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.24);
}

body.dark .profile-sidebar-card__eyebrow {
    color: #aab7c8;
}

body.dark .profile-sidebar-card__copy strong {
    color: #f1f6fd;
}

body.dark .profile-sidebar-card .profile-pro-status {
    background: #473f21;
}

body.dark .profile-sidebar-card__upgrade {
    background: rgba(83, 159, 255, 0.13);
    color: #b8d9ff;
}

body.dark .profile-sidebar-card__upgrade:hover,
body.dark .profile-sidebar-card__upgrade:focus-visible {
    background: rgba(83, 159, 255, 0.22);
}

body.dark .profile-sidebar-card__upgrade-icon {
    background: #2f7ec7;
}

body.dark .profile-sidebar-card__upgrade small {
    color: #9fb3ca;
}

.profile-mobile-menu-backdrop,
.profile-mobile-menu-button {
    display: none;
}

.profile-layout {
    width: 100%;
}

.profile-layout__sidebar {
    width: 100%;
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

.profile-layout__content {
    min-width: 0;
}

.profile-settings-form {
    width: 100%;
    margin: 0;
}

.profile-settings-section {
    width: 100%;
    padding: clamp(1.1rem, 2.5vw, 1.6rem);
    border-radius: 1.15rem;
    background: #fff;
    color: #172033;
    box-shadow: 0 14px 38px rgba(28, 51, 84, 0.08);
}

.profile-settings-section__heading,
body.dark .profile-settings-section__heading {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin: 0 0 1.35rem;
    background: transparent;
    text-align: left;
}

.profile-settings-section__heading > span:last-child {
    min-width: 0;
}

.profile-settings-section__heading h2,
.account-page .profile-settings-section__heading h2 {
    margin: 0 0 0.3rem;
    color: #172033;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: left;
}

.profile-settings-section__heading p {
    margin: 0;
    color: #66758a;
    line-height: 1.45;
}

.profile-settings-section__icon {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    place-items: center;
    border-radius: 0.8rem;
    background: #eaf3ff;
    color: #1670cc;
    font-size: 1.05rem;
}

.profile-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.profile-field,
.profile-settings-form .profile-avatar-upload {
    display: grid;
    align-content: start;
    gap: 0.45rem;
    width: 100%;
    color: #27364c;
}

.profile-settings-form .profile-avatar-upload {
    grid-column: 1 / -1;
}

.profile-field__label,
.profile-rides-title {
    color: #36465d;
    font-size: 0.95rem;
    font-weight: 800;
}

.profile-settings-form .profile-field input[type="text"],
.profile-settings-form .profile-field input[type="email"],
.profile-settings-form .profile-field input[type="file"] {
    width: 100%;
    min-height: 3.15rem;
    margin: 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid #d8e2ee;
    border-radius: 0.75rem;
    outline: none;
    background: #f8fafc;
    color: #172033;
    font-size: 1rem;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.profile-settings-form .profile-field input[type="text"]:focus,
.profile-settings-form .profile-field input[type="email"]:focus,
.profile-settings-form .profile-field input[type="file"]:focus-visible {
    border-color: #2187ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(33, 135, 255, 0.14);
}

.profile-settings-form .profile-field input::placeholder {
    color: #8895a7;
}

.profile-settings-form input[type="file"]::file-selector-button {
    margin: -0.45rem 0.75rem -0.45rem -0.55rem;
    padding: 0.55rem 0.8rem;
    border: 0;
    border-radius: 0.55rem;
    background: #e4effd;
    color: #155ca8;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.profile-settings-form .profile-avatar-upload__hint {
    color: #738196;
    font-size: 0.9rem;
    line-height: 1.4;
}

.profile-settings-form .profile-email .email-unverified {
    margin: 0.1rem 0 0;
    padding: 0;
    color: #bd3030;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: left;
}

.profile-settings-form .profile-email .email-unverified a {
    color: inherit;
    font-weight: 800;
    text-decoration: underline;
}

.profile-email__notice {
    color: #738196;
    font-size: 0.9rem;
    line-height: 1.4;
}

.profile-email-verification[hidden] {
    display: none;
}

.profile-email-verification {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.45rem;
    padding: 0.9rem;
    border-radius: 0.8rem;
    background: #eef5fd;
}

.profile-email-verification > strong {
    color: #27364c;
    font-size: 1rem;
}

.profile-email-verification > p {
    margin: 0;
    color: #68788d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.profile-email-verification__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
}

.profile-settings-form .profile-email-verification__controls input[type="text"] {
    min-height: 2.8rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #b9cbe0;
    border-radius: 0.65rem;
    background: #fff;
    color: #172033;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-align: center;
}

.profile-email-verification__controls button,
.profile-email-verification__resend {
    min-height: 2.8rem;
    padding: 0.6rem 0.8rem;
    border: 0;
    border-radius: 0.65rem;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
}

.profile-email-verification__controls button {
    background: #1670cc;
    color: #fff;
}

.profile-email-verification__resend {
    justify-self: start;
    min-height: auto;
    padding: 0.25rem 0;
    background: transparent;
    color: #1769ba;
}

.profile-email-verification button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.profile-email-verification button:focus-visible,
.profile-email-verification input:focus-visible {
    outline: 3px solid rgba(33, 135, 255, 0.28);
    outline-offset: 2px;
}

.profile-email__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.25rem;
}

.profile-email__actions[hidden],
.profile-email__submit[hidden],
.profile-field__status:not(.is-visible),
.email-unverified[hidden] {
    display: none;
}

.profile-email__submit,
.profile-email__cancel {
    min-height: 2.55rem;
    padding: 0.55rem 0.8rem;
    border: 0;
    border-radius: 0.65rem;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
}

.profile-email__submit {
    background: #1670cc;
    color: #fff;
}

.profile-email__cancel {
    background: #e9eef4;
    color: #435268;
}

.profile-email__submit:disabled,
.profile-email__cancel:disabled {
    cursor: wait;
    opacity: 0.58;
}

.profile-email__submit:focus-visible,
.profile-email__cancel:focus-visible {
    outline: 3px solid rgba(33, 135, 255, 0.28);
    outline-offset: 2px;
}

.profile-field__status {
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.35;
}

.profile-field__status.is-saving {
    color: #52657b;
}

.profile-field__status.is-success {
    color: #13764b;
}

.profile-field__status.is-error {
    color: #b32626;
}

.profile-settings-form input:disabled {
    cursor: wait;
    opacity: 0.62;
}

.profile-settings-form .profile-rides {
    display: block;
    width: 100%;
    margin: 1.25rem 0 0;
    padding: 0;
    border: 0;
    color: #27364c;
}

.profile-rides-title {
    margin-bottom: 0.55rem;
}

.profile-rides-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.profile-rides-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.profile-rides-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.profile-rides-option > span {
    display: flex;
    min-height: 3.2rem;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: #f0f4f8;
    color: #44546a;
    font-size: 0.95rem;
    font-weight: 800;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.profile-rides-option:hover > span {
    background: #e8f1fc;
    color: #155ca8;
}

.profile-rides-option input:checked + span {
    background: #1670cc;
    color: #fff;
    box-shadow: 0 8px 20px rgba(22, 112, 204, 0.2);
}

.profile-rides-option input:focus-visible + span {
    outline: 3px solid rgba(33, 135, 255, 0.25);
    outline-offset: 2px;
}

.profile-preferences {
    margin-top: 1.5rem;
}

.profile-settings-list {
    display: grid;
}

.profile-setting-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid #e8edf3;
}

.profile-setting-row:first-child {
    padding-top: 0;
    border-top: 0;
}

.profile-setting-row:last-child {
    padding-bottom: 0;
}

.profile-setting-row__copy {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.profile-setting-row__copy strong {
    color: #27364c;
    font-size: 1rem;
    line-height: 1.35;
}

.profile-setting-row__copy strong a {
    color: #1769ba;
}

.profile-setting-row__copy small,
.profile-setting-row .profile-news-subscription__hint,
.profile-setting-row .profile-player-trip-setting__hint {
    display: block;
    max-width: none;
    margin: 0;
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.45;
}

.profile-setting-row .profile-news-subscription__hint a {
    color: #1769ba;
}

.profile-setting-row .ad-switch,
.profile-setting-row .theme-switch {
    width: 38px;
    height: 22px;
    flex: 0 0 38px;
    min-width: 38px;
}

.profile-setting-row .ad-switch .slider,
.profile-setting-row .theme-switch .slider {
    border-radius: 999px;
    border: 0;
    background: #aebdcb;
    box-shadow: none;
    transition: background 160ms ease;
}

.profile-setting-row .ad-switch .slider::before,
.profile-setting-row .theme-switch .slider::before {
    content: "";
    top: 3px;
    bottom: auto;
    left: 3px;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 0;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
    transition: transform 160ms ease;
}

.profile-setting-row .ad-switch input:checked + .slider,
body.dark .profile-setting-row .theme-switch .slider {
    background: #14825d;
}

.profile-setting-row .ad-switch input:checked + .slider::before,
body.dark .profile-setting-row .theme-switch .slider::before {
    content: "";
    transform: translateX(16px);
}

.profile-setting-row .ad-switch input:focus-visible + .slider,
.profile-setting-row .theme-switch input:focus-visible + .slider {
    outline: 3px solid rgba(20, 130, 93, 0.28);
    outline-offset: 2px;
}

.profile-setting-row .ad-switch.is-disabled {
    opacity: 0.62;
}

body.dark .profile-settings-section {
    background: #222831;
    color: #eef4fc;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

body.dark .profile-settings-section__heading h2,
body.dark .account-page .profile-settings-section__heading h2,
body.dark .profile-setting-row__copy strong {
    color: #f1f6fd;
}

body.dark .profile-settings-section__heading p,
body.dark .profile-setting-row__copy small,
body.dark .profile-setting-row .profile-news-subscription__hint,
body.dark .profile-setting-row .profile-player-trip-setting__hint,
body.dark .profile-settings-form .profile-avatar-upload__hint {
    color: #aab7c8;
}

body.dark .profile-email__notice {
    color: #aab7c8;
}

body.dark .profile-email-verification {
    background: #2b3542;
}

body.dark .profile-email-verification > strong {
    color: #f1f6fd;
}

body.dark .profile-email-verification > p {
    color: #adbacb;
}

body.dark .profile-settings-form .profile-email-verification__controls input[type="text"] {
    border-color: #536477;
    background: #1d242d;
    color: #fff;
}

body.dark .profile-email-verification__resend {
    color: #82bdff;
}

body.dark .profile-email__cancel {
    background: #35404e;
    color: #d8e4f2;
}

body.dark .profile-field__status.is-saving {
    color: #b3c0d0;
}

body.dark .profile-field__status.is-success {
    color: #72d9a6;
}

body.dark .profile-field__status.is-error {
    color: #ff9696;
}

body.dark .profile-settings-section__icon {
    background: rgba(83, 159, 255, 0.14);
    color: #8bc3ff;
}

body.dark .profile-field,
body.dark .profile-settings-form .profile-avatar-upload,
body.dark .profile-field__label,
body.dark .profile-rides-title,
body.dark .profile-settings-form .profile-rides {
    color: #dce7f5;
}

body.dark .profile-settings-form .profile-field input[type="text"],
body.dark .profile-settings-form .profile-field input[type="email"],
body.dark .profile-settings-form .profile-field input[type="file"] {
    border-color: #3a4655;
    background: #1b2028;
    color: #f0f5fc;
}

body.dark .profile-settings-form .profile-field input[type="text"]:focus,
body.dark .profile-settings-form .profile-field input[type="email"]:focus,
body.dark .profile-settings-form .profile-field input[type="file"]:focus-visible {
    border-color: #65aaff;
    background: #202731;
}

body.dark .profile-settings-form .profile-field input::placeholder {
    color: #8290a2;
}

body.dark .profile-settings-form input[type="file"]::file-selector-button {
    background: #303d4d;
    color: #b9d8ff;
}

body.dark .profile-rides-option > span {
    background: #2b333e;
    color: #c4d0df;
}

body.dark .profile-rides-option:hover > span {
    background: #313e4d;
    color: #b8d8ff;
}

body.dark .profile-rides-option input:checked + span {
    background: #236fc5;
    color: #fff;
}

body.dark .profile-setting-row {
    border-top-color: #343e4b;
}

body.dark .profile-setting-row__copy strong a,
body.dark .profile-setting-row .profile-news-subscription__hint a {
    color: #82bdff;
}

body.dark .profile-setting-row .ad-switch .slider,
body.dark .profile-setting-row .theme-switch .slider {
    border-color: transparent;
    background: #aebdcb;
    box-shadow: none;
}

body.dark .profile-setting-row .ad-switch input:checked + .slider,
body.dark .profile-setting-row .theme-switch .slider {
    background: #14825d;
}

body.dark .profile-setting-row .ad-switch .slider::before,
body.dark .profile-setting-row .theme-switch .slider::before {
    content: "";
    border-color: transparent;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
}

body.dark .profile-setting-row .ad-switch input:focus-visible + .slider,
body.dark .profile-setting-row .theme-switch input:focus-visible + .slider {
    outline-color: rgba(20, 130, 93, 0.36);
}

.profile-nav-section {
    width: 100%;
    margin: 0;
}

.profile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.profile-nav__link {
    display: flex;
    min-width: 0;
    min-height: 3.25rem;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    background: rgba(20, 104, 226, 0.07);
    color: #174f96;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.profile-nav__link i {
    width: 1.25rem;
    flex: 0 0 1.25rem;
    color: #1670cc;
    font-size: 1rem;
    text-align: center;
}

.profile-nav__link:hover,
.profile-nav__link:focus-visible {
    background: rgba(20, 104, 226, 0.14);
    color: #0d4d9b;
    transform: translateY(-1px);
}

.profile-nav__link:focus-visible {
    outline: 2px solid #2187ff;
    outline-offset: 2px;
}

.profile-nav__link.is-active {
    background: #1670cc;
    color: #fff;
}

.profile-nav__link.is-active i {
    color: inherit;
}

.profile-nav__link--logout {
    grid-column: 1 / -1;
    justify-content: center;
    background: rgba(186, 42, 42, 0.07);
    color: #a22626;
}

.profile-nav__link--upgrade {
    background: #fff0ad;
    color: #624700;
    box-shadow: 0 9px 22px rgba(151, 108, 0, 0.14);
}

.profile-nav__link--upgrade i {
    color: #a77100;
}

.profile-nav__link--upgrade:hover,
.profile-nav__link--upgrade:focus-visible {
    background: #ffdf5b;
    color: #3e2c00;
}

.profile-nav__link--logout i {
    color: inherit;
}

.profile-nav__link--logout:hover,
.profile-nav__link--logout:focus-visible {
    background: rgba(186, 42, 42, 0.14);
    color: #8e1d1d;
}

body.dark .profile-nav__link {
    background: rgba(83, 159, 255, 0.11);
    color: #a9d0ff;
}

body.dark .profile-nav__link i {
    color: #79b6ff;
}

body.dark .profile-nav__link:hover,
body.dark .profile-nav__link:focus-visible {
    background: rgba(83, 159, 255, 0.2);
    color: #d5e9ff;
}

body.dark .profile-nav__link.is-active {
    background: #236fc5;
    color: #fff;
}

body.dark .profile-nav__link--logout {
    background: rgba(255, 105, 105, 0.1);
    color: #ffaaaa;
}

body.dark .profile-nav__link--upgrade {
    background: #5d4a13;
    color: #ffe995;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

body.dark .profile-nav__link--upgrade i {
    color: #ffd85f;
}

body.dark .profile-nav__link--upgrade:hover,
body.dark .profile-nav__link--upgrade:focus-visible {
    background: #796016;
    color: #fff3bf;
}

.profile-nav__link--upgrade.is-disabled,
.profile-nav__link--upgrade.is-disabled:hover,
.profile-nav__link--upgrade.is-disabled:focus-visible {
    background: #eef2f6;
    color: #66758a;
    outline: 0;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.profile-nav__link--upgrade.is-disabled i {
    color: #7f8da0;
}

body.dark .profile-nav__link--upgrade.is-disabled,
body.dark .profile-nav__link--upgrade.is-disabled:hover,
body.dark .profile-nav__link--upgrade.is-disabled:focus-visible {
    background: #29323d;
    color: #aab7c8;
    box-shadow: none;
}

body.dark .profile-nav__link--upgrade.is-disabled i {
    color: #91a0b2;
}

body.dark .profile-nav__link--logout:hover,
body.dark .profile-nav__link--logout:focus-visible {
    background: rgba(255, 105, 105, 0.18);
    color: #ffd1d1;
}

@media (max-width: 899px) {
    html.has-profile-mobile-menu .profile-layout {
        padding-bottom: 0;
    }

    body.has-profile-mobile-menu .site-footer-wrap {
        padding-bottom: calc(6.25rem + env(safe-area-inset-bottom));
    }

    .profile-layout__sidebar[data-profile-mobile-menu] {
        position: fixed;
        z-index: 100720;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
        opacity: 0;
        pointer-events: none;
        transform: translateY(calc(100% + 1.25rem));
        transition: opacity 180ms ease, transform 220ms ease;
    }

    .profile-layout__sidebar[data-profile-mobile-menu].is-mobile-menu-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .profile-layout__sidebar[data-profile-mobile-menu] .profile-nav-section {
        overflow-y: auto;
        width: min(100%, 520px);
        max-height: min(78vh, calc(100dvh - 5.5rem));
        margin: 0 auto;
        padding: 0.8rem;
        border-radius: 1.2rem 1.2rem 0 0;
        background: #fff;
        box-shadow: 0 -18px 46px rgba(13, 28, 48, 0.22);
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .profile-layout__sidebar[data-profile-mobile-menu] .profile-nav-section::before {
        content: "";
        display: block;
        width: 2.7rem;
        height: 0.25rem;
        margin: 0 auto 0.75rem;
        border-radius: 999px;
        background: #c8d5e4;
    }

    .profile-layout__sidebar[data-profile-mobile-menu] .profile-sidebar-card {
        margin-bottom: 0.7rem;
        background: #f6f9fd;
        box-shadow: none;
    }

    .profile-layout__sidebar[data-profile-mobile-menu] .profile-nav {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .profile-layout__sidebar[data-profile-mobile-menu] .profile-nav__link {
        min-height: 3rem;
        padding: 0.7rem 0.8rem;
    }

    .profile-nav__link.is-touch-target {
        background: #1670cc;
        color: #fff;
        transform: translateY(-1px);
    }

    .profile-nav__link.is-touch-target i {
        color: inherit;
    }

    .profile-mobile-menu-backdrop {
        position: fixed;
        z-index: 100700;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(5, 12, 22, 0.42);
        cursor: pointer;
    }

    .profile-mobile-menu-backdrop[hidden],
    .profile-mobile-menu-button[hidden] {
        display: none !important;
    }

    .profile-mobile-menu-button {
        position: fixed;
        z-index: 100710;
        bottom: max(0.75rem, env(safe-area-inset-bottom));
        left: 50%;
        display: flex;
        width: min(calc(100vw - 1.5rem), 420px);
        min-height: 3.6rem;
        align-items: center;
        gap: 0.72rem;
        padding: 0.72rem 0.85rem;
        border: 1px solid #d8e4f0;
        border-radius: 1rem;
        background: #fff;
        color: #172033;
        font: inherit;
        text-align: left;
        box-shadow: 0 12px 34px rgba(28, 51, 84, 0.16);
        cursor: pointer;
        transform: translateX(-50%);
        transition: opacity 180ms ease, transform 220ms ease, box-shadow 160ms ease;
    }

    .profile-mobile-menu-button:focus-visible {
        outline: 2px solid #2187ff;
        outline-offset: 3px;
    }

    .profile-mobile-menu-button__icon {
        display: grid;
        width: 2.25rem;
        height: 2.25rem;
        flex: 0 0 2.25rem;
        place-items: center;
        border-radius: 0.75rem;
        background: #2479d4;
        color: #fff;
        font-size: 1.1rem;
    }

    .profile-mobile-menu-button__icon--avatar {
        overflow: hidden;
        background-color: #dce8f5;
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 6px 14px rgba(28, 51, 84, 0.12);
    }

    .profile-mobile-menu-button__avatar {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: inherit;
        object-fit: contain;
        object-position: center;
    }

    .profile-mobile-menu-button__avatar--apple-default {
        width: 82%;
        height: 82%;
        border-radius: 0;
    }

    .profile-mobile-menu-button__copy {
        display: grid;
        min-width: 0;
        gap: 0.12rem;
    }

    .profile-mobile-menu-button__label {
        overflow: hidden;
        font-size: 0.95rem;
        font-weight: 850;
        line-height: 1.18;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-mobile-menu-button small {
        overflow: hidden;
        color: #66758a;
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-mobile-menu-button__chevron {
        display: grid;
        width: 2rem;
        height: 2rem;
        flex: 0 0 2rem;
        place-items: center;
        margin-left: auto;
        border-radius: 50%;
        background: #eaf3ff;
        color: #1769ba;
        transition: transform 180ms ease;
    }

    .profile-mobile-menu-button.is-open .profile-mobile-menu-button__chevron {
        transform: rotate(180deg);
    }

    html.has-profile-mobile-menu-open,
    body.has-profile-mobile-menu-open {
        overflow: hidden;
        overscroll-behavior: none;
    }

    body.dark .profile-layout__sidebar[data-profile-mobile-menu] .profile-nav-section {
        background: #20262f;
        box-shadow: 0 -18px 46px rgba(0, 0, 0, 0.42);
    }

    body.dark .profile-layout__sidebar[data-profile-mobile-menu] .profile-nav-section::before {
        background: #475467;
    }

    body.dark .profile-layout__sidebar[data-profile-mobile-menu] .profile-sidebar-card {
        background: #262e38;
    }

    body.dark .profile-mobile-menu-button {
        border-color: rgba(121, 182, 255, 0.26);
        background: linear-gradient(180deg, #303b48 0%, #29323d 100%);
        color: #f5f8fc;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.07),
            0 18px 44px rgba(0, 0, 0, 0.46),
            0 0 0 3px rgba(47, 126, 199, 0.08);
    }

    body.dark .profile-mobile-menu-button::before {
        content: "";
        position: absolute;
        top: -1px;
        right: 1.1rem;
        left: 1.1rem;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(90deg, transparent, rgba(121, 182, 255, 0.72), transparent);
        pointer-events: none;
    }

    body.dark .profile-mobile-menu-button__icon {
        background: #2f7ec7;
    }

    body.dark .profile-mobile-menu-button__icon--avatar {
        background-color: #343f4d;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 14px rgba(0, 0, 0, 0.24);
    }

    body.dark .profile-mobile-menu-button small {
        color: #b9c8d9;
    }

    body.dark .profile-mobile-menu-button__chevron {
        background: rgba(83, 159, 255, 0.16);
        color: #cbe4ff;
        box-shadow: inset 0 0 0 1px rgba(121, 182, 255, 0.12);
    }

    body.dark .profile-mobile-menu-backdrop {
        background: rgba(0, 0, 0, 0.55);
    }
}

@media (max-width: 420px) {
    .profile-nav {
        grid-template-columns: 1fr;
    }

    .profile-nav__link--logout {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .profile-sidebar-card {
        gap: 0.7rem;
        padding: 0.85rem;
        border-radius: 0.9rem;
    }

    .profile-sidebar-card__avatar {
        width: 2.8rem;
        height: 2.8rem;
        flex-basis: 2.8rem;
        border-radius: 0.85rem;
    }

    .profile-sidebar-card__copy strong {
        font-size: 1rem;
    }

    .profile-sidebar-card .profile-pro-status {
        padding: 0.55rem;
    }

    .profile-fields-grid {
        grid-template-columns: 1fr;
    }

    .profile-rides-options {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 0.5rem;
        max-width: 100%;
        margin: 0;
    }

    .profile-rides-option > span {
        gap: 0.42rem;
        min-height: 3rem;
        padding: 0.65rem 0.5rem;
        font-size: 0.95rem;
    }

    .profile-settings-form .profile-avatar-upload {
        grid-column: auto;
    }

    .profile-setting-row {
        gap: 0.75rem;
    }

    .profile-email-verification__controls {
        grid-template-columns: 1fr;
    }

}

@media (min-width: 900px) {
    .profile-layout {
        display: grid;
        grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
        gap: 2rem;
        align-items: start;
        margin-bottom: 0;
    }

    .profile-layout__sidebar {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .profile-nav {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .profile-nav__link {
        min-height: 3.75rem;
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }

    .profile-nav__link i {
        width: 1.5rem;
        flex-basis: 1.5rem;
        font-size: 1.1rem;
    }

    .profile-nav__link--logout {
        grid-column: auto;
        justify-content: flex-start;
        margin-top: 0.35rem;
    }

    .profile-layout__content.account-page {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        justify-self: stretch;
    }

    .profile-layout__content .page_wrap {
        width: 100%;
        max-width: none;
    }
}
