.hubpet-profile {
    max-width: 860px;
    margin: 0 auto;
}

.hubpet-profile-alert {
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.hubpet-profile-alert--success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #135200;
}

.hubpet-profile-alert--error {
    background: #fff1f0;
    border: 1px solid #ffccc7;
    color: #a8071a;
}

.hubpet-profile-card {
    background: #fff;
    border-radius: 30px;
    padding: 24px;
    box-shadow: 0 14px 30px rgba(12, 48, 47, 0.12);
}

.hubpet-profile-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.hubpet-profile-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: visible;
    border: 2px solid #2f5958;
    cursor: pointer;
    position: relative;
    display: inline-block;
    background: #fff;
}

.hubpet-profile-photo-preview {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    border-radius: 50% !important;
    clip-path: circle(50% at 50% 50%);
}

.hubpet-profile-photo-input {
    display: none;
}

.hubpet-profile-avatar-badge {
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1e5a59;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.hubpet-profile-avatar-badge i {
    font-size: 14px;
}

.hubpet-profile-avatar-badge svg {
    width: 14px;
    height: 14px;
}

.hubpet-profile-upload-trigger {
    border: 0;
    background: transparent;
    color: #ea831d;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

.hubpet-profile-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-bottom: 1px solid #d7dbde;
}

.hubpet-profile-tab {
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #2e2f32;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    padding: 0 12px 12px;
    cursor: pointer;
}

.hubpet-profile-tab.is-active {
    color: #111;
    border-bottom-color: #ea831d;
}

.hubpet-profile-panel {
    display: none;
    margin-top: 22px;
    position: relative;
}

.hubpet-profile-panel.is-active {
    display: block;
}

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

.hubpet-profile-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.hubpet-profile-label {
    color: #2f5958;
    font-size: 18px;
    font-weight: 600;
}

.hubpet-profile-input-wrap {
    position: relative;
    margin: 0;
}

.hubpet-profile-input {
    width: 100%;
    height: 56px;
    border-radius: 14px;
    border: 1px solid #e7ecef;
    background: #fff;
    box-shadow: 0 10px 24px rgba(32, 57, 56, 0.08);
    color: #2f5958;
    font-size: 18px;
    padding: 0 46px 0 16px;
    margin: 0;
}

.hubpet-profile-input.is-error,
.hubpet-profile-field.has-error .hubpet-profile-input,
.hubpet-profile-field.has-error select.hubpet-profile-input {
    border: 2px solid red !important;
    box-shadow: none !important;
}

.hubpet-profile-input[name="phone"] {
    margin-bottom: 0 !important;
}

.hubpet-profile-input:read-only {
    background: #f6f4ef;
    border-color: #dfe5e7;
    cursor: default;
}

.hubpet-profile-input-wrap .hubpet-profile-edit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

.hubpet-profile-edit {
    border: 0;
    background: transparent;
    color: #2f5958;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hubpet-profile-edit i {
    font-size: 16px;
}

.hubpet-profile-edit svg {
    width: 16px;
    height: 16px;
}

.hubpet-profile-payment-edit {
    position: static;
    transform: none;
    margin-left: auto;
    text-decoration: none;
}

.hubpet-profile-helper {
    margin: 0;
    color: #bababa;
    font-size: 14px;
}

.hubpet-profile-divider {
    border: 0;
    border-top: 1px solid #e2e2e2;
    margin: 12px 0 40px 0px !important;
}

.hubpet-profile-payment-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 20px;
    background: #f4f1ed;
    box-shadow: 0 10px 24px rgba(32, 57, 56, 0.08);
}

.hubpet-profile-payment-card + .hubpet-profile-payment-card {
    margin-top: 20px;
}

.hubpet-profile-payment-card.is-default {
    outline: 1px solid rgba(234, 131, 29, 0.28);
}

.hubpet-profile-payment-icon {
    color: #2f5958;
    display: inline-flex;
}

.hubpet-profile-payment-icon i {
    font-size: 20px;
}

.hubpet-profile-payment-icon svg {
    width: 20px;
    height: 20px;
}

.hubpet-profile-payment-info {
    flex: 1;
    min-width: 0;
}

.hubpet-profile-payment-title {
    margin: 0;
    color: #2a2a2a;
    font-size: 34px;
    font-weight: 700;
}

.hubpet-profile-payment-subtitle {
    margin: 2px 0 0;
    color: #777;
    font-size: 24px;
}

.hubpet-profile-payment-default {
    margin: 4px 0 0;
    color: #ea831d;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.hubpet-profile-payment-empty {
    color: #909090;
    font-size: 18px;
    margin: 0;
}

.hubpet-profile-payment-form {
    margin-top: 18px;
}

.hubpet-profile-payment-form-title {
    margin: 0 0 14px;
    color: #2f2f2f;
    font-size: 44px;
    font-weight: 700;
    text-align: center;
}

.hubpet-profile-remove-card {
    margin: 10px auto 0;
    border: 0;
    background: transparent;
    color: #ea831d;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    display: block;
    cursor: pointer;
}

.hubpet-profile-fab {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 0;
    background: #ea831d;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.hubpet-profile-fab i {
    font-size: 20px;
}

.hubpet-profile-fab svg {
    width: 20px;
    height: 20px;
}

.hubpet-profile-save {
    margin: 20px auto 0;
    width: 200px;
    height: 54px;
    border: 0;
    border-radius: 10px;
    background: #ea831d;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    display: block;
    cursor: pointer;
}

.hubpet-profile-login-required {
    padding: 16px;
    border-radius: 12px;
    background: #fff1f0;
    border: 1px solid #ffccc7;
    color: #a8071a;
}

@media (max-width: 767px) {
    .hubpet-profile-card {
        padding: 16px;
        border-radius: 20px;
    }

    .hubpet-profile-tab {
        font-size: 18px;
    }

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

    .hubpet-profile-input {
        height: 50px;
        font-size: 16px;
    }

    .hubpet-profile-payment-title {
        font-size: 24px;
    }

    .hubpet-profile-payment-subtitle {
        font-size: 16px;
    }

    .hubpet-profile-payment-form-title {
        font-size: 32px;
    }

    .hubpet-profile-fab {
        right: 16px;
        bottom: 70px;
    }
}
