/* ============================================
   MODERN ACCOUNT PAGE STYLES
   App-like design for My Account section
   ============================================ */

:root {
    --primary-color: #18547c;
    --primary-dark: #1e6a9c;
    --secondary-color: #f89b34;
    --text-primary: #212121;
    --text-secondary: #757575;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* ============================================
   ACCOUNT SECTION
   ============================================ */

.account-modern-section {
    background: var(--bg-light);
    min-height: 100vh;
    padding: 40px 0 100px 0;
}

.account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   PROFILE HEADER CARD
   ============================================ */

.profile-header-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.profile-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.profile-avatar {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: white;
    padding: 5px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.profile-email {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 30px 0;
}

/* Edit Profile Button */
.btn-edit-profile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--primary-color);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.btn-edit-profile:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Progress Container */
.progress-container {
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar-wrapper {
    width: 100%;
    height: 10px;
    background: #edf2f7;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
    position: relative;
    transition: width 1.5s ease;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ============================================
   MENU ITEMS (GRID LAYOUT)
   ============================================ */

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding-bottom: 40px;
}

.menu-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e8e9ea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: visible;
}

/* Visual separator line inside card */
.menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 90px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e8e9ea 10%, #e8e9ea 90%, transparent);
    opacity: 0.5;
}

/* Remove separator on hover */
.menu-item:hover::after {
    opacity: 0;
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.menu-item:hover .menu-icon {
    transform: scale(1.1);
    background: var(--primary-color);
}

.menu-item:hover .menu-icon i {
    color: white;
}

/* Add left accent bar on hover */
.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px 0 0 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(24, 84, 124, 0.12);
}

.menu-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.menu-content {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.menu-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    letter-spacing: -0.2px;
}

.menu-content p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.menu-arrow {
    display: none;
    /* Hide arrow in card view */
}

/* NEW Badge */
.badge-new {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff5252 0%, #f44336 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 10px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(244, 67, 54, 0.2);
}

/* Logout Item */
.logout-item .menu-icon {
    background: #fff0f0;
    color: var(--danger-color);
}

.logout-item:hover .menu-icon {
    background: var(--danger-color);
}

.logout-item .menu-content h3 {
    color: var(--danger-color);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 992px) {
    .menu-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .account-modern-section {
        padding: 20px 0 80px 0;
    }

    .account-container {
        padding: 0 15px;
    }

    .profile-header-card {
        padding: 30px 20px;
        border-radius: 16px;
        margin-bottom: 25px;
    }

    .profile-avatar {
        width: 110px;
        height: 110px;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .menu-items {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .menu-item {
        padding: 18px 16px;
        gap: 14px;
    }

    .menu-icon {
        width: 54px;
        height: 54px;
    }

    .menu-icon i {
        font-size: 1.35rem;
    }

    .menu-content h3 {
        font-size: 0.98rem;
    }

    .menu-content p {
        font-size: 0.78rem;
    }

    .menu-arrow {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .profile-header-card {
        padding: 25px 15px;
    }

    .profile-avatar {
        width: 90px;
        height: 90px;
    }

    .profile-name {
        font-size: 1.3rem;
    }

    .menu-item {
        padding: 18px 14px;
    }

    .menu-icon {
        width: 50px;
        height: 50px;
    }

    .menu-icon i {
        font-size: 1.3rem;
    }
}