/* ============================================================
   Timinify My-Page — Modern Redesign
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --mp-purple-50: #f1eafa;
  --mp-purple-100: #ecddff;
  --mp-purple-200: #ddc2ff;
  --mp-purple-300: #cda6ff;
  --mp-purple-400: #bb87ff;
  --mp-purple-500: #a565f8;
  --mp-purple-600: #8843e1;
  --mp-purple-700: #6f23d0;
  --mp-purple-800: #5c10be;
  --mp-purple-900: #5109ad;
  --mp-purple-1000: #41048e;
  --mp-purple-1100: #30016c;
  --mp-purple-1200: #21004b;
  --mp-bg: #ffffff;
  --mp-bg-mesh-1: transparent;
  --mp-bg-mesh-2: transparent;
  --mp-sidebar-bg: #ffffff;
  --mp-sidebar-text: #374151;
  --mp-sidebar-text-active: #111827;
  --mp-sidebar-hover: rgba(17, 24, 39, 0.06);
  --mp-sidebar-active: rgba(91, 33, 182, 0.1);
  --mp-sidebar-active-border: #5b21b6;
  --mp-sidebar-divider: rgba(17, 24, 39, 0.14);
  --mp-card-bg: #ffffff;
  --mp-card-border: rgba(17, 24, 39, 0.14);
  --mp-card-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
  --mp-card-radius: 0.9rem;
  --mp-text: #1f2937;
  --mp-text-secondary: #4b5563;
  --mp-accent: #5b21b6;
  --mp-accent-soft: rgba(91, 33, 182, 0.12);
  --mp-accent-gradient: #6d28d9;
  --mp-success: #047857;
  --mp-danger: #dc2626;
  --mp-warning-bg: rgba(245, 158, 11, 0.12);
  --mp-warning-border: rgba(180, 83, 9, 0.28);
  --mp-focus-ring: 0 0 0 3px rgba(91, 33, 182, 0.22);
  --mp-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --mp-transition-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  --mobile-topbar-height: 60px;
  --mobile-bottom-nav-height: 72px;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

  100% {
    background-position: 200% 0;
  }
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(92, 16, 190, 0);
  }

  50% {
    box-shadow: 0 0 24px 4px rgba(92, 16, 190, 0.12);
  }
}

/* ---------- Reset & Base ---------- */
* {
  box-sizing: border-box;
}

body.mypage-page {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  color: var(--mp-text);
  background: var(--mp-bg);
  min-height: 100dvh;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.mypage-page
  :where(
    p,
    a,
    span,
    button,
    label,
    small,
    li,
    dt,
    dd,
    th,
    td,
    legend,
    summary,
    div
  ) {
  font-weight: 500;
}

body.mypage-page :where(h1, h2, h3, h4, h5, h6, strong, b) {
  font-weight: 600;
}

/* ---------- Layout ---------- */
.mypage-main-wrap {
  margin: 0;
  min-height: calc(100dvh - 4.5rem);
  height: auto;
  padding: 0;
}

.mypage-wide-container {
  height: auto;
  padding: 0;
}

.mypage-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  height: 100%;
  min-height: 0;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.mypage-shell.is-single {
  grid-template-columns: minmax(0, 1fr);
  height: auto;
  overflow: visible;
}

.mypage-content.is-single {
  height: auto;
  overflow: visible;
  padding: 1.1rem 1.35rem 2rem;
}

.mypage-content.is-single .mypage-view.is-active {
  padding: 0;
}

.mypage-top-header {
  display: flex;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.mypage-verify-banner {
  margin-bottom: 1rem;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.mypage-sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  background: var(--mp-sidebar-bg);
  border-right: 1px solid rgba(15, 23, 42, 0.06);
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.mypage-sidebar::-webkit-scrollbar {
  width: 4px;
}

.mypage-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}

.mypage-sidebar-content {
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mobile-topbar {
  display: none;
}

.mobile-topbar.mypage-top-header {
  display: flex;
}

.mypage-bottom-nav {
  display: none;
}

.mypage-bottom-nav-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mp-text-secondary);
  border-radius: 0.85rem;
  transition: all var(--mp-transition);
  min-height: 56px;
  padding: 0.35rem 0.4rem;
}

.mypage-bottom-nav-button:hover,
.mypage-bottom-nav-button:focus-visible {
  color: var(--mp-text);
  background: rgba(148, 163, 184, 0.14);
}

.mypage-bottom-nav-button.is-active,
.mypage-bottom-nav-button.active {
  color: var(--mp-accent);
  background: var(--mp-accent-soft);
  font-weight: 700;
}

.mypage-bottom-nav-button .icon-18 {
  width: 1.1rem;
  height: 1.1rem;
}

.mypage-bottom-nav-label {
  font-size: 0.68rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.mobile-topbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.mobile-topbar-main-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.mobile-topbar-icon-form {
  margin: 0;
}

.mobile-topbar-icon-action {
  width: 2rem;
  height: 2rem;
  border-radius: 0.66rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #ffffff;
  color: var(--mp-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0;
  line-height: 1;
  transition: all var(--mp-transition);
}

.mobile-topbar-icon-action:hover,
.mobile-topbar-icon-action:focus-visible {
  color: var(--mp-text);
  background: #f3f4f6;
  border-color: rgba(100, 116, 139, 0.35);
}

.mobile-topbar-icon-action.is-danger {
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.28);
  background: #fff7f7;
}

.mobile-topbar-icon-action.is-danger:hover,
.mobile-topbar-icon-action.is-danger:focus-visible {
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.38);
  background: #fee2e2;
}

.mobile-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  text-decoration: none;
  color: var(--mp-text);
  min-width: 0;
}

