.profile-modal {
    background: var(--white); border-radius: 20px;
    width: 100%; max-width: 900px; max-height: 80vh;
    overflow: hidden; display: flex;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
    transform: scale(0.96) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.open .profile-modal { transform: scale(1) translateY(0); }

.modal-sidebar {
    width: 220px; background: var(--black);
    padding: 32px 0; flex-shrink: 0;
    display: flex; flex-direction: column;
}
.modal-user {
    padding: 0 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 8px;
}
.modal-avatar {
    width: 52px; height: 52px;
    background: var(--red); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Bebas Neue', sans-serif; font-size: 22px;
    color: white; letter-spacing: 1px; margin-bottom: 12px;
}
.modal-username { font-size: 14px; font-weight: 600; color: white; margin-bottom: 4px; }
.modal-balance  { font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: var(--red-light); letter-spacing: 1px; }

.modal-nav-item {
    padding: 10px 20px; font-size: 13px; font-weight: 500;
    color: rgba(255,255,255,0.5); cursor: pointer;
    transition: all var(--transition);
    display: flex; align-items: center; gap: 10px;
    border: none; background: transparent;
    font-family: 'Manrope', sans-serif; width: 100%; text-align: left;
}
.modal-nav-item:hover  { color: white; background: rgba(255,255,255,0.06); }
.modal-nav-item.active { color: white; background: rgba(212,43,43,0.2); border-left: 3px solid var(--red); }
.modal-nav-item svg    { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; }
.modal-nav-item.logout { margin-top: auto; color: rgba(255,100,100,0.7); }

.modal-content     { flex: 1; overflow-y: auto; padding: 32px; }
.modal-page-title  { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 2px; margin-bottom: 24px; }

.lk-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.lk-stat  { background: var(--gray-100); border-radius: 12px; padding: 16px; }
.lk-stat-label { font-size: 11px; color: var(--gray-400); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.lk-stat-val   { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 1px; }

.order-row  {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 0; border-bottom: 1px solid var(--border);
}
.order-img  { width: 48px; height: 48px; background: var(--gray-100); border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.order-img img { width: 100%; height: 100%; object-fit: cover; }
.order-info { flex: 1; }
.order-name { font-size: 13px; font-weight: 500; margin-bottom: 3px; }
.order-date { font-size: 11px; color: var(--gray-400); }
.order-price { font-family: 'Bebas Neue', sans-serif; font-size: 18px; }

/* Tracking */
.tracking-card   { background: var(--gray-100); border-radius: 12px; padding: 20px; margin-bottom: 12px; }
.tracking-steps  { display: flex; align-items: center; margin-top: 16px; }
.tracking-step   { flex: 1; text-align: center; position: relative; }
.tracking-step::before {
    content: ''; position: absolute; top: 12px; left: 50%; right: -50%;
    height: 2px; background: var(--gray-200); z-index: 0;
}
.tracking-step:last-child::before { display: none; }
.tracking-step.done::before       { background: var(--red); }
.step-circle {
    width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid var(--gray-200); background: var(--white);
    margin: 0 auto 6px; position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center;
}
.tracking-step.done .step-circle         { border-color: var(--red); background: var(--red); }
.tracking-step.done .step-circle::after  { content: ''; width: 8px; height: 8px; border-radius: 50%; background: white; }
.step-label      { font-size: 10px; color: var(--gray-400); }
.tracking-step.done .step-label { color: var(--black); font-weight: 600; }

/* Balance */
.balance-card {
    background: var(--black); border-radius: 16px;
    padding: 24px; color: white; margin-bottom: 20px;
    position: relative; overflow: hidden;
}
.balance-card::after {
    content: ''; position: absolute; top: -30px; right: -30px;
    width: 120px; height: 120px; background: var(--red);
    border-radius: 50%; opacity: 0.15;
}
.balance-label  { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.5; margin-bottom: 8px; }
.balance-amount { font-family: 'Bebas Neue', sans-serif; font-size: 48px; letter-spacing: 2px; }
.btn-topup {
    margin-top: 16px; padding: 10px 24px;
    background: var(--red); color: white; border: none; border-radius: 8px;
    font-size: 13px; font-weight: 700; font-family: 'Manrope', sans-serif;
    cursor: pointer; transition: background var(--transition);
}
.btn-topup:hover { background: var(--red-dark); }

@media (max-width: 900px) {
    .lk-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-modal { flex-direction: column; max-height: 90vh; }
    .modal-sidebar { width: 100%; padding: 12px 16px; flex-direction: row; overflow-x: auto; min-height: unset; }
    .modal-user { padding: 0 16px 0 0; border-bottom: none; border-right: 1px solid rgba(255,255,255,0.08); margin-bottom: 0; margin-right: 8px; flex-shrink: 0; }
}
