/*
 * myt-account.css — Hesabım paneli için TEK global stylesheet.
 *
 * Tüm kurallar .myt-acc kapsamında scope edilir; tema CSS'inden bağımsız.
 * Renk/typography/spacing değerleri SADECE .myt-acc içinde --acc-* token'ları
 * ile tanımlandığı için tema CSS'leri bu paneli override edemez.
 *
 * Bootstrap class'larına bağımlılık yoktur. Tüm bileşenler .acc-* prefix'i
 * kullanır.
 */

/* ─── Reset & izolasyon ───────────────────────────────────────────── */
.myt-acc-root {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.myt-acc,
.myt-acc *,
.myt-acc *::before,
.myt-acc *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--acc-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.myt-acc {
  /* ── Token'lar (tema scope'una sızmaz; tema değişkenleri kullanılmaz) ── */
  --acc-bg:        #f5f7fb;
  --acc-surface:   #ffffff;
  --acc-surface-2: #f8fafc;
  --acc-border:    #e5e7eb;
  --acc-border-2:  #eef0f3;
  --acc-text:      #11151c;
  --acc-text-2:    #374151;
  --acc-muted:     #6b7280;
  --acc-accent:    #1f6feb;
  --acc-accent-2:  #1456c7;
  --acc-accent-soft: rgba(31, 111, 235, 0.10);
  --acc-success:   #16a34a;
  --acc-success-soft: rgba(22, 163, 74, 0.10);
  --acc-danger:    #dc2626;
  --acc-danger-soft: rgba(220, 38, 38, 0.10);
  --acc-warning:   #d97706;
  --acc-warning-soft: rgba(217, 119, 6, 0.10);
  --acc-info:      #0ea5e9;
  --acc-info-soft: rgba(14, 165, 233, 0.10);

  --acc-radius:    14px;
  --acc-radius-sm: 10px;
  --acc-radius-lg: 18px;

  --acc-shadow:     0 4px 14px rgba(15, 23, 42, 0.06);
  --acc-shadow-lg:  0 12px 32px rgba(15, 23, 42, 0.12);
  --acc-shadow-sm:  0 1px 2px rgba(15, 23, 42, 0.05);

  --acc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --acc-fs:        15px;
  --acc-fs-sm:     13px;
  --acc-fs-lg:     17px;
  --acc-fs-h1:     22px;
  --acc-fs-h2:     17px;
  --acc-lh:        1.55;

  --acc-sidebar-w: 268px;
  --acc-gap:       16px;
  --acc-gap-lg:    24px;

  display: block;
  background: var(--acc-bg);
  color: var(--acc-text);
  font-size: var(--acc-fs);
  line-height: var(--acc-lh);
  min-height: 60vh;
}

/* HTML element baseline override (tema sızıntısı engelle) */
.myt-acc h1, .myt-acc h2, .myt-acc h3, .myt-acc h4 {
  font-weight: 700;
  color: var(--acc-text);
  line-height: 1.3;
}
.myt-acc p { color: var(--acc-text-2); }
.myt-acc a {
  color: inherit;
  text-decoration: none;
}
.myt-acc button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
/* Form elemanlarında .acc-input / .acc-select vb. geçerli kalsın: .myt-acc input
   (0-1-1) .acc-input'tan (0-1-0) daha güçlü olduğu için burada arka plan/border
   sıfırlanmaz; aksi halde tüm inputlar şeffaf kalıp arka planla kaynaşıyordu. */
.myt-acc input,
.myt-acc select,
.myt-acc textarea {
  font: inherit;
  max-width: 100%;
}
.myt-acc ul, .myt-acc ol { list-style: none; }
.myt-acc img, .myt-acc svg { display: block; max-width: 100%; }

/* ─── Shell ────────────────────────────────────────────────────────── */
.acc-shell {
  display: grid;
  grid-template-columns: var(--acc-sidebar-w) 1fr;
  gap: var(--acc-gap-lg);
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px 64px;
  position: relative;
}

/* ─── Mobile bar ───────────────────────────────────────────────────── */
.acc-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--acc-surface);
  border-bottom: 1px solid var(--acc-border);
  position: sticky;
  top: 0;
  z-index: 30;
}
.acc-mobile-title {
  font-weight: 700;
  font-size: var(--acc-fs);
}
.acc-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--acc-text);
  background: var(--acc-surface-2);
  transition: background 0.15s ease;
}
.acc-icon-btn:hover { background: var(--acc-border-2); }