.mobile-topbar-brand-page {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* -- Brand -- */
.mypage-sidebar-brand-wrap {
  padding: 1.25rem 1rem 0.5rem;
}

.mypage-sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #0f172a;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity var(--mp-transition);
}

.mypage-sidebar-brand:hover {
  color: #0f172a;
  opacity: 0.85;
}

/* -- Nav -- */
.mypage-nav {
  margin-top: 1rem;
  flex: 0 0 auto;
  padding: 0 0.65rem;
}

.mypage-nav-button {
  width: 100%;
  border-radius: 0.65rem;
  border: 0;
  color: var(--mp-sidebar-text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.62rem 0.78rem;
  transition: all var(--mp-transition);
  position: relative;
  background: transparent;
}

.mypage-nav-button span {
  overflow-wrap: anywhere;
}

.mypage-nav-button:hover,
.mypage-nav-button:focus-visible {
  background: var(--mp-sidebar-hover);
  color: var(--mp-text);
}

.mypage-nav .mypage-nav-button.is-active,
.mypage-nav .mypage-nav-button.active,
.nav-pills .mypage-nav-button.is-active,
.nav-pills .mypage-nav-button.active {
  background: var(--mp-sidebar-active);
  color: var(--mp-sidebar-text-active);
  font-weight: 600;
  box-shadow: none;
}

.mypage-nav .mypage-nav-button.is-active:hover,
.mypage-nav .mypage-nav-button.active:hover,
.nav-pills .mypage-nav-button.is-active:hover,
.nav-pills .mypage-nav-button.active:hover {
  background: var(--mp-accent-soft);
  color: var(--mp-text);
}

.mypage-nav-button.is-active i,
.mypage-nav-button.active i {
  color: var(--mp-accent);
}

/* -- Sidebar utilities -- */
.sidebar-divider {
  margin: 0.85rem 0.75rem;
  border-color: var(--mp-sidebar-divider);
}

.sidebar-spacer {
  flex: 1 1 auto;
}

.sidebar-utility-links {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.45rem;
  padding: 0 0.75rem;
}

.sidebar-utility-links .btn {
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.85rem;
  background: transparent;
}

.sidebar-utility-links .btn-outline-secondary {
  color: var(--mp-text-secondary);
  border-color: var(--mp-card-border);
  background: transparent;
}

.sidebar-utility-links .btn-outline-secondary:hover {
  background: var(--mp-sidebar-hover);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--mp-text);
}

