/* Digitem SearchPulse AI Ultra v5.0.0 — Flagship Light-First Command Ribbon & Spotlight */
@font-face {
  font-family: 'PeydaFaNum';
  src: url('../fonts/PeydaFaNumWeb-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PeydaFaNum';
  src: url('../fonts/PeydaFaNumWeb-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PeydaFaNum';
  src: url('../fonts/PeydaFaNumWeb-ExtraBold.woff2') format('woff2');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

html.dss-modal-open,
html.dss-modal-open body {
  overflow: hidden !important;
}

.dss-root-portal {
  --dss-primary: #4f46e5;
  --dss-accent: #d97706;
  --dss-bg: #ffffff;
  --dss-bg-soft: #f8fafc;
  --dss-bg-hover: #f1f5f9;
  --dss-border: #e2e8f0;
  --dss-text: #0f172a;
  --dss-muted: #64748b;
  font-family: 'PeydaFaNum', Vazirmatn, Tahoma, sans-serif;
}

/* === Header & Mobile Triggers === */
.dss-trigger-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(248, 250, 252, 0.94);
  border: 1.5px solid #cbd5e1;
  color: #334155;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  max-width: 100%;
}
.dss-trigger-pill:hover {
  border-color: var(--dss-primary, #4f46e5);
  color: var(--dss-primary, #4f46e5);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.14);
}
.dss-trig-lbl {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 185px;
}
.dss-trig-kbd {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #475569;
  font-family: ui-monospace, monospace;
}

.dss-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dss-trigger-icon:hover {
  background: #eef2ff;
  border-color: #6366f1;
  color: #4f46e5;
}

.dss-auto-desktop { display: inline-flex; align-items: center; margin: 0 10px; }
.dss-auto-mobile-bar { display: inline-flex; align-items: center; margin: 0 6px; }
.dss-auto-mobile-menu { padding: 12px 14px 8px; }
.dss-drawer-pill { width: 100%; justify-content: space-between; border-radius: 12px; padding: 10px 14px; }
.dss-shortcode-pill { width: 100%; justify-content: space-between; padding: 11px 16px; border-radius: 14px; }

.dss-floating-fab {
  position: fixed;
  bottom: 84px;
  left: 18px;
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: var(--dss-primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  box-shadow: 0 10px 26px rgba(79, 70, 229, 0.35);
  cursor: pointer;
}

/* === Spotlight Backdrop & Modal === */
.dss-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4.5vh 16px 24px;
  animation: dssFadeIn 0.16s ease-out;
}
@keyframes dssFadeIn { from { opacity: 0; } to { opacity: 1; } }

.dss-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: 86vh;
  background: var(--dss-bg);
  color: var(--dss-text);
  border: 1px solid var(--dss-border);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.34);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.2s ease;
  animation: dssSlideUp 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.dss-modal.dss-modal-wide {
  width: min(980px, 100%);
}
@keyframes dssSlideUp {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dss-toast {
  position: absolute;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: #0f172a;
  color: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

/* === Header Input === */
.dss-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--dss-border);
  background: var(--dss-bg);
}
.dss-header-icon {
  color: var(--dss-primary);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 18px;
}
.dss-input {
  flex: 1;
  min-width: 0;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--dss-text) !important;
  font-size: 15.5px;
  font-weight: 600;
  font-family: inherit;
  padding: 4px 0;
}
.dss-input::placeholder { color: var(--dss-muted); font-weight: 400; }
.dss-header-actions { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }

.dss-cmd-toggle {
  border: 1px solid var(--dss-border);
  background: var(--dss-bg-soft);
  color: var(--dss-primary);
  border-radius: 10px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.dss-cmd-toggle:hover { background: var(--dss-bg-hover); }

.dss-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--dss-border);
  background: var(--dss-bg-soft);
  color: var(--dss-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.dss-icon-btn:hover { color: var(--dss-primary); border-color: var(--dss-primary); }
.dss-icon-btn.is-listening {
  background: #fee2e2;
  color: #dc2626;
  border-color: #f87171;
  animation: dssPulse 1s infinite;
}
@keyframes dssPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.dss-esc-btn {
  padding: 6px 11px;
  border-radius: 10px;
  border: 1px solid var(--dss-border);
  background: var(--dss-bg-soft);
  color: var(--dss-muted);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.dss-esc-btn:hover { background: var(--dss-bg-hover); color: var(--dss-text); }

/* === Toolbar: CPT Tabs + Sort Pills === */
.dss-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--dss-border);
  background: var(--dss-bg-soft);
  flex-wrap: wrap;
}
.dss-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dss-tabs::-webkit-scrollbar { display: none; }
.dss-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--dss-border);
  background: var(--dss-bg);
  color: var(--dss-muted);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.dss-tab.is-active {
  background: var(--dss-primary);
  border-color: var(--dss-primary);
  color: #fff;
}
.dss-tab-cnt {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
}
.dss-tab.is-active .dss-tab-cnt { background: rgba(255, 255, 255, 0.25); color: #fff; }

.dss-sort-pills { display: inline-flex; gap: 4px; flex-shrink: 0; }
.dss-sort-pill {
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--dss-muted);
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.dss-sort-pill.is-active {
  background: var(--dss-bg);
  border-color: var(--dss-border);
  color: var(--dss-primary);
}

/* === Body & Split-Pane Grid === */
.dss-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dss-body.dss-body-split {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 16px;
  align-items: start;
  overflow: hidden;
  padding: 0;
}
.dss-body.dss-body-split .dss-main-col {
  height: 100%;
  max-height: 64vh;
  overflow-y: auto;
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dss-main-col { display: flex; flex-direction: column; gap: 12px; }

/* === Desktop Live Preview Pane === */
.dss-preview-pane {
  height: 100%;
  max-height: 64vh;
  overflow-y: auto;
  padding: 16px;
  border-right: 1px solid var(--dss-border);
  background: var(--dss-bg-soft);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.dss-prev-img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--dss-border);
}
.dss-prev-hero {
  width: 100%;
  height: 110px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.dss-prev-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dss-prev-title { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.5; color: var(--dss-text); }
.dss-prev-desc { margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--dss-muted); }
.dss-prev-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--dss-bg);
  border: 1px solid var(--dss-border);
  border-radius: 12px;
  padding: 10px 12px;
}
.dss-spec-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; }
.dss-spec-k { color: var(--dss-muted); }
.dss-spec-v { color: var(--dss-text); font-weight: 700; }
.dss-prev-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }

