/* account & panel pages — رنگی: سبز برند #19a389 / سرمه‌ای #0b2238 */

.ac-page {
  min-height: 100vh;
  background: #f2f5f9;
  font-family: IRANSansWebFaNum, IRANSans, Tahoma, sans-serif;
  color: #22303f;
}

.ac-topbar {
  background: #0b2238;
  color: #fff;
  box-shadow: 0 2px 10px rgba(11, 34, 56, 0.25);
  position: sticky;
  top: 0;
  z-index: 50;
}

.ac-topbar-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ac-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}

.ac-brand img {
  height: 36px;
  border-radius: 8px;
  background: #fff;
  padding: 2px;
}

.ac-topnav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ac-topnav a {
  color: #dbe6ef;
  text-decoration: none;
  font-size: 13.5px;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.ac-topnav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.ac-topnav a.ac-nav-cta {
  background: #19a389;
  color: #fff;
  font-weight: 700;
}

.ac-topnav a.ac-nav-cta:hover {
  background: #12806b;
}

.ac-topnav button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.ac-main {
  max-width: 980px;
  margin: 30px auto;
  padding: 0 20px 60px;
}

.ac-panel {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(11, 34, 56, 0.08);
  padding: 28px;
  margin-bottom: 22px;
}

.ac-panel-title {
  color: #0b2238;
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 6px;
}

.ac-panel-sub {
  color: #6b7a8c;
  font-size: 14px;
  margin: 0 0 20px;
}

.ac-note {
  color: #6b7a8c;
  font-size: 13.5px;
  line-height: 1.9;
}

.ac-note a {
  color: #19a389;
  font-weight: 700;
}

.ac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.ac-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: #3c4b5d;
  font-weight: 600;
}

.ac-field span {
  color: #55657a;
}

.ac-field input[type="text"],
.ac-field input[type="email"],
.ac-field input[type="password"],
.ac-field input[type="tel"],
.ac-field input[type="number"],
.ac-field textarea,
.ac-field select {
  width: 100%;
  border: 1.5px solid #dde5ee;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #22303f;
  background: #fbfcfe;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ac-field input:focus,
.ac-field textarea:focus,
.ac-field select:focus {
  outline: none;
  border-color: #19a389;
  box-shadow: 0 0 0 3px rgba(25, 163, 137, 0.15);
  background: #fff;
}

.ac-field input[type="file"] {
  padding: 10px;
  border: 1.5px dashed #c6d2df;
  border-radius: 10px;
  background: #fbfcfe;
  width: 100%;
}

.ac-legend {
  color: #0b2238;
  font-weight: 800;
  font-size: 14.5px;
  margin: 22px 0 10px;
  padding-top: 14px;
  border-top: 1px dashed #e2e9f1;
}

.ac-hint {
  color: #8a98a8;
  font-size: 12.5px;
  margin: 6px 0 0;
  line-height: 1.8;
}

.ac-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ac-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f6f9;
  border: 1px solid #dce6ee;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: #3c4b5d;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.ac-check:hover {
  border-color: #19a389;
}

.ac-check input {
  accent-color: #19a389;
}

.ac-check.has-active {
  background: #e3f4f0;
  border-color: #19a389;
}

.ac-dob {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* buttons */
.ac-btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  font-family: inherit;
}

.ac-btn:active {
  transform: translateY(1px);
}

.ac-btn-primary {
  background: #19a389;
  color: #fff;
}

.ac-btn-primary:hover {
  background: #12806b;
  color: #fff;
}

.ac-btn-ghost {
  background: transparent;
  border: 1.5px solid #c6d2df;
  color: #22303f;
  font-size: 13.5px;
  padding: 8px 16px;
}

.ac-btn-ghost:hover {
  border-color: #19a389;
  color: #19a389;
}

.ac-btn-danger {
  background: #fff;
  border: 1.5px solid #e55f6d;
  color: #e55f6d;
}

.ac-btn-danger:hover {
  background: #e55f6d;
  color: #fff;
}