.sidebar-utility-links .btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--mp-danger);
}

.sidebar-utility-links .btn-danger:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #b91c1c;
}

/* -- User info -- */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.85rem 1rem;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid rgba(17, 24, 39, 0.14);
  background: #e5e7eb;
  color: var(--mp-text-secondary);
  display: grid;
  place-items: center;
  font-size: 0.84rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-user-body {
  min-width: 0;
}

.sidebar-user-name {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-meta {
  margin: 0;
  color: var(--mp-text-secondary);
  font-size: 0.72rem;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.mypage-content {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: block;
  background: #ffffff;
  padding: 0.95rem 1.25rem 1.1rem 0;
}

.mypage-content::-webkit-scrollbar {
  width: 5px;
}

.mypage-content::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.18);
  border-radius: 3px;
}

/* -- Views -- */
.mypage-view {
  display: none;
  min-height: 0;
  flex: 1 1 auto;
}

.mypage-view.is-active {
  display: block;
  min-height: 0;
  height: auto;
  overflow: visible;
  padding: 1.5rem 1.35rem 0 1.35rem;
}

/* -- Panels -- */
.mypage-panel {
  border: 1px solid var(--mp-card-border);
  border-radius: var(--mp-card-radius);
  background: var(--mp-card-bg);
  box-shadow: none;
  padding: 1.2rem 1.25rem;
  transition: border-color var(--mp-transition);
}

.mypage-view[data-panel="dashboard"] .mypage-panel {
  border: 0;
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.mypage-view:not([data-panel="dashboard"]) .mypage-panel + .mypage-panel {
  margin-top: 1.1rem;
}

.mypage-panel-head {
  margin-bottom: 0.9rem;
}

.mypage-view[data-panel="dashboard"].is-active .mypage-panel {
  min-height: auto;
  display: block;
}

.mypage-view[data-panel="dashboard"].is-active .chart-block {
  flex: initial;
}

.mypage-view[data-panel="dashboard"].is-active .chart-area {
  flex: initial;
  min-height: 190px;
  max-height: none;
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-priority-card {
  --priority-accent-strong: var(--mp-accent);
  --priority-border: rgba(148, 163, 184, 0.18);
  --priority-text-strong: var(--mp-text);
  --priority-text-soft: var(--mp-text-secondary);
  display: block;
  margin-bottom: 0;
  padding: 0 0 1.2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.dashboard-priority-card::before {
  display: none;
}

.dashboard-priority-card.is-verify,
.dashboard-priority-card.is-renew,
.dashboard-priority-card.is-join,
.dashboard-priority-card.is-shortage,
.dashboard-priority-card.is-active {
  --priority-accent-strong: var(--mp-accent);
  --priority-text-strong: var(--mp-text);
  --priority-text-soft: var(--mp-text-secondary);
}

.dashboard-priority-card.is-neutral {
  --priority-accent-strong: #6b7280;
  --priority-text-strong: var(--mp-text);
  --priority-text-soft: var(--mp-text-secondary);
}

.dashboard-priority-main {
  position: relative;
  z-index: 1;
  margin-right: 0;
}

.dashboard-priority-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--priority-accent-strong);
}

.dashboard-priority-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--priority-text-strong);
}

.dashboard-priority-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.dashboard-priority-verify-line {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  color: var(--mp-text-secondary);
}

.dashboard-priority-verify-line #dashboard-priority-verify-status {
  margin-left: 0.2rem;
  color: var(--mp-text);
  font-weight: 700;
}

.dashboard-priority-verify-line #dashboard-priority-verify-status.is-verified {
  color: var(--mp-accent);
  background: rgba(91, 33, 182, 0.12);
  border: 1px solid rgba(111, 35, 208, 0.24);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}

.dashboard-priority-verify-line
  #dashboard-priority-verify-status.is-unverified {
  color: #92400e;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(217, 119, 6, 0.32);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}

.account-verify-line {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  color: var(--mp-text-secondary);
}

.account-verify-label {
  display: block;
}

.account-verify-line #verification-badge {
  display: inline-flex;
  margin-top: 0.18rem;
  color: var(--mp-text);
  font-weight: 700;
}

