@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #2D68FF;
    --primary-light: #E9F0FF;
    --text-main: #1A1D1E;
    --text-muted: #6A6D7C;
    --white: #FFFFFF;
    --bg-light: #F7F9FC;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Red Hat Display', sans-serif; }

body {
    background-color: var(--bg-light);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 430px;
    background: var(--bg-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header */
.profile-header {
    background: var(--white);
    padding: calc(env(safe-area-inset-top, 25px) + 20px) 20px 20px;
    text-align: center;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.03);
}

.header-top { display: flex; justify-content: flex-end; }
.settings-btn { background: none; border: none; color: var(--text-main); cursor: pointer; }

.user-avatar-container {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 16px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 35px;
    object-fit: cover;
    border: 4px solid var(--primary-light);
}

.edit-avatar {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--white);
    border: 3px solid var(--white);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-name { font-size: 22px; font-weight: 900; color: var(--text-main); }
.user-handle { font-size: 14px; color: var(--primary); font-weight: 700; margin-top: 4px; }

.edit-profile-btn {
    margin-top: 20px;
    padding: 10px 24px;
    background: var(--bg-light);
    border: none;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
}

/* Content wrapper */
.content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px 100px;
}

.menu-group { margin-bottom: 32px; }
.menu-group h3 {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-left: 10px;
}

.menu-item {
    background: var(--white);
    padding: 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.2s ease;
}

.menu-item:active { transform: scale(0.98); }

.icon-box {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-item span { flex: 1; font-size: 15px; font-weight: 700; color: var(--text-main); }
.chevron { color: var(--text-light); width: 18px; }

.logout-btn {
    width: 100%;
    padding: 18px;
    background: #FFF1F1;
    color: #FF5C5C;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

/* Bottom Nav */
.bottom-nav {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 12px 10px calc(12px + env(safe-area-inset-bottom, 12px));
    box-shadow: 0 -10px 30px rgba(0,0,0,0.08);
    z-index: 100;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
}

.nav-item.active { color: var(--primary); }
.nav-item i { font-size: 20px; }
.nav-item span { font-size: 11px; font-weight: 600; }