.ac-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* alerts & messages */
.ac-alert {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.9;
  margin: 12px 0;
}

.ac-alert-error {
  background: #fdebec;
  border: 1px solid #f7cdd1;
  color: #b33642;
}

.ac-alert-info {
  background: #eaf3ff;
  border: 1px solid #cfe1fb;
  color: #1d5bbf;
}

.ac-alert-ok {
  background: #e6f7f2;
  border: 1px solid #b9e6d9;
  color: #116b58;
}

.ac-hidden {
  display: none !important;
}

.ac-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.ac-pay-ok {
  color: #116b58;
  font-weight: 700;
  font-size: 14.5px;
}

/* kid list (account dashboard) */
.ac-kid-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 6px;
  border-bottom: 1px solid #edf2f7;
}

.ac-kid-item:last-child {
  border-bottom: none;
}

.ac-kid-thumb {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
  background: #e9eef4;
  flex-shrink: 0;
}

.ac-kid-info {
  flex: 1;
  min-width: 0;
}

.ac-kid-info h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #0b2238;
  font-weight: 800;
}

.ac-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ac-chip {
  display: inline-flex;
  align-items: center;
  background: #edf2f7;
  color: #3c4b5d;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 11.5px;
  font-weight: 700;
}

.ac-chip-ok {
  background: #e6f7f2;
  color: #116b58;
}

.ac-chip-warn {
  background: #fff3e0;
  color: #a05f00;
}

.ac-chip-err {
  background: #fdebec;
  color: #b33642;
}

.ac-chip-green {
  background: #e3f4f0;
  color: #12806b;
}

.ac-feat {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  vertical-align: middle;
}

.ac-empty {
  text-align: center;
  padding: 40px 0;
  color: #6b7a8c;
}

.ac-empty .ac-btn {
  margin-top: 12px;
}

/* specs table */
.ac-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ac-specs th,
.ac-specs td {
  text-align: right;
  padding: 10px 12px;
  border-bottom: 1px solid #edf2f7;
  vertical-align: middle;
}

.ac-specs th {
  color: #55657a;
  font-weight: 700;
  width: 150px;
  font-size: 13px;
}

.ac-specs td {
  color: #22303f;
  font-weight: 600;
}

/* cover + gallery on account-child */
.ac-cover {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  background: #e9eef4;
}

.ac-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.ac-photo-box {
  margin: 0;
  border: 1px solid #e2e9f1;
  border-radius: 10px;
  overflow: hidden;
  background: #f7fafc;
}

.ac-photo-box img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.ac-minicheck {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px;
  font-size: 11.5px;
  color: #b33642;
  cursor: pointer;
}

.ac-minicheck input {
  accent-color: #e55f6d;
}

/* pay panel */
.ac-pay-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.ac-pay-tier {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1.5px solid #dde5ee;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.ac-pay-tier:hover {
  border-color: #19a389;
}

.ac-pay-tier input {
  accent-color: #19a389;
  margin-top: 4px;
}

.ac-pay-tier-body strong {
  color: #0b2238;
  font-size: 14px;
}

.ac-pay-tier-body small {
  color: #6b7a8c;
  line-height: 1.8;
}

.ac-pay-card {
  background: #f1f6f9;
  border: 1px dashed #c6d2df;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: #3c4b5d;
}

.ac-pay-card p {
  margin: 4px 0;
}

.renew-box {
  border: 1px solid #e2e9f1;
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 6px;
}

.renew-box summary {
  cursor: pointer;
  color: #19a389;
  font-weight: 700;
  font-size: 13.5px;
}

.ac-foot {
  text-align: center;
  color: #8a98a8;
  font-size: 12.5px;
  padding: 24px 0 40px;
}

.ac-spinner {
  text-align: center;
  color: #8a98a8;
  padding: 40px 0;
}

@media (max-width: 640px) {
  .ac-panel {
    padding: 18px;
  }

  .ac-kid-item {
    flex-wrap: wrap;
  }

  .ac-specs th {
    width: 110px;
  }
}