/* =====================================================================
   CUSTOMER ACCOUNT PAGES — Addresses, Profile, Orders. Dedicated file,
   `acc-` prefixed, so nothing here collides with qrx-/qm- or admin- files.
   Reuses .qrx-popup-header for the page header, matching the branch/
   location-modal pages, so account pages don't introduce a new visual
   language of their own.
   ===================================================================== */

   .acc-address-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.1rem 1.2rem; margin-bottom: 0.8rem; box-shadow: var(--shadow-sm); display: flex; gap: 0.9rem; align-items: flex-start; animation: pop-in 0.25s ease both; }
   .acc-address-icon { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--accent-soft); color: var(--brand-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.05rem; }
   .acc-address-body { flex: 1; min-width: 0; }
   .acc-address-top { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
   .acc-address-label { font-weight: 700; font-size: 0.95rem; }
   .acc-default-badge { background: var(--brand-accent); color: #fff; font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: var(--radius-full); }
   .acc-address-line { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }
   .acc-address-actions { display: flex; gap: 0.5rem; margin-top: 0.7rem; }
   .acc-address-actions .btn { font-size: 0.78rem; padding: 0.4rem 0.9rem; }
   
   .acc-empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
   .acc-empty-state i { font-size: 2.2rem; color: var(--line); display: block; margin-bottom: 0.7rem; }
   
   .acc-label-types { display: flex; gap: 0.6rem; margin-bottom: 1rem; }
   .acc-label-type { flex: 1; border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 0.7rem; text-align: center; cursor: pointer; transition: all 0.15s ease; background: var(--surface); }
   .acc-label-type:hover { border-color: color-mix(in srgb, var(--brand-accent) 45%, var(--line)); }
   .acc-label-type.active { border-color: var(--brand-accent); background: var(--accent-soft); }
   .acc-label-type i { display: block; font-size: 1.1rem; color: var(--brand-accent); margin-bottom: 0.3rem; }
   .acc-label-type span { font-size: 0.78rem; font-weight: 700; }
   
   .acc-field-group { margin-bottom: 1rem; }
   .acc-label { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.8rem; color: var(--brand-primary); margin-bottom: 0.4rem; }
   .acc-label i { color: var(--brand-accent); width: 1rem; text-align: center; }
   
   .acc-toggle-row { display: flex; align-items: center; gap: 0.7rem; background: var(--surface-muted); border-radius: var(--radius-md); padding: 0.75rem 1rem; margin-bottom: 1rem; }
   .acc-switch { position: relative; display: inline-flex; width: 2.6rem; height: 1.5rem; flex-shrink: 0; }
   .acc-switch input { opacity: 0; width: 0; height: 0; }
   .acc-switch-track { position: absolute; inset: 0; background: var(--line); border-radius: var(--radius-full); transition: all 0.2s ease; cursor: pointer; }
   .acc-switch-track::before { content: ''; position: absolute; width: 1.15rem; height: 1.15rem; left: 0.18rem; top: 0.18rem; background: #fff; border-radius: 50%; transition: all 0.2s ease; box-shadow: var(--shadow-sm); }
   .acc-switch input:checked + .acc-switch-track { background: var(--brand-accent); }
   .acc-switch input:checked + .acc-switch-track::before { transform: translateX(1.1rem); }
   [dir='rtl'] .acc-switch input:checked + .acc-switch-track::before { transform: translateX(1.1rem); }
   .acc-toggle-label { font-weight: 600; font-size: 0.85rem; }


   /* ---- profile page ---- */
.acc-avatar-hero { text-align: center; margin-bottom: 1.2rem; }
.acc-avatar-circle { width: 4.2rem; height: 4.2rem; border-radius: 50%; background: linear-gradient(135deg, var(--brand-primary), color-mix(in srgb, var(--brand-primary) 78%, black)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 0.7rem; box-shadow: var(--shadow); }
.acc-avatar-name { font-weight: 800; font-size: 1.1rem; color: var(--brand-primary); }
.acc-badges-row { display: flex; justify-content: center; gap: 0.4rem; margin-top: 0.4rem; }
.acc-verified-badge { display: inline-flex; align-items: center; gap: 0.3rem; background: color-mix(in srgb, var(--success) 14%, white); color: var(--success); font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: var(--radius-full); }
.acc-guest-badge { display: inline-flex; align-items: center; gap: 0.3rem; background: var(--surface-muted); color: var(--muted); font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: var(--radius-full); }

.acc-input-icon-wrap { position: relative; }
.acc-input-icon-wrap i { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 0.9rem; color: var(--muted); font-size: 0.85rem; }
.acc-input-icon-wrap input { padding-inline-start: 2.4rem; 
   
}
.acc-input-icon-wrap input:disabled { background: var(--surface-muted); color: var(--muted); }

.acc-loyalty-stat { display: flex; align-items: center; gap: 0.8rem; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); border: 1px solid color-mix(in srgb, var(--brand-accent) 25%, var(--line)); border-radius: var(--radius-md); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.acc-loyalty-icon { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--brand-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.acc-loyalty-value { font-weight: 800; font-size: 1.3rem; color: var(--brand-primary); }
.acc-loyalty-label { font-size: 0.75rem; color: var(--muted); }

.acc-nav-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1rem; }
.acc-nav-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.1rem; text-decoration: none; color: inherit; transition: all 0.18s ease; box-shadow: var(--shadow-sm); }
.acc-nav-card:hover { border-color: color-mix(in srgb, var(--brand-accent) 40%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.acc-nav-card-icon { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--accent-soft); color: var(--brand-accent); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; margin-bottom: 0.6rem; }
.acc-nav-card-title { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.acc-nav-card-desc { font-size: 0.72rem; color: var(--muted); margin-top: 0.2rem; }

@media (max-width: 400px) {
  .acc-nav-cards { grid-template-columns: 1fr; }
}


/* ---- orders list ---- */
.acc-order-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.1rem 1.2rem; margin-bottom: 0.8rem; box-shadow: var(--shadow-sm); cursor: pointer; transition: all 0.18s ease; animation: pop-in 0.25s ease both; }
.acc-order-card:hover { border-color: color-mix(in srgb, var(--brand-accent) 40%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.acc-order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.8rem; }
.acc-order-left { display: flex; align-items: center; gap: 0.8rem; }
.acc-order-icon { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--accent-soft); color: var(--brand-accent); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.acc-order-number { font-weight: 700; font-size: 0.95rem; }
.acc-order-meta { font-size: 0.76rem; color: var(--muted); margin-top: 0.15rem; }
.acc-order-right { text-align: end; flex-shrink: 0; }
.acc-order-total { font-weight: 800; color: var(--brand-primary); font-size: 1.02rem; }
.acc-status-pill { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.66rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: var(--radius-full); margin-top: 0.3rem; white-space: nowrap; }
.acc-status-blue { background: color-mix(in srgb, #2563eb 12%, white); color: #2563eb; }
.acc-status-green { background: color-mix(in srgb, var(--success) 14%, white); color: var(--success); }
.acc-status-red { background: color-mix(in srgb, var(--danger) 12%, white); color: var(--danger); }
.acc-status-amber { background: color-mix(in srgb, var(--warning) 14%, white); color: var(--warning); }
.acc-order-footer { display: flex; gap: 0.5rem; margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px dashed var(--line); }
.acc-order-footer .btn { font-size: 0.78rem; padding: 0.4rem 0.9rem; flex: 1; }

/* ---- order detail popup (reuses qrx-overlay/qrx-popup shell) ---- */
.acc-detail-body { max-height: 72vh; overflow-y: auto; }
.acc-detail-status-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
