/* ============================================================
   Azadel Seller Dashboard — Main CSS
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --asd-primary:       #2563eb;
  --asd-primary-dark:  #1d4ed8;
  --asd-primary-light: #eff6ff;
  --asd-accent:        #7c3aed;
  --asd-success:       #16a34a;
  --asd-warning:       #d97706;
  --asd-danger:        #dc2626;
  --asd-info:          #0284c7;

  --asd-sidebar-bg:    #0f172a;
  --asd-sidebar-text:  #94a3b8;
  --asd-sidebar-hover: #1e293b;
  --asd-sidebar-active:#2563eb;
  --asd-sidebar-w:     240px;

  --asd-bg:            #f1f5f9;
  --asd-surface:       #ffffff;
  --asd-border:        #e2e8f0;
  --asd-text:          #0f172a;
  --asd-text-muted:    #64748b;

  --asd-radius:        10px;
  --asd-radius-sm:     6px;
  --asd-shadow:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --asd-shadow-md:     0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);

  --asd-font:          -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Reset scoped ───────────────────────────────────────────── */
.asd-wrap, .asd-wrap * {
  box-sizing: border-box;
}

/* ── Layout ─────────────────────────────────────────────────── */
.asd-wrap {
  display: flex;
  min-height: 100vh;
  font-family: var(--asd-font);
  background: var(--asd-bg);
  color: var(--asd-text);
  position: relative;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.asd-sidebar {
  width: var(--asd-sidebar-w);
  min-height: 100vh;
  background: var(--asd-sidebar-bg);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  flex-shrink: 0;
  z-index: 100;
}

.asd-sidebar__seller {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.asd-sidebar__avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.asd-sidebar__seller-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.asd-sidebar__seller-name {
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asd-sidebar__seller-badge {
  font-size: 10px;
  color: #ffffff !important;
  background: #2563eb !important;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 2px;
  font-weight: 600;
  letter-spacing: .3px;
}

.asd-sidebar__nav {
  flex: 1;
  padding: 12px 0;
}

.asd-sidebar__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.asd-sidebar__menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--asd-sidebar-text);
  text-decoration: none;
  font-size: 13.5px;
  transition: all .15s;
  border-radius: 0;
}

.asd-sidebar__menu-link:hover {
  background: var(--asd-sidebar-hover);
  color: #f1f5f9;
}

.asd-sidebar__menu-item.is-active .asd-sidebar__menu-link {
  background: rgba(37,99,235,.15);
  color: #93c5fd;
  border-left: 3px solid var(--asd-primary);
}

.asd-sidebar__menu-icon {
  flex-shrink: 0;
  opacity: .75;
}

.asd-sidebar__footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.asd-sidebar__logout {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--asd-sidebar-text);
  font-size: 13px;
  text-decoration: none;
  transition: color .15s;
}

.asd-sidebar__logout:hover { color: #f87171; }

/* ── Main Content ───────────────────────────────────────────── */
.asd-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.asd-main__header {
  background: var(--asd-surface);
  border-bottom: 1px solid var(--asd-border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.asd-main__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--asd-text);
}

.asd-main__content {
  padding: 28px;
  flex: 1;
}

.asd-back-link {
  font-size: 12px;
  color: var(--asd-text-muted);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

.asd-back-link:hover { color: var(--asd-primary); }

/* ── Buttons — nuclear override untuk Enfold & semua theme ──── */
/* Base reset untuk semua .asd-btn */
.asd-wrap .asd-btn,
.asd-wrap a.asd-btn,
body .asd-wrap .asd-btn,
body .asd-wrap a.asd-btn,
#top .asd-wrap .asd-btn,
#top .asd-wrap a.asd-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 9px 18px !important;
  border-radius: 6px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background .15s, color .15s, border-color .15s !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  text-transform: none !important;
  text-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* Primary — paksa putih, tanpa jalan lari */
.asd-wrap .asd-btn--primary,
.asd-wrap a.asd-btn--primary,
body .asd-wrap .asd-btn--primary,
body .asd-wrap a.asd-btn--primary,
#top .asd-wrap .asd-btn--primary,
#top .asd-wrap a.asd-btn--primary,
.asd-wrap button.asd-btn--primary,
.asd-wrap input.asd-btn--primary {
  background: #2563eb !important;
  background-color: #2563eb !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 2px solid #2563eb !important;
  border-radius: 6px !important;
}
.asd-wrap .asd-btn--primary:hover,
.asd-wrap a.asd-btn--primary:hover,
body .asd-wrap .asd-btn--primary:hover,
#top .asd-wrap .asd-btn--primary:hover {
  background: #1d4ed8 !important;
  background-color: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
}
/* Pastikan teks dalam button juga putih */
.asd-wrap .asd-btn--primary *,
.asd-wrap a.asd-btn--primary * {
  color: #ffffff !important;
}

/* Ghost */
.asd-wrap .asd-btn--ghost,
.asd-wrap a.asd-btn--ghost,
body .asd-wrap .asd-btn--ghost,
#top .asd-wrap .asd-btn--ghost {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #475569 !important;
  border: 1.5px solid #e2e8f0 !important;
}
.asd-wrap .asd-btn--ghost:hover,
.asd-wrap a.asd-btn--ghost:hover,
body .asd-wrap .asd-btn--ghost:hover,
#top .asd-wrap .asd-btn--ghost:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

.asd-wrap .asd-btn--sm,
.asd-wrap a.asd-btn--sm  { padding: 7px 14px !important; font-size: 12.5px !important; }
.asd-wrap .asd-btn--xs,
.asd-wrap a.asd-btn--xs  { padding: 4px 10px !important; font-size: 11.5px !important; }

/* ── Stats Cards ─────────────────────────────────────────────── */
.asd-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.asd-stat-card {
  background: var(--asd-surface);
  border: 1px solid var(--asd-border);
  border-radius: var(--asd-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--asd-shadow);
}

.asd-stat-card__label {
  font-size: 12px;
  color: var(--asd-text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.asd-stat-card__value {
  font-size: 26px;
  font-weight: 700;
  color: var(--asd-text);
}

/* ── Quick Actions ──────────────────────────────────────────── */
.asd-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.asd-quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: var(--asd-surface);
  border: 1px solid var(--asd-border);
  border-radius: var(--asd-radius);
  text-decoration: none;
  color: var(--asd-text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
  text-align: center;
  box-shadow: var(--asd-shadow);
}

.asd-quick-action:hover {
  border-color: var(--asd-primary);
  color: var(--asd-primary);
  box-shadow: var(--asd-shadow-md);
  transform: translateY(-1px);
}

/* ── Sections ────────────────────────────────────────────────── */
.asd-section {
  background: var(--asd-surface);
  border: 1px solid var(--asd-border);
  border-radius: var(--asd-radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--asd-shadow);
}

.asd-section__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
}

.asd-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.asd-section__header .asd-section__title { margin-bottom: 0; }

/* ── Table ───────────────────────────────────────────────────── */
.asd-table-wrap {
  overflow-x: auto;
}

.avh-wrap .asd-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

.avh-wrap .asd-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--asd-text-muted);
  background: var(--asd-bg);
  border-bottom: 1px solid var(--asd-border);
  border-top: none;
}

.avh-wrap .asd-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--asd-border);
  border-top: none;
  border-left: none;
  border-right: none;
  vertical-align: middle;
  background: transparent;
}

.avh-wrap .asd-table tr:last-child td { border-bottom: none; }
.avh-wrap .asd-table tr:hover td { background: #f8fafc; }

.asd-table__product {
  display: flex;
  align-items: center;
  gap: 10px;
}

.asd-table__thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}

/* Enfold theme override — buang border hitam pada table */
.avh-wrap table.asd-table,
.avh-wrap table.asd-table th,
.avh-wrap table.asd-table td,
#top .avh-wrap table.asd-table,
#top .avh-wrap table.asd-table th,
#top .avh-wrap table.asd-table td {
  border-color: var(--asd-border) !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  outline: none !important;
  box-shadow: none !important;
}
#top .avh-wrap table.asd-table th {
  border-bottom: 1px solid var(--asd-border) !important;
  background: var(--asd-bg) !important;
}
#top .avh-wrap table.asd-table td {
  border-bottom: 1px solid var(--asd-border) !important;
}
#top .avh-wrap table.asd-table tr:last-child td {
  border-bottom: none !important;
}

/* ── Badges ──────────────────────────────────────────────────── */
.asd-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.asd-badge--digital        { background: #dbeafe; color: #1d4ed8; }
.asd-badge--physical       { background: #fef3c7; color: #92400e; }
.asd-badge--course         { background: #ede9fe; color: #5b21b6; }
.asd-badge--status-publish { background: #dcfce7; color: #15803d; }
.asd-badge--status-draft   { background: #f1f5f9; color: #64748b; }
.asd-badge--status-pending { background: #fef9c3; color: #854d0e; }

/* ── Notices ─────────────────────────────────────────────────── */
.asd-notice {
  padding: 12px 16px;
  border-radius: var(--asd-radius-sm);
  font-size: 13.5px;
  margin-bottom: 16px;
}

.asd-notice p { margin: 0; }

.asd-notice--info    { background: #e0f2fe; border-left: 3px solid var(--asd-info); color: #0c4a6e; }
.asd-notice--warning { background: #fef9c3; border-left: 3px solid var(--asd-warning); color: #713f12; }
.asd-notice--error   { background: #fee2e2; border-left: 3px solid var(--asd-danger); color: #7f1d1d; }
.asd-notice--success { background: #dcfce7; border-left: 3px solid var(--asd-success); color: #14532d; }

/* ── Empty State ─────────────────────────────────────────────── */
.asd-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--asd-text-muted);
  font-size: 14px;
}

/* ── Coming Soon ─────────────────────────────────────────────── */
.asd-coming-soon {
  text-align: center;
  padding: 60px 20px;
}

.asd-coming-soon__icon { font-size: 48px; margin-bottom: 16px; }
.asd-coming-soon h3 { font-size: 20px; margin-bottom: 8px; }
.asd-coming-soon p { color: var(--asd-text-muted); }

/* ══════════════════════════════════════════════════════════════
   PRODUCT BUILDER
══════════════════════════════════════════════════════════════ */

/* ── Step Progress ───────────────────────────────────────────── */
.asd-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  background: var(--asd-surface);
  border: 1px solid var(--asd-border);
  border-radius: var(--asd-radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--asd-shadow);
}

.asd-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--asd-text-muted);
  border-right: 1px solid var(--asd-border);
  cursor: default;
}

.asd-step:last-child { border-right: none; }

.asd-step__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--asd-bg);
  border: 2px solid var(--asd-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.asd-step.active {
  background: var(--asd-primary-light);
  color: var(--asd-primary);
}

.asd-step.active .asd-step__num {
  background: var(--asd-primary);
  border-color: var(--asd-primary);
  color: #fff;
}

.asd-step.completed { color: var(--asd-success); }
.asd-step.completed .asd-step__num {
  background: var(--asd-success);
  border-color: var(--asd-success);
  color: #fff;
}

/* ── Form Steps ──────────────────────────────────────────────── */
.asd-form__step {
  display: none;
}

.asd-form__step.active {
  display: block;
}

.asd-form__section {
  background: var(--asd-surface);
  border: 1px solid var(--asd-border);
  border-radius: var(--asd-radius);
  padding: 28px;
  margin-bottom: 16px;
  box-shadow: var(--asd-shadow);
}

.asd-form__section-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}

.asd-form__section-desc {
  color: var(--asd-text-muted);
  font-size: 13.5px;
  margin: 0 0 24px;
}

.asd-form__subsection-title {
  font-size: 14px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--asd-text);
}

.asd-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--asd-surface);
  border: 1px solid var(--asd-border);
  border-radius: var(--asd-radius);
  padding: 16px 20px;
  box-shadow: var(--asd-shadow);
}

.asd-form__footer-right {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

/* ── Type Cards ──────────────────────────────────────────────── */
.asd-type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.asd-type-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 2px solid var(--asd-border);
  border-radius: var(--asd-radius);
  cursor: pointer;
  transition: all .15s;
  background: var(--asd-bg);
}

.asd-type-card input[type="radio"] { display: none; }

.asd-type-card:hover {
  border-color: var(--asd-primary);
  background: var(--asd-primary-light);
}

.asd-type-card.selected {
  border-color: var(--asd-primary);
  background: var(--asd-primary-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.asd-type-card__icon { font-size: 28px; flex-shrink: 0; }

.asd-type-card__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.asd-type-card__info strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--asd-text);
}

.asd-type-card__info span {
  font-size: 12px;
  color: var(--asd-text-muted);
}

/* ── Radio Options ───────────────────────────────────────────── */
.asd-digital-type {
  background: var(--asd-bg);
  border-radius: var(--asd-radius-sm);
  padding: 20px;
  border: 1px solid var(--asd-border);
}

.asd-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.asd-radio-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--asd-border);
  border-radius: var(--asd-radius-sm);
  cursor: pointer;
  transition: all .15s;
  background: var(--asd-surface);
}