.account-verify-line #verification-badge.is-verified {
  color: var(--mp-accent);
  background: rgba(91, 33, 182, 0.12);
  border: 1px solid rgba(111, 35, 208, 0.24);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}

.account-verify-line #verification-badge.is-unverified {
  color: var(--mp-text-secondary);
  background: #f3f4f6;
  border: 1px solid rgba(209, 213, 219, 0.9);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}

.dashboard-priority-actions {
  display: flex;
  flex-wrap: wrap;
}

.dashboard-priority-actions.homepage-button {
  padding: 0;
  margin: 0;
}

.dashboard-priority-primary-action {
  min-height: 44px;
  border-radius: 0.8rem;
  font-weight: 700;
  padding-inline: 1rem;
  border: 0;
  background: var(--priority-accent-strong);
  box-shadow: none;
}

.dashboard-priority-primary-action:hover,
.dashboard-priority-primary-action:focus-visible {
  background: color-mix(in srgb, var(--priority-accent-strong) 90%, #000000);
}

.dashboard-empty-link {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  font-weight: 700;
  color: var(--mp-accent);
  text-decoration: none;
}

.dashboard-empty-link:hover,
.dashboard-empty-link:focus-visible {
  color: var(--mp-accent);
  text-decoration: underline;
}

/* -- Activity Table -- */

.dashboard-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.65rem;
}

.view-intro-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 1.25rem 0 0;
}

.view-intro-main {
  min-width: 0;
  max-width: 40rem;
  margin-right: 5rem;
}