/* === Smart Utility Card & Keyboard Auto-Fix Banner === */
.dss-utility-card {
  border-radius: 15px;
  padding: 12px 14px;
  border: 1.5px solid #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.04));
}
.dss-util-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.dss-util-badge { font-size: 11.5px; font-weight: 800; color: #047857; }
.dss-util-title { font-size: 15.5px; font-weight: 800; color: var(--dss-text); margin-bottom: 4px; }
.dss-util-sub { font-size: 12px; color: var(--dss-muted); line-height: 1.6; }
.dss-util-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  text-decoration: none;
}

.dss-corrected-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.24);
  font-size: 12.5px;
  color: var(--dss-text);
}
.dss-corrected-btn {
  border: none;
  background: var(--dss-primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

/* === Sponsored Slot 1 & 2 Cards === */
.dss-sponsored-wrap { display: flex; flex-direction: column; gap: 9px; }
.dss-ad-card { border-radius: 15px; padding: 12px 14px; border: 1.5px solid var(--dss-border); }
.dss-ad-slot-1 {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.6), rgba(255, 251, 235, 0.95));
  border-color: #f59e0b;
}
.dss-ad-slot-2 {
  background: linear-gradient(135deg, rgba(224, 231, 255, 0.55), rgba(238, 242, 255, 0.95));
  border-color: #6366f1;
}
.dss-ad-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.dss-ad-badge { font-size: 11px; font-weight: 800; color: #92400e; background: rgba(251, 191, 36, 0.25); padding: 2px 9px; border-radius: 999px; }
.dss-ad-slot-2 .dss-ad-badge { color: #3730a3; background: rgba(99, 102, 241, 0.18); }
.dss-promo-btn {
  border: 1px dashed #d97706;
  background: rgba(255, 255, 255, 0.8);
  color: #92400e;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.dss-ad-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none !important; color: inherit !important; }
.dss-ad-title { font-size: 14px; font-weight: 800; margin-bottom: 3px; }
.dss-ad-sub { font-size: 12px; color: var(--dss-muted); }
.dss-ad-cta-col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.dss-ad-price { font-size: 11.5px; display: flex; gap: 6px; }
.dss-ad-price del { color: var(--dss-muted); }
.dss-ad-price strong { color: #059669; }
.dss-ad-cta {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.dss-ad-slot-1 .dss-ad-cta { background: #d97706; }

/* === AI Smart Box + Follow-Up Chips === */
.dss-ai-card {
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(124, 58, 237, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.dss-ai-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.dss-ai-title { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--dss-primary); }
.dss-ai-btn {
  border: none;
  background: var(--dss-primary);
  color: #fff;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.dss-ai-mode { font-size: 11px; color: var(--dss-muted); font-weight: 700; }
.dss-ai-text { margin: 0; font-size: 13px; line-height: 1.75; color: var(--dss-text); }
.dss-ai-followups { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.dss-followup-chip {
  border: 1px solid rgba(79, 70, 229, 0.28);
  background: var(--dss-bg);
  color: var(--dss-primary);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.dss-followup-chip:hover { background: var(--dss-primary); color: #fff; }

/* === Results List === */
.dss-results-list { display: flex; flex-direction: column; gap: 6px; }
.dss-result-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border-radius: 13px;
  border: 1px solid transparent;
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.14s ease;
}
.dss-result-row:hover,
.dss-result-row.is-selected {
  background: var(--dss-bg-hover);
  border-color: var(--dss-border);
}
.dss-res-thumb { width: 48px; height: 48px; border-radius: 11px; object-fit: cover; flex-shrink: 0; }
.dss-res-thumb-ico { display: flex; align-items: center; justify-content: center; font-size: 20px; }
.dss-res-body { flex: 1; min-width: 0; }
.dss-res-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 3px; }
.dss-res-type { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.dss-res-badge { font-size: 11px; font-weight: 700; color: #b45309; background: rgba(245, 158, 11, 0.15); padding: 2px 7px; border-radius: 999px; }
.dss-res-price { font-size: 11px; font-weight: 800; color: #059669; }
.dss-res-title { font-size: 13.5px; font-weight: 700; color: var(--dss-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dss-res-snip { font-size: 12px; color: var(--dss-muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.dss-res-arrow { color: var(--dss-muted); font-size: 15px; flex-shrink: 0; }
.dss-hl { background: rgba(250, 204, 21, 0.36); color: inherit; border-radius: 3px; padding: 0 2px; }

/* === Command Palette Mode === */
.dss-commands-view { display: flex; flex-direction: column; gap: 10px; }
.dss-list { display: flex; flex-direction: column; gap: 6px; }
.dss-cmd-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: right;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid var(--dss-border);
  background: var(--dss-bg-soft);
  color: var(--dss-text);
  font-family: inherit;
  cursor: pointer;
}
.dss-cmd-row.is-selected,
.dss-cmd-row:hover { border-color: var(--dss-primary); background: var(--dss-bg-hover); }
.dss-cmd-ico { font-size: 20px; }
.dss-cmd-text { flex: 1; display: flex; flex-direction: column; }
.dss-cmd-text strong { font-size: 13.5px; }
.dss-cmd-text small { font-size: 11.5px; color: var(--dss-muted); margin-top: 2px; }
.dss-cmd-enter { font-size: 11px; color: var(--dss-primary); font-weight: 700; }

/* === B2B Booking Drawer === */
.dss-book-drawer { display: flex; flex-direction: column; gap: 12px; }
.dss-book-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dss-book-title { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.dss-book-sub { margin: 0; font-size: 12.5px; color: var(--dss-muted); line-height: 1.65; }
.dss-book-notice {
  padding: 10px 13px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid #10b981;
  color: var(--dss-text);
  font-size: 12.5px;
  font-weight: 600;
}
.dss-book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dss-label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; color: var(--dss-text); }
.dss-field {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--dss-border);
  background: var(--dss-bg-soft);
  color: var(--dss-text);
  font-family: inherit;
  font-size: 13px;
  box-sizing: border-box;
}
.dss-book-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.dss-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 11px;
  border: none;
  background: var(--dss-primary);
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none !important;
  cursor: pointer;
}
.dss-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 11px;
  border: 1px solid var(--dss-border);
  background: var(--dss-bg-soft);
  color: var(--dss-text) !important;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none !important;
  cursor: pointer;
}

/* === Empty State, Hubs, Skeletons, Zero-Result === */
.dss-section { margin-bottom: 14px; }
.dss-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dss-section-title { font-size: 12.5px; font-weight: 800; color: var(--dss-muted); margin-bottom: 8px; }
.dss-link-muted { border: none; background: transparent; color: var(--dss-muted); font-size: 12px; cursor: pointer; font-family: inherit; }
.dss-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.dss-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--dss-border);
  background: var(--dss-bg-soft);
  color: var(--dss-text);
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
}
.dss-chip:hover { border-color: var(--dss-primary); color: var(--dss-primary); }
.dss-hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.dss-hub-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid var(--dss-border);
  background: var(--dss-bg-soft);
  text-decoration: none !important;
  color: inherit !important;
}
.dss-hub-card:hover { border-color: var(--dss-primary); background: var(--dss-bg-hover); }
.dss-hub-ico { font-size: 20px; }
.dss-hub-txt strong { display: block; font-size: 12.5px; font-weight: 700; }
.dss-hub-txt small { display: block; font-size: 11px; color: var(--dss-muted); margin-top: 2px; }
.dss-tip-strip {
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--dss-bg-soft);
  border: 1px dashed var(--dss-border);
  font-size: 12px;
  color: var(--dss-muted);
}

.dss-skeletons { display: flex; flex-direction: column; gap: 10px; }
.dss-skel-row { display: flex; gap: 12px; align-items: center; }
.dss-skel-thumb { width: 48px; height: 48px; border-radius: 11px; background: var(--dss-bg-hover); }
.dss-skel-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.dss-skel-line { height: 11px; border-radius: 6px; background: var(--dss-bg-hover); }
.dss-skel-line.w-60 { width: 60%; }
.dss-skel-line.w-90 { width: 90%; }

.dss-zero-box { text-align: center; padding: 20px 14px; border-radius: 16px; background: var(--dss-bg-soft); border: 1px dashed var(--dss-border); }
.dss-zero-ico { font-size: 28px; margin-bottom: 6px; }
.dss-zero-title { margin: 0 0 6px; font-size: 14.5px; font-weight: 800; }
.dss-zero-sub { margin: 0 0 12px; font-size: 12.5px; color: var(--dss-muted); }
.dss-zero-form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; }
.dss-zero-input { flex: 1; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--dss-border); background: var(--dss-bg); color: var(--dss-text); font-family: inherit; font-size: 13px; }
.dss-zero-btn { padding: 8px 14px; border-radius: 10px; border: none; background: var(--dss-primary); color: #fff; font-weight: 700; font-family: inherit; font-size: 12.5px; cursor: pointer; }
.dss-zero-ok { color: #059669; font-weight: 700; font-size: 13px; }

/* === Footer === */
.dss-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--dss-border);
  background: var(--dss-bg-soft);
  font-size: 12px;
  flex-wrap: wrap;
}
.dss-footer-keys { display: flex; gap: 10px; color: var(--dss-muted); }
.dss-footer-keys kbd {
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--dss-border);
  background: var(--dss-bg);
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
.dss-footer-actions { display: flex; align-items: center; gap: 10px; }
.dss-all-link { color: var(--dss-primary) !important; font-weight: 700; text-decoration: none !important; }
.dss-b2b-pill {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(217, 119, 6, 0.35);
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  font-weight: 700;
  font-size: 11.5px;
  font-family: inherit;
  cursor: pointer;
}
/* === Responsive Tablet & Mobile === */
@media (max-width: 859px) {
  .dss-body.dss-body-split {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 12px 14px 16px;
  }
  .dss-body.dss-body-split .dss-main-col { max-height: none; overflow: visible; padding: 0; }
  .dss-preview-pane { display: none; }
}

@media (max-width: 680px) {
  .dss-backdrop { padding: 0; align-items: stretch; }
  .dss-modal, .dss-modal.dss-modal-wide {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    border: none;
  }
  .dss-hub-grid, .dss-book-grid { grid-template-columns: 1fr; }
  .dss-footer { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .dss-footer-keys { display: none; }
  .dss-ad-link { flex-direction: column; align-items: flex-start; }
  .dss-ad-cta-col { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .dss-zero-form { flex-direction: column; }
  .dss-auto-desktop { display: none !important; }
}


/* ==========================================================================
   v5.0.0 Flagship Below-Header Command Search Ribbon (Desktop + 2-Row Mobile)
   ========================================================================== */
.dss-ribbon-shell {
  width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 20px 14px;
  font-family: 'PeydaFaNum', Vazirmatn, Tahoma, sans-serif;
  box-sizing: border-box;
  position: relative;
  z-index: 40;
}
.dss-ribbon-shell *,
.dss-ribbon-shell *::before,
.dss-ribbon-shell *::after {
  box-sizing: border-box;
}
.dss-ribbon-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* Main Wide Search Bar */
.dss-ribbon-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 7px 18px 7px 8px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 18px;
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.dss-ribbon-bar:hover,
.dss-ribbon-bar:focus-visible {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 14px 36px -10px rgba(79, 70, 229, 0.22), 0 0 0 4px rgba(79, 70, 229, 0.08);
  transform: translateY(-1px);
}
.dss-ribbon-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  color: #4f46e5;
  flex-shrink: 0;
}
.dss-ribbon-ph {
  flex: 1;
  min-width: 0;
  color: #475569;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.22s ease;
}
.dss-ribbon-ph.is-fading {
  opacity: 0;
}
.dss-ribbon-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.dss-ribbon-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 9px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1.5px 0 #cbd5e1;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}
.dss-ribbon-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 13px;
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28);
  transition: filter 0.18s ease, transform 0.18s ease;
}
.dss-ribbon-bar:hover .dss-ribbon-cta {
  filter: brightness(1.06);
}

/* Row 2: Quick-Scope Discovery Pills */
.dss-ribbon-scopes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dss-scope-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.dss-scope-pill:hover {
  border-color: #4f46e5;
  color: #4f46e5;
  background: #eef2ff;
  transform: translateY(-1px);
}
.dss-scope-pill.is-primary {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}
.dss-sp-ico {
  font-size: 13px;
  line-height: 1;
}

/* ==========================================================================
   v5.0.0 Interactive Light-Mode Footer Buttons (High Contrast, Zero Theme Override)
   ========================================================================== */
.dss-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}
.dss-footer-keys {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dss-fk-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 9px;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #1e293b !important;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.dss-fk-btn:hover {
  border-color: #4f46e5 !important;
  background: #eef2ff !important;
  color: #3730a3 !important;
}
.dss-fk-btn.is-active {
  border-color: #4f46e5 !important;
  background: #4f46e5 !important;
  color: #ffffff !important;
}
.dss-fk-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 5px;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}
.dss-fk-btn.is-active .dss-fk-kbd {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}
.dss-fk-lbl {
  color: inherit !important;
}

/* Mobile 2-Row Full-Width Command Ribbon (Clean, Spacious, Zero Header Overlap) */
@media (max-width: 768px) {
  .dss-ribbon-shell {
    padding: 10px 12px 11px;
  }
  .dss-ribbon-inner {
    gap: 9px;
  }
  .dss-ribbon-bar {
    min-height: 48px;
    padding: 5px 10px 5px 6px;
    border-radius: 14px;
    gap: 9px;
  }
  .dss-ribbon-ico {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
  .dss-ribbon-ph {
    font-size: 13px;
  }
  .dss-ribbon-kbd {
    display: none;
  }
  .dss-ribbon-cta {
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 12.5px;
  }
  .dss-ribbon-scopes {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .dss-ribbon-scopes::-webkit-scrollbar {
    display: none;
  }
  .dss-scope-pill {
    padding: 5px 12px;
    font-size: 12px;
  }
}


/* ==========================================================================
   v6.0.0 Buyable Products & Plugins Showcase (High-Converting Light Mode)
   ========================================================================== */
.dss-coupon-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px dashed #d97706;
  background: #fffbeb;
  color: #b45309;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s ease;
}
.dss-coupon-mini:hover {
  background: #fef3c7;
  transform: translateY(-1px);
}
.dss-shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.dss-shop-card {
  display: flex;
  align-items: stretch;
  gap: 11px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  text-decoration: none !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.dss-shop-card:hover {
  border-color: #4f46e5;
  box-shadow: 0 10px 24px -10px rgba(79, 70, 229, 0.25);
  transform: translateY(-1.5px);
}
.dss-shop-thumb {
  width: 64px;
  height: 64px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #f1f5f9;
}
.dss-shop-thumb-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  color: #4f46e5;
  font-size: 24px;
}
.dss-shop-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}
.dss-shop-tag {
  align-self: flex-start;
  padding: 2px 7px;
  border-radius: 6px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.3;
}
.dss-shop-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.45;
  color: #0f172a;
}
.dss-shop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}
.dss-shop-price {
  font-size: 12px;
  font-weight: 900;
  color: #059669;
}
.dss-shop-cta {
  font-size: 11.5px;
  font-weight: 800;
  color: #4f46e5;
  white-space: nowrap;
}
@media (max-width: 680px) {
  .dss-shop-grid {
    grid-template-columns: 1fr;
  }
}

/* v6.1.0 Revenue-First Gold & Fonts Quick-Scope Pill Accents */
.dss-scope-pill.is-gold {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.dss-scope-pill.is-gold:hover {
  background: #fef3c7;
  border-color: #d97706;
  color: #78350f;
}
.dss-scope-pill.is-font {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #5b21b6;
}
.dss-scope-pill.is-font:hover {
  background: #ede9fe;
  border-color: #7c3aed;
  color: #4c1d95;
}

a.dss-scope-pill { text-decoration: none !important; }


/* ==========================================================================
   v7.0.0 Interactive Popup Mini-Apps (Gold Calc, Font Tester, Inquiry, UTM)
   ========================================================================== */
.dss-hub-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  scrollbar-width: none;
}
.dss-hub-tabs::-webkit-scrollbar { display: none; }
.dss-hub-tab {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dss-hub-tab:hover { border-color: #4f46e5; color: #4f46e5; }
.dss-hub-tab.is-active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
}
.dss-miniapp {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  padding: 15px 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px -14px rgba(15, 23, 42, 0.14);
}
.dss-ma-gold { border-color: #fde68a; background: linear-gradient(135deg, #fffbeb 0%, #ffffff 70%); }
.dss-ma-fonts { border-color: #ddd6fe; background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 70%); }
.dss-ma-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 11px;
}
.dss-ma-head strong { font-size: 13.5px; font-weight: 900; color: #0f172a; }
.dss-ma-link { font-size: 12px; font-weight: 800; color: #4f46e5 !important; text-decoration: none !important; }
.dss-ma-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.dss-ma-input {
  flex: 1;
  min-width: 180px;
  padding: 9px 12px;
  border-radius: 11px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
}
.dss-ma-chip {
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.dss-ma-chip.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}
.dss-ma-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.dss-ma-stat {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dss-ma-stat span { font-size: 11px; color: #64748b; }
.dss-ma-stat strong { font-size: 13.5px; font-weight: 900; color: #b45309; }
.dss-font-preview {
  padding: 14px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 12px;
  text-align: center;
}
.dss-ma-detect {
  padding: 10px 12px;
  border-radius: 11px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  margin: 8px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12.5px;
}
.dss-ma-hint { margin: 8px 0 12px; font-size: 12px; color: #64748b; }
.dss-ma-code {
  padding: 8px 11px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-family: ui-monospace, monospace;
  font-size: 11.5px;
  word-break: break-all;
  margin-bottom: 11px;
}
.dss-ma-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.dss-ma-btn-pri {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  background: #4f46e5;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}
.dss-ma-btn-gold {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff !important;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  border: none;
  cursor: pointer;
}
.dss-ma-btn-sec {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 600px) {
  .dss-ma-stats { grid-template-columns: 1fr; }
}
