/* Ramyar Dental Clinic — inner pages, account panel and sign-in screens.
   Built on the tokens of style.css (--blue, --ink, --muted, --gray1, IRANYekan, 30px rounded panels, pill buttons). */

:root {
  --panel-border: #d7d7d7;
  --soft: #f3f4f7;
  --radius-lg: 30px;
  --radius-md: 18px;
  --ok: #138a52;
  --ok-soft: #e3f6ec;
  --warn: #b86e00;
  --warn-soft: #fff3df;
  --err: #c62f3b;
  --err-soft: #fde8ea;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}
.muted { color: var(--muted); }

/* ───────────── Header: account button (desktop corner) ───────────── */
.ic-user { --ic: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjAgMTIwIiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iNiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48Y2lyY2xlIGN4PSI2MCIgY3k9IjQwIiByPSIyMiIvPjxwYXRoIGQ9Ik0xOCAxMDZRMjAgNzQgNjAgNzRRMTAwIDc0IDEwMiAxMDYiLz48L3N2Zz4="); --lit: inset(0 0 52% 0); --lit-off: inset(0 0 100% 0); }
.header-account {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  display: grid;
  place-items: center;
  background: #fff;
  z-index: 6;
  transition: border-color .3s, box-shadow .3s;
}
.header-account:hover { border-color: var(--blue); box-shadow: 0 8px 20px #0670f026; }
.header-account:hover .nav-ic:after { clip-path: var(--lit); }
.header-account .nav-ic { width: 20px; height: 20px; }
.header-account__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.nav-link.is-active { color: var(--blue); }
.nav-link.is-active .nav-ic:after { clip-path: var(--lit); }
@media (max-width: 900px) {
  .header-account { display: none; }
}

/* ───────────── Inner page title band ───────────── */
.page-hero {
  background: var(--gray1);
  padding: 84px 0 46px;
  margin-bottom: 44px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.page-hero:after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -160px;
  bottom: -320px;
  background: radial-gradient(#0670f01f, transparent 68%);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; max-width: 1015px; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 18px;
}
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--ink); }
.page-hero__title {
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 800;
  color: var(--blue);
  line-height: 1.5;
  margin-top: 6px;
}
.page-hero__subtitle {
  margin-top: 12px;
  max-width: 720px;
  color: #50545e;
  font-size: 15px;
  line-height: 2;
}
.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.page-hero__meta span + span:before { content: "•"; margin-left: 20px; color: #b9bcc3; }

.page-body { padding-bottom: 80px; }
.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 48px 0 20px;
}
.section-title small { color: var(--muted); font-weight: 500; font-size: 14px; }
.section-more { display: flex; justify-content: center; margin-top: 34px; }

/* chips used to filter / jump */
.chip-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  transition: .35s var(--ease);
}
.chip small {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--soft);
  font-size: 11.5px;
  padding: 0 6px;
}
.chip:hover, .chip.is-active { border-color: var(--blue); color: var(--blue); }
.chip.is-active { box-shadow: 0 8px 22px #0670f033, inset 0 0 0 1px var(--blue); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
}
.link-arrow:after { content: "←"; transition: transform .35s var(--ease); }
.link-arrow:hover:after { transform: translateX(-4px); }
.back-link { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--muted); }
.back-link:hover { color: var(--blue); }
.text-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  font-size: 13.5px;
}
.text-button:hover { text-decoration: underline; }
.button.small { height: 38px; font-size: 12.5px; padding: 0 18px; }
.button:disabled { opacity: .65; cursor: progress; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--panel-border);
  border-radius: var(--radius-lg);
  display: grid;
  justify-items: center;
  gap: 12px;
}
.empty-state h2 { font-size: 18px; font-weight: 700; }
.empty-state p { color: var(--muted); }
.empty-state img { opacity: .6; }