.view-intro-kicker {
  margin: 0 0 0.22rem;
  color: var(--mp-accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.view-intro-title {
  margin: 0;
  color: var(--mp-text);
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.view-intro-note {
  color: var(--mp-text-secondary);
  font-size: 0.9rem;
}

.view-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.homepage-button {
  padding: 0.42rem 1.1rem;
}

.view-intro-meta {
  display: grid;
  min-width: min(16rem, 100%);
  margin: 0;
}

.view-intro-meta-item {
  display: grid;
  gap: 0.14rem;
  padding-top: 1.25rem;
}

.view-intro-meta dt {
  margin: 0;
  color: var(--mp-text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
}

.view-intro-meta dd {
  margin: 0;
  color: var(--mp-text);
  font-size: 0.98rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.dashboard-view-all {
  color: var(--mp-accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  transition: color var(--mp-transition);
}

.dashboard-view-all:hover {
  color: var(--mp-accent);
  text-decoration: underline;
}

.dashboard-table-wrap {
  border: 1px solid var(--mp-card-border);
  border-radius: var(--mp-card-radius);
  background: #ffffff;
  overflow: hidden;
  box-shadow: none;
}

.dashboard-activity-table thead th {
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--mp-text-secondary);
  font-weight: 700;
  background: #f3f4f6;
  border-bottom-color: var(--mp-card-border);
}

.dashboard-activity-table tbody td {
  font-size: 0.88rem;
  color: var(--mp-text);
  vertical-align: middle;
  border-top-color: rgba(17, 24, 39, 0.12);
  transition: background var(--mp-transition);
}

.dashboard-activity-table tbody tr:hover td {
  background: rgba(17, 24, 39, 0.03);
}

.dashboard-activity-desc {
  font-weight: 600;
}

.dashboard-category-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--mp-text-secondary);
  background: #f3f4f6;
  border: 1px solid rgba(17, 24, 39, 0.14);
}

.dashboard-category-pill.is-earned {
  color: #b00020;
  background: rgba(176, 0, 32, 0.1);
  border-color: rgba(176, 0, 32, 0.24);
}

.dashboard-category-pill.is-used {
  color: #007a3d;
  background: rgba(0, 122, 61, 0.1);
  border-color: rgba(0, 122, 61, 0.24);
}

.dashboard-amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dashboard-amount.is-positive {
  color: var(--mp-accent);
}

.dashboard-amount.is-negative {
  color: var(--mp-text-secondary);
}

/* ============================================================
   STATS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.dashboard-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  border: 0;
}

.dashboard-home-intro {
  padding-bottom: 0;
}

.dashboard-home-intro-header {
  padding-bottom: 1rem;
}

.dashboard-home-intro-meta {
  min-width: min(15rem, 100%);
}

.dashboard-home-stats {
  margin-top: 0;
  padding-top: 1rem;
}

.stat-tile {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.88rem;
  background: #ffffff;
  padding: 1rem 1.05rem;
  box-shadow: none;
}

.stat-tile:last-child {
  padding-right: 1rem;
}

.dashboard-stat-tile.is-balance {
  border-color: rgba(17, 24, 39, 0.16);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 72%);
}

.dashboard-stat-tile.is-status {
  border-color: rgba(17, 24, 39, 0.16);
  background: linear-gradient(180deg, #f3f4f6 0%, #ffffff 72%);
}

.stat-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--mp-text-secondary);
  font-weight: 700;
}

.stat-value {
  margin: 0.45rem 0 0;
  color: var(--mp-text);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.stat-unit {
  font-size: 0.45em;
  margin-left: 0.35rem;
  font-weight: 700;
  color: var(--mp-text-secondary);
}

.chart-subheading {
  margin: 0;
  color: var(--mp-text-secondary);
  font-size: 0.84rem;
}

.dashboard-stat-note {
  margin: 0.4rem 0 0;
  font-size: 0.76rem;
  color: var(--mp-text-secondary);
}

.chart-block {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* -- Chart -- */
.point-trend-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.point-trend-year-select-wrap {
  display: inline-flex;
  flex-direction: column;
  gap: 0.32rem;
  font-size: 0.78rem;
  color: var(--mp-text-secondary);
}

.point-trend-year-select-wrap .form-select {
  min-width: 130px;
}

.chart-area {
  margin-top: 0.2rem;
  min-height: 240px;
  max-height: 280px;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0;
  background: transparent;
  overflow-x: hidden;
  padding: 0.2rem 0 0.35rem;
}

.line-chart-svg {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  display: block;
  margin-inline: auto;
}

.line-chart-grid-line {
  stroke: rgba(148, 163, 184, 0.3);
  stroke-width: 1;
}

.line-chart-y-label,
.line-chart-x-label {
  fill: var(--mp-text-secondary);
  font-size: 11px;
}

.line-chart-path {
  fill: none;
  stroke: var(--mp-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-chart-dot {
  fill: var(--mp-accent);
  stroke: #ffffff;
  stroke-width: 2;
}

/* ============================================================
   PROFILE
   ============================================================ */
.profile-editor {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.35rem;
}

.avatar-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.avatar-preview-wrap {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  border: 3px solid rgba(92, 16, 190, 0.2);
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition:
    border-color var(--mp-transition),
    box-shadow var(--mp-transition);
}

.avatar-preview-wrap:hover {
  border-color: rgba(92, 16, 190, 0.4);
}

.avatar-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.avatar-preview.has-image {
  opacity: 1;
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--mp-text-secondary);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.profile-grid label,
.verify-form label,
.point-form label {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  font-size: 0.8rem;
  color: var(--mp-text-secondary);
  font-weight: 500;
}

.profile-grid input,
.profile-grid textarea,
.verify-form input:not([type="checkbox"]),
.point-form input {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.75rem;
  padding: 0.6rem 0.74rem;
  font-size: 0.9rem;
  color: var(--mp-text);
  background: rgba(255, 255, 255, 0.9);
  transition:
    border-color var(--mp-transition),
    box-shadow var(--mp-transition);
}

.profile-grid input:focus,
.profile-grid textarea:focus,
.verify-form input:not([type="checkbox"]):focus,
.point-form input:focus {
  outline: 0;
  border-color: rgba(92, 16, 190, 0.5);
  box-shadow: var(--mp-focus-ring);
}

.profile-grid input:disabled {
  background: #f8fafc;
  color: var(--mp-text-secondary);
}

.profile-grid .wide {
  grid-column: 1 / -1;
}

/* ============================================================
   COMMON ELEMENTS
   ============================================================ */
.field-label {
  margin: 0;
  color: var(--mp-text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
}

.field-value {
  margin: 0.32rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.status-text {
  margin: 0;
  font-size: 0.8rem;
  color: var(--mp-text-secondary);
  overflow-wrap: anywhere;
}

.status-block {
  min-height: 1.35em;
  margin-top: 0.45rem;
}

.status-text.is-error {
  color: var(--mp-danger);
}

.status-text.is-success {
  color: var(--mp-success);
}

.status-text.is-info {
  color: var(--mp-accent);
}

.status-text.is-warn {
  color: var(--mp-text-secondary);
}

/* ============================================================
   ACCOUNT / VERIFICATION
   ============================================================ */
.verification-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font-size: 0.8rem;
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}

.verification-badge.is-verified {
  background: rgba(91, 33, 182, 0.12);
  color: var(--mp-accent);
}

.verification-badge.is-unverified {
  background: #f3f4f6;
  color: var(--mp-text-secondary);
}

.account-social-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.account-signin-methods {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.account-signin-method-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.92);
  color: var(--mp-text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.account-signin-method-pill.is-password {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: #1d4ed8;
}

.account-signin-method-pill.is-google {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: #047857;
}

.account-signin-method-pill.is-apple {
  background: rgba(17, 24, 39, 0.06);
  border-color: rgba(17, 24, 39, 0.14);
  color: #111827;
}

.account-signin-method-pill.is-other,
.account-signin-method-pill.is-empty {
  background: #f8fafc;
  color: var(--mp-text-secondary);
}

.account-verify-panel.is-pending-panel {
  border-color: rgba(217, 119, 6, 0.34);
  background: linear-gradient(160deg, #fffbeb 0%, #fef3c7 100%);
}

.account-verify-panel.is-pending-panel .account-verify-panel-title {
  color: #92400e;
}

.account-verify-panel.is-pending-panel .account-verify-panel-description {
  color: #78350f;
}

.account-verify-panel.is-verified-panel {
  border-color: rgba(111, 35, 208, 0.18);
  background: #ffffff;
}

.account-verify-panel-head,
.danger-zone-head {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.account-verify-panel-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--mp-text-primary);
}

.account-verify-panel-description {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--mp-text-secondary);
}

.danger-zone-panel {
  border-color: rgba(239, 68, 68, 0.22);
  background: #ffffff;
}

.danger-zone-actions {
  justify-content: flex-start;
}

#open-delete-confirm-button {
  white-space: nowrap;
}

.verify-form {
  display: grid;
  gap: 0.75rem;
}

.verify-step-meta {
  display: grid;
  gap: 0.45rem;
}

.verify-step-progress {
  width: 100%;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
  overflow: hidden;
}

.verify-step-progress > span {
  display: block;
  height: 100%;
  width: 50%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d6efd 0%, #38bdf8 100%);
  transition: width 0.25s ease;
}

.verify-email-panel {
  display: grid;
  gap: 0.28rem;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 0.85rem;
  padding: 0.7rem 0.8rem;
  background: rgba(219, 234, 254, 0.45);
}

.verify-email-panel strong {
  color: #0f172a;
  font-weight: 700;
}

.verify-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.62rem;
  align-items: center;
}

.verify-otp-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.38rem;
}

.verify-otp-digit {
  height: 2.65rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  border: 1px solid rgba(148, 163, 184, 0.46);
  border-radius: 0.62rem;
  background: #fff;
}

.verify-otp-digit:focus {
  border-color: rgba(59, 130, 246, 0.82);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.22);
  outline: none;
}

.verify-help,
.verify-success-unlock {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 0.75rem;
  padding: 0.58rem 0.68rem;
  background: rgba(248, 250, 252, 0.9);
}

.verify-success-unlock {
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(220, 252, 231, 0.6);
}

/* ============================================================
   BUTTONS / ACTIONS
   ============================================================ */
.section-actions {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.62rem;
  flex-wrap: wrap;
}

.section-actions.compact {
  margin-top: 0;
}

.section-actions .btn {
  border-radius: 0.7rem;
  font-weight: 600;
  transition: all var(--mp-transition);
}

.primary-button,
.danger-button,
.small-button {
  font-size: 0.84rem;
  font-weight: 600;
}

.btn-primary {
  background: var(--mp-accent-gradient);
  border: 0;
  box-shadow: none;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-content {
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.modal-backdrop {
  backdrop-filter: blur(4px);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.is-hidden,
.is-hidden.d-flex,
.is-hidden.d-block,
.is-hidden.d-inline-flex,
.is-hidden.d-grid,
.alert.is-hidden,
#verify-card.is-hidden {
  display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199.98px) {
  .mypage-shell {
    grid-template-columns: 224px minmax(0, 1fr);
  }
}

@media (max-width: 991.98px) {
  body.mypage-page {
    min-height: 100vh;
    height: auto;
    overflow-y: auto;
  }

  .mypage-main-wrap {
    margin-top: 0;
    height: auto;
    min-height: 100vh;
    padding: 0.5rem 0 calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom) + 0.8rem);
  }

  .mypage-wide-container,
  .mypage-shell,
  .mypage-content {
    height: auto;
  }

  .mypage-shell {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
  }

  .mypage-sidebar {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    z-index: 1040;
    min-height: 0;
    height: auto;
    border-right: 0;
    border-bottom: 0;
    border-top: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  .mypage-top-header {
    position: sticky;
    top: 0;
    z-index: 1040;
  }

  .mobile-topbar {
    position: relative;
    width: 100%;
    min-height: var(--mobile-topbar-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.58rem 0.7rem 0.62rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  }

  .mypage-sidebar-content {
    display: none;
  }

  .sidebar-spacer {
    display: none;
  }

  .mypage-content {
    overflow: visible;
    display: block;
    padding: 0.15rem 0.5rem 0;
  }

  .mypage-view.is-active {
    height: auto;
    overflow: visible;
    padding-right: 1.35rem;
  }

  .mypage-view[data-panel="dashboard"].is-active .mypage-panel {
    min-height: 0;
    display: block;
  }

  .mypage-view[data-panel="dashboard"].is-active .chart-block,
  .mypage-view[data-panel="dashboard"].is-active .chart-area {
    flex: unset;
  }

  .mypage-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1045;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    height: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom));
    padding: 0.4rem 0.55rem calc(0.4rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  }

  .stats-grid,
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-editor {
    grid-template-columns: 1fr;
  }

  .avatar-col {
    align-items: center;
  }

  .section-actions {
    justify-content: flex-start;
  }

  .mypage-panel {
    padding: 0.96rem 0.92rem;
  }

}

@media (max-width: 767.98px) {
  .mobile-topbar {
    padding-inline: 0.55rem;
  }

  .mobile-topbar-brand-page {
    font-size: 0.93rem;
  }

  .mobile-topbar-main-actions {
    gap: 0.32rem;
  }

  .mobile-topbar-icon-action {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.58rem;
  }

  .mypage-bottom-nav {
    gap: 0.25rem;
    padding-inline: 0.35rem;
  }

  .mypage-bottom-nav-button {
    border-radius: 0.72rem;
    min-height: 52px;
    padding-inline: 0.25rem;
  }

  .mypage-bottom-nav-label {
    font-size: 0.62rem;
  }

  .dashboard-priority-card {
    padding: 0;
  }

  .dashboard-priority-actions {
    flex-direction: column;
  }

  .dashboard-priority-primary-action {
    width: 100%;
  }

  .dashboard-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .view-intro-header {
    flex-direction: column;
  }

  .view-intro-meta {
    width: 100%;
    min-width: 0;
  }

  .stats-grid,
  .dashboard-stats-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .mypage-panel {
    padding: 0.95rem;
  }

  .chart-area {
    min-height: 220px;
    overflow-x: hidden;
    padding-bottom: 0;
  }
  .verify-inline {
    grid-template-columns: 1fr;
  }

  .verify-otp-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .section-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section-actions .btn,
  .section-actions button,
  .section-actions label.btn {
    width: 100%;
    justify-content: center;
  }
}
