:root {
    --bg-color: #f5f5ed;
    --primary-color: #ffa44a;
    --text-color: #333;
    --border-color: #e0e0e6;
    --card-bg: #ffffff;
    --link-color: #6b46c1;
    --label-color: #777;
    --plan-badge-bg: #e2e8f0;
    --plan-badge-text: #4a5568;
}
body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    overflow-x: hidden;
}
.profile-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}
.profile-content-main {
    background-color: var(--bg-color);
    padding: 2rem;
    overflow-y: auto;
}
.hamburger-menu-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
}
.hamburger-menu-btn svg {
    color: var(--text-color);
    overflow: visible;
}
.hamburger-menu-btn .line {
    transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
    transform-origin: center;
}
/* These are the new rules for the animation */
.hamburger-menu-btn.is-active .line.top {
    transform: translateY(6px) rotate(45deg);
}
.hamburger-menu-btn.is-active .line.middle {
    opacity: 0;
}
.hamburger-menu-btn.is-active .line.bottom {
    transform: translateY(-6px) rotate(-45deg);
}

.sidebar {
    background-color: #ffffff;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    box-sizing: border-box;
}
.sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li { margin-bottom: 0.5rem; }
.sidebar-nav a { display: flex; align-items: center; padding: 0.8rem 1rem; border-radius: 8px; text-decoration: none; color: #555; font-weight: 600; transition: background-color 0.2s ease, color 0.2s ease; }
.sidebar-nav a:hover { background-color: #f0f0e6; color: var(--text-color); }
.sidebar-nav a.active { background-color: var(--primary-color); color: white; }
.sidebar-nav a.active svg { stroke: white; }
.sidebar-nav svg { width: 22px; height: 22px; margin-right: 12px; stroke: #555; transition: stroke 0.2s ease; }

.profile-container { max-width: 800px; margin: 2rem auto; padding: 0 1rem; }
.avatar-container { text-align: center; margin-bottom: -40px; position: relative; z-index: 2; }
.avatar-container img { width: 80px; height: 80px; border-radius: 50%; border: 4px solid var(--card-bg); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.profile-card { background-color: var(--card-bg); border-radius: 16px; padding: 2rem; padding-top: 60px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.card-section { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.card-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.card-section h2 { font-size: 1.25rem; margin-top: 0; margin-bottom: 1.5rem; }
.profile-field { margin-bottom: 1rem; }
.profile-field:last-child { margin-bottom: 0; }
.profile-field label { font-size: 0.85rem; color: var(--label-color); display: block; margin-bottom: 0.25rem; }
.value-container { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--border-color); }
.profile-field:last-of-type .value-container { border-bottom: none; }
.value-container span { font-size: 1rem; color: var(--text-color); }
.edit-link, .redeem-link { font-size: 0.9rem; color: var(--link-color); text-decoration: none; font-weight: 600; }
.redeem-link { display: inline-block; margin-top: 1rem; }
.plan-badge { background-color: var(--plan-badge-bg); color: var(--plan-badge-text); padding: 0.25rem 0.5rem; border-radius: 6px; font-size: 0.8rem; font-weight: 600; }
.upgrade-button { background-color: var(--primary-color); color: white; border: none; padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background-color 0.2s; }
.upgrade-button:hover { background-color: #5a3a9e; }
.logout-button { background-color: transparent; border: 1px solid #ccc; color: var(--text-color); padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.logout-button:hover { background-color: #f1f1f1; border-color: #bbb; }
.toggle-container { display: flex; justify-content: space-between; align-items: center; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { display: none; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 2px; bottom: 2px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--link-color); }
input:checked + .slider:before { transform: translateX(20px); }

@media (max-width: 768px) {
    .hamburger-menu-btn {
        display: flex;
    }
    .profile-layout {
        display: block;
    }
    .sidebar {
        position: fixed;
        left: -300px;
        width: 280px;
        height: 100%;
        z-index: 1000;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 0 15px rgba(0,0,0,0.2);
        background-color: #ffffff;
    }
    .sidebar.open {
        left: 0;
    }
    .profile-content-main {
        padding: 1rem;
        padding-top: 70px;
    }
    .profile-container, .contact-container {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
}