.asd-radio-option input[type="radio"] { display: none; }

.asd-radio-option:hover { border-color: var(--asd-primary); }

.asd-radio-option.selected {
  border-color: var(--asd-primary);
  background: var(--asd-primary-light);
}

.asd-radio-option__icon { font-size: 22px; flex-shrink: 0; }

.asd-radio-option strong { display: block; font-size: 13.5px; font-weight: 600; }
.asd-radio-option small  { font-size: 12px; color: var(--asd-text-muted); }

/* ── Form Fields ─────────────────────────────────────────────── */
.asd-field {
  margin-bottom: 18px;
}

.asd-field-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

/* Price row — 2 kolum sama lebar, input align bawah */
.asd-field-row--price {
  grid-template-columns: 1fr 1fr;
  align-items: end;
}

.asd-field-row--price .asd-field {
  margin-bottom: 0;
}

.asd-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--asd-text);
  margin-bottom: 6px;
}

.asd-required { color: var(--asd-danger); }

.asd-input,
.asd-select,
.asd-textarea {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--asd-border);
  border-radius: var(--asd-radius-sm);
  font-size: 13.5px;
  color: var(--asd-text);
  background: var(--asd-surface);
  transition: border-color .15s;
  font-family: var(--asd-font);
}

.asd-input:focus,
.asd-select:focus,
.asd-textarea:focus {
  outline: none;
  border-color: var(--asd-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}

.asd-textarea { resize: vertical; }
.asd-textarea--code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12.5px;
  resize: vertical;
  min-height: 200px;
}
.asd-hint { font-size: 12px; color: var(--asd-text-muted); margin-top: 4px; display: block; }

/* ── Image Uploader ──────────────────────────────────────────── */
.asd-image-uploader {
  display: flex;
  align-items: center;
  gap: 16px;
}

.asd-image-uploader__preview {
  width: 100px;
  height: 100px;
  border: 2px dashed var(--asd-border);
  border-radius: var(--asd-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--asd-bg);
}

.asd-image-uploader__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asd-image-uploader__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--asd-text-muted);
  font-size: 11px;
  text-align: center;
  padding: 8px;
}

.asd-image-uploader__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── File Upload ─────────────────────────────────────────────── */
.asd-file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asd-file-name {
  font-size: 12.5px;
  color: var(--asd-text-muted);
}

/* ── Commission Box ──────────────────────────────────────────── */
.asd-commission-box {
  border: 1.5px solid var(--asd-border);
  border-radius: var(--asd-radius);
  overflow: hidden;
}

.asd-commission-box__info {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--asd-bg);
  border-bottom: 1px solid var(--asd-border);
}

.asd-commission-box__icon { font-size: 24px; flex-shrink: 0; }
.asd-commission-box__info strong { display: block; font-size: 14px; margin-bottom: 4px; }
.asd-commission-box__info p { margin: 0; font-size: 13px; color: var(--asd-text-muted); }

.asd-commission-rate {
  padding: 18px;
  border-bottom: 1px solid var(--asd-border);
}

.asd-commission-rate__input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 140px;
}

.asd-input--commission { text-align: center; font-size: 20px; font-weight: 700; }
.asd-commission-rate__pct { font-size: 20px; font-weight: 700; color: var(--asd-text-muted); }
.asd-commission-rate__note { margin: 10px 0 0; font-size: 12.5px; color: var(--asd-text-muted); }

.asd-commission-preview {
  padding: 18px;
}

.asd-commission-preview__row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 6px 0;
  color: var(--asd-text-muted);
}

.asd-commission-preview__row--deduct { color: var(--asd-danger); }

.asd-commission-preview__row--total {
  font-weight: 700;
  font-size: 15px;
  color: var(--asd-success);
  border-top: 1px solid var(--asd-border);
  margin-top: 6px;
  padding-top: 12px;
}

/* ── Page Mode Cards ─────────────────────────────────────────── */
.asd-page-mode-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.asd-page-mode-card {
  border: 2px solid var(--asd-border);
  border-radius: var(--asd-radius);
  padding: 16px;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
  background: var(--asd-bg);
}

.asd-page-mode-card input[type="radio"] { display: none; }

.asd-page-mode-card:hover { border-color: var(--asd-primary); }
.asd-page-mode-card.selected {
  border-color: var(--asd-primary);
  background: var(--asd-primary-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.asd-page-mode-card strong { display: block; font-size: 13px; margin: 10px 0 3px; }
.asd-page-mode-card span   { font-size: 11.5px; color: var(--asd-text-muted); }

/* Mini page previews */
.asd-page-mode-card__preview {
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--asd-border);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.asd-preview-header {
  height: 14px;
  background: #e2e8f0;
  flex-shrink: 0;
}

.asd-preview-footer {
  height: 10px;
  background: #e2e8f0;
  flex-shrink: 0;
}

.asd-preview-body {
  flex: 1;
  padding: 6px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.asd-preview-body--full {
  flex-direction: column;
  gap: 4px;
}

.asd-preview-img {
  width: 36px;
  height: 100%;
  background: #cbd5e1;
  border-radius: 3px;
  flex-shrink: 0;
}

.asd-preview-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.asd-preview-text::before,
.asd-preview-text::after {
  content: '';
  display: block;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
}

.asd-preview-text--sm {
  max-width: 70%;
}

/* ── HTML Editor + Preview ───────────────────────────────────── */
.asd-html-editor {
  background: var(--asd-bg);
  border: 1px solid var(--asd-border);
  border-radius: var(--asd-radius-sm);
  padding: 20px;
  margin-top: 16px;
}

.asd-html-preview-wrap {
  margin-top: 16px;
  border: 1px solid var(--asd-border);
  border-radius: var(--asd-radius-sm);
  overflow: visible;
}

.asd-html-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--asd-sidebar-bg);
  color: var(--asd-sidebar-text);
  font-size: 12px;
}

.asd-html-preview-frame {
  width: 100%;
  height: 400px;
  border: none;
  background: #fff;
  display: block;
  border-radius: 0 0 var(--asd-radius-sm) var(--asd-radius-sm);
}

/* ── Protected Builder ───────────────────────────────────────── */
.asd-protected-builder {
  background: var(--asd-bg);
  border: 1px solid var(--asd-border);
  border-radius: var(--asd-radius-sm);
  padding: 20px;
  margin-top: 16px;
}

/* ── Success Message ─────────────────────────────────────────── */
.asd-success-message {
  text-align: center;
  padding: 60px 20px;
  background: var(--asd-surface);
  border: 1px solid var(--asd-border);
  border-radius: var(--asd-radius);
  box-shadow: var(--asd-shadow);
}

.asd-success-message__icon { font-size: 56px; margin-bottom: 16px; }
.asd-success-message h3 { font-size: 22px; margin-bottom: 8px; }
.asd-success-message p { color: var(--asd-text-muted); margin-bottom: 24px; }

/* ── Mobile Toggle ───────────────────────────────────────────── */
.asd-mobile-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  background: var(--asd-sidebar-bg);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--asd-radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 959px) {
  .asd-mobile-toggle {
    display: flex;
  }

  .asd-sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    bottom: 0;
    transition: left .25s;
    z-index: 150;
  }

  .asd-sidebar.is-open {
    left: 0;
  }

  .asd-main__content {
    padding: 16px;
  }

  .asd-main__header {
    padding: 12px 16px;
    padding-left: 64px; /* space untuk toggle button */
  }

  .asd-steps {
    flex-wrap: wrap;
  }

  .asd-step__label { display: none; }

  .asd-type-cards,
  .asd-page-mode-cards {
    grid-template-columns: 1fr;
  }

  .asd-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .asd-form__footer {
    flex-direction: column;
  }

  .asd-form__footer-right {
    width: 100%;
    justify-content: stretch;
  }

  .asd-form__footer-right .asd-btn {
    flex: 1;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════════════════════
   FIXES & NEW ELEMENTS
══════════════════════════════════════════════════════════════ */

/* ── Label optional tag ─────────────────────────────────────── */
.asd-label-optional {
  font-size: 11px;
  font-weight: 400;
  color: var(--asd-text-muted);
  margin-left: 4px;
}

/* ── Image uploader — improved layout ───────────────────────── */
.asd-image-uploader {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.asd-image-uploader__preview {
  width: 140px;
  height: 140px;
  border: 2px dashed var(--asd-border);
  border-radius: var(--asd-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--asd-bg);
  transition: border-color .15s;
}

.asd-image-uploader__preview:hover {
  border-color: var(--asd-primary);
}

.asd-image-uploader__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asd-image-uploader__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--asd-text-muted);
  font-size: 12px;
  text-align: center;
  padding: 12px;
}

.asd-image-uploader__placeholder span:first-child {
  font-size: 28px;
}

.asd-image-uploader__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,.55);
  color: #fff;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.asd-image-uploader__actions {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

/* Image size info box */
.asd-image-size-info {
  background: var(--asd-bg);
  border: 1px solid var(--asd-border);
  border-radius: var(--asd-radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--asd-text-muted);
}

.asd-image-size-info__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--asd-info);
  margin-bottom: 6px;
}

.asd-image-size-info__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.asd-image-size-info__list li {
  line-height: 1.5;
}

/* ── Commission tooltip trigger button ──────────────────────── */
.asd-commission-rate__label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.asd-commission-rate__label-row .asd-label {
  margin-bottom: 0;
}

