/* ============================
   Personal Page — Shared Nav
   ============================ */

/* Page layout */
.personal-page { padding: 24px 0; }
.personal-page__title {
	font-size: 24px; font-weight: 600; line-height: 1.3;
	margin: 0 0 20px;
}

/* Navigation pills */
.personal-nav {
	display: flex; gap: 8px; margin-bottom: 24px;
	overflow-x: auto; -webkit-overflow-scrolling: touch;
	scrollbar-width: none; -ms-overflow-style: none;
}
.personal-nav::-webkit-scrollbar { display: none; }
.personal-nav__item {
	display: flex; align-items: center; gap: 6px;
	padding: 8px 16px; border-radius: 20px;
	font-size: 14px; font-weight: 500; white-space: nowrap;
	color: #8c8c8c; background: #f5f5f5;
	text-decoration: none; transition: all 0.2s;
}
.personal-nav__item:hover { background: #eee; color: #333; }
.personal-nav__item--active { background: #ff6666; color: #fff; }
.personal-nav__item--active:hover { background: #e55a5a; color: #fff; }
.personal-nav__badge {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 20px; height: 20px; padding: 0 6px;
	border-radius: 10px; font-size: 11px; font-weight: 600;
	background: rgba(255,255,255,0.3); color: inherit;
}

/* Mobile */
@media (max-width: 772px) {
	.personal-page { padding: 16px 0; }
	.personal-page__title { font-size: 20px; margin-bottom: 16px; }
	.personal-nav { gap: 6px; margin-bottom: 16px; }
	.personal-nav__item { padding: 6px 12px; font-size: 13px; }
}

/* ============================
   Fix #1: Profile — hide duplicate H1
   The main.profile component renders its own <h1 class="profile__title">,
   but our nav include already has the page H1.
   ============================ */
.personal-page .profile__title { display: none; }

/* ============================
   Fix #2: Balls — order-table layout
   Ported from app.css (profile.scss) for V2 context.
   ============================ */
.personal-page .title--h2 {
	font-size: 1.37rem;
	margin-bottom: 10px;
	font-weight: 400;
}
.personal-page .order-table { width: 100%; }
.personal-page .order-table__row {
	display: flex;
	justify-content: space-between;
	border-top: 1px solid #eaeaea;
	padding: 10px;
}
.personal-page .order-table__row_highlighted {
	background: #f7f7f8;
	font-weight: 700;
	border-top: none;
}
.personal-page .order-table__row_highlighted + .order-table__row {
	border-top: none;
}
.personal-page .order-table__row .order-table__td:first-child {
	flex: 3;
	padding-right: 10px;
}
.personal-page .order-table__row .order-table__td:last-child {
	flex: 1;
	text-align: right;
	padding-right: 0;
}
.personal-page .order-table__td { flex: 4; font-size: 14px; line-height: 1.4; }
.personal-page .bonus-plus { color: #198337; }
.personal-page .bonus-minus { color: #da3a3a; }

/* ============================
   Fix #3: Wishlist — layout + hidden modal
   V2 doesn't define .hidden, so the sharing modal was visible.
   ============================ */
.personal-page .hidden { display: none; }
.personal-page .wishlist-item {
	padding: 16px 0;
	border-bottom: 1px solid #f0f0f0;
}
.personal-page .wishlist-item__actions {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

/* ============================
   Fix #4a: Profile — reduce group spacing
   ============================ */
.personal-page .profile__group { margin-top: 20px; }

/* ============================
   Fix #4: Profile — hide birthday, email, gender
   Birthday+Email = 2nd .profile__row in personal data group
   Gender = 2nd .profile__group (after personal data)
   ============================ */
.personal-page .profile__group-container .profile__row:nth-child(2) { display: none; }
.personal-page #profile-form > .profile__group:nth-of-type(2) { display: none; }

/* Balls/Wishlist: mobile */
@media (max-width: 772px) {
	.personal-page .title--h2 { font-size: 1.2rem; }
	.personal-page .order-table__td { font-size: 13px; }
}
