/* =========================================================
   hostingOrder.css — RTL / Farsi — Lagom2
   ========================================================= */


:root {
  --ho-primary:    var(--primary-color,       #4f46e5);
  --ho-primary-lt: var(--primary-color-light, #818cf8);
  --ho-success:    #10b981;
  --ho-bg:         #f8fafc;
  --ho-card:       #ffffff;
  --ho-border:     #e2e8f0;
  --ho-text:       #1e293b;
  --ho-muted:      #64748b;
  --ho-radius:     14px;
  --ho-shadow:     0 4px 24px rgba(0,0,0,.08);
  --ho-shadow-lg:  0 8px 40px rgba(79,70,229,.15);
}

/* ── Base RTL ── */
.ho-wrap {
  direction: rtl;
  text-align: right;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  max-width: 980px;
  margin: 36px auto 60px;
  padding: 0 16px;
  color: var(--ho-text);
}

/* ── Progress ── */
.ho-progress {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}
.ho-progress::before {
  content: '';
  position: absolute;
  top: 20px; left: 0; right: 0;
  height: 2px;
  background: var(--ho-border);
  z-index: 0;
}
.ho-progress-fill {
  position: absolute;
  top: 20px;
  right: 0;
  height: 2px;
  background: linear-gradient(270deg, var(--ho-primary), var(--ho-primary-lt));
  z-index: 1;
  transition: width .4s ease;
  width: 0%;
}
.ho-step-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}
.ho-step-node .node-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ho-card);
  border: 2px solid var(--ho-border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  color: var(--ho-muted);
  transition: all .3s;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.ho-step-node.active .node-circle {
  background: var(--ho-primary);
  border-color: var(--ho-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(79,70,229,.35);
  transform: scale(1.12);
}
.ho-step-node.done .node-circle {
  background: var(--ho-success);
  border-color: var(--ho-success);
  color: #fff;
}
.ho-step-node .node-label {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ho-muted);
  transition: color .3s;
}
.ho-step-node.active .node-label { color: var(--ho-primary); }
.ho-step-node.done   .node-label { color: var(--ho-success); }

/* ── Panels ── */
.ho-panel { display: none; animation: hoPanelIn .35s ease; }
.ho-panel.active { display: block; }
@keyframes hoPanelIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Titles ── */
.ho-section-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.ho-section-sub   { color: var(--ho-muted); margin-bottom: 28px; font-size: .95rem; }
.ho-input-label   { font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.ho-form-section-title { font-weight: 700; font-size: 1rem; margin-bottom: 14px; margin-top: 4px; }

/* ── Domain Cards ── */
.ho-domain-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.ho-domain-card {
  border: 2px solid var(--ho-border);
  border-radius: var(--ho-radius);
  padding: 22px 20px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  background: var(--ho-card);
  position: relative;
  overflow: hidden;
}
.ho-domain-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--ho-primary), var(--ho-primary-lt));
  opacity: 0;
  transition: opacity .25s;
}
.ho-domain-card:hover { transform: translateY(-3px); box-shadow: var(--ho-shadow); }
.ho-domain-card.selected {
  border-color: var(--ho-primary);
  box-shadow: var(--ho-shadow-lg);
  transform: translateY(-3px);
}
.ho-domain-card.selected::before { opacity: .05; }
.ho-domain-card .dc-icon  { font-size: 2rem; margin-bottom: 10px; display: block; }
.ho-domain-card .dc-title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.ho-domain-card .dc-desc  { font-size: .82rem; color: var(--ho-muted); }
.ho-domain-card .dc-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ho-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity .2s;
}
.ho-domain-card.selected .dc-badge { opacity: 1; }

/* ── Domain Input Area ── */
.ho-domain-input-area {
  background: var(--ho-bg);
  border: 1px solid var(--ho-border);
  border-radius: var(--ho-radius);
  padding: 22px;
  margin-bottom: 20px;
  display: none;
}
.ho-domain-input-area.visible { display: block; animation: hoPanelIn .3s ease; }

/* RTL input-group: button on left, input on right */
.ho-domain-input-area .input-group { flex-direction: row-reverse; }
.ho-domain-input-area .input-group .form-control {
  border-radius: 0 8px 8px 0 !important;
  border-left: 0;
  font-size: .95rem;
}
.ho-domain-input-area .input-group .btn {
  border-radius: 8px 0 0 8px !important;
}