.asd-tooltip-trigger {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: #2563eb !important;
  background-color: #2563eb !important;
  background-image: none !important;
  color: #ffffff !important;
  border: none !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  transition: background .15s !important;
  padding: 0 !important;
  text-decoration: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 5 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.asd-tooltip-trigger:hover {
  background: #1d4ed8 !important;
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
}

/* ── Commission tooltip popup ───────────────────────────────── */
.asd-tooltip-popup {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  margin: 12px 0 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  z-index: 10;
}

.asd-tooltip-popup__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--asd-text-muted);
  line-height: 1;
}

.asd-tooltip-popup__close:hover { color: var(--asd-danger); }

.asd-tooltip-popup h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
  padding-right: 24px;
}

.asd-tooltip-popup > p {
  font-size: 13px;
  color: var(--asd-text-muted);
  margin: 0 0 14px;
}

/* Commission breakdown table */
.asd-commission-breakdown {
  background: var(--asd-bg);
  border-radius: var(--asd-radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--asd-border);
}

.asd-commission-breakdown__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--asd-border);
}

.asd-commission-breakdown__row:last-child {
  border-bottom: none;
}

.asd-commission-breakdown__val {
  font-weight: 700;
  color: var(--asd-text-muted);
}

.asd-commission-breakdown__val--seller {
  color: var(--asd-success);
}

/* Tip box */
.asd-commission-tip {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: var(--asd-radius-sm);
  padding: 10px 14px;
  margin-bottom: 10px;
}

.asd-commission-tip p {
  margin: 0;
  font-size: 12.5px;
  color: #713f12;
}

.asd-commission-disclaimer {
  font-size: 11.5px;
  color: var(--asd-text-muted);
  font-style: italic;
  margin: 0 !important;
}

/* ══════════════════════════════════════════════════════════════
   AVH v1.1 — Layout, Sidebar, Buttons, Store, Admin
══════════════════════════════════════════════════════════════ */
.avh-wrap { display:flex; min-height:100vh; font-family:var(--asd-font); background:var(--asd-bg); color:var(--asd-text); position:relative; }

