/* うららん マイページ
 * モバイル前提（〜430px）。色変数・ヘッダーは home.css と統一。
 */

:root {
  --c-bg: #F8F8F8;
  --c-surface: #FFFFFF;
  --c-border: #ECECEC;
  --c-text: #2C2C2A;
  --c-text-muted: #7A7770;
  --c-text-hint: #9A968C;
  --c-purple: #7B5BC4;
  --c-purple-soft: #B5A0DC;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app {
  height: 100dvh;
  max-width: 430px;
  margin: 0 auto;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
}

/* ===== ヘッダー ===== */
.app-header {
  flex: 0 0 auto;
  background: var(--c-surface);
  border-bottom: 0.5px solid var(--c-border);
}
.topbar {
  padding: 12px 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.topbar-point {
  font-size: 14px;
  color: #5A5A60;
  font-weight: 500;
}
.topbar-buy {
  font-size: 13px;
  color: var(--c-purple);
  border: 1px solid var(--c-purple-soft);
  border-radius: 6px;
  padding: 5px 16px;
  background: var(--c-surface);
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
}

/* ===== 本文 ===== */
.mypage-main {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  scrollbar-width: none;
}
.mypage-main::-webkit-scrollbar { display: none; }

.mypage-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--c-surface);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.mypage-menu > li + li,
.mypage-menu > li > .menu-row + .menu-row {
  border-top: 0.5px solid var(--c-border);
}
.mypage-menu > li {
  border-top: 0.5px solid var(--c-border);
}
.mypage-menu > li:first-child {
  border-top: 0;
}

.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px;
  text-decoration: none;
  color: var(--c-text);
  background: var(--c-surface);
  cursor: pointer;
}
.menu-row:active {
  background: #F4F0F8;
}
.menu-row--static {
  cursor: default;
}
.menu-row--static:active {
  background: var(--c-surface);
}

.menu-label {
  font-size: 15px;
  color: var(--c-text);
}
.menu-arrow {
  color: var(--c-text);
  flex: 0 0 auto;
}
.menu-value {
  font-size: 14px;
  color: var(--c-text-muted);
  flex: 0 0 auto;
}

/* ===== Bottom tab bar ===== */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--c-surface);
  border-top: 0.5px solid var(--c-border);
  display: flex;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 20;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: var(--c-text-hint);
  background: transparent;
  border: 0;
  padding: 4px 0;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
.tab svg { width: 22px; height: 22px; }
.tab.is-active { color: var(--c-purple); }