/* ───────────── Price list ───────────── */
.tariff-group { margin-bottom: 54px; scroll-margin-top: 120px; }
.tariff-group__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--panel-border);
}
.tariff-group__head h2 { font-size: 22px; font-weight: 800; color: var(--blue); }
.tariff-group__head p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.tariff-group .price-grid { margin-top: 24px; }
.page-body .price-card { background: var(--soft); }
.page-body .price-box { background: #fff; }

.cta-band {
  margin-top: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--blue-800), var(--blue) 70%);
  color: #fff;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  overflow: hidden;
}
.cta-band:before {
  content: "";
  position: absolute;
  inset: auto -80px -160px auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 50px solid #ffffff14;
}
.cta-band h2 { font-size: 22px; font-weight: 800; }
.cta-band p { opacity: .9; margin-top: 8px; max-width: 560px; }
.cta-band__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; position: relative; }
.cta-band .button { --btc: #fff; --h-bg: var(--ink); --h-c: #fff; background: #fff; color: var(--blue); }
.cta-band__phone { font-weight: 700; font-size: 18px; letter-spacing: .5px; }

/* ───────────── Article-like content ───────────── */
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}
.prose-card {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  background: #fff;
}
.prose-card--narrow { max-width: 860px; margin-inline: auto; }
.prose-cover {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}
.prose { font-size: 15.5px; line-height: 2.15; color: #2b2d33; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); font-weight: 800; line-height: 1.7; margin-top: 1.6em; }
.prose h2 { font-size: 21px; }
.prose h3 { font-size: 18px; }
.prose a { color: var(--blue); text-decoration: underline; }
.prose ul, .prose ol { padding-right: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose img, .prose video, .prose iframe { max-width: 100%; border-radius: 16px; }
.prose blockquote {
  border-right: 4px solid var(--blue);
  background: var(--soft);
  padding: 14px 20px;
  border-radius: 12px;
}
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--panel-border); padding: 8px 12px; }

.side-stack { display: grid; gap: 20px; position: sticky; top: 120px; }
.side-card {
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 24px;
  background: #fff;
}
.side-card__title { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.side-card p { color: #50545e; font-size: 14px; }
.side-card--blue { background: var(--blue-soft); border-color: transparent; }
.side-card--blue .side-card__title { color: var(--blue-800); }
.side-card--blue .button { margin-top: 16px; }
.side-card__phone { display: block; margin-top: 12px; font-size: 20px; font-weight: 800; color: var(--blue); }
.tariff-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--panel-border);
  font-size: 13.5px;
}
.tariff-list li:last-child { border-bottom: 0; }
.tariff-list__price { text-align: left; white-space: nowrap; display: grid; }
.tariff-list__price del { color: var(--muted); font-size: 12px; }
.tariff-list__price b { color: var(--blue); }
.link-list li a {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--soft);
  font-size: 14px;
}
.link-list li a:after { content: "←"; color: var(--muted); }
.link-list li a:hover { color: var(--blue); }
.mini-posts li + li { margin-top: 14px; }
.mini-posts a { display: flex; gap: 12px; align-items: center; font-size: 13.5px; font-weight: 600; line-height: 1.7; }
.mini-posts img { width: 72px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.mini-posts small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.mini-posts a:hover { color: var(--blue); }

/* estimate form reused outside the home page */
.estimate .estimate-title {
  font-size: 23px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  margin-left: 6px;
}
.page-body + .estimate, .page-hero + .estimate { margin-top: 0; margin-bottom: 60px; }
.estimate.is-extended { margin-bottom: 30px; }
.estimate-extra {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  margin-top: 16px;
}
.estimate-extra .mobile-field input { width: 100%; }
.estimate-message textarea {
  width: 100%;
  min-height: 55px;
  border: 1px solid var(--panel-border);
  background: #eceef2;
  border-radius: 28px;
  padding: 16px 20px;
  font: inherit;
  font-size: 12.5px;
  resize: vertical;
}
.estimate-message textarea:focus { background: #fff; outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px #0670f024; }
#estimate-result [data-msg="error"] { color: var(--err); }
#estimate-form.is-sending .button { opacity: .7; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: none;
}
.steps li {
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 24px;
}
.steps__num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 14px;
}
.steps h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.steps p { font-size: 13.5px; color: var(--muted); }
.hint-line { margin-top: 26px; text-align: center; font-size: 14px; color: var(--muted); }
.hint-line a { color: var(--blue); font-weight: 700; }

