/* ============================================================
   استایل سامانهٔ یادآور — فارسی و راست‌چین (مکمل Bootstrap RTL)
   همهٔ فونت‌ها/آیکون‌ها محلی‌اند؛ هیچ CDN استفاده نمی‌شود.
   ============================================================ */

:root {
  --rm-primary: #4f46e5;
  --rm-primary-dark: #3730a3;
  --rm-primary-soft: #eef2ff;
  --rm-teal: #0d9488;
  --rm-amber: #d97706;
  --rm-ink: #111827;
  --rm-muted: #6b7280;
  --rm-bg: #f6f7fb;
  --rm-line: #e8eaf2;
  --rm-radius: 18px;
  --rm-shadow: 0 12px 32px rgba(24, 24, 64, .08);
}

body.rm-body {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background: var(--rm-bg);
  color: var(--rm-ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.rm-body main { flex: 1 0 auto; }
.rm-body a { text-decoration: none; }
.rm-ltr { direction: ltr; unicode-bidi: embed; }

/* ---------------- نوار بالا ---------------- */
.rm-nav {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rm-line);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.rm-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--rm-ink); font-size: 1.2rem; }
.rm-brand-icon {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  color: #fff; font-size: 1.25rem;
  background: linear-gradient(135deg, var(--rm-primary), #7c3aed);
  box-shadow: 0 8px 18px rgba(79, 70, 229, .28);
}
.rm-nav .nav-link { color: #4b5563; font-weight: 600; border-radius: 10px; padding: .55rem .85rem; }
.rm-nav .nav-link:hover { color: var(--rm-primary); background: var(--rm-primary-soft); }
.rm-nav .nav-link.active { color: var(--rm-primary); background: var(--rm-primary-soft); }

/* ---------------- دکمه‌ها ---------------- */
.btn-rm {
  background: linear-gradient(135deg, var(--rm-primary), #6d28d9);
  color: #fff; border: 0; border-radius: 12px; font-weight: 700;
  padding: .65rem 1.25rem; box-shadow: 0 8px 18px rgba(79, 70, 229, .24);
}
.btn-rm:hover, .btn-rm:focus { color: #fff; filter: brightness(1.07); }
.btn-rm-soft { background: var(--rm-primary-soft); color: var(--rm-primary-dark); border: 0; border-radius: 12px; font-weight: 700; }
.btn-rm-soft:hover { background: #e0e7ff; color: var(--rm-primary-dark); }
.btn-rm-ghost { border: 1px solid var(--rm-line); background: #fff; color: var(--rm-ink); border-radius: 12px; font-weight: 600; }
.btn-rm-ghost:hover { border-color: var(--rm-primary); color: var(--rm-primary); }

/* ---------------- کارت‌ها ---------------- */
.rm-card {
  background: #fff; border: 1px solid var(--rm-line); border-radius: var(--rm-radius);
  box-shadow: 0 6px 18px rgba(24, 24, 64, .04);
}
.rm-card-body { padding: 1.35rem; }
.rm-soft { background: var(--rm-primary-soft); border: 1px solid #e0e7ff; border-radius: var(--rm-radius); }
.rm-muted { color: var(--rm-muted); }
.rm-section-title { font-weight: 800; font-size: 1.35rem; }
.rm-eyebrow { color: var(--rm-primary); font-weight: 700; font-size: .85rem; letter-spacing: .3px; }

/* ---------------- هیرو ---------------- */
.rm-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(124, 58, 237, .16), transparent 60%),
    radial-gradient(700px 320px at -10% 20%, rgba(13, 148, 136, .14), transparent 60%),
    linear-gradient(180deg, #fbfbff, var(--rm-bg));
  padding: 4.5rem 0 3.5rem;
}
.rm-hero h1 { font-weight: 900; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.5; }
.rm-hero h1 span { background: linear-gradient(135deg, var(--rm-primary), var(--rm-teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rm-hero-lead { font-size: 1.08rem; color: #4b5563; max-width: 34rem; line-height: 2; }
.rm-hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.rm-chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .8rem;
  background: #fff; border: 1px solid var(--rm-line); border-radius: 999px;
  font-size: .82rem; font-weight: 600; color: #374151;
}
.rm-chip i { color: var(--rm-teal); }

.rm-hero-art { position: relative; min-height: 360px; }
.rm-float-card {
  background: #fff; border: 1px solid var(--rm-line); border-radius: 16px;
  box-shadow: var(--rm-shadow); padding: 1rem 1.1rem; position: absolute;
  width: min(310px, 88%); animation: rmFloat 7s ease-in-out infinite;
}
.rm-float-card.one { top: 1rem; right: 0; }
.rm-float-card.two { top: 8rem; left: 0; animation-delay: 1.5s; }
.rm-float-card.three { bottom: .4rem; right: 2rem; animation-delay: 3s; }
.rm-float-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--rm-primary-soft); color: var(--rm-primary); font-size: 1.1rem; }
@keyframes rmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 991.98px) { .rm-hero-art { display: none; } .rm-hero { padding-top: 2.5rem; } }

/* ---------------- بخش‌ها ---------------- */
.rm-section { padding: 4rem 0; }
.rm-section.alt { background: #fff; border-top: 1px solid var(--rm-line); border-bottom: 1px solid var(--rm-line); }
.rm-feature { height: 100%; padding: 1.4rem; }
.rm-feature-icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: .9rem;
  background: var(--rm-primary-soft); color: var(--rm-primary);
}
.rm-feature.teal .rm-feature-icon { background: #ccfbf1; color: #0f766e; }
.rm-feature.amber .rm-feature-icon { background: #fef3c7; color: #b45309; }
.rm-feature.rose .rm-feature-icon { background: #ffe4e6; color: #be123c; }
.rm-feature h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .45rem; }
.rm-feature p { color: var(--rm-muted); font-size: .93rem; line-height: 1.9; margin: 0; }

.rm-type-pill { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--rm-line); border-radius: 12px; padding: .6rem .85rem; font-weight: 600; font-size: .9rem; color: #374151; }
.rm-type-pill i { color: var(--rm-primary); }

.rm-step { text-align: center; padding: 1rem; }
.rm-step-num {
  width: 46px; height: 46px; margin: 0 auto .8rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--rm-primary), #7c3aed); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.rm-step h3 { font-size: 1rem; font-weight: 800; }
.rm-step p { color: var(--rm-muted); font-size: .9rem; line-height: 1.9; margin: 0; }

.rm-tpl-card { display: block; height: 100%; padding: 1.1rem; color: var(--rm-ink); transition: .18s; }
.rm-tpl-card:hover { transform: translateY(-3px); color: var(--rm-ink); box-shadow: var(--rm-shadow); border-color: #c7d2fe; }
.rm-tpl-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--rm-primary-soft); color: var(--rm-primary); font-size: 1.2rem; margin-bottom: .7rem; }
.rm-tpl-card h3 { font-size: .98rem; font-weight: 800; margin: 0 0 .3rem; }
.rm-tpl-card p { font-size: .82rem; color: var(--rm-muted); margin: 0; line-height: 1.8; }
.rm-tpl-card .rm-tpl-cat { font-size: .72rem; color: var(--rm-teal); font-weight: 700; }

.rm-price-card { height: 100%; padding: 1.4rem; position: relative; }
.rm-price-card .rm-price { font-size: 1.7rem; font-weight: 900; color: var(--rm-primary-dark); }
.rm-price-card ul { list-style: none; padding: 0; margin: 1rem 0; }
.rm-price-card li { padding: .4rem 1.4rem .4rem 0; position: relative; font-size: .9rem; color: #374151; }
.rm-price-card li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; right: 0; color: var(--rm-teal); }

.rm-cta {
  background: linear-gradient(135deg, #312e81, #4f46e5 55%, #0f766e);
  color: #fff; border-radius: 26px; padding: 2.6rem;
  box-shadow: 0 22px 44px rgba(49, 46, 129, .28);
}
.rm-cta h2 { font-weight: 900; }
.rm-cta p { color: rgba(255, 255, 255, .78); }

/* ---------------- فرم‌ها ---------------- */
.rm-body .form-control, .rm-body .form-select {
  border-radius: 12px; border-color: #dfe3ee; min-height: 46px; font-size: 16px;
}
.rm-body .form-control:focus, .rm-body .form-select:focus {
  border-color: var(--rm-primary); box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .12);
}
.rm-body .form-label { font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.rm-body .form-check-input:checked { background-color: var(--rm-primary); border-color: var(--rm-primary); }
.rm-lead-check { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--rm-line); border-radius: 11px; padding: .5rem .75rem; margin: 0 0 .5rem .5rem; }
.rm-lead-check input { margin: 0; }

/* ---------------- پنل ---------------- */
.rm-panel-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.rm-panel-tabs { display: flex; gap: .4rem; flex-wrap: wrap; border-bottom: 1px solid var(--rm-line); margin-bottom: 1.5rem; padding-bottom: .6rem; }
.rm-panel-tabs a { padding: .5rem .9rem; border-radius: 10px; color: #4b5563; font-weight: 700; font-size: .92rem; }
.rm-panel-tabs a:hover { background: #fff; color: var(--rm-primary); }
.rm-panel-tabs a.active { background: var(--rm-primary); color: #fff; }
.rm-stat { padding: 1rem 1.1rem; height: 100%; }
.rm-stat .num { font-size: 1.65rem; font-weight: 900; line-height: 1.2; }
.rm-stat .lbl { font-size: .82rem; color: var(--rm-muted); }
.rm-stat-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 1.15rem; }
.rm-wallet { background: linear-gradient(135deg, #4338ca, #6d28d9 60%, #0f766e); color: #fff; border-radius: 20px; padding: 1.5rem; position: relative; overflow: hidden; }
.rm-wallet::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .08); top: -70px; left: -40px; }
.rm-wallet .balance { font-size: 2rem; font-weight: 900; }
.rm-wallet .unit { font-size: .85rem; opacity: .8; }

.rm-status { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .22rem .65rem; font-size: .75rem; font-weight: 700; }
.rm-status.active, .rm-status.sent, .rm-status.paid { background: #dcfce7; color: #166534; }
.rm-status.waiting_renewal, .rm-status.pending, .rm-status.processing { background: #fef3c7; color: #92400e; }
.rm-status.paused, .rm-status.canceled, .rm-status.failed, .rm-status.completed { background: #f1f5f9; color: #475569; }
.rm-status.deleted, .rm-status.expired { background: #fee2e2; color: #991b1b; }

.rm-table { font-size: .88rem; }
.rm-table thead th { background: #f8fafc; color: #475569; font-weight: 700; border-bottom: 1px solid var(--rm-line); white-space: nowrap; }
.rm-table td { vertical-align: middle; }

.rm-empty { text-align: center; padding: 3rem 1rem; color: var(--rm-muted); }
.rm-empty i { font-size: 2.6rem; color: #c7d2fe; display: block; margin-bottom: .8rem; }

.rm-summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--rm-line); font-size: .9rem; }
.rm-summary-row:last-child { border-bottom: 0; }
.rm-total { font-size: 1.3rem; font-weight: 900; color: var(--rm-primary-dark); }

.rm-timeline { position: relative; padding-right: 1.3rem; }
.rm-timeline::before { content: ""; position: absolute; right: .4rem; top: .3rem; bottom: .3rem; width: 2px; background: #e5e7f0; }
.rm-timeline-item { position: relative; padding-bottom: 1rem; }
.rm-timeline-item::before { content: ""; position: absolute; right: -1.05rem; top: .4rem; width: 10px; height: 10px; border-radius: 50%; background: var(--rm-primary); box-shadow: 0 0 0 3px #eef2ff; }

.rm-footer { background: #0f172a; color: #cbd5e1; padding: 2.6rem 0 1.4rem; margin-top: 0; }
.rm-footer a { color: #cbd5e1; }
.rm-footer a:hover { color: #fff; }
.rm-footer .rm-brand { color: #fff; }

@media (max-width: 767.98px) {
  .rm-section { padding: 2.6rem 0; }
  .rm-hero { padding: 2rem 0 2rem; }
  .rm-card-body { padding: 1rem; }
  .rm-cta { padding: 1.6rem; }
  .rm-table-wrap { overflow-x: auto; }
}
