.mypage-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.mypage-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 12px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.mypage-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  color: #172554;
  letter-spacing: -0.06em;
}

.mypage-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ==============================
   Profile
============================== */
.mypage-profile-card {
  min-width: 260px;
  padding: 22px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.mypage-profile-card strong {
  display: block;
  margin-bottom: 7px;
  color: #172554;
  font-size: 24px;
  font-weight: 900;
}

.mypage-profile-card span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  word-break: break-all;
}

.mypage-profile-card em {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 11px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

/* ==============================
   Tabs
============================== */
.mypage-tabs {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  padding: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.mypage-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  color: #6b7280;
  font-weight: 900;
  text-decoration: none;
  transition: 0.18s;
  white-space: nowrap;
}

.mypage-tabs a:hover,
.mypage-tabs a.active {
  background: var(--primary);
  color: white;
}

/* ==============================
   Stats
============================== */
.mypage-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.mypage-stats div {
  padding: 22px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.mypage-stats strong {
  display: block;
  color: var(--primary);
  font-size: 30px;
  font-weight: 900;
}

.mypage-stats span {
  color: var(--muted);
  font-weight: 800;
}

/* ==============================
   Sections
============================== */
.mypage-section {
  margin-top: 34px;
}

.mypage-section-header {
  margin-bottom: 16px;
}

.mypage-section-header h2 {
  margin: 0 0 6px;
  color: #172554;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.mypage-section-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ==============================
   Lists
============================== */
.mypage-list {
  display: grid;
  gap: 12px;
}

.mypage-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.mypage-row h3 {
  margin: 0 0 7px;
  color: #172554;
  font-size: 20px;
  line-height: 1.35;
}

.mypage-row p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.6;
}

.mypage-content-preview {
  max-width: 680px;
  margin-bottom: 7px !important;
  color: #374151 !important;
  white-space: pre-wrap;
}

/* ==============================
   Meta / Status
============================== */
.mypage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.mypage-meta span {
  padding: 6px 10px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.mypage-meta .status-pending {
  background: #fff7ed;
  color: #ea580c;
}

.mypage-meta .status-approved,
.mypage-meta .status-resolved {
  background: #dcfce7;
  color: #15803d;
}

.mypage-meta .status-rejected {
  background: #fee2e2;
  color: #b91c1c;
}

/* ==============================
   Actions
============================== */
.mypage-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.mypage-actions a,
.mypage-actions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.mypage-actions .danger-link {
  background: #fef2f2;
  color: #dc2626;
}

.mypage-actions span {
  background: #f3f4f6;
  color: #6b7280;
}

/* ==============================
   Empty / Memo
============================== */
.mypage-empty {
  padding: 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

.mypage-admin-memo {
  margin: 14px 0;
  padding: 14px;
  background: #f8faff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.mypage-admin-memo strong {
  display: block;
  margin-bottom: 6px;
  color: #172554;
}

.mypage-admin-memo p {
  color: #374151;
  white-space: pre-wrap;
}

/* ==============================
   Account Info
============================== */
.account-info-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.account-info-card div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.account-info-card div:last-child {
  border-bottom: none;
}

.account-info-card span {
  color: var(--muted);
  font-weight: 800;
}

.account-info-card strong {
  color: #172554;
  text-align: right;
}

/* ==============================
   Mobile
============================== */
@media (max-width: 760px) {
  .mypage-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .mypage-profile-card {
    min-width: 0;
    border-radius: 20px;
  }

  .mypage-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mypage-tabs::-webkit-scrollbar {
    display: none;
  }

  .mypage-tabs a {
    flex-shrink: 0;
  }

  .mypage-stats {
    grid-template-columns: 1fr;
  }

  .mypage-stats div {
    padding: 20px;
    border-radius: 18px;
  }

  .mypage-section {
    margin-top: 30px;
  }

  .mypage-section-header h2 {
    font-size: 27px;
  }

  .mypage-row {
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 18px;
  }

  .mypage-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .mypage-actions a,
  .mypage-actions span {
    width: 100%;
    min-height: 44px;
  }

  .account-info-card {
    padding: 20px;
  }

  .account-info-card div {
    flex-direction: column;
    gap: 6px;
  }

  .account-info-card strong {
    text-align: left;
    word-break: break-all;
  }
}