.ho-avail-result { margin-top: 10px; font-size: .88rem; min-height: 22px; }
.ho-avail-result.ok       { color: var(--ho-success); }
.ho-avail-result.fail     { color: #ef4444; }
.ho-avail-result.checking { color: var(--ho-muted); }

/* ── Billing Cycle Tabs ── */
.ho-cycle-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.ho-cycle-tab {
  flex: 1;
  min-width: 100px;
  border: 2px solid var(--ho-border);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--ho-card);
  position: relative;
}
.ho-cycle-tab:hover { border-color: var(--ho-primary-lt); }
.ho-cycle-tab.selected {
  border-color: var(--ho-primary);
  background: linear-gradient(135deg, rgba(79,70,229,.06), rgba(129,140,248,.06));
}
.ho-cycle-tab .ct-name  { font-weight: 700; font-size: .9rem; }
.ho-cycle-tab .ct-price { font-size: .82rem; color: var(--ho-muted); margin-top: 2px; }
.ho-cycle-tab .ct-save {
  position: absolute;
  top: -10px; left: 8px;
  background: var(--ho-success);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

/* ── Config Grid ── */
.ho-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 640px) { .ho-config-grid { grid-template-columns: 1fr; } }

.ho-field-card {
  background: var(--ho-card);
  border: 1px solid var(--ho-border);
  border-radius: var(--ho-radius);
  padding: 18px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.ho-field-card label {
  font-weight: 700;
  font-size: .88rem;
  color: var(--ho-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ho-field-price {
  margin-top: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ho-success);
  text-align: left;
}
.ho-loading-card {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ho-muted);
  padding: 30px;
}

/* ── Slider ── */
.ho-slider-wrap { display: flex; align-items: center; gap: 12px; flex-direction: row-reverse; }
.ho-slider-wrap input[type=range] {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--ho-border);
  outline: none;
  cursor: pointer;
  direction: ltr;
}
.ho-slider-wrap input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--ho-primary);
  box-shadow: 0 2px 8px rgba(79,70,229,.4);
  cursor: pointer;
  transition: transform .15s;
}
.ho-slider-wrap input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.ho-slider-val {
  min-width: 80px;
  text-align: left;
  font-weight: 700;
  font-size: .95rem;
  color: var(--ho-primary);
  white-space: nowrap;
}

/* ── Resource Summary Table ── */
.ho-res-summary {
  background: var(--ho-bg);
  border: 1px solid var(--ho-border);
  border-radius: var(--ho-radius);
  padding: 20px;
  margin-top: 4px;
  margin-bottom: 24px;
}
.ho-res-summary-title {
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 14px;
  color: var(--ho-text);
}
.ho-res-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ho-res-table th {
  color: var(--ho-muted);
  font-weight: 700;
  padding: 6px 8px;
  border-bottom: 2px solid var(--ho-border);
  text-align: right;
}
.ho-res-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--ho-border);
  vertical-align: middle;
  text-align: right;
}
.ho-res-table tr:last-child td { border-bottom: 0; }
.ho-res-table .td-price {
  font-weight: 700;
  color: var(--ho-primary);
  text-align: left;
  white-space: nowrap;
}
.ho-res-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--ho-border);
  font-weight: 800;
  font-size: 1rem;
}
.ho-res-subtotal .rs-price { color: var(--ho-primary); }

/* ── Order Summary Sidebar ── */
.ho-summary {
  background: var(--ho-card);
  border: 1px solid var(--ho-border);
  border-radius: var(--ho-radius);
  padding: 24px;
  box-shadow: var(--ho-shadow);
  position: sticky;
  top: 20px;
}
.ho-summary-header {
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ho-border);
}
.ho-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--ho-border);
  font-size: .88rem;
}
.ho-summary-line:last-of-type { border-bottom: 0; }
.ho-summary-line .sl-label { color: var(--ho-muted); }
.ho-summary-line .sl-val   { font-weight: 600; text-align: left; }
.ho-summary-total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid var(--ho-border);
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 800;
}
.ho-summary-total .st-price { color: var(--ho-primary); }