/* ─── Sidebar ──────────────────────────────────────────────────────── */
.acc-sidebar {
  background: var(--acc-surface);
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  box-shadow: var(--acc-shadow);
  padding: 18px 14px;
  position: sticky;
  top: 84px;
  align-self: flex-start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.acc-drawer-close {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}
.acc-sidebar__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 18px;
  border-bottom: 1px solid var(--acc-border-2);
  margin-bottom: 12px;
}
.acc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--acc-accent);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  letter-spacing: 0.5px;
  flex: 0 0 auto;
}
.acc-sidebar__user-meta { min-width: 0; }
.acc-sidebar__name {
  font-weight: 700;
  font-size: var(--acc-fs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-sidebar__email {
  font-size: var(--acc-fs-sm);
  color: var(--acc-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.acc-sidebar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--acc-radius-sm);
  color: var(--acc-text-2);
  font-weight: 500;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}
.acc-sidebar__item:hover {
  background: var(--acc-surface-2);
  color: var(--acc-text);
}
.acc-sidebar__item.is-active {
  background: var(--acc-accent-soft);
  color: var(--acc-accent);
  font-weight: 600;
}
.acc-sidebar__item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--acc-accent);
}
.acc-sidebar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
.acc-sidebar__label { flex: 1; }
.acc-sidebar__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: var(--acc-border-2);
  color: var(--acc-text-2);
  font-size: 12px;
  font-weight: 700;
}
.acc-sidebar__item.is-active .acc-sidebar__count {
  background: var(--acc-accent);
  color: #fff;
}
.acc-sidebar__item.is-logout {
  margin-top: 8px;
  border-top: 1px solid var(--acc-border-2);
  padding-top: 14px;
  border-radius: 0;
  color: var(--acc-danger);
}
.acc-sidebar__item.is-logout:hover {
  background: var(--acc-danger-soft);
  color: var(--acc-danger);
}

/* ─── Main pane ────────────────────────────────────────────────────── */
.acc-main { min-width: 0; }
.acc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 16px;
}
.acc-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--acc-fs-sm);
  color: var(--acc-muted);
}
.acc-breadcrumb a {
  color: var(--acc-muted);
  transition: color 0.15s;
}
.acc-breadcrumb a:hover { color: var(--acc-text); }
.acc-breadcrumb__sep { color: var(--acc-muted); }
.acc-breadcrumb__current { color: var(--acc-text); font-weight: 600; }
.acc-topbar__home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--acc-fs-sm);
  color: var(--acc-muted);
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.acc-topbar__home:hover {
  background: var(--acc-surface);
  color: var(--acc-text);
}

.acc-section { display: block; }

/* ─── Page head ────────────────────────────────────────────────────── */
.acc-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 20px;
}
.acc-page-head > div:first-child:not(.acc-back),
.acc-page-head > h1.acc-page-title {
  flex: 1;
  min-width: 0;
}
.acc-page-head--with-back .acc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--acc-muted);
  font-size: var(--acc-fs-sm);
  margin-right: 4px;
}
.acc-page-head--with-back .acc-back:hover { color: var(--acc-text); }
.acc-page-title {
  font-size: var(--acc-fs-h1);
  font-weight: 700;
  margin: 0;
}
.acc-page-sub {
  margin: 4px 0 0;
  font-size: var(--acc-fs-sm);
  color: var(--acc-muted);
}
.acc-page-sub--hint {
  max-width: 52rem;
  line-height: 1.5;
}
.acc-page-sub--hint strong {
  color: var(--acc-text-2);
  font-weight: 600;
}

/* ─── Cards & Grids ────────────────────────────────────────────────── */
.acc-card {
  background: var(--acc-surface);
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  box-shadow: var(--acc-shadow);
  padding: 22px;
  margin-bottom: 20px;
}
.acc-card--narrow { max-width: 560px; }
.acc-card--flush  { padding: 8px 0; }
.acc-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.acc-card__title {
  font-size: var(--acc-fs-h2);
  font-weight: 700;
  margin: 0;
}
.acc-card__action {
  font-size: var(--acc-fs-sm);
  color: var(--acc-accent);
  font-weight: 600;
}
.acc-card__action:hover { color: var(--acc-accent-2); }
.acc-card__divider {
  height: 1px;
  background: var(--acc-border-2);
  margin: 20px 0;
}
.acc-section-title {
  font-size: var(--acc-fs);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--acc-text);
}