/* ───────────── Journal ───────────── */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow .4s, transform .4s var(--ease);
}
.post-card:hover { box-shadow: 0 18px 40px #1f3c5c1f; transform: translateY(-3px); }
.post-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__cat {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.post-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__body h3 { font-size: 16px; font-weight: 800; line-height: 1.8; }
.post-card__body h3 a:hover { color: var(--blue); }
.post-card__body p { font-size: 13.5px; color: #50545e; line-height: 2; flex: 1; }
.post-card__meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--soft); }
.leap-cat__count { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }

.comments { margin-top: 44px; }
.comment { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--soft); }
.comment__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--soft);
  font-weight: 800;
  color: var(--muted);
}
.comment__avatar.is-clinic { background: var(--blue); color: #fff; }
.comment__body { flex: 1; min-width: 0; }
.comment__head { display: flex; gap: 12px; align-items: baseline; font-size: 14px; }
.comment__head span { color: var(--muted); font-size: 12px; }
.comment__body p { margin-top: 6px; font-size: 14px; line-height: 2; }
.comment--reply { background: var(--blue-soft); border-radius: 18px; padding: 14px 16px; margin-top: 14px; border: 0; }

/* ───────────── Forms (site + account) ───────────── */
.form-card {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: #fff;
  margin-top: 26px;
}
.form-card h2, .form-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field--wide { grid-column: 1 / -1; }
.field label, .field-label { font-size: 13.5px; font-weight: 600; }
.field label small { color: var(--muted); font-weight: 400; }
.req { color: var(--err); }
.field input:not([type=checkbox]):not([type=radio]):not([type=file]),
.field textarea,
.field select {
  width: 100%;
  height: 50px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: #fff;
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field textarea { height: auto; padding: 14px 16px; line-height: 2; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px #0670f01f; }
.field input:disabled { background: var(--soft); color: var(--muted); }
.field .is-invalid, .otp-boxes .is-invalid { border-color: var(--err) !important; background: #fffafa; }
.field-error { color: var(--err); font-size: 12.5px; }
.field-hint { color: var(--muted); font-size: 12px; }
.file-input { font-size: 13px; }
.file-input::file-selector-button {
  border: 1px solid var(--panel-border);
  background: var(--soft);
  border-radius: 10px;
  padding: 8px 14px;
  margin-left: 10px;
  font: inherit;
  cursor: pointer;
}
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.inline-form { margin-top: 12px; }

.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: .3s var(--ease);
}
.segmented input:checked + span { border-color: var(--blue); color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: var(--blue-soft); }
.segmented input:focus-visible + span { outline: 3px solid #7db8ff; outline-offset: 2px; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; cursor: pointer; margin-bottom: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); margin-top: 4px; flex: none; }
.check a { color: var(--blue); font-weight: 700; }

/* contact page */
.split-layout--reverse .form-card { margin-top: 0; }
.contact-card {
  display: flex;
  gap: 14px;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  padding: 20px;
}
.contact-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--blue-soft);
  display: grid;
  place-items: center;
  flex: none;
}
.contact-card h3 { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.contact-card a { display: block; color: var(--blue); font-weight: 700; }
.contact-card a small { color: var(--muted); font-weight: 400; }
.contact-card p { font-size: 13.5px; color: #50545e; line-height: 2; }
.map-frame { margin-top: 36px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--panel-border); }
.map-frame iframe { display: block; width: 100%; min-height: 380px; border: 0; }

/* gallery */
.album { margin-bottom: 54px; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.photo-grid__item {
  border: 0;
  padding: 0;
  background: var(--soft);
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: zoom-in;
}
.photo-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.photo-grid__item:hover img { transform: scale(1.05); }
.album-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.album-card { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; display: block; }
.album-card img { width: 100%; height: 100%; object-fit: cover; }
.album-card span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 16px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(transparent, #0b1a33cc);
}
.album-card small { display: block; font-weight: 400; font-size: 12px; opacity: .85; }
.faq--page { padding-top: 0; margin-bottom: 30px; }

/* pagination (Laravel bootstrap-5 markup) */
.pager { margin-top: 36px; display: flex; justify-content: center; }
.pager nav > div:first-child { display: none; }
.pager nav > div:last-child > div:first-child { display: none; }
.pager .pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; }
.pager .page-link {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--panel-border);
  border-radius: 12px !important;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  padding: 0 10px;
}
.pager .page-item.active .page-link { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager .page-item.disabled .page-link { color: #b9bcc3; }
.pager .page-link:hover { border-color: var(--blue); color: var(--blue); }

/* flash toast */
.site-toast {
  position: fixed;
  z-index: 200;
  top: 112px;
  left: 50%;
  transform: translate(-50%, -20px);
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: min(420px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: 0 24px 50px #1f3c5c33;
  border-right: 5px solid var(--ok);
  transition: .5s var(--ease);
}
.site-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.site-toast.is-error { border-right-color: var(--err); }
.site-toast p { flex: 1; font-size: 14px; }
.site-toast__icon { width: 26px; height: 26px; border-radius: 50%; background: var(--ok-soft); flex: none; position: relative; }
.site-toast__icon:after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ok); font-weight: 800; font-size: 14px; }
.site-toast.is-error .site-toast__icon { background: var(--err-soft); }
.site-toast.is-error .site-toast__icon:after { content: "!"; color: var(--err); }
.site-toast__close { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }

/* ───────────── Account panel ───────────── */
.account-hero {
  background: var(--gray1);
  padding: 84px 0 34px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 34px;
}
.account-hero__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.account-hero__user { display: flex; align-items: center; gap: 18px; }
.account-avatar {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--blue), var(--blue-800));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 14px 30px #0670f040;
}
.account-hero h1 { font-size: 24px; font-weight: 800; color: var(--blue); margin-top: 2px; }
.account-hero p { color: var(--muted); font-size: 14px; text-align: right; }
.account-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.account-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 80px;
}
.account-nav {
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 10px;
  position: sticky;
  top: 120px;
}
.account-nav nav { display: grid; gap: 4px; }
.account-nav a, .account-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: right;
  color: var(--ink);
  transition: background .3s, color .3s;
}
.account-nav svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; color: #8b909b; transition: color .3s; }
.account-nav a:hover { background: var(--soft); }
.account-nav a.is-active { background: var(--blue-soft); color: var(--blue-800); }
.account-nav a.is-active svg, .account-nav a:hover svg { color: var(--blue); }
.account-nav form { border-top: 1px solid var(--soft); margin-top: 6px; padding-top: 6px; }
.account-nav button:hover { background: var(--err-soft); color: var(--err); }
.account-nav button:hover svg { color: var(--err); }

