body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    position: relative;
    background: linear-gradient(to bottom, #a8e6cf54, #56ab9245);
    min-height: 100vh;
}

.curve-bg {
    position: absolute;
    top: 0;
    width: 100%;
    height: 300px;
    z-index: -1;
}

.account-wrapper {
    padding: 20px;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar h2 {
    flex: 1;
    text-align: center;
    margin: 0;
    color: white;
}

.top-bar .back-btn {
    font-size: 20px;
    color: white;
}

.account-info {
    background: white;
    border-radius: 15px;
    padding: 25px 20px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* --- Updated spacing for account info --- */
.account-info h3 {
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.account-info p {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #555;
}

.verified {
    color: green;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* space between icon and text */
    font-size: 0.95rem;
}

.verified i {
    margin-right: 5px;
}

.verified .membership-status {
    margin-left: 8px;
    font-weight: bold;
    color: #28a745; /* membership green */
    padding: 2px 8px;
    border-radius: 12px;
    background-color: #e6f5ea; /* subtle green background */
    font-size: 0.85rem;
}

.edit-profile-btn {
    margin: 15px auto;
    display: block;
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

.edit-container {
    display: none;
    margin-top: 20px;
    text-align: left;
}

.form-group {
    position: relative;
    margin-bottom: 18px; /* increased spacing */
}

.form-group input, .form-group select {
    width: 80%;
    padding: 10px 10px 10px 35px;
    border: 1px solid #ccc;
    border-radius: 25px;
}

.form-group i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #999;
}

.account-options {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    min-height: 60px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    margin: 0 auto;
}

.option-item:hover {
    background-color: #f4f4f4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.label-wrap {
    display: flex;
    align-items: center;
}

.option-item i {
    font-size: 18px;
}

.label-text {
    margin-left: 10px;
    font-size: 16px;
}

.refer-btn {
    background: #32CD32;
    color: white;
    padding: 5px 20px;
    border-radius: 40px;
    font-size: 12px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    width: 70px;
    text-align: center;
    margin-left: auto;
}

.refer-btn:hover {
    background: #28a745;
}

.form-logout .option-item {
    background-color: #f44336;
    color: white;
}

.form-logout .option-item:hover {
    background-color: #d32f2f;
}

/* Hide account options on desktop */
@media (min-width: 768px) {
    .account-options {
        display: none;
    }
}

/* Responsive styling for account options on mobile */
@media (max-width: 767px) {
    body {
        padding-bottom: 90px; /* Add space equal to bottom menu height */
    }
    .account-wrapper {
        padding-bottom: 100px; /* Ensure all content stays visible */
    }
    
    .account-options {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .option-item {
        padding: 12px 15px;
        max-width: 100%;
    }

    .refer-btn {
        width: auto;
        font-size: 14px;
        padding: 5px 15px;
        margin-left: 0;
    }

    .option-item i {
        font-size: 20px;
    }

    .label-text {
        font-size: 14px;
    }

    .form-logout .option-item {
        padding: 10px 15px;
    }
}

.message {
    color: green;
    margin-top: 10px;
}

.error {
    color: red;
    margin-top: 10px;
}

a {
    text-decoration: none;
    color: inherit;
}

.option-item {
    text-decoration: none;
    color: inherit;
}

.option-item a {
    color: #333;
}

.option-item a:hover {
    color: #007bff;
    text-decoration: none;
}