.acc-grid { display: grid; gap: var(--acc-gap); }
.acc-grid--2        { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acc-grid--stats    { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; }
.acc-grid--quick    { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; }
.acc-grid--cards    { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.acc-grid--products { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* ─── Stat ─────────────────────────────────────────────────────────── */
.acc-stat {
  background: var(--acc-surface);
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  box-shadow: var(--acc-shadow-sm);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.acc-stat--linkable { color: inherit; }
.acc-stat--linkable:hover {
  transform: translateY(-2px);
  box-shadow: var(--acc-shadow);
}
.acc-stat__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--acc-accent-soft);
  color: var(--acc-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.acc-stat__body { min-width: 0; }
.acc-stat__label {
  font-size: var(--acc-fs-sm);
  color: var(--acc-muted);
  margin-bottom: 2px;
}
.acc-stat__value {
  font-size: var(--acc-fs-h2);
  font-weight: 700;
  color: var(--acc-text);
}

/* ─── Quick actions ────────────────────────────────────────────────── */
.acc-quick {
  background: var(--acc-surface);
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--acc-text-2);
  text-align: center;
  font-size: var(--acc-fs-sm);
  font-weight: 600;
  transition: background 0.15s, transform 0.15s;
}
.acc-quick:hover {
  background: var(--acc-accent-soft);
  color: var(--acc-accent);
  transform: translateY(-2px);
}
.acc-quick__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--acc-surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ─── Generic list (orders, returns) ──────────────────────────────── */
.acc-list { display: flex; flex-direction: column; }
.acc-list__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--acc-border-2);
}
.acc-list__item:last-child { border-bottom: 0; }
.acc-list__link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  color: inherit;
}
.acc-list__main { flex: 1; min-width: 0; }
.acc-list__title {
  font-weight: 600;
  color: var(--acc-text);
}
.acc-list__meta {
  font-size: var(--acc-fs-sm);
  color: var(--acc-muted);
  margin-top: 2px;
}
.acc-list__amount {
  font-weight: 700;
  color: var(--acc-text);
}
.acc-list__chev {
  color: var(--acc-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.acc-list__chev:hover { background: var(--acc-surface-2); color: var(--acc-text); }

/* ─── Order cards ──────────────────────────────────────────────────── */
.acc-orders {
  display: grid;
  gap: var(--acc-gap);
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  margin-bottom: 20px;
}
.acc-order {
  background: var(--acc-surface);
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  box-shadow: var(--acc-shadow-sm);
  display: flex;
  flex-direction: column;
}
.acc-order__head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--acc-border-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.acc-order__no { font-weight: 700; }
.acc-order__date {
  font-size: var(--acc-fs-sm);
  color: var(--acc-muted);
  margin-left: 8px;
}
.acc-order__body { padding: 14px 16px; }
.acc-order__foot {
  padding: 12px 16px;
  border-top: 1px solid var(--acc-border-2);
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.acc-btn--iade {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.acc-btn--iade svg {
  flex-shrink: 0;
}

.acc-kv {
  display: grid;
  gap: 8px;
}
.acc-kv > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.acc-kv dt {
  color: var(--acc-muted);
  font-size: var(--acc-fs-sm);
}
.acc-kv dd {
  font-weight: 500;
  text-align: right;
}
.acc-amount { font-weight: 700; }

/* ─── Filters / chips ──────────────────────────────────────────────── */
.acc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.acc-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--acc-border);
  border-radius: 999px;
  font-size: var(--acc-fs-sm);
  font-weight: 600;
  color: var(--acc-text-2);
  background: var(--acc-surface);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.acc-chip:hover { background: var(--acc-surface-2); }
.acc-chip.is-active {
  background: var(--acc-accent);
  border-color: var(--acc-accent);
  color: #fff;
}
.myt-acc button.acc-chip {
  border: 1px solid var(--acc-border);
  background: var(--acc-surface);
  color: var(--acc-text-2);
}
.myt-acc button.acc-chip.is-active {
  background: var(--acc-accent);
  border-color: var(--acc-accent);
  color: #fff;
}

/* ─── Pager ────────────────────────────────────────────────────────── */
.acc-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.acc-pager__btn {
  padding: 8px 14px;
  border: 1px solid var(--acc-border);
  border-radius: 10px;
  font-size: var(--acc-fs-sm);
  font-weight: 600;
  color: var(--acc-text-2);
  background: var(--acc-surface);
  transition: background 0.15s;
}
.acc-pager__btn:hover { background: var(--acc-surface-2); color: var(--acc-text); }
.acc-pager__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.acc-pager__cur {
  font-size: var(--acc-fs-sm);
  color: var(--acc-muted);
}
.acc-pager--full {
  flex-wrap: wrap;
  gap: 10px;
}
.acc-pager__nums {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}
.acc-pager__num {
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--acc-text-2);
  background: var(--acc-surface);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.acc-pager__num:hover { background: var(--acc-surface-2); color: var(--acc-text); }
.acc-pager__num.is-active {
  background: var(--acc-accent);
  border-color: var(--acc-accent);
  color: #fff;
}
.acc-pager__ellipsis {
  padding: 0 4px;
  color: var(--acc-muted);
  user-select: none;
  font-size: var(--acc-fs-sm);
}
/* .myt-acc button genel sıfırlaması border'ı siliyor; sayfalama düğmeleri */
.myt-acc .acc-pager__btn,
.myt-acc .acc-pager__num {
  border: 1px solid var(--acc-border);
  background: var(--acc-surface);
  color: var(--acc-text-2);
}
.myt-acc .acc-pager__num.is-active {
  background: var(--acc-accent);
  border-color: var(--acc-accent);
  color: #fff;
}
.acc-orders-ajax.is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

/* ─── Badges ───────────────────────────────────────────────────────── */
.acc-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.acc-badge--success { background: var(--acc-success-soft); color: var(--acc-success); }
.acc-badge--info    { background: var(--acc-info-soft);    color: var(--acc-info); }
.acc-badge--danger  { background: var(--acc-danger-soft);  color: var(--acc-danger); }
.acc-badge--muted   { background: var(--acc-border-2);     color: var(--acc-muted); }

/* ─── Buttons ──────────────────────────────────────────────────────── */
.acc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: var(--acc-fs-sm);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  min-height: 40px;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.acc-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.acc-btn:active { transform: translateY(1px); }
.acc-btn--sm { padding: 6px 12px; min-height: 32px; font-size: 12px; }
.acc-btn--primary {
  background: var(--acc-accent);
  color: #fff;
}
.acc-btn--primary:hover { background: var(--acc-accent-2); }
.acc-btn--ghost {
  background: var(--acc-surface);
  border-color: var(--acc-border);
  color: var(--acc-text-2);
}
.acc-btn--ghost:hover {
  background: var(--acc-surface-2);
  color: var(--acc-text);
  border-color: var(--acc-border);
}
.acc-btn--danger {
  background: var(--acc-surface);
  border-color: var(--acc-border);
  color: var(--acc-danger);
}
.acc-btn--danger:hover {
  background: var(--acc-danger-soft);
  border-color: var(--acc-danger);
}
.acc-btn.is-loading {
  position: relative;
  color: transparent !important;
}
.acc-btn.is-loading::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: acc-spin 0.7s linear infinite;
  color: var(--acc-text);
}
.acc-btn--primary.is-loading::after { color: #fff; }
@keyframes acc-spin { to { transform: rotate(360deg); } }

/* ─── Form fields ──────────────────────────────────────────────────── */
.acc-form { display: flex; flex-direction: column; gap: 14px; }
.acc-field { display: flex; flex-direction: column; gap: 6px; }
.acc-field--full { grid-column: 1 / -1; }
.acc-label {
  font-size: var(--acc-fs-sm);
  font-weight: 600;
  color: var(--acc-text-2);
}
.acc-input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--acc-surface);
  border: 1px solid var(--acc-border);
  border-radius: 10px;
  color: var(--acc-text);
  font-size: var(--acc-fs);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.acc-input:focus {
  border-color: var(--acc-accent);
  box-shadow: 0 0 0 3px var(--acc-accent-soft);
  outline: none;
}
.acc-input::placeholder { color: var(--acc-muted); }
.acc-input.is-invalid,
.acc-field.is-invalid .acc-input {
  border-color: var(--acc-danger);
  box-shadow: 0 0 0 3px var(--acc-danger-soft);
}
.acc-textarea { min-height: 88px; resize: vertical; }
.acc-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
  padding-right: 38px;
}
.acc-input-wrap { position: relative; }
.acc-input-wrap .acc-input { padding-right: 46px; }
.acc-input-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--acc-muted);
}
.acc-input-toggle:hover { color: var(--acc-text); background: var(--acc-surface-2); }
.acc-help { font-size: 12px; color: var(--acc-muted); }
.acc-error { font-size: 12px; color: var(--acc-danger); }