/* ── Payment Gateways ── */
.ho-gateways {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.ho-gateway {
  border: 2px solid var(--ho-border);
  border-radius: 10px;
  padding: 14px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .2s;
  background: var(--ho-card);
  font-weight: 600;
  font-size: .9rem;
}
.ho-gateway:hover { border-color: var(--ho-primary-lt); }
.ho-gateway.selected { border-color: var(--ho-primary); background: rgba(79,70,229,.04); }
.ho-gateway img { height: 22px; object-fit: contain; }

/* ── Account Grid ── */
.ho-account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 640px) { .ho-account-grid { grid-template-columns: 1fr; } }
.ho-account-grid .full { grid-column: 1 / -1; }
.ho-account-grid .form-control {
  border-radius: 8px;
  border: 1.5px solid var(--ho-border);
  padding: 10px 14px;
  font-size: .93rem;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  transition: border-color .2s, box-shadow .2s;
}
.ho-account-grid .form-control:focus {
  border-color: var(--ho-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
  outline: none;
}

/* ── Promo RTL ── */
.ho-promo { flex-direction: row-reverse; }
.ho-promo .form-control {
  border-radius: 0 8px 8px 0 !important;
  border: 1.5px solid var(--ho-border);
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}
.ho-promo .btn { border-radius: 8px 0 0 8px !important; }

/* ── ToS ── */
.ho-tos { font-size: .88rem; color: var(--ho-muted); }
.ho-tos a { color: var(--ho-primary); }

/* ── Logged-in ── */
.ho-logged-in {
  background: linear-gradient(135deg, rgba(16,185,129,.08), rgba(16,185,129,.03));
  border: 1px solid rgba(16,185,129,.3);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: .93rem;
  color: #065f46;
}

/* ── Buttons ── */
.ho-btn-next, .ho-btn-back, .ho-btn-order {
  border-radius: 10px;
  font-weight: 700;
  padding: 12px 28px;
  font-size: .95rem;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  transition: all .2s;
  border: none;
  cursor: pointer;
}
.ho-btn-next {
  background: linear-gradient(135deg, var(--ho-primary), var(--ho-primary-lt));
  color: #fff;
  box-shadow: 0 4px 14px rgba(79,70,229,.35);
}
.ho-btn-next:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79,70,229,.45); }
.ho-btn-back {
  background: transparent;
  border: 1.5px solid var(--ho-border);
  color: var(--ho-muted);
}
.ho-btn-back:hover { border-color: var(--ho-primary); color: var(--ho-primary); }
.ho-btn-order {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--ho-success), #059669);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16,185,129,.35);
  margin-top: 20px;
}
.ho-btn-order:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(16,185,129,.45); }

/* ── Actions row ── */
.ho-actions { display: flex; justify-content: flex-start; margin-top: 16px; }
.ho-actions-between { justify-content: space-between; }

/* ── Alert ── */
.ho-alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 14px 18px;
  color: #991b1b;
  margin-bottom: 20px;
  font-size: .93rem;
}

/* ── Login Wall ── */
.ho-login-wall {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 16px;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}
.ho-login-box {
  background: #fff;
  border: 1px solid var(--ho-border, #e2e8f0);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,.10);
}
.ho-login-icon { font-size: 3rem; margin-bottom: 16px; }
.ho-login-box h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.ho-login-box p  { color: var(--ho-muted, #64748b); font-size: .95rem; margin-bottom: 28px; }
.ho-login-btns   { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ho-btn-login, .ho-btn-register {
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  text-decoration: none;
  transition: all .2s;
}
.ho-btn-login {
  background: linear-gradient(135deg, var(--ho-primary, #4f46e5), var(--ho-primary-lt, #818cf8));
  color: #fff;
  box-shadow: 0 4px 14px rgba(79,70,229,.35);
}
.ho-btn-login:hover  { transform: translateY(-2px); color: #fff; }
.ho-btn-register {
  background: transparent;
  border: 1.5px solid var(--ho-border, #e2e8f0);
  color: var(--ho-muted, #64748b);
}
.ho-btn-register:hover { border-color: var(--ho-primary, #4f46e5); color: var(--ho-primary, #4f46e5); }

/* ── Hourly Badge ── */
.ho-hourly-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(79,70,229,.08), rgba(129,140,248,.08));
  border: 1px solid rgba(79,70,229,.2);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ho-primary, #4f46e5);
  margin-bottom: 20px;
}

/* ── Estimate Rows ── */
.ho-res-estimates {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--ho-border, #e2e8f0);
}
.ho-est-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: .88rem;
  color: var(--ho-muted, #64748b);
}
.ho-est-row span:last-child { font-weight: 700; color: var(--ho-text, #1e293b); }

/* ── Toast ── */
#ho-toast { font-family: 'Vazirmatn', Tahoma, sans-serif; }
#ho-toast strong { font-weight: 800; }

/* ── Credit Card (step 3) ── */
.ho-credit-card {
  background: linear-gradient(135deg, rgba(79,70,229,.07), rgba(16,185,129,.07));
  border: 1.5px solid rgba(79,70,229,.25);
  border-radius: var(--ho-radius);
  padding: 22px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ho-credit-label  { font-weight: 700; font-size: 1rem; color: var(--ho-text); }
.ho-credit-amount { font-weight: 800; font-size: 1.2rem; color: var(--ho-primary); }
