/* ── ACCOUNT PAGE ─────────────────────────────────── */

.account{
  min-height: calc(100vh - 60px);
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 80px;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  max-width: 720px;
  margin: 0 auto;
}

/* ── Loading State (Skeleton UI) ────────────────── */
.account__loading{
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px 0;
  width: 100%;
}

.account__loading[hidden] {
  display: none !important;
}

.account__skeletonHeader {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.account__skeletonTitle {
  width: 220px;
  height: 36px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: 8px;
}

.account__skeletonSubtitle {
  width: 280px;
  height: 20px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: 6px;
}

.account__skeletonSection {
  background: #fff;
  border: 1px solid var(--cream-border);
  border-radius: 16px;
  padding: 28px;
}

.account__skeletonSectionHeader {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--cream-border);
}

.account__skeletonIcon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  flex-shrink: 0;
}

.account__skeletonTitleSmall {
  width: 180px;
  height: 20px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: 6px;
  margin-bottom: 8px;
}

.account__skeletonText {
  width: 240px;
  height: 16px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: 4px;
}

.account__skeletonForm {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.account__skeletonGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.account__skeletonField {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account__skeletonLabel {
  width: 80px;
  height: 14px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: 4px;
}

.account__skeletonInput {
  width: 100%;
  height: 44px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: 10px;
}

.account__skeletonHint {
  width: 180px;
  height: 14px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: 4px;
  margin-top: 4px;
}

.account__skeletonActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 8px;
}

.account__skeletonStatus {
  width: 140px;
  height: 18px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: 4px;
}

.account__skeletonButton {
  width: 120px;
  height: 42px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: 10px;
}

@keyframes skeletonLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Auth Required State ─────────────────────── */
.account__authRequired{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
}

.account__authRequired[hidden] {
  display: none !important;
}

.account__authBox{
  text-align: center;
  max-width: 360px;
}

.account__authIcon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--gold-pale);
  color: var(--gold-deep);
  margin-bottom: 24px;
}

.account__authBox h2{
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 10px;
}

.account__authBox p{
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 28px;
}

.account__authBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background: var(--btn);
  color: #FAF7F2;
  border: none;
  border-radius: var(--r8);
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.account__authBtn:hover{
  background: #2a2622;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(58,47,42,0.22);
}

/* ── Content State ───────────────────────────── */
.account__content[hidden] {
  display: none !important;
}

/* ── Header ──────────────────────────────────── */
.account__header{
  margin-bottom: 40px;
}

.account__title{
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.15;
}

.account__subtitle{
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

/* ── Sections ────────────────────────────────── */
.account__sections{
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.account__section{
  background: #fff;
  border: 1px solid var(--cream-border);
  border-radius: 16px;
  padding: 28px;
  transition: box-shadow 0.2s ease;
}

.account__section:hover{
  box-shadow: 0 2px 12px rgba(25,19,17,0.05);
}

.account__sectionHeader{
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--cream-border);
}

.account__sectionIcon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gold-pale);
  color: var(--gold-deep);
  border-radius: 10px;
  flex-shrink: 0;
}

.account__sectionTitle{
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 4px;
}

.account__sectionDesc{
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  letter-spacing: -0.01em;
}

/* ── Form ────────────────────────────────────── */
.account__form{
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.account__formGrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.account__field{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account__field label{
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.account__input{
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1.5px solid var(--cream-border);
  border-radius: 10px;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  -webkit-appearance: none;
}

.account__input:focus{
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.14);
}

.account__input::placeholder{
  color: var(--muted);
  opacity: 0.5;
}

.account__input--readonly{
  background: var(--hover);
  color: var(--muted);
  cursor: not-allowed;
}

.account__input--readonly:focus{
  border-color: var(--cream-border);
  box-shadow: none;
}

.account__fieldHint{
  font-size: 12.5px;
  color: var(--muted);
  opacity: 0.75;
  margin: 2px 0 0;
  letter-spacing: -0.01em;
}

/* ── Form Actions ────────────────────────────── */
.account__formActions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 8px;
}

.account__formStatus{
  font-size: 13.5px;
  letter-spacing: -0.01em;
  margin: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.account__formStatus--success{
  color: #067647;
  opacity: 1;
}

.account__formStatus--error{
  color: #B91C1C;
  opacity: 1;
}

.account__saveBtn{
  padding: 10px 24px;
  background: var(--btn);
  color: #FAF7F2;
  border: none;
  border-radius: var(--r8);
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.13s ease;
}

.account__saveBtn:hover:not(:disabled){
  background: #2a2622;
  box-shadow: 0 6px 20px rgba(58,47,42,0.22);
  transform: translateY(-1px);
}

.account__saveBtn:active:not(:disabled){
  transform: translateY(0);
}

.account__saveBtn:disabled{
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Info Grid ───────────────────────────────── */
.account__infoGrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.account__infoItem{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account__infoLabel{
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.account__infoValue{
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.account__infoBadge{
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 12px;
  background: rgba(6,118,71,0.08);
  color: #067647;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

/* ── Footer ──────────────────────────────────── */
.account__footer{
  border-top: 1px solid var(--cream-border);
  padding: 28px var(--pad-x);
}

.account__footerInner{
  max-width: 720px;
  margin: 0 auto;
}

.account__footer p{
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  letter-spacing: -0.01em;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 600px){
  .account{
    padding-top: calc(var(--nav-h) + 32px);
    padding-bottom: 60px;
  }

  .account__title{
    font-size: 26px;
  }

  .account__subtitle{
    font-size: 14.5px;
  }

  .account__section{
    padding: 22px 18px;
    border-radius: 14px;
  }

  .account__sectionHeader{
    margin-bottom: 22px;
    padding-bottom: 16px;
  }

  .account__formGrid{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .account__skeletonGrid {
    grid-template-columns: 1fr;
  }

  .account__infoGrid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .account__formActions{
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .account__formStatus{
    text-align: center;
  }

  .account__saveBtn{
    width: 100%;
    padding: 12px 24px;
  }

  .account__skeletonActions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .account__skeletonButton {
    width: 100%;
  }
}

@media (max-width: 480px){
  .account{
    padding-top: calc(var(--nav-h) + 24px);
  }

  .account__title{
    font-size: 24px;
  }

  .account__header{
    margin-bottom: 28px;
  }

  .account__section{
    padding: 18px 16px;
  }
}
/* ── Password input wrapper (eye toggle) ─────── */
.account__inputWrap {
  position: relative;
  display: flex;
  align-items: center;
}

.account__inputWrap .account__input {
  padding-right: 44px;
}

.account__eyeBtn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  opacity: 0.4;
  transition: opacity 0.15s ease;
}

.account__eyeBtn:hover {
  opacity: 0.85;
}

.account__eyeBtn img {
  width: 18px;
  height: 18px;
  display: block;
}