/* checkbox & toggle */
.acc-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--acc-fs-sm);
  cursor: pointer;
  user-select: none;
}
.acc-checkbox input[type="checkbox"] {
  appearance: none;
  width: 20px; height: 20px;
  border: 1.5px solid var(--acc-border);
  border-radius: 6px;
  background: var(--acc-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}
.acc-checkbox input[type="checkbox"]:checked {
  background: var(--acc-accent);
  border-color: var(--acc-accent);
}
.acc-checkbox input[type="checkbox"]:checked::after {
  content: "";
  width: 10px; height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.acc-toggle-group {
  display: inline-flex;
  border: 1px solid var(--acc-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--acc-surface);
}
.acc-toggle {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.acc-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.acc-toggle span {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: var(--acc-fs-sm);
  font-weight: 600;
  color: var(--acc-text-2);
  background: transparent;
  transition: background 0.15s, color 0.15s;
}
.acc-toggle input:checked + span {
  background: var(--acc-accent);
  color: #fff;
}

/* password strength */
.acc-strength {
  height: 6px;
  background: var(--acc-border-2);
  border-radius: 3px;
  overflow: hidden;
}
.acc-strength span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--acc-danger);
  transition: width 0.2s ease, background 0.2s ease;
}
.acc-strength[data-acc-level="1"] span { width: 25%; background: var(--acc-danger); }
.acc-strength[data-acc-level="2"] span { width: 50%; background: var(--acc-warning); }
.acc-strength[data-acc-level="3"] span { width: 75%; background: var(--acc-info); }
.acc-strength[data-acc-level="4"] span { width: 100%; background: var(--acc-success); }

.acc-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}
.acc-form__actions--split { justify-content: space-between; }

