/* =============================================
   Aylemu Baby — Account Page
   Base: styles.css (same header/footer)
   ============================================= */

.acct-page-wrapper { min-height: calc(100vh - 64px - 200px); }

/* BREADCRUMB */
.acct-breadcrumb { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 10px 24px; }
.acct-breadcrumb__inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-light); }
.acct-breadcrumb__inner a { color: var(--text-mid); transition: color 0.2s; }
.acct-breadcrumb__inner a:hover { color: var(--cta); }
.acct-breadcrumb__inner i.fa-chevron-right { font-size: 0.55rem; }
.acct-breadcrumb__inner span { color: var(--text); font-weight: 600; }

/* HERO */
.acct-hero { background: linear-gradient(135deg, var(--clay-light) 0%, var(--sage-light) 50%, var(--blush-light) 100%); padding: 18px 24px; }
.acct-hero__inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.acct-hero__avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--cta), var(--blush)); color: var(--white); font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(196,114,92,0.2); }
.acct-hero__info { flex: 1; }
.acct-hero__info h1 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.acct-hero__info p { color: var(--text-mid); font-size: 0.78rem; margin: 0; }
.acct-hero__vip { display: flex; align-items: center; gap: 10px; background: rgba(17,24,39,0.9); color: var(--white); padding: 6px 14px; border-radius: var(--radius-full); font-size: 0.72rem; }
.acct-hero__vip-badge { font-weight: 700; display: flex; align-items: center; gap: 4px; }
.acct-hero__vip-badge i { color: #FCD34D; font-size: 0.65rem; }
.acct-hero__vip-pts { font-weight: 500; opacity: 0.8; }
.acct-hero--guest .acct-hero__vip { display: none; }

/* LAYOUT */
.acct-layout { max-width: 1100px; margin: 0 auto; padding: 24px 24px 48px; display: grid; grid-template-columns: 190px 1fr; gap: 28px; }

/* SIDEBAR */
.acct-sidebar { position: sticky; top: 84px; align-self: start; }
.acct-sidebar__nav { display: flex; flex-direction: column; gap: 2px; }
.acct-sidebar__divider { height: 1px; background: var(--border); margin: 6px 0; }
.acct-nav-item { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 10px; font-size: 0.82rem; font-weight: 500; color: var(--text-mid); transition: all 0.2s; text-align: left; width: 100%; border: none; background: none; cursor: pointer; }
.acct-nav-item i { width: 16px; text-align: center; font-size: 0.8rem; }
.acct-nav-item:hover { background: var(--bg-alt); color: var(--text); }
.acct-nav-item.active { background: rgba(196,114,92,0.08); color: var(--cta); font-weight: 600; }
.acct-nav-item.active i { color: var(--cta); }
.acct-nav-item[data-section="profile"] i { color: var(--sage); }
.acct-nav-item[data-section="orders"] i { color: var(--cta); }
.acct-nav-item[data-section="wishlist"] i { color: var(--blush); }
.acct-nav-item[data-section="addresses"] i { color: var(--sage-dark); }
.acct-nav-item[data-section="referral"] i { color: #8B5CF6; }
.acct-nav-item[data-section="settings"] i { color: var(--text-light); }
.acct-nav-item--logout { color: #dc3545; }
.acct-nav-item--logout:hover { background: rgba(220,53,69,0.06); color: #dc3545; }
.acct-nav-item--logout i { color: #dc3545 !important; }

/* CONTENT */
.acct-content { min-height: 360px; }
.acct-section { display: none; animation: acctFade 0.2s ease; }
.acct-section.active { display: block; }
@keyframes acctFade { from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)} }

.acct-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.acct-section__head h2 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }

/* EMPTY */
.acct-empty { text-align: center; padding: 36px 20px; background: var(--bg-alt); border-radius: 12px; }
.acct-empty__icon i { font-size: 1.5rem; color: var(--text-light); opacity: 0.4; }
.acct-empty h3 { font-family: var(--font-display); font-size: 0.9rem; margin: 8px 0 2px; }
.acct-empty p { color: var(--text-light); font-size: 0.78rem; margin-bottom: 12px; }

/* BUTTONS */
.acct-btn { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; border-radius: var(--radius-full); transition: all 0.2s; cursor: pointer; border: none; text-decoration: none; }
.acct-btn--primary { background: var(--cta); color: var(--white); box-shadow: 0 2px 8px rgba(196,114,92,0.2); }
.acct-btn--primary:hover { background: var(--cta-hover); transform: translateY(-1px); }
.acct-btn--outline { background: transparent; color: var(--text-mid); border: 1.5px solid var(--border); }
.acct-btn--outline:hover { border-color: var(--cta); color: var(--cta); }
.acct-btn--ghost { background: transparent; color: var(--text-mid); }
.acct-btn--danger { background: #dc3545; color: var(--white); }
.acct-btn--danger:hover { background: #c82333; }
.acct-btn--sm { padding: 7px 16px; font-size: 0.78rem; }
.acct-btn--xs { padding: 5px 12px; font-size: 0.72rem; }

/* PROFILE CARD */
.acct-profile-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }

/* FORM GRID */
.acct-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.acct-field--full { grid-column: 1/-1; }
.acct-field label { display: block; font-size: 0.68rem; font-weight: 600; color: var(--text-mid); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.5px; }
.acct-field input, .acct-field select { width: 100%; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 0.82rem; font-family: var(--font-body); outline: none; transition: border-color 0.2s; background: var(--bg); }
.acct-field input:focus, .acct-field select:focus { border-color: var(--cta); background: var(--white); }
.acct-form-actions { display: flex; gap: 8px; }

/* PHONE INPUT — searchable dropdown */
.acct-phone-input { display: flex; gap: 0; }
.acct-phone-input input { border-radius: 0 8px 8px 0 !important; flex: 1; }
.acct-phone-select { position: relative; flex-shrink: 0; }
.acct-phone-select__btn { display: flex; align-items: center; gap: 4px; padding: 8px 10px; border: 1.5px solid var(--border); border-right: none; border-radius: 8px 0 0 8px; background: var(--bg); font-size: 0.82rem; cursor: pointer; height: 100%; white-space: nowrap; font-family: var(--font-body); transition: border-color 0.2s; }
.acct-phone-select__btn:hover { border-color: var(--cta); }
.acct-phone-dropdown { position: absolute; top: calc(100% + 4px); left: 0; width: 280px; background: var(--white); border: 1.5px solid var(--border); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,0.12); z-index: 200; max-height: 300px; overflow: hidden; display: flex; flex-direction: column; animation: acctFade 0.15s ease; }
.acct-phone-search { width: 100%; padding: 10px 12px; border: none; border-bottom: 1px solid var(--border); font-size: 0.82rem; font-family: var(--font-body); outline: none; }
.acct-phone-list { overflow-y: auto; max-height: 250px; }
.acct-phone-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border: none; background: none; cursor: pointer; font-size: 0.8rem; font-family: var(--font-body); text-align: left; transition: background 0.15s; }
.acct-phone-item:hover { background: var(--bg-alt); }

/* DOB ROW */
.acct-dob-row { display: flex; gap: 6px; }
.acct-dob-row select { flex: 1; padding: 8px 8px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 0.82rem; font-family: var(--font-body); background: var(--bg); outline: none; transition: border-color 0.2s; }
.acct-dob-row select:focus { border-color: var(--cta); background: var(--white); }

/* GENDER CARDS */
.acct-gender-row { display: flex; gap: 8px; flex-wrap: wrap; }
.acct-gender-card { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; transition: all 0.2s; font-size: 0.8rem; font-weight: 500; background: var(--bg); }
.acct-gender-card:hover { border-color: var(--cta); background: var(--white); }
.acct-gender-card input { display: none; }
.acct-gender-card:has(input:checked) { border-color: var(--cta); background: rgba(196,114,92,0.06); color: var(--cta); font-weight: 600; box-shadow: 0 2px 8px rgba(196,114,92,0.1); }

/* ORDERS */
.acct-order-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; transition: box-shadow 0.2s; }
.acct-order-card:hover { box-shadow: var(--shadow-sm); }
.acct-order-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.acct-order-card__id { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; }
.acct-order-card__body { display: flex; justify-content: space-between; align-items: center; }
.acct-order-card__date { font-size: 0.75rem; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.acct-order-card__date i { font-size: 0.65rem; }
.acct-order-card__total { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--cta); }
.acct-order-card__track { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; color: var(--sage-dark); font-weight: 600; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.acct-status { padding: 2px 8px; border-radius: var(--radius-full); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; }
.acct-status--pending { background: #FEF3C7; color: #92400E; }
.acct-status--processing { background: #DBEAFE; color: #1E40AF; }
.acct-status--shipped { background: var(--sage-light); color: var(--sage-dark); }
.acct-status--delivered { background: #D1FAE5; color: #065F46; }

/* WISHLIST */
.acct-wishlist-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.acct-wishlist-grid > .acct-empty { width: 100%; }
.acct-wishlist-grid .p-card { width: 220px; max-width: 100%; flex-shrink: 0; }
.acct-wish-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 12px 10px; text-align: center; transition: all 0.2s; position: relative; }
.acct-wish-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.acct-wish-card__remove { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-alt); color: var(--text-light); font-size: 0.55rem; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: all 0.2s; }
.acct-wish-card__remove:hover { background: #e74c3c; color: #fff; }
.acct-wish-card__emoji { font-size: 1.8rem; margin-bottom: 4px; }
.acct-wish-card h4 { font-family: var(--font-display); font-size: 0.75rem; margin-bottom: 3px; line-height: 1.3; }
.acct-wish-card__price { color: var(--cta); font-weight: 700; font-size: 0.8rem; }

/* ADDRESSES */
.acct-addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.acct-addr-grid > .acct-empty { grid-column: 1/-1; }
.acct-addr-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; position: relative; transition: all 0.2s; }
.acct-addr-card:hover { box-shadow: var(--shadow-sm); }
.acct-addr-card__label { font-weight: 700; font-size: 0.8rem; margin-bottom: 5px; padding-bottom: 5px; border-bottom: 1px solid var(--border); }
.acct-addr-card p { font-size: 0.75rem; color: var(--text-mid); margin-bottom: 1px; line-height: 1.4; }
.acct-addr-card p strong { color: var(--text); }
.acct-addr-card__del { position: absolute; top: 8px; right: 8px; color: var(--text-light); font-size: 0.7rem; padding: 3px; border: none; background: none; cursor: pointer; transition: color 0.2s; }
.acct-addr-card__del:hover { color: #e74c3c; }
.acct-addr-form { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-top: 12px; animation: acctFade 0.2s ease; }
.acct-addr-form h3 { font-family: var(--font-display); font-size: 0.9rem; margin-bottom: 12px; }

/* REFERRAL */
.acct-referral__banner { background: linear-gradient(135deg, var(--clay-light), var(--blush-light)); border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.acct-referral__emoji { font-size: 1.8rem; flex-shrink: 0; }
.acct-referral__banner h3 { font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 2px; }
.acct-referral__banner p { color: var(--text-mid); font-size: 0.78rem; margin: 0; }
.acct-referral__code-row { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1.5px dashed var(--cta); border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; }
.acct-referral__code-box { flex: 1; }
.acct-referral__label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); font-weight: 600; display: block; margin-bottom: 1px; }
.acct-referral__code { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--cta); letter-spacing: 2px; }
.acct-referral__steps { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--bg-alt); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.acct-step { display: flex; align-items: center; gap: 6px; }
.acct-step__num { width: 22px; height: 22px; border-radius: 50%; background: var(--cta); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; flex-shrink: 0; }
.acct-step span { font-size: 0.75rem; font-weight: 500; color: var(--text-mid); }
.acct-step-arrow { color: var(--text-light); font-size: 0.6rem; }
.acct-referral__share { display: flex; align-items: center; gap: 8px; justify-content: center; }
.acct-referral__share > span { font-size: 0.75rem; color: var(--text-mid); }
.acct-share-btn { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: #fff; transition: all 0.2s; border: none; cursor: pointer; }
.acct-share-btn:hover { transform: translateY(-2px); }
.acct-share--wa { background: #25D366; }
.acct-share--tw { background: #1DA1F2; }
.acct-share--fb { background: #1877F2; }
.acct-share--em { background: var(--cta); }

/* SETTINGS */
.acct-settings-block { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.acct-settings-block h3 { font-family: var(--font-display); font-size: 0.92rem; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.acct-settings-block h3 i { color: var(--text-light); font-size: 0.85rem; }
.acct-settings-block p { font-size: 0.8rem; color: var(--text-mid); margin-bottom: 12px; }
.acct-settings-block--danger { border-color: rgba(220,53,69,0.2); }
.acct-settings-block--danger h3 i { color: #dc3545; }

/* TOGGLE SWITCH */
.acct-toggle { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.82rem; color: var(--text-mid); cursor: pointer; }
.acct-toggle input { display: none; }
.acct-toggle__slider { width: 36px; height: 20px; background: var(--border); border-radius: 20px; position: relative; transition: background 0.2s; flex-shrink: 0; }
.acct-toggle__slider::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--white); top: 2px; left: 2px; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.acct-toggle input:checked + .acct-toggle__slider { background: var(--cta); }
.acct-toggle input:checked + .acct-toggle__slider::after { transform: translateX(16px); }

/* MOBILE NAV */
.acct-mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); padding: 4px 8px; z-index: 100; justify-content: space-around; box-shadow: 0 -2px 12px rgba(0,0,0,0.06); }
.acct-mobile-nav button { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 0.58rem; color: var(--text-light); padding: 5px 8px; border-radius: 8px; border: none; background: none; cursor: pointer; transition: color 0.2s; }
.acct-mobile-nav button i { font-size: 0.9rem; }
.acct-mobile-nav button.active { color: var(--cta); }

/* TOAST */
.acct-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(50px); background: var(--bg-dark); color: var(--white); padding: 10px 24px; border-radius: var(--radius-full); font-size: 0.82rem; font-weight: 600; z-index: 9999; transition: transform 0.3s, opacity 0.3s; opacity: 0; pointer-events: none; }
.acct-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* NOTIFICATION PANEL */
.acct-notif-panel { position: absolute; top: calc(100% + 8px); right: -20px; width: 340px; background: var(--white); border: 1.5px solid var(--border); border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,0.12); z-index: 300; max-height: 420px; overflow: hidden; display: flex; flex-direction: column; animation: acctFade 0.15s ease; }
.acct-notif-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.acct-notif-panel__head h4 { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; display: flex; align-items: center; gap: 6px; margin: 0; }
.acct-notif-panel__head h4 i { color: var(--cta); }
.acct-notif-panel__body { overflow-y: auto; max-height: 340px; }
.acct-notif-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; }
.acct-notif-item:hover { background: var(--bg-alt); }
.acct-notif-item.unread { background: rgba(196,114,92,0.04); }
.acct-notif-item.unread .acct-notif-item__title { font-weight: 700; }
.acct-notif-item__icon { font-size: 1.3rem; flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); border-radius: 50%; }
.acct-notif-item__body { flex: 1; min-width: 0; }
.acct-notif-item__title { font-size: 0.8rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.acct-notif-item__text { font-size: 0.73rem; color: var(--text-mid); margin-top: 1px; line-height: 1.4; }
.acct-notif-item__time { font-size: 0.65rem; color: var(--text-light); margin-top: 3px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .acct-layout { grid-template-columns: 1fr; padding-bottom: 80px; gap: 16px; }
    .acct-sidebar { display: none; }
    .acct-mobile-nav { display: flex; }
    .acct-hero__inner { flex-wrap: wrap; }
    .acct-hero__info h1 { font-size: 1rem; }
    .acct-form-grid { grid-template-columns: 1fr; }
    .acct-referral__steps { flex-direction: column; align-items: flex-start; }
    .acct-step-arrow { transform: rotate(90deg); margin-left: 20px; }
    .acct-wishlist-grid { grid-template-columns: repeat(2,1fr); }
    .acct-addr-grid { grid-template-columns: 1fr; }
    .footer { margin-bottom: 52px; }
    .acct-notif-panel { right: -60px; width: 300px; }
    .acct-phone-dropdown { width: 250px; }
}
