#profile {
    width: 100%;
    margin: auto;
    padding: 0 20px 60px;
    max-width: 750px;
}

#profileTitle {
    font-weight: 700;
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
}

/************* Sections *************/

.profileSection {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--primary);
}

.profileSectionTitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

/************* Plan Details *************/

#profilePlanName {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

#profilePlanPrice {
    font-size: 18px;
    font-weight: 600;
    color: #22C55E;
    margin-bottom: 12px;
}

#profilePlanFeatures {
    margin-bottom: 16px;
}

.profilePlanFeature {
    color: #22C55E;
    margin-bottom: 6px;
    font-size: 14px;
}

#profilePlanStatus {
    margin-bottom: 8px;
}

.statusActive {
    color: #22C55E;
    font-weight: 600;
}

.statusCancelling {
    color: #FFCA28;
    font-weight: 600;
}

.statusCancelled {
    color: #8C8D8B;
    font-weight: 600;
}

#profilePlanRenewal {
    color: #8C8D8B;
    font-size: 14px;
}

/************* Resume Banner *************/

#profileResumeBanner {
    display: none;
}

#profileResumeBanner.active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: #f0fdf4;
    border: 2px solid #22C55E;
    border-radius: 8px;
    margin-top: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #333;
}

/************* Change Plan *************/

#profileChangePlan {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #EBEBEA;
}

.profileSubsectionTitle {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #EBEBEA;
}

#profilePlanWarning {
    display: none;
    padding: 12px 16px;
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: 8px;
    margin-bottom: 16px;
    color: #856404;
    font-size: 14px;
}

#profilePlanWarning.active {
    display: block;
}

#profileBillingToggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.billingToggleBtn {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #EBEBEA;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #8C8D8B;
    transition: all 0.2s;
}

.billingToggleBtn:hover {
    border-color: var(--primary);
}

.billingToggleBtn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.billingSavings {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
}

#profilePlanList {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.planOption {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #EBEBEA;
    transition: border-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.planOption:hover {
    border-color: var(--primary);
}

.planOptionCurrent {
    border-color: #22C55E;
    background: #f0fdf4;
}

.planOptionCurrent:hover {
    border-color: #22C55E;
}

.planOptionInfo {
    flex: 1;
}

.planOptionHeader {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.planOptionName {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.planOptionPrice {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.planOptionFeatures {
    color: #8C8D8B;
    font-size: 14px;
}

.planOptionFeatures div {
    margin-bottom: 4px;
}

.planButton {
    white-space: nowrap;
    min-width: 120px;
}

.planButton:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.planButtonCurrent {
    background: #22C55E;
}

.planButtonCurrent:hover {
    background: #22C55E;
}

.planButtonDisabled {
    background: #bdc3c7;
    opacity: 0.7;
}

#profileDowngrade {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #EBEBEA;
    color: #8C8D8B;
    font-size: 14px;
}

#profileDowngrade a {
    color: var(--primary);
}

/************* Payment Method *************/

.paymentCard {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 16px;
}

.paymentCardBrand {
    font-weight: 600;
    color: #333;
}

.paymentCardNumber {
    font-family: monospace;
    font-size: 16px;
}

.paymentCardExpiry {
    color: #8C8D8B;
    font-size: 14px;
}

#profilePaymentForm {
    display: none;
    margin-top: 16px;
}

#profilePaymentForm.active {
    display: block;
}

#payment-element {
    margin-bottom: 16px;
}

#profilePaymentFormButtons {
    display: flex;
    gap: 10px;
}

.buttonSecondary {
    background: #8C8D8B;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.buttonSecondary:hover {
    background: #666;
}

.buttonSmall {
    padding: 8px 16px;
    font-size: 12px;
}

/************* Account Settings *************/

#profileEmail {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #EBEBEA;
}

#profileEmailDisplay {
    display: flex;
    align-items: center;
    gap: 12px;
}

#profileEmailAddress {
    font-size: 16px;
    color: #333;
}

#profileEmailForm {
    display: none;
}

#profileEmailForm.active {
    display: block;
}

#profileEmailFields {
    display: flex;
    flex-direction: column;
}

#profileEmailFormButtons {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

#profileChangePassword {
    margin-bottom: 24px;
}

#profileChangePassword input {
    margin-bottom: 12px;
}

#profileChangePassword .button {
    margin-top: 4px;
}

/************* SMS *************/

#profileSms {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #EBEBEA;
}

#profileSmsLocked {
    display: none;
    padding: 12px 16px;
    background: #FFF8E1;
    border: 1px solid #FFCA28;
    border-radius: 8px;
    color: #5C4A00;
    font-size: 14px;
    line-height: 1.5;
}

#profileSmsLocked.active {
    display: block;
}

#profileSmsDisplay {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

#profileSmsPhoneText {
    font-size: 16px;
    color: #333;
}

#profileSmsStatusBadge {
    font-size: 12px;
    font-weight: 600;
}

#profileSmsForm {
    display: none;
}

#profileSmsForm.active {
    display: block;
}

#profileSmsFields {
    display: flex;
    flex-direction: column;
}

#profileSmsInput {
    margin-bottom: 12px;
}

#profileSmsOptIn {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

#profileSmsOptInBox {
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
}

#profileSmsDisclosure {
    font-size: 12px;
    color: #8C8D8B;
    line-height: 1.5;
    margin-bottom: 12px;
}

#profileSmsDisclosure a {
    color: var(--primary);
}

#profileSmsFormButtons {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

/************* Danger Zone *************/

.profileDangerTitle {
    color: #EF4444;
    border-bottom-color: #EF4444;
}

#profileDangerZone {
    padding-top: 24px;
    border-top: 2px solid #EBEBEA;
}

#profileCancelWarning {
    padding: 16px;
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: 8px;
    margin-bottom: 16px;
    color: #856404;
    font-size: 14px;
}

.buttonDanger {
    background: #EF4444;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.buttonDanger:hover {
    background: #DC2626;
}

/************* Responsive *************/

@media (max-width: 600px) {
    #profile {
        padding: 20px 16px;
    }

    #profileTitle {
        font-size: 24px;
    }

    .profileSection {
        padding: 16px;
    }

    .planOption {
        flex-direction: column;
        align-items: stretch;
    }

    .planButton {
        width: 100%;
    }

    #profileResumeBanner.active {
        flex-direction: column;
        text-align: center;
    }

    #profileBillingToggle {
        flex-direction: column;
    }

    #profilePaymentFormButtons {
        flex-direction: column;
    }
}