/* ─── Empty state ──────────────────────────────────────────────────── */
.acc-empty {
  background: var(--acc-surface);
  border: 1px dashed var(--acc-border);
  border-radius: var(--acc-radius);
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.acc-empty__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--acc-surface-2);
  color: var(--acc-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.acc-empty__icon svg { width: 28px; height: 28px; }
.acc-empty__title { font-weight: 700; font-size: var(--acc-fs-lg); }
.acc-empty__msg { color: var(--acc-muted); max-width: 420px; }

/* ─── Address card ─────────────────────────────────────────────────── */
.acc-addr {
  background: var(--acc-surface);
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  box-shadow: var(--acc-shadow-sm);
  display: flex;
  flex-direction: column;
}
.acc-addr__head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--acc-border-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.acc-addr__head > div { display: flex; align-items: center; gap: 10px; }
.acc-addr__title { font-size: var(--acc-fs); font-weight: 700; }
.acc-addr__body { padding: 14px 16px; flex: 1; }
.acc-text { color: var(--acc-text); margin: 0 0 4px; }
.acc-muted { color: var(--acc-muted); font-size: var(--acc-fs-sm); margin: 0; }
.acc-addr__foot {
  padding: 12px 16px;
  border-top: 1px solid var(--acc-border-2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

/* ─── Order detail timeline ────────────────────────────────────────── */
.acc-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  padding: 12px 8px 4px;
  position: relative;
}
.acc-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  text-align: center;
}
.acc-step::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -50%;
  right: 50%;
  height: 2px;
  background: var(--acc-border);
  z-index: 0;
}
.acc-step:first-child::before { display: none; }
.acc-step.is-done::before,
.acc-step.is-active::before { background: var(--acc-accent); }
.acc-step__dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--acc-surface);
  border: 2px solid var(--acc-border);
  color: var(--acc-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.acc-step.is-done .acc-step__dot {
  background: var(--acc-accent);
  border-color: var(--acc-accent);
  color: #fff;
}
.acc-step.is-active .acc-step__dot {
  border-color: var(--acc-accent);
  color: var(--acc-accent);
  box-shadow: 0 0 0 4px var(--acc-accent-soft);
}
.acc-step__label {
  font-size: 12px;
  color: var(--acc-muted);
  font-weight: 500;
}
.acc-step.is-done .acc-step__label,
.acc-step.is-active .acc-step__label { color: var(--acc-text); font-weight: 600; }

/* ─── Cart-style item list (order detail) ─────────────────────────── */
.acc-cart-list { display: flex; flex-direction: column; }
.acc-cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--acc-border-2);
}
.acc-cart-item:last-child { border-bottom: 0; }
.acc-cart-item__img {
  width: 64px; height: 64px;
  border-radius: 10px;
  border: 1px solid var(--acc-border-2);
  object-fit: cover;
  background: var(--acc-surface-2);
  flex: 0 0 auto;
}
.acc-cart-item__img--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--acc-muted);
}
.acc-cart-item__body { flex: 1; min-width: 0; }
.acc-cart-item__title {
  font-weight: 600;
  color: var(--acc-text);
  margin-bottom: 4px;
}
.acc-cart-item__meta {
  font-size: var(--acc-fs-sm);
  color: var(--acc-muted);
}
.acc-cart-item__amount {
  font-weight: 700;
  color: var(--acc-text);
  text-align: right;
}