/* Dark Sidebar */
.avh-sidebar { width:var(--asd-sidebar-w); min-height:100vh; background:var(--asd-sidebar-bg); display:flex; flex-direction:column; position:sticky; top:0; height:100vh; overflow-y:auto; flex-shrink:0; z-index:100; }
.avh-sidebar__brand { padding:18px 16px 14px; border-bottom:1px solid rgba(255,255,255,.06); }
.avh-sidebar__brand a { text-decoration:none; display:flex; flex-direction:column; }
.avh-sidebar__brand-text { font-size:20px; font-weight:700; color:#93c5fd; }
.avh-sidebar__brand-tag  { font-size:10px; color:#64748b; text-transform:uppercase; letter-spacing:1px; margin-top:2px; }
.avh-sidebar__vendor { display:flex; align-items:center; gap:10px; padding:16px; border-bottom:1px solid rgba(255,255,255,.06); }
.avh-sidebar__avatar { width:36px; height:36px; border-radius:50%; object-fit:cover; flex-shrink:0; border:2px solid #2563eb; }
.avh-sidebar__vendor-info { display:flex; flex-direction:column; overflow:hidden; }
.avh-sidebar__vendor-info strong { font-size:13px; font-weight:600; color:#f1f5f9; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.avh-sidebar__vendor-badge { font-size:10px; color:#fff !important; background:#2563eb !important; padding:2px 8px; border-radius:20px; display:inline-block; margin-top:2px; font-weight:600; }
.avh-sidebar__nav { flex:1; padding:8px 0; }
.avh-sidebar__menu { list-style:none; margin:0; padding:0; }
.avh-sidebar__menu-link { display:flex; align-items:center; gap:10px; padding:10px 16px; color:var(--asd-sidebar-text); text-decoration:none; font-size:13.5px; transition:all .15s; }
.avh-sidebar__menu-link:hover { background:var(--asd-sidebar-hover); color:#f1f5f9; }
.avh-sidebar__menu-item.is-active .avh-sidebar__menu-link,
.avh-sidebar__menu-item.is-active .avh-sidebar__menu-link:hover { color:#93c5fd !important; }
.avh-sidebar__menu-item.is-active .avh-sidebar__menu-link { background:rgba(37,99,235,.15); color:#93c5fd; border-left:3px solid var(--asd-primary); }
.avh-sidebar__menu-item--admin { border-top:1px solid rgba(255,255,255,.06); margin-top:8px; }
.avh-sidebar__menu-icon { flex-shrink:0; }
.avh-sidebar__footer { padding:8px 0 12px; border-top:1px solid rgba(255,255,255,.06); }

/* Light Main */
.avh-main { flex:1; min-width:0; display:flex; flex-direction:column; background:var(--asd-bg); }
.avh-main__header { background:var(--asd-surface); border-bottom:1px solid var(--asd-border); padding:16px 28px; display:flex; align-items:center; justify-content:space-between; gap:16px; position:sticky; top:0; z-index:50; flex-wrap:wrap; }
.avh-main__title { font-size:20px; font-weight:700; margin:0; color:var(--asd-text); }
.avh-main__content { padding:28px; flex:1; }

/* Mobile toggle */
.avh-mobile-toggle { display:none; position:fixed; top:16px; left:16px; z-index:200; background:var(--asd-sidebar-bg); color:#fff; border:none; width:40px; height:40px; border-radius:var(--asd-radius-sm); cursor:pointer; align-items:center; justify-content:center; }

/* Stats */
.avh-stats { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:16px; margin-bottom:28px; }
.avh-stat-card { background:var(--asd-surface); border:1px solid var(--asd-border); border-radius:var(--asd-radius); padding:20px; display:flex; align-items:center; gap:14px; box-shadow:var(--asd-shadow); }
.avh-stat-card--green  { border-left:3px solid var(--asd-success); }
.avh-stat-card--yellow { border-left:3px solid var(--asd-warning); }
.avh-stat-card--gray   { border-left:3px solid #cbd5e1; }
.avh-stat-card__icon  { font-size:26px; }
.avh-stat-card__body  { display:flex; flex-direction:column; }
.avh-stat-card__value { font-size:26px; font-weight:700; color:var(--asd-text); line-height:1; }
.avh-stat-card__label { font-size:12px; color:var(--asd-text-muted); margin-top:4px; }

/* No access */
.avh-no-access { min-height:60vh; display:flex; align-items:center; justify-content:center; padding:40px 20px; }
.avh-no-access__inner { text-align:center; max-width:400px; }
.avh-no-access__icon { font-size:56px; margin-bottom:20px; }

/* AVH Buttons — Enfold nuclear override */
.avh-wrap .avh-btn, .avh-wrap a.avh-btn, body .avh-wrap .avh-btn, #top .avh-wrap .avh-btn {
  display:inline-flex !important; align-items:center !important; justify-content:center !important; gap:6px !important;
  padding:9px 18px !important; border-radius:6px !important; font-size:13.5px !important; font-weight:600 !important;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif !important;
  cursor:pointer !important; text-decoration:none !important; transition:background .15s,color .15s,border-color .15s !important;
  white-space:nowrap !important; line-height:1.4 !important; letter-spacing:0 !important;
  box-shadow:none !important; outline:none !important; text-transform:none !important;
  text-shadow:none !important; -webkit-appearance:none !important; appearance:none !important;
  border:2px solid transparent !important;
}
.avh-wrap .avh-btn--primary, .avh-wrap a.avh-btn--primary, body .avh-wrap .avh-btn--primary, #top .avh-wrap .avh-btn--primary {
  background:#2563eb !important; background-color:#2563eb !important; background-image:none !important; color:#ffffff !important; border-color:#2563eb !important;
}
.avh-wrap .avh-btn--primary:hover, #top .avh-wrap .avh-btn--primary:hover {
  background:#1d4ed8 !important; background-color:#1d4ed8 !important; border-color:#1d4ed8 !important; color:#ffffff !important;
}
.avh-wrap .avh-btn--primary * { color:#ffffff !important; }
.avh-wrap .avh-btn--ghost, .avh-wrap a.avh-btn--ghost, body .avh-wrap .avh-btn--ghost, #top .avh-wrap .avh-btn--ghost {
  background:#ffffff !important; background-color:#ffffff !important; background-image:none !important; color:#475569 !important; border-color:#e2e8f0 !important;
}
.avh-wrap .avh-btn--ghost:hover, #top .avh-wrap .avh-btn--ghost:hover {
  background:#f1f5f9 !important; color:#0f172a !important; border-color:#cbd5e1 !important;
}
.avh-wrap .avh-btn--sm, .avh-wrap a.avh-btn--sm { padding:7px 14px !important; font-size:12.5px !important; }
.avh-wrap .avh-btn--xs, .avh-wrap a.avh-btn--xs { padding:4px 10px !important; font-size:11.5px !important; }

/* Category checkboxes */
.avh-category-checkboxes { display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.avh-cat-check { display:inline-flex; align-items:center; gap:6px; background:var(--asd-bg); border:1.5px solid var(--asd-border); border-radius:6px; padding:6px 12px; font-size:13px; cursor:pointer; transition:all .15s; }
.avh-cat-check:hover { border-color:var(--asd-primary); }
.avh-cat-check input[type="checkbox"] { accent-color:var(--asd-primary); }

/* Subscription toggle */
.avh-toggle { position:relative; width:44px; height:24px; flex-shrink:0; cursor:pointer; display:inline-block; }
.avh-toggle input { opacity:0; width:0; height:0; position:absolute; }
.avh-toggle__slider { position:absolute; inset:0; background:#e2e8f0; border-radius:24px; transition:all .2s; }
.avh-toggle__slider::before { content:''; position:absolute; width:16px; height:16px; background:#94a3b8; border-radius:50%; top:4px; left:4px; transition:all .2s; }
.avh-toggle input:checked + .avh-toggle__slider { background:#2563eb; }
.avh-toggle input:checked + .avh-toggle__slider::before { background:#fff; transform:translateX(20px); }

/* Seller Store Page */
.avh-store-page { max-width:1200px; margin:0 auto; padding:40px 20px; }
.avh-store__header { margin-bottom:36px; }
.avh-store__banner img { width:100%; height:200px; object-fit:cover; border-radius:12px; margin-bottom:20px; }
.avh-store__identity { display:flex; align-items:center; gap:20px; }
.avh-store__avatar { width:80px; height:80px; border-radius:50%; object-fit:cover; border:3px solid var(--asd-border); }
.avh-store__name { font-size:24px; font-weight:700; margin:0 0 6px; }
.avh-store__bio  { color:var(--asd-text-muted); margin:0 0 8px; font-size:14px; }
.avh-store__count { font-size:12px; color:var(--asd-text-muted); background:var(--asd-bg); border:1px solid var(--asd-border); padding:3px 10px; border-radius:20px; }
.avh-store__empty { text-align:center; padding:60px 20px; color:var(--asd-text-muted); }
.avh-store-notfound { text-align:center; padding:60px 20px; }

/* Admin meta box */
.avh-meta-box p { margin-bottom:8px; font-size:13px; }
.avh-admin-cats__actions { margin-bottom:12px; display:flex; gap:8px; }
.avh-admin-cats__list { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.avh-admin-cat-item { display:inline-flex; align-items:center; gap:6px; background:#f8fafc; border:1.5px solid #e2e8f0; border-radius:6px; padding:7px 14px; cursor:pointer; font-size:13px; transition:all .15s; }
.avh-admin-cat-item:hover { border-color:#2563eb; }
.avh-admin-cat-item input { accent-color:#2563eb; }
.avh-admin-cat-item small { color:#94a3b8; font-size:11px; }
.avh-admin-wrap h1 { margin-bottom:20px; }

/* Responsive */
@media (max-width:959px) {
  .avh-mobile-toggle { display:flex; }
  .avh-sidebar { position:fixed; left:-100%; top:0; bottom:0; transition:left .25s; z-index:150; }
  .avh-sidebar.is-open { left:0; }
  .avh-main__content { padding:16px; }
  .avh-main__header { padding:12px 16px 12px 64px; }
  .avh-stats { grid-template-columns:repeat(2,1fr); }
  .avh-store__identity { flex-direction:column; text-align:center; }
}
@media (max-width:480px) {
  .avh-stats { grid-template-columns:1fr; }
}

/* ══════════════════════════════════════════════════════════════
   AVH v1.2 — Prompt Builder, Tema Cards, Extra Images, Delete
══════════════════════════════════════════════════════════════ */

/* Tema Cards */
.avh-tema-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.avh-tema-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 12px;
  background: var(--asd-bg);
  border: 2px solid var(--asd-border);
  border-radius: var(--asd-radius);
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.avh-tema-card input[type="radio"] { display: none; }
.avh-tema-card:hover, .avh-tema-card.selected {
  border-color: var(--asd-primary);
  background: var(--asd-primary-light);
}
.avh-tema-card__icon  { font-size: 24px; }
.avh-tema-card__label { font-size: 12px; font-weight: 600; color: var(--asd-text); }

/* Radio Pills (Bahasa) */
.avh-radio-inline { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.avh-radio-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--asd-bg);
  border: 2px solid var(--asd-border);
  border-radius: 30px;
  cursor: pointer;
  font-size: 13px; font-weight: 600;
  transition: all .15s;
}
.avh-radio-pill input[type="radio"] { display: none; }
.avh-radio-pill:hover, .avh-radio-pill.selected {
  border-color: var(--asd-primary);
  background: var(--asd-primary-light);
  color: var(--asd-primary);
}

/* Color Picker */
.avh-color-wrap { display: flex; align-items: center; gap: 8px; }
.avh-color-picker {
  width: 40px; height: 40px;
  border: 1.5px solid var(--asd-border);
  border-radius: 6px;
  padding: 2px;
  cursor: pointer;
  flex-shrink: 0;
}
.avh-color-text { flex: 1; }

/* Extra Images */
.avh-extra-image-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  background: var(--asd-bg);
  border: 1px solid var(--asd-border);
  border-radius: var(--asd-radius-sm);
  margin-bottom: 8px;
}
.avh-extra-image-preview {
  width: 60px; height: 60px; flex-shrink: 0;
  border-radius: 6px; overflow: hidden;
  border: 1px solid var(--asd-border);
}
.avh-extra-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.avh-extra-image-row .asd-input { flex: 1; }
.avh-extra-image-add {
  display: flex; align-items: center; gap: 12px;
  margin-top: 8px;
}

/* Testimoni */
.avh-testimoni-item {
  background: var(--asd-bg);
  border: 1px solid var(--asd-border);
  border-radius: var(--asd-radius);
  padding: 18px;
  margin-bottom: 12px;
}
.avh-testimoni-item__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.avh-testimoni-img-wrap {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.avh-testimoni-img-preview {
  width: 60px; height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--asd-border);
  position: relative;
}
.avh-testimoni-img-preview img { width: 100%; height: 100%; object-fit: cover; }
.avh-remove-testimoni-img {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: var(--asd-danger); color: #fff;
  border: none; border-radius: 50%;
  font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* Prompt Box */
.avh-prompt-box {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--asd-radius);
  overflow: hidden;
  margin-top: 24px;
}
.avh-prompt-box__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  flex-wrap: wrap;
  gap: 10px;
}
.avh-prompt-box__title {
  font-size: 14px; font-weight: 700; color: #e2e8f0;
}
.avh-prompt-box__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.avh-prompt-box__actions .avh-btn--ghost {
  background: #334155 !important;
  color: #94a3b8 !important;
  border-color: #475569 !important;
}
.avh-prompt-box__actions .avh-btn--ghost:hover {
  background: #475569 !important;
  color: #e2e8f0 !important;
}
.avh-prompt-box__note {
  padding: 10px 18px;
  font-size: 12px; color: #64748b;
  background: #0f172a;
}
.avh-prompt-box__text {
  width: 100%;
  min-height: 280px;
  background: #0f172a;
  color: #94a3b8;
  border: none;
  padding: 16px 18px;
  font-family: 'Courier New', monospace;
  font-size: 12.5px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
}
.avh-prompt-box__copied {
  padding: 12px 18px;
  background: rgba(34,197,94,.15);
  color: #4ade80;
  font-size: 13px; font-weight: 600;
  border-top: 1px solid #334155;
}

/* Table actions */
.avh-table-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Prompt builder section divider */
.avh-prompt-builder {
  background: var(--asd-surface);
  border: 1px solid var(--asd-border);
  border-radius: var(--asd-radius);
  padding: 24px;
  margin-bottom: 16px;
}

@media (max-width: 959px) {
  .avh-tema-cards { grid-template-columns: repeat(2, 1fr); }
  .avh-prompt-box__header { flex-direction: column; align-items: flex-start; }
  .avh-extra-image-row { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .avh-tema-cards { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   AVH v1.3 — Sidebar Profile, Icon Buttons, LP Builder, Hide
══════════════════════════════════════════════════════════════ */

/* Sidebar profile (no brand) */
.avh-sidebar__profile {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* Icon-only buttons */
.avh-icon-btn {
  width: 30px !important; height: 30px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important; justify-content: center !important;
  font-size: 14px !important;
  flex-shrink: 0;
}

/* LP URL box */
.avh-lp-url-box {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 12px;
}
.avh-lp-url-box__label { font-size:12px; font-weight:600; color:#15803d; white-space:nowrap; }
.avh-lp-url-box__url   { font-size:12px; color:#0f172a; flex:1; word-break:break-all; }

/* LP product link items */
.avh-lp-product-links { display:flex; flex-direction:column; gap:8px; }
.avh-lp-product-link-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  background: var(--asd-bg);
  border: 1px solid var(--asd-border);
  border-radius: 8px;
  padding: 10px 14px;
  flex-wrap: wrap;
}
.avh-lp-product-link-item__info {
  display: flex; align-items: center; gap: 10px;
  flex: 1;
}
.avh-lp-product-link-item__info img {
  width: 40px; height: 40px; object-fit: cover;
  border-radius: 6px; flex-shrink: 0;
}
.avh-lp-product-link-item__info strong { display:block; font-size:13px; }
.avh-lp-product-link-item__info span   { font-size:12px; color:var(--asd-text-muted); }
.avh-lp-product-link-item__actions { display:flex; gap:6px; flex-shrink:0; }

/* LP prompt form */
.avh-lp-prompt-form { }

/* Hidden badge in product table */
.avh-table-actions { display:flex; gap:4px; flex-wrap:wrap; align-items:center; }

/* Prompt box text for LP */
.avh-lp-prompt-text {
  width: 100%; min-height: 240px;
  background: #0f172a; color: #94a3b8;
  border: none; padding: 16px 18px;
  font-family: 'Courier New', monospace;
  font-size: 12.5px; line-height: 1.7;
  resize: vertical; outline: none;
}

@media (max-width: 600px) {
  .avh-lp-product-link-item { flex-direction: column; align-items: flex-start; }
  .avh-lp-url-box { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════════════
   AVH v1.4 — Sidebar Fix, Icon Buttons, Prompt Generator
══════════════════════════════════════════════════════════════ */

/* Sidebar menu text — readable on dark bg */
.avh-sidebar__menu-link { color: #94a3b8 !important; }
.avh-sidebar__menu-link:hover { color: #e2e8f0 !important; }
.avh-sidebar__menu-item.is-active .avh-sidebar__menu-link { color: #93c5fd !important; }

/* Icon buttons — clean, no emoji box */
.avh-icon-btn {
  width: 32px !important; height: 32px !important;
  padding: 0 !important;
  border-radius: 6px !important;
  font-size: 15px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  flex-shrink: 0;
  transition: all .15s !important;
}

/* SVG icon buttons for table actions */
.avh-table-actions { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; }

/* Prompt Generator Tabs */
.avh-pg-tabs {
  display: flex; gap: 4px;
  border-bottom: 2px solid var(--asd-border);
  margin-bottom: 24px;
}
.avh-pg-tab {
  padding: 10px 20px;
  border: none; background: none;
  font-size: 14px; font-weight: 600;
  color: var(--asd-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
}
.avh-pg-tab:hover { color: var(--asd-primary); }
.avh-pg-tab.active { color: var(--asd-primary); border-bottom-color: var(--asd-primary); }

/* AIDA Section */
.avh-pg-section {
  display: flex;
  gap: 20px;
  background: var(--asd-surface);
  border: 1px solid var(--asd-border);
  border-radius: var(--asd-radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--asd-shadow);
}
.avh-pg-section__num {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--asd-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  margin-top: 2px;
}
.avh-pg-section__num--a   { background: #dc2626; }
.avh-pg-section__num--i   { background: #d97706; }
.avh-pg-section__num--d   { background: #16a34a; }
.avh-pg-section__num--act { background: #7c3aed; }
.avh-pg-section__body { flex: 1; min-width: 0; }
.avh-pg-section__body .asd-form__section-title { margin-top: 0; }

/* Product preview */
.avh-pg-product-preview {
  background: var(--asd-bg);
  border: 1px solid var(--asd-border);
  border-radius: var(--asd-radius-sm);
  padding: 14px;
  margin-top: 12px;
}
.avh-pg-product-preview__inner {
  display: flex; gap: 14px; align-items: flex-start;
}
.avh-pg-product-preview__img {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: 6px; flex-shrink: 0;
  border: 1px solid var(--asd-border);
}
.avh-pg-product-preview__info { flex: 1; }
.avh-pg-product-preview__info strong { display: block; font-size: 14px; margin-bottom: 4px; }
.avh-pg-product-preview__info span   { font-size: 13px; color: var(--asd-primary); font-weight: 600; }
.avh-pg-product-preview__info p      { font-size: 12px; color: var(--asd-text-muted); margin: 6px 0; }
.avh-pg-product-preview__links { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

/* LP product checklist */
.avh-pg-product-checklist { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.avh-pg-product-check-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--asd-bg);
  border: 1.5px solid var(--asd-border);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all .15s;
}
.avh-pg-product-check-item:hover { border-color: var(--asd-primary); }
.avh-pg-product-check-item input[type="checkbox"] { accent-color: var(--asd-primary); width: 16px; height: 16px; flex-shrink: 0; }
.avh-pg-product-check-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.avh-pg-product-check-item__info { flex: 1; }
.avh-pg-product-check-item__info strong { display: block; font-size: 13px; }
.avh-pg-product-check-item__info span   { font-size: 12px; color: var(--asd-text-muted); }
.avh-pg-product-check-item__links { display: flex; gap: 4px; margin-left: auto; flex-shrink: 0; }

/* Prompt form */
.avh-pg-form {}

/* LP Builder - simple paste area */
.avh-lp-builder-wrap { }

@media (max-width: 959px) {
  .avh-pg-section { flex-direction: column; gap: 12px; }
  .avh-pg-section__num { width: 28px; height: 28px; font-size: 12px; }
  .avh-pg-tabs { overflow-x: auto; }
  .avh-pg-tab { white-space: nowrap; padding: 8px 14px; font-size: 13px; }
}

/* ══════════════════════════════════════════════════════════════
   AVH v1.5 — Clean SVG Action Buttons
══════════════════════════════════════════════════════════════ */

/* Clean action buttons with SVG icons */
.avh-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  border-radius: 6px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #475569 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all .15s !important;
  box-shadow: none !important;
  outline: none !important;
  flex-shrink: 0;
}

.avh-action-btn:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.avh-action-btn--danger { color: #dc2626 !important; }
.avh-action-btn--danger:hover {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

.avh-action-btn svg { display: block; pointer-events: none; }

/* Table actions container */
.avh-table-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
}

/* Sidebar menu — ensure readable */
.avh-sidebar__menu-link,
.avh-sidebar__nav-link { color: #94a3b8 !important; font-weight: 500; }
.avh-sidebar__menu-link:hover { color: #e2e8f0 !important; }
.avh-sidebar__menu-item.is-active .avh-sidebar__menu-link { color: #93c5fd !important; }

/* ══════════════════════════════════════════════════════════════
   AVH v1.6 — Max width 1600px, LP fixes
══════════════════════════════════════════════════════════════ */

/* Dashboard max-width 1600px */
.avh-wrap {
  max-width: 1600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}

/* Ensure full width within wrap */
.avh-main { min-width: 0; }

/* LP URL display */
.avh-lp-url-box code {
  font-size: 12px;
  word-break: break-all;
  flex: 1;
}

/* ══════════════════════════════════════════════════════════════
   AVH v1.7 — Guide & Prompt Manager
══════════════════════════════════════════════════════════════ */

/* Guide Quick Nav */
.avh-guide-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
  background: var(--asd-surface);
  border: 1px solid var(--asd-border);
  border-radius: var(--asd-radius);
  padding: 16px;
  box-shadow: var(--asd-shadow);
}
.avh-guide-nav__item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--asd-bg);
  border: 1.5px solid var(--asd-border);
  border-radius: 20px;
  font-size: 12.5px; font-weight: 600;
  color: var(--asd-text-muted);
  text-decoration: none;
  transition: all .15s;
}
.avh-guide-nav__item:hover {
  border-color: var(--asd-primary);
  color: var(--asd-primary);
  background: var(--asd-primary-light);
}

/* Guide Sections */
.avh-guide-section {
  background: var(--asd-surface);
  border: 1px solid var(--asd-border);
  border-radius: var(--asd-radius);
  margin-bottom: 12px;
  box-shadow: var(--asd-shadow);
  overflow: hidden;
}
.avh-guide-section__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.avh-guide-section__header:hover { background: var(--asd-bg); }
.avh-guide-section__title {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 700; color: var(--asd-text);
}
.avh-guide-section__icon { font-size: 20px; }
.avh-guide-section__arrow {
  color: var(--asd-text-muted); font-size: 12px;
  transition: transform .2s;
}
.avh-guide-section__body {
  display: none;
  padding: 0 24px 24px;
  border-top: 1px solid var(--asd-border);
}
.avh-guide-section--open .avh-guide-section__arrow { transform: rotate(180deg); }
.avh-guide-section--open .avh-guide-section__body { display: block; }

/* Guide Content */
.avh-guide-content h3 {
  font-size: 15px; font-weight: 700;
  margin: 20px 0 10px; color: var(--asd-text);
}
.avh-guide-content p { margin: 0 0 12px; font-size: 14px; color: var(--asd-text-muted); line-height: 1.7; }
.avh-guide-content ul, .avh-guide-content ol {
  padding-left: 20px; margin: 0 0 14px;
  font-size: 13.5px; color: var(--asd-text-muted); line-height: 1.8;
}
.avh-guide-content li { margin-bottom: 4px; }
.avh-guide-content code { background: var(--asd-bg); padding: 2px 6px; border-radius: 4px; font-size: 12px; color: var(--asd-primary); }

/* Guide Cards */
.avh-guide-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 12px; margin-bottom: 16px; }
.avh-guide-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--asd-bg); border: 1px solid var(--asd-border);
  border-radius: 8px; padding: 14px;
}
.avh-guide-card__icon { font-size: 24px; flex-shrink: 0; }
.avh-guide-card strong { display: block; font-size: 13px; margin-bottom: 4px; }
.avh-guide-card p { margin: 0; font-size: 12.5px; color: var(--asd-text-muted); }

/* Guide Steps */
.avh-guide-steps { padding-left: 20px; }
.avh-guide-steps li { margin-bottom: 12px; font-size: 13.5px; line-height: 1.7; }
.avh-guide-steps li strong { color: var(--asd-text); }
.avh-guide-steps li ul { margin-top: 6px; }

/* Guide Icons */
.avh-guide-icons { display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.avh-guide-icon-item { display:flex; align-items:center; gap:10px; font-size:13px; }
.avh-guide-icon-demo { font-size:18px; }

/* Guide Flow */
.avh-guide-flow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px; padding: 16px;
  background: var(--asd-bg); border-radius: 8px;
}
.avh-guide-flow__step {
  display: flex; align-items: center; gap: 8px;
  background: var(--asd-surface); border: 1px solid var(--asd-border);
  border-radius: 8px; padding: 10px 14px; font-size: 13px;
}
.avh-guide-flow__num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--asd-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.avh-guide-flow__arrow { color: var(--asd-text-muted); font-size: 18px; }

/* Guide Tip */
.avh-guide-tip {
  background: #fefce8; border: 1px solid #fde68a;
  border-radius: 8px; padding: 12px 16px;
  font-size: 13px; color: #713f12;
  margin-top: 16px;
}

/* Guide AIDA */
.avh-guide-aida { display:flex; flex-direction:column; gap:16px; }
.avh-guide-aida__item {
  display: flex; gap: 16px;
  background: var(--asd-bg); border-radius: 10px;
  border-left: 4px solid transparent; padding: 20px;
}
.avh-guide-aida__item--a   { border-color: #dc2626; }
.avh-guide-aida__item--i   { border-color: #d97706; }
.avh-guide-aida__item--d   { border-color: #16a34a; }
.avh-guide-aida__item--act { border-color: #7c3aed; }
.avh-guide-aida__letter {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--asd-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; flex-shrink: 0;
}
.avh-guide-aida__item--a   .avh-guide-aida__letter { background: #dc2626; }
.avh-guide-aida__item--i   .avh-guide-aida__letter { background: #d97706; }
.avh-guide-aida__item--d   .avh-guide-aida__letter { background: #16a34a; }
.avh-guide-aida__item--act .avh-guide-aida__letter { background: #7c3aed; }
.avh-guide-aida__body h4  { margin: 0 0 8px; font-size: 14px; color: var(--asd-text); }
.avh-guide-aida__body > p { margin: 0 0 12px; }

/* Guide Example */
.avh-guide-example {
  background: var(--asd-surface); border: 1px solid var(--asd-border);
  border-radius: 6px; padding: 12px 16px; margin-top: 10px;
}
.avh-guide-example strong { display: block; margin-bottom: 6px; font-size: 13px; }
.avh-guide-example ul { margin: 0; }

/* Guide Example Full */
.avh-guide-example-full { display:flex; flex-direction:column; gap:12px; }
.avh-guide-example-box {
  border: 1px solid var(--asd-border); border-radius: 10px; overflow:hidden;
}
.avh-guide-example-box__label {
  padding: 8px 16px; font-size: 12px; font-weight: 700;
  color: #fff; text-transform: uppercase; letter-spacing: 1px;
}
.avh-guide-example-box__label--product { background: #0f172a; }
.avh-guide-example-box__label--a       { background: #dc2626; }
.avh-guide-example-box__label--i       { background: #d97706; }
.avh-guide-example-box__label--d       { background: #16a34a; }
.avh-guide-example-box__label--act     { background: #7c3aed; }
.avh-guide-example-box__content { padding: 16px; font-size: 13px; line-height: 1.7; }
.avh-guide-example-box__content blockquote {
  border-left: 3px solid var(--asd-border);
  margin: 6px 0 12px; padding: 8px 14px;
  background: var(--asd-bg); border-radius: 0 6px 6px 0;
  font-style: italic; color: var(--asd-text-muted);
}

/* Guide Code */
.avh-guide-code {
  background: #0f172a; color: #94a3b8;
  border-radius: 6px; padding: 12px 16px;
  font-family: monospace; font-size: 13px;
  line-height: 1.8; margin: 10px 0;
}

/* Guide Tips List */
.avh-guide-tips-list { padding-left: 20px; }
.avh-guide-tips-list li { margin-bottom: 14px; font-size: 13.5px; line-height: 1.7; }

/* Prompt Manager output section */
.avh-pm-prompt-output { margin-top: 24px; }

@media (max-width: 959px) {
  .avh-guide-flow { flex-direction: column; align-items: flex-start; }
  .avh-guide-flow__arrow { transform: rotate(90deg); }
  .avh-guide-aida__item { flex-direction: column; gap: 10px; }
  .avh-guide-example-full { gap: 8px; }
}

/* ══════════════════════════════════════════════════════════════
   AVH v1.8 — Color Mode Toggle
══════════════════════════════════════════════════════════════ */

/* Color pickers transition */
#pmColorPickers { transition: all .2s ease; }

/* Make radio pills more clickable */
.avh-radio-pill {
  cursor: pointer !important;
  user-select: none;
}
.avh-radio-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   AVH v1.9 — Type Select, Color Toggle, Badges
══════════════════════════════════════════════════════════════ */

/* Type Select Landing Page */
.avh-type-select { max-width: 600px; margin: 0 auto; }
.avh-type-select__desc { font-size: 15px; color: var(--asd-text-muted); margin-bottom: 20px; }
.avh-type-select__cards { display: flex; flex-direction: column; gap: 16px; }
.avh-type-select__card {
  display: flex; align-items: center; gap: 20px;
  background: var(--asd-surface);
  border: 2px solid var(--asd-border);
  border-radius: 12px; padding: 24px;
  text-decoration: none; color: var(--asd-text);
  transition: all .2s;
  cursor: pointer;
}
.avh-type-select__card:hover {
  border-color: var(--asd-primary);
  box-shadow: 0 4px 20px rgba(37,99,235,.12);
  transform: translateY(-2px);
}
.avh-type-select__card-icon { font-size: 36px; flex-shrink: 0; }
.avh-type-select__card-body { flex: 1; }
.avh-type-select__card-body strong { display: block; font-size: 16px; margin-bottom: 4px; }
.avh-type-select__card-body p { margin: 0; font-size: 13px; color: var(--asd-text-muted); line-height: 1.5; }
.avh-type-select__card-arrow { font-size: 20px; color: var(--asd-text-muted); flex-shrink: 0; transition: transform .2s; }
.avh-type-select__card:hover .avh-type-select__card-arrow { transform: translateX(4px); color: var(--asd-primary); }

/* Type Badge */
.avh-pg-type-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--asd-border);
  background: var(--asd-bg);
}
.avh-pg-type-badge--product { color: #2563eb; border-color: #bfdbfe; background: #eff6ff; }
.avh-pg-type-badge--lp { color: #7c3aed; border-color: #ddd6fe; background: #f5f3ff; }

/* Color pickers - smooth toggle */
#pmColorPickers { transition: none; }

/* Radio pill input hidden properly */
.avh-radio-pill { position: relative; cursor: pointer; }
.avh-radio-pill input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}

@media (max-width: 600px) {
  .avh-type-select__card { flex-direction: column; text-align: center; gap: 12px; }
  .avh-type-select__card-arrow { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   AVH v1.9.1 — ToyyibPay Warning Banner
══════════════════════════════════════════════════════════════ */

/* TP Warning Banner */
.avh-tp-banner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
  margin-bottom: 24px !important;
  padding: 16px 20px !important;
  background: #fffbeb !important;
  border: 1.5px solid #f59e0b !important;
  border-radius: var(--asd-radius) !important;
}
.avh-tp-banner__body { flex: 1; }
.avh-tp-banner__body strong { display: block; font-size: 14px; margin-bottom: 4px; color: #92400e; }
.avh-tp-banner__body p { margin: 0; font-size: 13px; color: #78350f; }
.avh-btn--warning {
  background: #f59e0b !important;
  color: #fff !important;
  border: none !important;
  flex-shrink: 0;
  white-space: nowrap;
}
.avh-btn--warning:hover { background: #d97706 !important; }

/* Notice warning type */
.asd-notice--warning {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

/* ══════════════════════════════════════════════════════════════
   AVH v2.0 — Icon Fix, Tab Pesanan, Tab Pendapatan
══════════════════════════════════════════════════════════════ */

/* Hide button active state (when product IS hidden) */
.avh-action-btn--active {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}
.avh-action-btn--active:hover {
  background: #fee2e2 !important;
  border-color: #f87171 !important;
}

/* Orders Tab */
.avh-order-row-detail {
  background: var(--asd-bg);
  border-top: 1px dashed var(--asd-border);
  padding: 12px 16px;
  font-size: 12.5px;
}
.avh-order-items { display: flex; flex-direction: column; gap: 6px; }
.avh-order-item  {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; background: var(--asd-surface);
  border: 1px solid var(--asd-border); border-radius: 6px;
}
.avh-order-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.avh-order-item__info { flex: 1; }
.avh-order-item__name  { font-weight: 600; font-size: 13px; }
.avh-order-item__meta  { font-size: 11.5px; color: var(--asd-text-muted); }
.avh-order-item__price { font-weight: 700; color: var(--asd-primary); font-size: 13px; }

/* Status badges for orders */
.avh-status-pending    { background:#fef3c7; color:#92400e; }
.avh-status-processing { background:#dbeafe; color:#1e40af; }
.avh-status-completed  { background:#d1fae5; color:#065f46; }
.avh-status-cancelled  { background:#fee2e2; color:#991b1b; }
.avh-status-refunded   { background:#f3f4f6; color:#4b5563; }
.avh-status-on-hold    { background:#fef3c7; color:#92400e; }
.asd-badge { display:inline-flex; align-items:center; padding:3px 10px; border-radius:20px; font-size:11.5px; font-weight:600; }

/* Earnings Tab */
.avh-earnings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.avh-earnings-card {
  background: var(--asd-surface);
  border: 1px solid var(--asd-border);
  border-radius: var(--asd-radius);
  padding: 20px;
  box-shadow: var(--asd-shadow);
}
.avh-earnings-card__label { font-size: 12px; color: var(--asd-text-muted); margin-bottom: 6px; }
.avh-earnings-card__value { font-size: 24px; font-weight: 800; color: var(--asd-text); }
.avh-earnings-card__sub   { font-size: 12px; color: var(--asd-text-muted); margin-top: 4px; }
.avh-earnings-card--green .avh-earnings-card__value { color: #16a34a; }
.avh-earnings-card--blue  .avh-earnings-card__value { color: #2563eb; }
.avh-earnings-card--amber .avh-earnings-card__value { color: #d97706; }

/* Withdrawal notice */
.avh-withdrawal-box {
  background: var(--asd-surface);
  border: 1px solid var(--asd-border);
  border-radius: var(--asd-radius);
  padding: 20px 24px;
  margin-top: 24px;
}

/* ══════════════════════════════════════════════════════════════
   AVH v2.1 — Modal, Pagination, Tracking
══════════════════════════════════════════════════════════════ */

/* Modal */
.avh-modal {
  position: fixed; top:0; left:0; right:0; bottom:0;
  background: rgba(15,23,42,.6);
  z-index: 99999;
  display: flex !important;
  align-items: center; justify-content: center;
  padding: 20px;
}
.avh-modal__box {
  background: var(--asd-surface);
  border-radius: 12px;
  width: 100%; max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  overflow: hidden;
}
.avh-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--asd-border);
}
.avh-modal__title { margin: 0; font-size: 16px; font-weight: 700; }
.avh-modal__close {
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: var(--asd-text-muted); line-height: 1;
  padding: 0 4px;
}
.avh-modal__close:hover { color: var(--asd-text); }
.avh-modal__body   { padding: 20px 24px; }
.avh-modal__footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--asd-border);
  background: var(--asd-bg);
}

/* Pagination */
.avh-pagination {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.avh-page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1.5px solid var(--asd-border);
  border-radius: 6px;
  background: var(--asd-surface);
  color: var(--asd-text-muted);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: all .15s;
}
.avh-page-btn:hover { border-color: var(--asd-primary); color: var(--asd-primary); }
.avh-page-btn.active {
  background: var(--asd-primary); border-color: var(--asd-primary);
  color: #fff;
}

/* Table header flex */
.avh-table-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; flex-wrap: wrap; gap: 8px;
}

/* Tracking info */
.avh-tracking-info {
  display: flex; flex-direction: column; gap: 4px; font-size: 12px;
}
.avh-tracking-info code {
  background: var(--asd-bg); padding: 2px 8px;
  border-radius: 4px; font-size: 12px; letter-spacing: .5px;
}

/* ══════════════════════════════════════════════════════════════
   AVH v2.3 — Category Search, Protected Pages, HTML Preview
══════════════════════════════════════════════════════════════ */

/* Category picker with search */
.avh-cat-picker { }
.avh-cat-search-input { margin-bottom: 8px; }
.avh-cat-list {
  border: 1.5px solid var(--asd-border);
  border-radius: 8px;
  max-height: 200px; overflow-y: auto;
  background: var(--asd-surface);
}
.avh-cat-check-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; cursor: pointer;
  border-bottom: 1px solid var(--asd-border);
  font-size: 13px; transition: background .1s;
}
.avh-cat-check-item:last-child { border-bottom: none; }
.avh-cat-check-item:hover { background: #f1f5f9; }
.avh-cat-check-item input[type="checkbox"] {
  width: 16px; height: 16px; cursor: pointer; flex-shrink: 0;
}
.avh-cat-check-item span { flex: 1; }

/* HTML Preview */
.asd-html-preview-wrap {
  border: 1.5px solid var(--asd-border);
  border-radius: 8px; overflow: visible; margin-top: 12px;
}
.asd-html-preview-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  background: var(--asd-bg); border-bottom: 1px solid var(--asd-border);
  font-size: 12px; color: var(--asd-text-muted); font-weight: 600;
}
.asd-html-preview-frame {
  width: 100%;
  height: 300px;
  border: none;
  background: #fff;
  display: block;
}

/* Protected Pages empty state */
.avh-pp-empty {
  text-align: center; padding: 24px;
  background: var(--asd-bg); border-radius: 8px;
  border: 1.5px dashed var(--asd-border);
}
.avh-pp-empty p { margin-bottom: 12px; }

/* Support / Bantuan */
.avh-faq { display: flex; flex-direction: column; gap: 16px; }
.avh-faq__item {
  padding: 16px; background: var(--asd-bg);
  border: 1px solid var(--asd-border); border-radius: 8px;
}
.avh-faq__item strong { display: block; font-size: 14px; margin-bottom: 6px; }
.avh-faq__item p { margin: 0; font-size: 13px; color: var(--asd-text-muted); }

/* ── Settings Tab — Profil Bisnes ────────────────────────────── */
.avh-banner-uploader {
  border: 2px dashed var(--asd-border);
  border-radius: 10px;
  min-height: 120px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; position: relative;
  transition: border-color .2s;
}
.avh-banner-uploader:hover { border-color: var(--asd-primary); }
.avh-banner-placeholder {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; color: var(--asd-text-muted); font-size: 13px; padding: 24px;
  text-align: center;
}
.avh-banner-placeholder span:first-child { font-size: 32px; }
.avh-banner-remove {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,.55); color: #fff;
  border: none; border-radius: 6px;
  padding: 4px 10px; font-size: 12px; cursor: pointer;
}
.avh-banner-remove:hover { background: #dc2626; }

/* ── Order Detail — Tracking Current ────────────────────────── */
.avh-tracking-current {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.avh-tracking-current__row {
  display: flex; gap: 16px; align-items: baseline;
  font-size: 13px;
}
.avh-tracking-current__row > span:first-child {
  color: var(--asd-text-muted);
  min-width: 110px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   AVH Store — Product Cards, Dark/Light Theme
══════════════════════════════════════════════════════════════ */

/* ── Theme bar (owner only) ──────────────────────────────────── */
.avh-store__theme-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  background: rgba(0,0,0,.04); border-bottom: 1px solid rgba(0,0,0,.08);
  font-size: 13px;
}
.avh-store__theme-toggle { display: flex; gap: 6px; }
.avh-theme-btn {
  padding: 4px 14px; border-radius: 20px; border: 1.5px solid #e2e8f0;
  background: #fff; font-size: 12.5px; cursor: pointer; transition: all .15s;
}
.avh-theme-btn.active { background: #0095d3; color: #fff; border-color: #0095d3; }
.avh-store__edit-link { margin-left: auto; font-size: 12.5px; color: #64748b; }

/* ── Store header ─────────────────────────────────────────────── */
.avh-store__banner { width:100%; max-height:280px; overflow:hidden; }
.avh-store__banner img { width:100%; height:100%; object-fit:cover; }
.avh-store__identity {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 20px 32px 24px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.avh-store__avatar {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.avh-store__info { flex: 1; }
.avh-store__name { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.avh-store__bio  { font-size: 13.5px; color: #64748b; margin: 0 0 6px; }
.avh-store__count { font-size: 12px; background: #e0f2fe; color: #0075a8; padding: 2px 10px; border-radius: 12px; font-weight: 600; }
.avh-store__social { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.avh-social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: #f1f5f9; color: #475569; transition: all .15s;
}
.avh-social-icon svg { width: 16px; height: 16px; }
.avh-social-icon:hover { transform: scale(1.1); }
.avh-social-icon--wa { background: #dcfce7; color: #16a34a; }
.avh-social-icon--fb { background: #dbeafe; color: #1d4ed8; }
.avh-social-icon--ig { background: #fce7f3; color: #db2777; }
.avh-social-icon--yt { background: #fee2e2; color: #dc2626; }
.avh-social-icon--tiktok { background: #f0f0f0; color: #000; }
.avh-social-icon--x { background: #f0f0f0; color: #000; }
.avh-social-icon--threads { background: #f0f0f0; color: #000; }

/* ── Products grid ────────────────────────────────────────────── */
.avh-store__products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px 32px 40px;
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .avh-store__products-grid { grid-template-columns: repeat(3, 1fr); padding: 20px 24px 32px; }
}
@media (max-width: 640px) {
  .avh-store__products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px 16px 28px; }
}

/* ── Product Card ─────────────────────────────────────────────── */
.avh-pcard {
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.avh-pcard:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.18); }

.avh-pcard__img-wrap {
  position: relative; display: block;
  aspect-ratio: 3/2; overflow: hidden;
}
.avh-pcard__img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.avh-pcard:hover .avh-pcard__img-wrap img { transform: scale(1.04); }

.avh-pcard__badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
  padding: 3px 9px; border-radius: 4px; text-transform: uppercase;
}
.avh-pcard__badge--sale     { background: #ef4444; color: #fff; }
.avh-pcard__badge--featured { background: #22c55e; color: #fff; }

.avh-pcard__body {
  flex: 1; padding: 12px 14px 14px;
  display: flex; flex-direction: column; gap: 5px;
}
.avh-pcard__cat  { font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.avh-pcard__title { font-size: 14px; font-weight: 700; line-height: 1.3; margin: 0; }
.avh-pcard__title a { color: inherit; text-decoration: none; }
.avh-pcard__desc {
  font-size: 12px; line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.avh-pcard__price { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.avh-pcard__price-current { font-size: 20px; font-weight: 800; }
.avh-pcard__price-original { font-size: 13px; text-decoration: line-through; opacity: .5; }

/* Spacer tolak actions ke bawah — butang Info/Beli sentiasa sebaris */
.avh-pcard__spacer { flex: 1; min-height: 8px; }

.avh-pcard__comm {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; border-radius: 6px;
  margin-top: 2px;
}
.avh-pcard__comm-badge { font-size: 11.5px; font-weight: 600; }
.avh-pcard__comm-amt   { font-size: 12px; font-weight: 700; }

.avh-pcard__actions { display: flex; gap: 8px; padding-top: 10px; }
.avh-pcard__btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: all .15s;
}

/* ── LIGHT THEME ──────────────────────────────────────────────── */
.avh-store--light {
  background: #f8fafc; color: #1e293b;
  min-height: 100vh;
}
.avh-store--light .avh-pcard {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.avh-store--light .avh-pcard__cat  { color: #0095d3; }
.avh-store--light .avh-pcard__desc { color: #64748b; }
.avh-store--light .avh-pcard__price-current { color: #1e293b; }
.avh-store--light .avh-pcard__comm { background: #f0fdf4; }
.avh-store--light .avh-pcard__comm-badge { color: #15803d; }
.avh-store--light .avh-pcard__comm-amt   { color: #16a34a; }
.avh-store--light .avh-pcard__btn--info {
  background: #f1f5f9; color: #0095d3; border: 1.5px solid #e0f2fe;
}
.avh-store--light .avh-pcard__btn--info:hover { background: #e0f2fe; }
.avh-store--light .avh-pcard__btn--buy {
  background: #0095d3; color: #fff; border: 1.5px solid #0095d3;
}
.avh-store--light .avh-pcard__btn--buy:hover { background: #007ab0; }

/* ── DARK THEME ───────────────────────────────────────────────── */
.avh-store--dark {
  background: #111827; color: #f9fafb;
  min-height: 100vh;
}
.avh-store--dark .avh-store__theme-bar { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: #d1d5db; }
.avh-store--dark .avh-theme-btn { background: #1f2937; border-color: #374151; color: #d1d5db; }
.avh-store--dark .avh-theme-btn.active { background: #3b82f6; border-color: #3b82f6; color: #fff; }
.avh-store--dark .avh-store__edit-link { color: #9ca3af; }
.avh-store--dark .avh-store__name { color: #f9fafb; }
.avh-store--dark .avh-store__bio  { color: #9ca3af; }
.avh-store--dark .avh-store__count { background: #1f2937; color: #9ca3af; }
.avh-store--dark .avh-pcard {
  background: #1f2937;
  border: 1px solid #374151;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.avh-store--dark .avh-pcard__cat  { color: #fbbf24; }
.avh-store--dark .avh-pcard__title a { color: #f9fafb; }
.avh-store--dark .avh-pcard__desc { color: #9ca3af; }
.avh-store--dark .avh-pcard__price-current { color: #f9fafb; }
.avh-store--dark .avh-pcard__price-original { color: #6b7280; }
.avh-store--dark .avh-pcard__comm { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.2); }
.avh-store--dark .avh-pcard__comm-badge { color: #4ade80; }
.avh-store--dark .avh-pcard__comm-amt   { color: #4ade80; }
.avh-store--dark .avh-pcard__btn--info {
  background: #374151; color: #d1d5db; border: 1.5px solid #4b5563;
}
.avh-store--dark .avh-pcard__btn--info:hover { background: #4b5563; }
.avh-store--dark .avh-pcard__btn--buy {
  background: #d97706; color: #fff; border: 1.5px solid #d97706;
}
.avh-store--dark .avh-pcard__btn--buy:hover { background: #b45309; }
.avh-store--dark .avh-store__notfound { color: #9ca3af; }

/* ── Print CSS ────────────────────────────────────────────────── */
@media print {
  .avh-sidebar, .avh-mobile-toggle, .avh-main__header .avh-btn,
  .avh-store__theme-bar, .avh-pcard__actions { display: none !important; }
  .avh-wrap { display: block !important; }
  .avh-main { margin: 0 !important; padding: 0 !important; }
  body { font-size: 12px !important; }
  .avh-print-only { display: block !important; }
  .avh-order-print { padding: 20px; }
}
.avh-print-only { display: none; }


/* ── Print Receipt ────────────────────────────────────────────── */
.avh-print-receipt-header { display: none; }

@media print {
  /* Hide everything except main content */
  .avh-sidebar,
  .avh-mobile-toggle,
  .avh-main__header .avh-btn,
  .avh-main__header button,
  .asd-back-link,
  .avh-store__theme-bar,
  .avh-pcard__actions,
  nav, footer, header.site-header,
  #wpadminbar,
  .avh-store__theme-bar,
  .asd-form__footer,
  #avhTrackingForm .asd-form__footer,
  a[href*="wa.me"],
  .avh-action-btn,
  /* Enfold mobile bottom nav — common classes */
  #amn-bar, #amn-bar *,
  .av-mobile-nav, .avia-mobile-nav, #av-mobile-nav,
  .av-bottom-nav, .avia-bottom-nav, #av-bottom-nav,
  .mobile-menu, .mobile-nav, #mobile-menu, #mobile-nav,
  .av_mobile_menu_phone, .avia_mobile_menu,
  /* General footer nav */
  .site-footer, #footer, .footer-wrap,
  .avia-footer-small-bar, #avia-footer-small-bar,
  /* Any fixed bottom bars */
  [style*="position:fixed"], [style*="position: fixed"]
  { display: none !important; }

  /* Show print header */
  .avh-print-receipt-header {
    display: block !important;
    text-align: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 2px solid #000;
  }
  .avh-print-receipt-header__logo {
    font-size: 20px; font-weight: 800; margin-bottom: 4px;
  }
  .avh-print-receipt-header__title {
    font-size: 14px; font-weight: 700; margin-top: 8px;
    letter-spacing: 2px; text-transform: uppercase;
  }

  /* Layout adjustments */
  .avh-wrap { display: block !important; }
  .avh-main { margin: 0 !important; padding: 0 !important; max-width: 100% !important; }
  .avh-main__content { padding: 0 !important; }
  .asd-form__section { break-inside: avoid; }

  body { font-size: 12px !important; color: #000 !important; background: #fff !important; }
  .asd-label { font-size: 10px !important; color: #666 !important; }
  p { word-break: break-all !important; }
  * { box-shadow: none !important; }

  /* Table borders for print */
  .asd-table, .asd-table th, .asd-table td {
    border: 1px solid #000 !important;
    color: #000 !important;
  }
  .asd-badge { border: 1px solid #000 !important; }
}

/* ── Store Page & Listing wrap ────────────────────────────── */
#avh-store-wrap {
    width: 100%;
}
.avh-store {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   Analytics & Shipping — Fasa 4
══════════════════════════════════════════════════════════════ */

/* Period filter pills */
.avh-analytics-periods {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.avh-analytics-period {
  display: inline-block; padding: 6px 16px;
  border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--asd-border);
  background: var(--asd-surface); color: var(--asd-text-muted);
  text-decoration: none; transition: all .15s;
}
.avh-analytics-period:hover { border-color: var(--asd-primary); color: var(--asd-primary); }
.avh-analytics-period--active {
  background: var(--asd-primary); border-color: var(--asd-primary);
  color: #fff;
}

/* Chart canvas */
#avhSalesChart { max-height: 320px; }

/* Rate cards in ship modal */
#avhRatesList > div:hover {
  border-color: var(--asd-primary) !important;
  background: #e6f1fb !important;
}

/* Badge colours — extend existing */
.asd-badge--green  { background: #EAF3DE; color: #27500A; }
.asd-badge--blue   { background: #E6F1FB; color: #0C447C; }
.asd-badge--yellow { background: #FAEEDA; color: #412402; }
.asd-badge--red    { background: #FEEBEB; color: #991b1b; }
.asd-badge--gray   { background: #f3f4f6; color: #4b5563; }

/* WhatsApp CTA Button dalam kedai */
.avh-wa-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 999px;
  background: #25D366; color: #fff;
  font-size: 13px; font-weight: 600;
  text-decoration: none; margin-top: 10px;
  transition: background .15s;
}
.avh-wa-cta:hover { background: #1da851; color: #fff; }

/* ══════════════════════════════════════════════════════════════
   Media Tab — Gambar & Video Links
══════════════════════════════════════════════════════════════ */

/* Image grid */
/* ── Media grid → table list style ──────────────────────────── */
.avh-media-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
  border: 1px solid var(--asd-border);
  border-radius: 12px;
  overflow: hidden;
}

.avh-media-card {
  background: var(--asd-surface);
  border-bottom: 1px solid var(--asd-border);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  transition: background .15s;
}
.avh-media-card:last-child { border-bottom: none; }
.avh-media-card:hover { background: var(--asd-bg); }

.avh-media-card__thumb {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--asd-bg);
  background-size: cover !important;
  background-position: center !important;
  flex-shrink: 0 !important;
  border: 1px solid var(--asd-border);
  display: block;
  transition: transform .2s;
}
.avh-media-card__thumb:hover { transform: scale(1.05); }

.avh-media-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.avh-media-card__title-input {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid transparent;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--asd-text);
  padding: 2px 0;
  outline: none;
  transition: border-color .2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.avh-media-card__title-input:focus {
  border-bottom-color: var(--asd-primary);
  white-space: normal;
  overflow: visible;
}

.avh-media-card__meta {
  font-size: 11px;
  color: var(--asd-text-muted);
  margin: 0;
}

.avh-media-card__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}

/* Video & link list rows */
.avh-media-vidrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--asd-border);
}
.avh-media-vidrow:last-child { border-bottom: none; }

.avh-media-vidrow__icon { font-size: 22px; flex-shrink: 0; }
.avh-media-vidrow__body { flex: 1; min-width: 0; }
.avh-media-vidrow__actions { display: flex; gap: 6px; flex-shrink: 0; }

@media (max-width: 640px) {
  .avh-media-card { padding: 10px 12px; gap: 10px; }
  .avh-media-card__thumb,
  #top .avh-wrap .avh-media-card__thumb img,
  .avh-media-card__thumb img { width: 44px !important; height: 44px !important; max-width: 44px !important; min-width: 44px !important; }
  .avh-media-card__actions { flex-wrap: wrap; }
  .avh-media-vidrow { flex-wrap: wrap; }
  .avh-media-vidrow__actions { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════
   Floating Media Panel — Prompt Generator
══════════════════════════════════════════════════════════════ */
.avh-media-panel--hidden { transform: translateY(100%); }

.avh-mp-filter {
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1.5px solid #e2e8f0; background: #fff; cursor: pointer; color: #64748b;
  transition: all .15s;
}
.avh-mp-filter--active { background: #0095d3; border-color: #0095d3; color: #fff; }

.avh-mp-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid #e2e8f0; margin-bottom: 8px;
  transition: all .15s; background: #fff;
}
.avh-mp-item:hover { border-color: #0095d3; background: #e6f1fb; }

.avh-mp-item__thumb {
  width: 44px; height: 44px; border-radius: 6px;
  object-fit: cover; flex-shrink: 0; background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.avh-mp-item__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }

.avh-mp-item__body { flex: 1; min-width: 0; }
.avh-mp-item__title { font-size: 13px; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avh-mp-item__kind  { font-size: 11px; color: #64748b; }

/* Bahagian items dalam prompt generator */
.avh-pg-media-section {
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 8px; padding: 10px 12px; margin-bottom: 8px;
}
.avh-pg-media-section__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.avh-pg-media-section__label {
  font-size: 13px; font-weight: 600; color: #374151; flex: 1;
  border: none; background: transparent; outline: none;
  border-bottom: 1.5px solid transparent;
}
.avh-pg-media-section__label:focus { border-bottom-color: #0095d3; }
.avh-pg-media-section__items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.avh-pg-media-tag {
  display: flex; align-items: center; gap: 4px;
  background: #e6f1fb; border-radius: 6px; padding: 3px 8px;
  font-size: 12px; color: #0c447c; max-width: 220px;
}
.avh-pg-media-tag span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avh-pg-media-tag button { background: none; border: none; cursor: pointer; color: #64748b; font-size: 14px; padding: 0; line-height: 1; flex-shrink: 0; }

/* ── Resizable Preview Frame ─────────────────────────────────── */
.asd-html-preview-wrap {
  position: relative;
}

.asd-preview-resize-handle {
  width: 100%;
  height: 8px;
  background: var(--asd-border);
  cursor: ns-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.asd-preview-resize-handle:hover { background: var(--asd-primary); }
.asd-preview-resize-handle::before {
  content: '';
  width: 32px;
  height: 3px;
  background: rgba(0,0,0,.2);
  border-radius: 2px;
}
.asd-preview-resize-handle:hover::before { background: rgba(255,255,255,.6); }

/* ── Toast Notification ──────────────────────────────────────── */
#avhToast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e293b;
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  z-index: 99999;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}
#avhToast.avh-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#avhToast.avh-toast--success { background: #16a34a; }
#avhToast.avh-toast--error   { background: #dc2626; }

/* ══════════════════════════════════════════════════════════════
   AVH — Mobile / Desktop Visibility Split (Enfold 959px)
══════════════════════════════════════════════════════════════ */

/* Desktop shortcode: tunjuk desktop, sembunyi mobile */
.avh-desktop-only { display: block; }
.avh-mobile-only  { display: none; }

@media (max-width: 959px) {
  .avh-desktop-only { display: none !important; }
  .avh-mobile-only  { display: block !important; }
}

/* ══════════════════════════════════════════════════════════════
   AVH Mobile Dashboard
══════════════════════════════════════════════════════════════ */

.avhm-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f1f5f9;
  color: #0f172a;
  min-height: 100vh;
  position: relative;
}
.avhm-wrap * { box-sizing: border-box; }

/* ── Top Bar ── */
.avhm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f172a;
  padding: 0 16px;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 200;
}
.avhm-topbar__title {
  font-size: 16px;
  font-weight: 700;
  color: #93c5fd;
  margin: 0;
}
.avhm-topbar__menu-btn {
  background: none;
  border: none;
  color: #fff;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background .15s;
}
.avhm-topbar__menu-btn:hover { background: rgba(255,255,255,.1); }

/* ── Sidebar Overlay ── */
.avhm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 290;
  backdrop-filter: blur(2px);
}
.avhm-overlay.is-open { display: block; }

/* ── Sidebar ── */
.avhm-sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: #0f172a;
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: left .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.avhm-sidebar.is-open { left: 0; }

.avhm-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.avhm-sidebar__brand {
  font-size: 18px;
  font-weight: 700;
  color: #93c5fd;
}
.avhm-sidebar__close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: color .15s, background .15s;
}
.avhm-sidebar__close:hover { color: #fff; background: rgba(255,255,255,.08); }

.avhm-sidebar__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.avhm-sidebar__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2563eb;
  flex-shrink: 0;
}
.avhm-sidebar__vendor-name {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.avhm-sidebar__vendor-badge {
  font-size: 10px;
  color: #fff !important;
  background: #2563eb !important;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 3px;
  font-weight: 600;
}

.avhm-sidebar__nav { flex: 1; padding: 8px 0; }
.avhm-sidebar__menu { list-style: none; margin: 0; padding: 0; }
.avhm-sidebar__menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: all .15s;
  border-left: 3px solid transparent;
}
.avhm-sidebar__menu-item a:hover {
  background: #1e293b;
  color: #e2e8f0;
}
.avhm-sidebar__menu-item.is-active a {
  background: rgba(37,99,235,.15);
  color: #93c5fd !important;
  border-left-color: #2563eb;
}
.avhm-sidebar__menu-icon { font-size: 18px; flex-shrink: 0; }

.avhm-sidebar__footer {
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.avhm-sidebar__footer a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color .15s;
}
.avhm-sidebar__footer a:hover { color: #f1f5f9; }

/* ── Main Content ── */
.avhm-main {
  padding: 16px;
}

.avhm-page-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px;
}

/* ── Stat Cards ── */
.avhm-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.avhm-stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
}
.avhm-stat-card__icon { font-size: 22px; flex-shrink: 0; }
.avhm-stat-card__value {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
}
.avhm-stat-card__label {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.avhm-stat-card--green .avhm-stat-card__value { color: #16a34a; }
.avhm-stat-card--yellow .avhm-stat-card__value { color: #d97706; }
.avhm-stat-card--gray .avhm-stat-card__value { color: #94a3b8; }

/* ── Action Buttons ── */
.avhm-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.avhm-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none !important;
  color: #0f172a !important;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: all .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  cursor: pointer;
}
.avhm-action-btn:hover {
  border-color: #0095d3;
  color: #0095d3 !important;
  background: #f0f9ff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,149,211,.15);
}
.avhm-action-btn__icon { font-size: 24px; }
.avhm-action-btn--primary {
  background: #0095d3 !important;
  border-color: #0095d3 !important;
  color: #fff !important;
}
.avhm-action-btn--primary:hover {
  background: #007ab0 !important;
  color: #fff !important;
}

/* ── Section Card ── */
.avhm-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
  margin-bottom: 16px;
  overflow: hidden;
}
.avhm-card__header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.avhm-card__title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.avhm-card__link {
  font-size: 12px;
  color: #0095d3;
  text-decoration: none;
}
.avhm-card__body { padding: 0; }

/* ── Product List (mobile) ── */
.avhm-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
}
.avhm-product-item:last-child { border-bottom: none; }
.avhm-product-item__thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}
.avhm-product-item__thumb-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.avhm-product-item__info { flex: 1; min-width: 0; }
.avhm-product-item__name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.avhm-product-item__meta {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.avhm-product-item__status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}
.avhm-status--publish { background: #dcfce7; color: #16a34a; }
.avhm-status--pending { background: #fef9c3; color: #b45309; }
.avhm-status--draft   { background: #f1f5f9; color: #64748b; }

/* ── Order List (mobile) ── */
.avhm-order-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.avhm-order-item:last-child { border-bottom: none; }
.avhm-order-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.avhm-order-item__id {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}
.avhm-order-item__amount {
  font-size: 13px;
  font-weight: 700;
  color: #0095d3;
}
.avhm-order-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.avhm-order-item__date {
  font-size: 11px;
  color: #64748b;
}

/* ── Notice banner ── */
.avhm-notice {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.5;
}
.avhm-notice--warning {
  background: #fef3c7;
  border: 1px solid #fbbf24;
  color: #92400e;
}
.avhm-notice a {
  color: #0095d3;
  font-weight: 600;
  text-decoration: underline;
}

/* ── Empty state ── */
.avhm-empty {
  padding: 32px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}
.avhm-empty__icon { font-size: 32px; margin-bottom: 8px; }

/* ── Tab content (hidden by default) ── */
.avhm-tab-content { display: none; }
.avhm-tab-content.is-active { display: block; }

/* ── Earnings summary ── */
.avhm-earnings-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
}
.avhm-earnings-item {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.avhm-earnings-item__amount {
  font-size: 18px;
  font-weight: 700;
  color: #0095d3;
}
.avhm-earnings-item__label {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* ── Settings form ── */
.avhm-form-group {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.avhm-form-group:last-child { border-bottom: none; }
.avhm-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.avhm-form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #0f172a;
  background: #fff;
  outline: none;
  transition: border-color .15s;
  -webkit-appearance: none;
}
.avhm-form-input:focus { border-color: #0095d3; }
.avhm-form-hint {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

/* ── Save bar ── */
.avhm-save-bar {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 12px 16px;
  z-index: 100;
}
.avhm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none !important;
  transition: all .15s;
  -webkit-appearance: none;
}
.avhm-btn--primary {
  background: #0095d3 !important;
  color: #fff !important;
  width: 100%;
}
.avhm-btn--primary:hover { background: #007ab0 !important; }
.avhm-btn--ghost {
  background: #f1f5f9 !important;
  color: #374151 !important;
}
.avhm-btn--ghost:hover { background: #e2e8f0 !important; }
.avhm-btn--sm { padding: 7px 14px !important; font-size: 12px !important; }
.avhm-btn--full { width: 100%; }

/* ══════════════════════════════════════════════════════════════
   Product Builder — Edit Mode (flat layout, semua step visible)
══════════════════════════════════════════════════════════════ */

.avh-edit-section {
  display: block !important;
  border: none !important;
}

.avh-edit-section + .avh-edit-section {
  border-top: 2px solid var(--asd-border, #e2e8f0) !important;
  margin-top: 0 !important;
}

.avh-edit-section .asd-form__section {
  border: 1px solid var(--asd-border, #e2e8f0);
  border-radius: 10px;
  margin-bottom: 16px;
  padding: 24px;
  background: #fff;
}

.avh-edit-section .asd-form__section-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--asd-border, #e2e8f0);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sticky save bar untuk edit mode */
.avh-edit-save-bar {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0,0,0,.06);
}

@media (max-width: 959px) {
  .avh-edit-section .asd-form__section {
    padding: 16px;
  }
  .avh-edit-save-bar {
    padding: 12px 16px;
  }
}

/* avh-edit-step — class gantian untuk edit mode (bukan asd-form__step) */
/* Tidak boleh di-hide oleh goToStep() kerana class berbeza */
.avh-edit-step {
  display: block !important;
  visibility: visible !important;
}