.account-main > * + * { margin-top: 22px; }
.panel {
  border: 1px solid var(--panel-border);
  border-radius: 26px;
  padding: 26px 28px;
  background: #fff;
}
.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.panel__head h2 { font-size: 17px; font-weight: 800; }
.panel__subtitle { font-size: 15px; font-weight: 800; margin: 26px 0 12px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat-tile {
  border-radius: 24px;
  padding: 22px 24px;
  background: var(--soft);
  display: grid;
  gap: 6px;
  transition: background .3s, transform .4s var(--ease);
}
.stat-tile:first-child { background: var(--blue); color: #fff; }
.stat-tile:first-child .stat-tile__label { color: #ffffffcc; }
.stat-tile:hover { transform: translateY(-3px); }
.stat-tile__label { font-size: 13px; color: var(--muted); }
.stat-tile b { font-size: 30px; font-weight: 800; line-height: 1.2; }

.notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--warn-soft);
  border-radius: 18px;
  padding: 16px 20px;
  font-size: 13.5px;
}
.panel .notice { margin-top: 24px; background: var(--blue-soft); }

.row-list li + li { border-top: 1px solid var(--soft); }
.row-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 8px;
  border-radius: 14px;
  transition: background .3s;
}
.row-list a:hover { background: var(--soft); }
.row-list__main { display: grid; gap: 2px; min-width: 0; }
.row-list__main b { font-size: 14.5px; }
.row-list__main small { color: var(--muted); font-size: 12px; }
.empty-inline { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px; border: 1px dashed var(--panel-border); border-radius: 16px; color: var(--muted); font-size: 14px; }