.acc-summary {
  border-top: 1px solid var(--acc-border-2);
  margin-top: 16px;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.acc-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: var(--acc-fs-sm);
  color: var(--acc-text-2);
}
.acc-summary__row--total {
  border-top: 1px solid var(--acc-border-2);
  padding-top: 12px;
  margin-top: 6px;
  font-size: var(--acc-fs-lg);
  font-weight: 700;
  color: var(--acc-text);
}

/* ─── Product cards (favorites) ────────────────────────────────────── */
.acc-prod {
  background: var(--acc-surface);
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.acc-prod:hover { transform: translateY(-2px); box-shadow: var(--acc-shadow); }
.acc-prod__media {
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--acc-surface-2);
  overflow: hidden;
  position: relative;
}
.acc-prod__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.acc-prod__ph {
  width: 100%; height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--acc-muted);
}
.acc-prod__oos {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(17, 21, 28, 0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}
.acc-prod__fav {
  position: absolute;
  top: 8px; right: 8px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--acc-muted);
  box-shadow: var(--acc-shadow-sm);
  transition: color 0.15s, transform 0.15s;
}
.acc-prod__fav:hover { transform: scale(1.05); }
.acc-prod__fav.is-active { color: var(--acc-danger); }
.acc-prod__fav.is-active svg { fill: var(--acc-danger); }
.acc-prod__body { padding: 12px 14px 14px; }
.acc-prod__title {
  display: block;
  font-size: var(--acc-fs-sm);
  font-weight: 600;
  color: var(--acc-text);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.acc-prod__price {
  font-weight: 700;
  color: var(--acc-text);
}

/* ─── Reviews ──────────────────────────────────────────────────────── */
.acc-reviews { display: flex; flex-direction: column; gap: var(--acc-gap); }
.acc-review {
  background: var(--acc-surface);
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  padding: 16px;
  display: flex;
  gap: 14px;
}
.acc-review__thumb {
  width: 72px; height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--acc-border-2);
  flex: 0 0 auto;
}
.acc-review__thumb img { width: 100%; height: 100%; object-fit: cover; }
.acc-review__ph {
  width: 100%; height: 100%;
  background: var(--acc-surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--acc-muted);
}
.acc-review__body { flex: 1; min-width: 0; }
.acc-review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.acc-review__title {
  font-weight: 600;
  color: var(--acc-text);
}
.acc-stars { display: inline-flex; gap: 2px; margin-bottom: 6px; }
.acc-star { color: var(--acc-border); }
.acc-star.is-on { color: #f59e0b; }
.acc-star.is-on svg { fill: #f59e0b; }
.acc-review__text {
  font-size: var(--acc-fs-sm);
  color: var(--acc-text-2);
  margin: 0 0 8px;
}
.acc-review__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ─── Returns: items selection ─────────────────────────────────────── */
.acc-return-items {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
}
.acc-return-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--acc-border-2);
  background: var(--acc-surface);
}
.acc-return-item:last-child { border-bottom: 0; }
.acc-return-item__title { font-weight: 600; color: var(--acc-text); }
.acc-return-item__details { margin-top: 12px; }

