/* ===== چای — Support option cards (creator page) + editor (dashboard) ===== */
.mini-label { display: block; font-size: 11px; color: var(--ink-mute); margin: 0 0 6px; }
.mini-label span { opacity: .75; }

/* Cards */
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.opt-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  min-height: 124px; padding: 14px; border-radius: 14px; text-align: right; cursor: pointer;
  font: inherit; color: var(--ink); background: #211714; border: 1.5px solid #634b3e;
  transition: border-color .15s, background .15s, transform .15s;
}
.opt-card:hover { border-color: #d8bea5; transform: translateY(-2px); }
.opt-card[aria-checked="true"] { border-color: #910029; background: rgba(145, 0, 41, .16); box-shadow: inset 0 0 0 1px #910029; }
.opt-card:focus-visible { outline: 2px solid #f5ede3; outline-offset: 3px; }
.opt-vis { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 25px; line-height: 1; background: rgba(59, 39, 35, .55); overflow: hidden; margin-bottom: 8px; flex-shrink: 0; }
.opt-vis img { width: 100%; height: 100%; object-fit: cover; }
.opt-card strong { font-size: 13px; line-height: 1.6; }
.opt-card small { font-size: 11px; color: var(--ink-mute); line-height: 1.7; }
.opt-price { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 800; color: #f5ede3; background: #3b2723; padding: 2px 9px; border-radius: 999px; }
.opt-card[aria-checked="true"] .opt-price { background: #910029; }
.opt-card.wide {
  grid-column: 1 / -1; min-height: 0;
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto;
  column-gap: 12px; row-gap: 2px; align-items: center;
}
.opt-card.wide .opt-vis { grid-row: 1 / 3; margin: 0; }
.opt-card.wide strong { grid-column: 2; grid-row: 1; align-self: end; }
.opt-card.wide small { grid-column: 2; grid-row: 2; align-self: start; }
.opt-card.wide .opt-price { position: static; grid-column: 3; grid-row: 1 / 3; align-self: center; white-space: nowrap; }

/* Detail (stepper / custom amount) */
.opt-detail { background: #211714; border: 1px solid #634b3e; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.opt-detail[hidden], .opt-detail [hidden] { display: none !important; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stepper .mini-label { margin: 0; font-size: 13px; color: var(--ink-soft); }
.stepper .ctrl { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #634b3e; background: #3b2723; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.stepper button:hover:not(:disabled) { border-color: #f5ede3; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 34px; text-align: center; font-weight: 800; font-size: 18px; }
.opt-detail .field { margin-bottom: 10px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin: -2px 0 12px; }
.quick button { flex: 1; min-width: 52px; min-height: 36px; border-radius: 9px; border: 1px solid #634b3e; background: transparent; color: var(--ink-soft); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.quick button.on, .quick button:hover { background: #910029; border-color: #910029; color: #f5ede3; }
.opt-note { font-size: 11px; color: var(--ink-mute); line-height: 1.8; margin: 0; }

/* Dashboard editor */
.opt-editor { display: flex; flex-direction: column; gap: 12px; }
.opt-row { display: grid; grid-template-columns: auto 56px 1fr 210px; gap: 16px; align-items: start; padding: 16px; border: 1px solid #634b3e; border-radius: 14px; background: #211714; transition: opacity .2s; }
.opt-row.off { opacity: .5; }
.opt-row .switch { position: relative; margin: 10px 0 0; }
.opt-thumb .opt-vis { width: 56px; height: 56px; font-size: 30px; margin: 0; border-radius: 14px; }
.opt-fields { display: grid; grid-template-columns: 76px 1fr; gap: 10px; min-width: 0; }
.opt-fields .full { grid-column: 1 / -1; }
.opt-fields .field, .opt-money .field { margin: 0; min-height: 40px; }
.opt-fields [data-f="emoji"] { text-align: center; font-size: 18px; }
.img-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.img-row .hint { font-size: 11px; color: var(--ink-mute); }
.img-row label.btn { cursor: pointer; }
.opt-money small { display: block; font-size: 11px; color: var(--ink-mute); margin-top: 8px; line-height: 1.8; }
.opt-money small b { color: #f5ede3; }
.opt-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
#options .panel-head .sub { max-width: 560px; }

@media (max-width: 1100px) {
  .opt-row { grid-template-columns: auto 56px 1fr; }
  .opt-money { grid-column: 3; }
}
@media (max-width: 560px) {
  .opt-grid { gap: 8px; }
  .opt-card { min-height: 116px; padding: 12px; }
  .opt-row { grid-template-columns: auto 1fr; gap: 12px; }
  .opt-thumb { grid-column: 2; grid-row: 1; }
  .opt-fields, .opt-money { grid-column: 1 / -1; }
}
