/* ============================================
   اول آخر پلاس — plus.css
   ============================================ */

/* فوتر */
.plus-footer {
  margin-top: 34px;
  background: linear-gradient(160deg, var(--navy), var(--primary-dark));
  color: #dbe7f3;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 26px 18px 18px;
}

.plus-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.plus-footer h4 {
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 10px;
}

.plus-footer p {
  font-size: 12px;
  line-height: 2;
  color: #b9cde0;
}

.plus-footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plus-footer-links button {
  background: none;
  border: none;
  color: #cfe0f0;
  font-size: 12px;
  text-align: right;
  padding: 2px 0;
  transition: color 0.2s ease;
}

.plus-footer-links button:hover {
  color: #ffffff;
}

.plus-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.plus-trust-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #eaf3fb;
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 20px;
}

.plus-footer-bottom {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  color: #9fb6cc;
  text-align: center;
}

@media (min-width: 700px) {
  .plus-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* دکمه و شیت پشتیبانی */
.plus-support-btn {
  position: fixed;
  left: 14px;
  bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 84px);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--primary));
  color: #ffffff;
  font-size: 24px;
  z-index: 1600;
  box-shadow: 0 6px 18px rgba(20, 48, 79, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.plus-support-btn:active {
  transform: scale(0.94);
}

.plus-support-sheet {
  position: fixed;
  left: 14px;
  bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 146px);
  width: 230px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1600;
  padding: 12px;
  display: none;
  animation: slideIn 0.2s ease;
}

.plus-support-sheet.open {
  display: block;
}

.plus-support-sheet h5 {
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 8px;
}

.plus-support-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  font-weight: bold;
  transition: background 0.2s ease;
}

.plus-support-link:hover {
  background: var(--sky-light);
}

.plus-support-link span:first-child {
  font-size: 18px;
}

/* صفحه‌های اطلاعاتی */
.plus-page {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--bg);
  overflow-y: auto;
  display: none;
}

.plus-page.open {
  display: block;
}

.plus-page-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.plus-page-header h2 {
  flex: 1;
  font-size: 17px;
  color: var(--navy);
}

.plus-page-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

.plus-prose {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
}

.plus-prose h3 {
  color: var(--primary);
  font-size: 15px;
  margin: 18px 0 8px;
}

.plus-prose h3:first-child {
  margin-top: 0;
}

.plus-prose p,
.plus-prose li {
  font-size: 13px;
  line-height: 2.1;
  color: var(--text);
}

.plus-prose ul {
  padding-right: 20px;
  margin: 6px 0;
}

.plus-prose .plus-note {
  background: var(--sky-light);
  border: 1px solid var(--sky);
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  color: var(--navy);
  margin-top: 14px;
}

.plus-faq-item {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.plus-faq-item:last-child {
  border-bottom: none;
}

.plus-faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: right;
  font-size: 13px;
  font-weight: bold;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.plus-faq-a {
  display: none;
  font-size: 12px;
  color: var(--text-light);
  line-height: 2;
  padding: 8px 4px 4px;
}

.plus-faq-item.open .plus-faq-a {
  display: block;
}

.plus-faq-item.open .plus-faq-q::after {
  content: '−';
}

.plus-faq-q::after {
  content: '+';
  font-size: 18px;
  color: var(--blue);
}

/* بازدیدهای اخیر */
.plus-recent-section {
  margin-bottom: 32px;
  display: none;
}

/* نشان کاهش قیمت */
.plus-price-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  background: #e7f5ef;
  color: var(--success);
  border: 1px solid #bfe6d4;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 12px;
}

.plus-price-badge s {
  color: var(--text-light);
  font-weight: normal;
}

/* نمودار فروش */
.plus-chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.plus-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.plus-chart-head strong {
  font-size: 14px;
  color: var(--navy);
}

.plus-chart-toggle {
  display: flex;
  gap: 6px;
}

.plus-chart-toggle button {
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text-light);
  font-size: 11px;
  font-weight: bold;
}

.plus-chart-toggle button.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.plus-chart-wrap {
  overflow-x: auto;
}

.plus-chart-wrap svg {
  display: block;
  width: 100%;
  min-width: 520px;
  height: auto;
}

.plus-chart-total {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-light);
}

.plus-chart-total strong {
  color: var(--primary);
}

/* اسکرول‌بار اختصاصی صفحات پلاس */
.plus-page::-webkit-scrollbar,
.plus-chart-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.plus-page::-webkit-scrollbar-track,
.plus-chart-wrap::-webkit-scrollbar-track {
  background: var(--sky-light);
}

.plus-page::-webkit-scrollbar-thumb,
.plus-chart-wrap::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 8px;
}

.plus-page::-webkit-scrollbar-thumb:hover,
.plus-chart-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
/* ============================================
   ۳۱. رابط آپلود اختصاصی (image-fix v6)
   ============================================ */
.aa-upload-zone {
  margin-top: 10px;
  border: 2px dashed var(--blue);
  border-radius: var(--radius);
  background: var(--sky-light);
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.aa-upload-zone:hover {
  background: var(--sky);
}

.aa-upload-zone:active {
  transform: scale(0.99);
}

.aa-upload-zone.drag {
  background: var(--sky);
  border-color: var(--primary);
}

.aa-upload-zone.busy {
  opacity: 0.6;
  pointer-events: none;
}

.aa-upload-icon {
  font-size: 34px;
  margin-bottom: 6px;
}

.aa-upload-text {
  font-size: 13px;
  font-weight: bold;
  color: var(--navy);
}

.aa-upload-hint {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.9;
}

.aa-upload-count {
  display: inline-block;
  margin-top: 8px;
  background: var(--card);
  border: 1px solid var(--sky);
  color: var(--primary);
  font-size: 11px;
  font-weight: bold;
  padding: 3px 12px;
  border-radius: 20px;
}

.aa-upload-count:empty {
  display: none;
}