/* ─── Toast ────────────────────────────────────────────────────────── */
.acc-toast-stack {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}
.acc-toast {
  pointer-events: auto;
  min-width: 260px;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--acc-text);
  color: #fff;
  font-size: var(--acc-fs-sm);
  font-weight: 500;
  box-shadow: var(--acc-shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: acc-toast-in 0.25s ease;
}
.acc-toast--success { background: var(--acc-success); }
.acc-toast--error   { background: var(--acc-danger); }
.acc-toast--info    { background: var(--acc-accent); }
.acc-toast.is-out { animation: acc-toast-out 0.25s ease forwards; }
@keyframes acc-toast-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes acc-toast-out {
  to   { opacity: 0; transform: translateX(20px); }
}

/* ─── Confirm modal ────────────────────────────────────────────────── */
.acc-modal[hidden] { display: none !important; }
.acc-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.acc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  animation: acc-fade-in 0.2s ease;
}
.acc-modal__panel {
  position: relative;
  background: var(--acc-surface);
  border-radius: var(--acc-radius);
  box-shadow: var(--acc-shadow-lg);
  padding: 24px;
  max-width: 420px;
  width: 100%;
  animation: acc-pop-in 0.2s ease;
}
@keyframes acc-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes acc-pop-in  { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.acc-modal__title { font-size: var(--acc-fs-lg); font-weight: 700; margin-bottom: 8px; }
.acc-modal__msg   { color: var(--acc-text-2); margin-bottom: 20px; }
.acc-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ─── Skeleton loader ──────────────────────────────────────────────── */
.acc-skeleton {
  display: block;
  background: linear-gradient(90deg,
    var(--acc-border-2) 0%,
    var(--acc-surface-2) 50%,
    var(--acc-border-2) 100%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: acc-skeleton 1.4s ease-in-out infinite;
}
@keyframes acc-skeleton {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Drawer overlay ───────────────────────────────────────────────── */
.acc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

/* ─── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .acc-grid--stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-grid--quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .acc-shell {
    grid-template-columns: 1fr;
    padding: 0 0 88px;
    gap: 0;
  }
  .acc-mobile-bar { display: flex; }
  .acc-topbar { padding: 14px 16px; }
  .acc-section { padding: 0 16px; }
  .acc-main { padding-top: 4px; }
  .acc-sidebar {
    position: fixed;
    top: 0; bottom: 0; left: -100%;
    width: 86%;
    max-width: 320px;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    z-index: 9999;
    transition: left 0.25s ease;
    padding: 56px 14px 20px;
  }
  .acc-sidebar.is-open { left: 0; box-shadow: var(--acc-shadow-lg); }
  .acc-overlay.is-open { opacity: 1; visibility: visible; }
  .acc-drawer-close { display: inline-flex; }
  .acc-page-head { padding: 0; }
}

@media (max-width: 575.98px) {
  .acc-grid--2 { grid-template-columns: 1fr; }
  .acc-card { padding: 16px; }
  .acc-page-title { font-size: 19px; }
  .acc-orders { grid-template-columns: 1fr; }
  .acc-grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-form__actions { flex-direction: column-reverse; }
  .acc-form__actions .acc-btn { width: 100%; }
  .acc-timeline { gap: 2px; }
  .acc-step__label { font-size: 10px; }
}

/* ─── Dark mode ────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .myt-acc {
    --acc-bg:        #0f172a;
    --acc-surface:   #1e293b;
    --acc-surface-2: #273549;
    --acc-border:    #334155;
    --acc-border-2:  #2c3a52;
    --acc-text:      #f1f5f9;
    --acc-text-2:    #cbd5e1;
    --acc-muted:     #94a3b8;
    --acc-accent:    #60a5fa;
    --acc-accent-2:  #3b82f6;
    --acc-accent-soft: rgba(96, 165, 250, 0.16);
    --acc-shadow:    0 4px 14px rgba(0, 0, 0, 0.35);
    --acc-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
    --acc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
  .acc-toast { background: #1e293b; color: #f1f5f9; }
  .acc-toast--success { background: var(--acc-success); }
  .acc-toast--error   { background: var(--acc-danger); }
}