.badge-status {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--soft);
  color: var(--muted);
}
.badge-status.is-warning { background: var(--warn-soft); color: var(--warn); }
.badge-status.is-info, .badge-status.is-primary { background: var(--blue-soft); color: var(--blue-800); }
.badge-status.is-success { background: var(--ok-soft); color: var(--ok); }

.progress-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 24px; }
.progress-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
.progress-steps li:before {
  content: "";
  position: absolute;
  top: 17px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--soft);
  z-index: 0;
}
.progress-steps li:first-child:before { display: none; }
.progress-steps li.is-done:before { background: var(--blue); }
.progress-steps span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft);
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.progress-steps li.is-done { color: var(--ink); }
.progress-steps li.is-done span { background: var(--blue); color: #fff; }
.progress-steps li.is-current span { box-shadow: 0 0 0 6px #0670f022; }

.detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
.detail-list div { background: var(--soft); border-radius: 14px; padding: 12px 16px; }
.detail-list dt { font-size: 12px; color: var(--muted); font-weight: 400; }
.detail-list dd { margin: 2px 0 0; font-weight: 700; text-align: right; }
.answer-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--panel-border); font-size: 14px; }
.answer-list b { color: var(--blue); }
.text-block { background: var(--soft); border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 2; }

.thread { display: grid; gap: 14px; }
.thread__msg { max-width: 82%; border-radius: 20px; padding: 14px 18px; background: var(--soft); }
.thread__msg.is-mine { justify-self: start; border-top-right-radius: 6px; }
.thread__msg.is-staff { justify-self: end; background: var(--blue-soft); border-top-left-radius: 6px; }
.thread__head { display: flex; gap: 12px; align-items: baseline; font-size: 13px; margin-bottom: 6px; }
.thread__head span { color: var(--muted); font-size: 11.5px; }
.thread__msg p { font-size: 14px; line-height: 2; }
.thread__files { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.thread__files a { font-size: 12px; background: #fff; border-radius: 999px; padding: 4px 12px; color: var(--blue); }

/* ───────────── Sign-in / sign-up ───────────── */
.page-auth { background: var(--gray1); }
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.auth-visual {
  position: relative;
  overflow: hidden;
  margin: 18px;
  border-radius: 34px;
  background: var(--blue-800);
  color: #fff;
  display: flex;
  align-items: flex-end;
  order: 2;
}
.auth-visual__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-visual__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #0b3fc433 0%, #0b3fc4cc 55%, #082e8ff2 100%),
    radial-gradient(circle at 20% 10%, #6cb8fa66, transparent 45%);
}
.auth-visual__copy { position: relative; padding: 46px; display: grid; gap: 18px; }
.auth-visual__logo {
  width: 150px;
  background: #fff;
  border-radius: 22px;
  padding: 12px 18px;
}
.auth-visual__slogan { font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; line-height: 1.6; }
.auth-perks { display: grid; gap: 12px; }
.auth-perks li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.auth-perks span {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #ffffff26;
  font-weight: 800;
  font-size: 13px;
  flex: none;
}
.auth-visual__script { position: absolute; top: 40px; left: 40px; width: 180px; opacity: .55; filter: brightness(0) invert(1); }

.auth-panel { display: flex; flex-direction: column; padding: 34px clamp(20px, 6vw, 90px); order: 1; }
.auth-panel__top { display: flex; justify-content: space-between; align-items: center; }
.auth-home { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.auth-home svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth-home:hover { color: var(--blue); }
.auth-mobile-logo { display: none; }
.auth-mobile-logo img { width: 110px; }
.auth-card {
  margin: auto 0;
  width: 100%;
  max-width: 460px;
  align-self: center;
  background: #fff;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 40px 38px;
  box-shadow: 0 30px 60px #1f3c5c14;
}
.auth-title { font-size: 28px; font-weight: 800; color: var(--blue); margin: 4px 0 8px; }
.auth-lead { color: #50545e; font-size: 14px; line-height: 2; margin-bottom: 26px; }
.auth-lead a { color: var(--blue); font-weight: 700; margin-right: 6px; }
.auth-form .field input:not([type=checkbox]) { height: 54px; border-radius: 16px; font-size: 15px; }
.auth-submit { width: 100% !important; margin-top: 8px; }
.input-icon { position: relative; }
.input-icon > svg, .input-icon__toggle {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b909b;
}
.input-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.input-icon input { padding-left: 48px !important; }
.input-icon__toggle { border: 0; background: none; padding: 0; cursor: pointer; display: grid; }
.input-icon__toggle.is-on { color: var(--blue); }
.auth-switch { margin-top: 24px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--blue); font-weight: 800; }
.auth-alt { display: block; margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--muted); text-decoration: underline; }
.auth-alt:hover { color: var(--blue); }
.auth-help { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 24px; }
.auth-help a { color: var(--ink); font-weight: 700; }
.auth-alert { border-radius: 14px; padding: 12px 16px; font-size: 13.5px; margin-bottom: 20px; }
.auth-alert.is-info { background: var(--blue-soft); color: var(--blue-800); }
.auth-alert.is-success { background: var(--ok-soft); color: var(--ok); }
.auth-alert.is-dev { background: var(--warn-soft); color: var(--warn); }
.auth-resend { margin-top: 20px; text-align: center; font-size: 13px; color: var(--muted); }

.otp-boxes { display: none; gap: 10px; justify-content: center; }
.has-boxes .otp-boxes { display: flex; }
.has-boxes .otp-fallback { display: none; }
.otp-boxes input {
  width: 56px !important;
  height: 64px !important;
  padding: 0 !important;
  text-align: center;
  font-size: 24px !important;
  font-weight: 800;
  border-radius: 16px !important;
  border: 1px solid var(--panel-border);
  caret-color: var(--blue);
}
.otp-boxes input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px #0670f01f; }
.otp-fallback { text-align: center; letter-spacing: 8px; font-size: 22px !important; font-weight: 800; }

/* ───────────── Responsive ───────────── */
@media (max-width: 1180px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .split-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
  .page-hero { padding: 64px 0 34px; margin-bottom: 30px; }
  .account-hero { padding: 64px 0 28px; }
  .split-layout, .account-shell { grid-template-columns: 1fr; }
  .side-stack, .account-nav { position: static; }
  .account-nav nav { display: flex; overflow-x: auto; gap: 6px; }
  .account-nav a, .account-nav button { white-space: nowrap; width: auto; }
  .account-nav form { border: 0; margin: 0; padding: 0; }
  .prose-card { padding: 24px 20px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
  .steps, .stat-row { grid-template-columns: 1fr; }
  .estimate-extra { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-mobile-logo { display: block; }
  .auth-panel { padding: 22px 16px; }
  .auth-card { padding: 30px 22px; margin-top: 30px; }
  .album-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .post-grid, .form-grid, .detail-list { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tariff-group__head, .panel__head, .notice, .empty-inline { flex-direction: column; align-items: flex-start; }
  .panel, .form-card { padding: 20px 18px; }
  .thread__msg { max-width: 100%; }
  .otp-boxes input { width: 48px !important; height: 56px !important; }
  .progress-steps { font-size: 11px; }
}
