.btn-full {
  width: 100%;
}
.btn-g {
  background: #17b57e;
  border-color: #17b57e;
}
.btn-g:hover {
  background: #119a69;
}
.btn-r {
  background: #f43f5e;
  border-color: #f43f5e;
}
.btn-r:hover {
  background: #e11d48;
}
.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin: 12px 0;
}
.alert.err {
  background: #fff1f2;
  color: #be123c;
}
.alert.ok {
  background: #e6f7f0;
  color: #0f8a5f;
}
.fg label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  color: #475569;
}
.fg label span {
  color: #ef4444;
}
.fg input,
.fg textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  background: #f9fbff;
}
.fg input:focus,
.fg textarea:focus {
  border-color: #9cc3ff;
  box-shadow: 0 0 0 3px #e6efff;
}
.fg input:disabled {
  background: #eef1f6;
  color: #7b879a;
}
.auth {
  min-height: 70vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f3f4f6, #e0e7ff);
  padding: 30px 0;
}
.acard {
  background: #fff;
  border-radius: 16px;
  padding: 34px;
  width: min(400px, 94%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.acard h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
}
.acard .sub {
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0 16px;
}
.acard input.otp {
  letter-spacing: 10px;
  text-align: center;
  direction: ltr;
  font-size: 20px;
}
.pwrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  padding: 26px 0;
  align-items: start;
}
.pside,
.pmain,
.pcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.pside .who {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.pside .who i {
  font-size: 38px;
  color: var(--blue);
}
.pside small {
  color: var(--muted);
}
.wal {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  background: #f6f9ff;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 14px;
}
.wal b {
  display: block;
  color: #17a06f;
  font-size: 16px;
}
.pmenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  color: #44546a;
  margin-bottom: 3px;
}
.pmenu a:hover,
.pmenu a.on {
  background: #f1f5f9;
  color: var(--navy);
}
.pmenu a.off {
  opacity: 0.45;
  pointer-events: none;
}
.pmenu a.out {
  color: #e11d48;
}
.pmain h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}
.frm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
table.ot {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 14px;
  min-width: 480px;
}
.ot th {
  background: #f1f6ff;
  text-align: right;
  padding: 10px;
}
.ot td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.st {
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
}
.st.pending {
  background: #fff7e0;
  color: #b7791f;
}
.st.paid,
.st.processing {
  background: #e3edff;
  color: #1d63ed;
}
.st.done {
  background: #d9f5e9;
  color: #0f8a5f;
}
.st.canceled {
  background: #fee2e2;
  color: #be123c;
}
.pay {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
  padding: 30px 0;
  align-items: start;
}
.sumbox {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.sumrow {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14.5px;
  color: #6b7280;
  margin-bottom: 12px;
}
.sumrow:first-child {
  color: #111827;
  font-size: 15px;
}
.sumrow .g {
  color: #17a06f;
}
.sumrow.tot {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin: 0;
  color: #111827;
  font-weight: 700;
}
.optbox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
}
.optbox b {
  font-size: 14.5px;
}
.optbox p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
}
.sw {
  position: relative;
  width: 46px;
  height: 24px;
  flex: none;
}
.sw input {
  opacity: 0;
  width: 0;
  height: 0;
}
.sw i {
  position: absolute;
  inset: 0;
  background: #e5e7eb;
  border-radius: 34px;
  transition: 0.3s;
}
.sw i:before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  right: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
.sw input:checked + i {
  background: #fbbf24;
}
.sw input:checked + i:before {
  transform: translateX(-22px);
}
.sw input:disabled + i {
  opacity: 0.5;
}
.terms {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
  margin: 14px 0;
}
.terms a {
  color: var(--blue);
}
.acts {
  display: flex;
  gap: 12px;
}
.acts .btn {
  flex: 1;
  padding: 11px;
}
@media (max-width: 860px) {
  .pwrap,
  .pay {
    grid-template-columns: 1fr;
  }
  .frm {
    grid-template-columns: 1fr;
  }
}
/* admin */
.adm {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  padding: 24px 0;
  align-items: start;
}
.adm .pmenu a .n {
  margin-right: auto;
  background: #f43f5e;
  color: #fff;
  border-radius: 20px;
  font-size: 12.5px;
  padding: 0 7px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 14px 0;
}
.stat2 {
  background: #f6f9ff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.stat2 b {
  display: block;
  font-size: 20px;
  color: var(--blue);
}
.stat2 span {
  font-size: 13.5px;
  color: var(--muted);
}
.frm .full {
  grid-column: 1/-1;
}
.fg select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  background: #f9fbff;
}
.inl {
  display: flex;
  gap: 6px;
  align-items: center;
}
.inl input,
.inl select {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  width: 110px;
}
.inl select {
  width: auto;
}
.mini {
  padding: 5px 11px;
  font-size: 13px;
  border-radius: 6px;
}
.ot .off td {
  opacity: 0.5;
}
.ot h3 {
  font-size: 14.5px;
}
.cat-row td {
  background: #f6f9ff;
  font-weight: 800;
  color: var(--navy);
}
.lnk {
  color: var(--blue);
  font-size: 14px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.lnk.d {
  color: #e11d48;
}
@media (max-width: 860px) {
  .adm {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== تیکت و مدارک ===== */
.nb {
  margin-right: auto;
  background: #f43f5e;
  color: #fff;
  border-radius: 20px;
  font-size: 12.5px;
  padding: 0 7px;
  line-height: 18px;
}
.psub {
  font-size: 14px;
  color: var(--muted);
  margin: 2px 0 8px;
}
.alert.warn {
  background: #fff8e6;
  color: #8a5a00;
  border: 1px solid #f3dc9a;
}
.alert.warn a {
  text-decoration: underline;
  font-weight: 700;
}
.pmain {
  min-width: 0;
}
.ordsel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
}
.ordsel label {
  font-size: 14px;
  color: #475569;
  white-space: nowrap;
}
.ordsel select,
.tform select {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14.5px;
  background: #f9fbff;
}
.needbox {
  background: #f1f6ff;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.needbox b {
  font-size: 14px;
  color: var(--navy);
}
.needbox ul {
  margin-top: 6px;
}
.needbox li {
  font-size: 14px;
  color: #3f4e66;
  margin: 5px 0;
}
.needbox li i {
  color: var(--green);
  margin-left: 6px;
  font-size: 13px;
}
.upl {
  margin: 14px 0 22px;
}
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  border: 2px dashed #b9cff7;
  background: #f8fbff;
  border-radius: 14px;
  padding: 26px 14px;
  cursor: pointer;
  transition: 0.2s;
}
.drop:hover,
.drop.on {
  border-color: var(--blue);
  background: #eef4fe;
}
.drop i {
  font-size: 32px;
  color: var(--blue);
}
.drop b {
  font-size: 14.5px;
  color: var(--navy);
}
.drop small {
  font-size: 13px;
  color: var(--muted);
}
.picked {
  margin: 10px 0;
}
.picked li {
  font-size: 14px;
  color: #3f4e66;
  padding: 6px 10px;
  background: #f1f6ff;
  border-radius: 6px;
  margin-bottom: 5px;
  word-break: break-all;
}
.picked li.bad {
  background: #fff1f2;
  color: #be123c;
}
.upl .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.sech {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin: 6px 0 10px;
}
.dlist li {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.dlist .dic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #e8f0ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: none;
}
.dlist .dn {
  flex: 1;
  min-width: 0;
}
.dlist .dn a {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.dlist .dn a:hover {
  color: var(--blue);
}
.dlist small {
  font-size: 13px;
  color: var(--muted);
}
.dlist .del {
  color: #e11d48;
  border-color: #fecdd3;
}
.dlist .del:hover {
  background: #fff1f2;
}
.hint {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 14px;
}
.hint a {
  color: var(--blue);
}
.thead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.tform {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.tform textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14.5px;
  background: #f9fbff;
  resize: vertical;
}
.acts2 {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chat {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}
.bub {
  max-width: 88%;
  border-radius: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
}
.bub.me {
  background: #eef4fe;
  border-color: #d4e2fb;
  justify-self: start;
}
.bub.adm {
  background: #e9f8f1;
  border-color: #bfe9d6;
  justify-self: end;
}
.bub .bh {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.bub .bh b {
  color: var(--navy);
  font-size: 14px;
}
.bub p {
  font-size: 14.5px;
  line-height: 2;
  overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .bub {
    max-width: 100%;
  }
  .ordsel {
    flex-direction: column;
    align-items: stretch;
  }
}

/* کیف پول در صفحه پرداخت */
.walbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #bfe9d6;
  background: #effaf5;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.walbox.zero {
  border-color: var(--line);
  background: #f6f8fb;
}
.walbox .wl {
  display: flex;
  align-items: center;
  gap: 10px;
}
.walbox .wl > i {
  font-size: 22px;
  color: #17a06f;
}
.walbox.zero .wl > i {
  color: #9aa6b8;
}
.walbox b {
  display: block;
  font-size: 14.5px;
  color: var(--navy);
}
.walbox small {
  font-size: 14px;
  color: #4b586c;
}
.paybtns {
  display: grid;
  gap: 10px;
}
.paybtns .btn {
  line-height: 1.7;
  text-align: center;
}
.wnote {
  font-size: 13.5px;
  color: var(--muted);
}
.wnote a {
  color: var(--blue);
  text-decoration: underline;
}

/* لیست تیکت‌ها: کارت‌های دسته‌بندی */
.tstats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.tst {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 18px 8px;
  text-align: center;
  transition: 0.2s;
}
.tst i {
  font-size: 24px;
  color: var(--c);
}
.tst span {
  font-size: 14px;
  color: var(--navy);
}
.tst b {
  font-size: 16px;
  color: var(--navy);
}
.tst:hover {
  background: #f1f5f9;
}
.tst.on {
  background: #fff;
  border-color: var(--c);
  box-shadow: 0 4px 14px rgba(15, 35, 66, 0.08);
}
.tempty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 22px 14px;
  text-align: center;
}
.tempty b {
  font-size: 15px;
  color: var(--navy);
}
.tempty span {
  font-size: 14px;
  color: var(--muted);
}
.tempty a {
  color: var(--blue);
}
@media (max-width: 560px) {
  .tstats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* صفحه ثبت سفارش: اطلاعات (راست) ← پرداخت (چپ) */
.pay {
  grid-template-columns: 1.1fr 1fr;
}
.ph {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
.ph .pn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex: none;
}
.afterbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  background: #eef5ff;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.9;
  color: #33415a;
}
.afterbox i {
  color: var(--blue);
  margin-top: 5px;
}
.pcard .terms {
  margin: 14px 0;
}
.pay .pcard:nth-of-type(2) {
  position: sticky;
  top: 78px;
}
.pbar {
  display: none;
}
@media (max-width: 860px) {
  .pay {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding-top: 18px;
  }
  .pay .pcard {
    padding: 16px;
    min-width: 0;
  }
  .pay .pcard:nth-of-type(2) {
    position: static;
  }
  .pay {
    padding-bottom: 96px;
  }
  .pbar {
    display: flex;
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 80;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 28px rgba(15, 35, 66, 0.14);
    transition: transform 0.3s;
  }
  .pbar.hide {
    transform: translateY(120%);
  }
  .pbar .pt small {
    display: block;
    font-size: 12.5px;
    color: var(--muted);
  }
  .pbar .pt b {
    font-size: 16px;
    color: var(--navy);
  }
  .pbar .btn {
    padding: 12px 26px;
    font-size: 15.5px;
  }
  .sumrow {
    flex-wrap: wrap;
  }
  .sumrow > span:last-child,
  .sumrow > b:last-child {
    text-align: left;
  }
  .optbox {
    padding: 12px 14px;
  }
  .fg input,
  .fg textarea {
    font-size: 16px;
  }
}

/* فرم اطلاعات بعد از پرداخت */
.infof {
  display: grid;
  gap: 12px;
  margin: 8px 0 22px;
}
.fh {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.infof .btn {
  justify-self: start;
}
.cf-chk {
  margin: 4px 0;
}
