/* ========== پنل کاربری شبیه 1xPanel ========== */
.xo-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 14px 100px;
}
.xo-card {
  background: rgba(16,16,28,.88);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 18px 16px 22px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.xo-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.xo-tab {
  flex: 1;
  min-width: max-content;
  text-align: center;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: .2s;
}
.xo-tab.active {
  background: linear-gradient(135deg, rgba(139,92,246,.3), rgba(124,58,237,.2));
  border-color: rgba(139,92,246,.45);
  color: #fff;
  box-shadow: 0 4px 16px rgba(139,92,246,.2);
}
.xo-tab:hover { color: #fff; }

.xo-form { display: flex; flex-direction: column; gap: 14px; }
.xo-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.xo-select-wrap { position: relative; }
.xo-select, .xo-input {
  width: 100%;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.xo-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a0a8c0' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
}
.xo-select:focus, .xo-input:focus {
  border-color: rgba(139,92,246,.55);
  box-shadow: 0 0 0 3px rgba(139,92,246,.15);
}
.xo-select:disabled, .xo-input:disabled { opacity: .55; }
.xo-hint { display: block; margin-top: 6px; font-size: 11.5px; color: var(--text-muted); }
.xo-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  background: rgba(139,92,246,.08);
  border: 1px solid rgba(139,92,246,.15);
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.6;
  margin: 0;
}

.xo-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.xo-meta-item {
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}
.xo-meta-item span { display: block; font-size: 10.5px; color: var(--text-muted); margin-bottom: 4px; }
.xo-meta-item strong { font-size: 13px; font-weight: 800; color: #c4b5fd; }

.xo-charge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(139,92,246,.1));
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 14px;
  padding: 14px 16px;
}
.xo-charge span { display: block; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.xo-charge small { font-size: 11px; color: var(--text-muted); }
.xo-charge strong { font-size: 18px; font-weight: 800; color: #4ade80; }

.xo-submit {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(124,58,237,.35);
  transition: .2s;
}
.xo-submit:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.xo-submit:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* لیست خدمات */
.svc-toolbar { margin-bottom: 14px; }
.svc-filters {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px;
}
.svc-filters .grow { flex: 1; min-width: 160px; }
.svc-search-box {
  flex: 1.2; min-width: 160px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 0 12px;
}
.svc-search-box i { color: var(--text-muted); font-size: 13px; }
.svc-search-box input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text-primary); font-family: inherit; font-size: 13px;
  padding: 12px 0;
}
.svc-count { font-size: 12px; color: var(--text-muted); font-weight: 600; }

.svc-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
}
.svc-table {
  width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 640px;
}
.svc-table th {
  text-align: right; padding: 11px 12px;
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  background: rgba(0,0,0,.3);
  border-bottom: 1px solid rgba(255,255,255,.06);
  white-space: nowrap;
}
.svc-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  color: var(--text-secondary);
  vertical-align: middle;
}
.svc-table tr:last-child td { border-bottom: none; }
.svc-table tr:hover td { background: rgba(139,92,246,.05); }
.svc-table .sid {
  font-family: ui-monospace, monospace;
  color: #22d3ee; font-weight: 700; font-size: 12px;
}
.svc-table .sname strong { display: block; color: var(--text-primary); font-size: 12.5px; }
.svc-table .sname small { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.svc-table .srate { color: #c4b5fd; font-weight: 700; white-space: nowrap; }
.svc-table .srate small { color: var(--text-muted); font-weight: 600; }
.cat-tag {
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  color: var(--text-muted);
}
.svc-pager {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 16px;
}

/* Bottom nav موبایل */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: rgba(10,10,18,.94);
  border-top: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: center;
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text-muted); text-decoration: none;
  font-size: 10px; font-weight: 700; padding: 6px 8px;
  min-width: 56px;
}
.bottom-nav a i { font-size: 18px; }
.bottom-nav a.active { color: #a78bfa; }
.bottom-nav .bn-center {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #fff !important;
  display: flex; align-items: center; justify-content: center;
  margin-top: -22px;
  box-shadow: 0 6px 20px rgba(124,58,237,.45);
  border: 3px solid #0a0a12;
  font-size: 20px;
  padding: 0;
}
.bottom-nav .bn-center span { display: none; }

@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  body { padding-bottom: 72px; }
  .header .nav-desktop { display: none; }
}

/* ردیف آیکون پلتفرم‌ها — شبیه 1xPanel */
.plat-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.plat-row::-webkit-scrollbar { display: none; }
.plat-btn {
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 14px;
  transition: .2s;
}
.plat-btn .plat-ico {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  border: 2px solid transparent;
  background: rgba(255,255,255,.06);
  color: #e2e8f0;
  transition: .2s;
}
.plat-btn:hover .plat-ico {
  transform: translateY(-2px);
  border-color: rgba(139,92,246,.35);
}
.plat-btn.active .plat-ico {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139,92,246,.25), 0 6px 16px rgba(139,92,246,.2);
  transform: translateY(-2px);
}
