/* پنل مشتریان هکفاپارک — روی style.css سوار می‌شود */

.p-body { background: var(--cream); min-height: 100vh; }

/* topbar */
.p-topbar {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 4px solid var(--orange);
}
.p-topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.p-topbar .brand-name { color: #fff; }
.p-topbar .brand-name b { color: var(--orange); }
.p-nav { display: flex; align-items: center; gap: 18px; }
.p-nav a { color: #ffd9a8; text-decoration: none; font-size: 0.9rem; font-weight: 700; }
.p-nav a:hover { color: var(--orange); }
.p-nav .btn { color: #fff; }
.p-logout { opacity: 0.7; }

.p-main { padding: 34px 20px 70px; }
.p-narrow { max-width: 640px; }
.p-page-title { font-size: 1.5rem; margin-bottom: 22px; }
.p-head-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.p-head-row h1 { font-size: 1.4rem; }
.p-flash {
  background: #e3f4ea; color: #1c7c46; border: 1.5px solid #1c7c46;
  border-radius: 12px; padding: 12px 16px; font-weight: 700; margin-bottom: 18px; font-size: 0.9rem;
}
.p-error {
  background: #fde8e6; color: #b3402f; border: 1.5px solid #b3402f;
  border-radius: 10px; padding: 10px 14px; font-weight: 700; margin-bottom: 12px; font-size: 0.86rem;
}
.hint-line { color: var(--muted); font-size: 0.82rem; }

/* auth cards */
.p-auth { display: grid; place-items: center; padding: 50px 20px; }
.p-auth-card {
  width: 100%; max-width: 420px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.p-auth-card h1 { font-size: 1.25rem; margin-bottom: 8px; }
.p-sub-text { color: var(--muted); font-size: 0.88rem; margin-bottom: 12px; }
.p-auth-art svg { width: 180px; display: block; margin: 0 auto 8px; }
.p-form { display: flex; flex-direction: column; gap: 13px; margin-top: 10px; }
.p-form label { font-size: 0.85rem; font-weight: 700; display: flex; flex-direction: column; gap: 6px; }
.p-form input, .p-form select {
  padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: 10px;
  font: inherit; background: #fff;
}
.p-form input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.btn-block { width: 100%; text-align: center; }
.btn-lg { padding: 15px 34px; font-size: 1.02rem; }
.p-switch { text-align: center; margin-top: 16px; font-size: 0.86rem; }
.p-switch a { color: var(--orange-dark); font-weight: 700; }

/* membership ticket cards */
.mcard-list { display: flex; flex-direction: column; gap: 18px; }
.mcard {
  display: grid;
  grid-template-columns: 1fr 150px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.mcard-dim { opacity: 0.82; }
.mcard-main { padding: 22px 26px; }
.mcard-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.mcard-title-row h2 { font-size: 1.12rem; }
.mcard-sub { color: var(--muted); font-size: 0.84rem; margin-bottom: 6px; }
.mcard-plan { font-weight: 700; font-size: 0.9rem; color: var(--orange-dark); margin-bottom: 12px; }
.mcard-dates { display: flex; gap: 22px; font-size: 0.82rem; font-weight: 700; margin: 10px 0 8px; }
.p-meter { height: 9px; background: var(--cream-deep); border-radius: 999px; overflow: hidden; }
.p-meter i { display: block; height: 100%; background: var(--orange); border-radius: 999px; }
.mcard-stub {
  border-right: 3px dashed var(--ink);
  background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 16px 10px;
}
.stub-big { font-size: 2rem; font-weight: 700; color: var(--orange); line-height: 1; }
.stub-cap { font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.stub-id { font-size: 0.7rem; color: var(--muted); letter-spacing: 1px; }
.pbadge { padding: 3px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; border: 1.5px solid; }
.pb-green { color: #1c7c46; border-color: #1c7c46; background: #e3f4ea; }
.pb-orange { color: var(--orange-dark); border-color: var(--orange-dark); background: #fff3e6; }
.pb-gray { color: var(--muted); border-color: var(--muted); background: #f1ece2; }
.pb-red { color: #b3402f; border-color: #b3402f; background: #fde8e6; }

/* empty state */
.p-empty { text-align: center; padding: 50px 20px; }
.p-empty svg { width: 220px; margin-bottom: 8px; }
.p-empty h2 { margin-bottom: 6px; }
.p-empty p { color: var(--muted); margin-bottom: 18px; }

/* Iranian license plate */
.ir-plate {
  display: inline-flex;
  align-items: stretch;
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  font-weight: 700;
  margin: 6px 0 10px;
  direction: ltr;
}
.ir-flag {
  background: #003da5;
  color: #fff;
  font-size: 0.62rem;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 4px 5px;
  width: 26px;
}
.ir-num, .ir-letter { display: flex; align-items: center; padding: 8px 12px; font-size: 1.15rem; }
.ir-letter { background: var(--cream); }
.ir-iran {
  border-left: 2.5px solid var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3px 10px; font-size: 1rem; line-height: 1.1;
}
.ir-iran small { font-size: 0.58rem; }
/* input variant */
.ir-plate-input input, .ir-plate-input select {
  border: none; width: 62px; text-align: center;
  font: inherit; font-size: 1.15rem; font-weight: 700; background: transparent;
}
.ir-plate-input select { width: 86px; background: var(--cream); }
.ir-plate-input input:focus, .ir-plate-input select:focus { outline: 2px solid var(--orange); outline-offset: -2px; }
.ir-iran-wrap {
  border-left: 2.5px solid var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3px 4px;
}
.ir-iran-wrap small { font-size: 0.6rem; font-weight: 700; }
.ir-iran-wrap input { width: 46px; font-size: 1rem; }

/* buy wizard */
.p-step {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}
.p-step-head {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 22px;
  border-bottom: 2px solid var(--ink);
  background: var(--cream);
}
.p-step-head h2 { font-size: 1rem; }
.p-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.p-step-body { padding: 20px 22px; }
.p-selects { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.p-selects select, .p-selects input {
  padding: 11px 14px; border: 1.5px solid var(--ink); border-radius: 10px;
  font: inherit; background: #fff; min-width: 170px; flex: 1;
}
.b-parkings { display: flex; flex-direction: column; gap: 8px; max-height: 330px; overflow-y: auto; }
.b-parkings.shake { animation: b-shake 0.5s; }
@keyframes b-shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(6px)} 75%{transform:translateX(-6px)} }
.b-park {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--ink); border-radius: 12px;
  padding: 10px 14px; cursor: pointer; background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.b-park input { display: none; }
.b-park.on { border-color: var(--orange); background: #fff3e6; box-shadow: 0 0 0 2px var(--orange); }
.b-park-p {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 0;
  background: var(--orange); color: #fff; font-weight: 700;
  display: grid; place-items: center; transform: rotate(0deg); flex-shrink: 0;
}
.b-park-info { display: flex; flex-direction: column; }
.b-park-info small { color: var(--muted); font-size: 0.78rem; }
.b-park-cap { margin-right: auto; font-size: 0.76rem; font-weight: 700; color: var(--ink); white-space: nowrap; }

.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.plan-card input { display: none; }
.plan-inner {
  display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center;
  border: 1.5px solid var(--ink); border-radius: 14px;
  padding: 18px 12px; cursor: pointer; height: 100%; background: #fff;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.plan-card input:checked + .plan-inner {
  border-color: var(--orange); box-shadow: 0 0 0 2.5px var(--orange);
  transform: translateY(-3px); background: #fff3e6;
}
.plan-title { font-weight: 700; }
.plan-price { color: var(--orange-dark); font-weight: 700; font-size: 1.05rem; }
.plan-price small { font-size: 0.7rem; }
.plan-days { font-size: 0.78rem; color: var(--muted); font-weight: 700; }
.plan-desc { font-size: 0.74rem; color: var(--muted); }
.p-buy-foot { text-align: center; padding: 6px 0 20px; }

/* payment */
.pay-summary {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 20px;
}
.pay-summary > div {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1.5px dashed var(--cream-deep); font-size: 0.9rem;
}
.pay-summary > div:last-child { border-bottom: none; }
.pay-summary span { color: var(--muted); font-weight: 700; }
.pay-total strong { color: var(--orange-dark); font-size: 1.15rem; }
.pay-or { text-align: center; color: var(--muted); font-weight: 700; margin: 14px 0; }
.pay-card-box {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 22px 24px;
}
.pay-card-box h2 { font-size: 1rem; margin-bottom: 8px; }
.pay-card-number {
  background: var(--ink); color: #ffd9a8;
  font-size: 1.25rem; font-weight: 700; letter-spacing: 3px;
  border-radius: 12px; padding: 14px; text-align: center; margin: 10px 0;
}

@media (max-width: 860px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .mcard { grid-template-columns: 1fr 110px; }
  .p-nav { gap: 10px; font-size: 0.8rem; }
}
@media (max-width: 520px) {
  .plan-grid { grid-template-columns: 1fr; }
  .ir-plate-input input { width: 48px; font-size: 1rem; }
  .ir-plate-input select { width: 70px; }
}

/* gender pills */
.g-pills { display: flex; gap: 10px; margin-top: 2px; }
.g-pill { flex: 1; }
.g-pill input { display: none; }
.g-pill span {
  display: block; text-align: center;
  padding: 11px 10px;
  border: 1.5px solid var(--ink); border-radius: 10px;
  background: #fff; cursor: pointer; font-weight: 700;
  transition: all 0.15s ease;
}
.g-pill input:checked + span {
  background: var(--orange); border-color: var(--orange); color: #fff;
}
