/* Yay Tools — Apple HIG–inspired design system (responsive) */
/* Ref: https://developer.apple.com/design/human-interface-guidelines */

:root {
  color-scheme: dark;

  /* Semantic colors (dark) — HIG Color */
  --color-bg: #000000;
  --color-bg-elevated: #1c1c1e;
  --color-bg-secondary: #2c2c2e;
  --color-bg-tertiary: #3a3a3c;
  --color-label: #ffffff;
  --color-label-secondary: rgba(235, 235, 245, 0.6);
  --color-label-tertiary: rgba(235, 235, 245, 0.3);
  --color-separator: rgba(84, 84, 88, 0.65);
  --color-fill: rgba(120, 120, 128, 0.36);

  --color-accent: #0a84ff;
  --color-accent-pressed: #0066cc;
  --color-success: #30d158;
  --color-success-bg: rgba(48, 209, 88, 0.15);
  --color-warning: #ff9f0a;
  --color-danger: #ff453a;
  --color-danger-bg: rgba(255, 69, 58, 0.15);
  --color-info-bg: rgba(10, 132, 255, 0.15);

  /* Materials — HIG Materials */
  --material-blur: 24px;
  --material-bg: rgba(28, 28, 30, 0.72);
  --material-border: rgba(255, 255, 255, 0.08);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.45), 0 1px 0 var(--material-border) inset;

  /* Layout — HIG Layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  --content-max: 480px;
  --shop-max: 1080px;
  --touch-min: 44px;

  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'SF Mono', ui-monospace, Menlo, monospace;

  --text-large-title: clamp(1.75rem, 4vw, 2.125rem);
  --text-title: clamp(1.25rem, 3vw, 1.5rem);
  --text-headline: 1.0625rem;
  --text-body: 1rem;
  --text-callout: 0.9375rem;
  --text-footnote: 0.8125rem;
  --text-caption: 0.75rem;

  --ease-spring: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration-fast: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.47;
  color: var(--color-label);
  background: var(--color-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(10, 132, 255, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(88, 86, 214, 0.12), transparent);
}

/* —— App shell —— */
.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) clamp(var(--space-md), 4vw, var(--space-xl));
  background: var(--material-bg);
  backdrop-filter: saturate(180%) blur(var(--material-blur));
  -webkit-backdrop-filter: saturate(180%) blur(var(--material-blur));
  border-bottom: 0.5px solid var(--color-separator);
}

.app-nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-label);
  font-weight: 600;
  font-size: var(--text-headline);
  letter-spacing: -0.02em;
}

.app-nav__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, #0a84ff 0%, #5e5ce6 100%);
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.35);
  flex-shrink: 0;
}

.app-nav__link {
  font-size: var(--text-footnote);
  color: var(--color-accent);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  transition: background var(--duration-fast) var(--ease-spring);
}

.app-nav__link:hover {
  background: var(--color-fill);
}

.app-nav__end {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}

.app-nav__user {
  font-size: var(--text-caption);
  color: var(--color-label-secondary);
  max-width: min(200px, 40vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-main {
  flex: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-lg) clamp(var(--space-md), 4vw, var(--space-xl)) var(--space-2xl);
}

.app-main--shop {
  max-width: var(--shop-max);
}

/* —— Surface (material card) —— */
.surface {
  background: var(--material-bg);
  backdrop-filter: saturate(180%) blur(var(--material-blur));
  -webkit-backdrop-filter: saturate(180%) blur(var(--material-blur));
  border: 0.5px solid var(--material-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elevated);
  padding: clamp(var(--space-lg), 4vw, var(--space-xl));
}

.surface--flat {
  box-shadow: none;
  background: var(--color-bg-elevated);
}

/* —— Typography —— */
.page-title {
  margin: 0 0 var(--space-xs);
  font-size: var(--text-large-title);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-subtitle {
  margin: 0 0 var(--space-lg);
  font-size: var(--text-callout);
  color: var(--color-label-secondary);
}

.page-subtitle--muted {
  margin-top: calc(-1 * var(--space-md));
  font-size: var(--text-footnote);
  line-height: 1.4;
}

.eyebrow {
  margin: 0 0 var(--space-xs);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-title {
  margin: 0 0 var(--space-md);
  font-size: var(--text-title);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.text-muted {
  color: var(--color-label-secondary);
  font-size: var(--text-footnote);
}

.text-muted strong {
  color: var(--color-label);
  font-weight: 600;
}

/* —— Forms —— */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.field__label {
  font-size: var(--text-footnote);
  font-weight: 500;
  color: var(--color-label-secondary);
  padding-left: 2px;
}

.field__hint {
  margin: 0;
  font-size: var(--text-caption);
  color: var(--color-label-tertiary);
  line-height: 1.4;
}

.field__input {
  width: 100%;
  min-height: var(--touch-min);
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: var(--text-body);
  color: var(--color-label);
  background: var(--color-bg-secondary);
  border: 0.5px solid var(--color-separator);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  -webkit-appearance: none;
  appearance: none;
}

.field__input::placeholder {
  color: var(--color-label-tertiary);
}

.field__input:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.field__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.25);
}

.field__input--otp {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.otp-display {
  display: block;
  margin-top: var(--space-sm);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  font-variant-numeric: tabular-nums;
}

.otp-display--inline {
  display: inline;
  margin-top: 0;
  font-size: 1.25rem;
  letter-spacing: 0.2em;
}

.field__input--mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

/* —— Buttons —— */
.btn-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

@media (min-width: 480px) {
  .btn-row--inline {
    flex-direction: row;
  }
  .btn-row--inline .btn {
    flex: 1;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: var(--touch-min);
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-size: var(--text-body);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring), background var(--duration-fast), opacity var(--duration-fast);
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary,
.btn--filled {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover,
.btn--filled:hover {
  background: var(--color-accent-pressed);
}

.btn--tinted {
  background: rgba(10, 132, 255, 0.2);
  color: #64b5ff;
}

.btn--tinted:hover {
  background: rgba(10, 132, 255, 0.32);
}

.btn--plain {
  background: transparent;
  color: var(--color-label-secondary);
  font-weight: 500;
  min-height: var(--touch-min);
  padding: var(--space-sm) var(--space-md);
}

.btn--plain:hover {
  color: var(--color-label);
  background: var(--color-fill);
}

.btn--secondary {
  background: var(--color-fill);
  color: var(--color-label);
}

.btn--secondary:hover {
  background: rgba(120, 120, 128, 0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--color-accent);
  font-weight: 500;
}

.btn--block {
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* —— Banner（1件のみ表示）—— */
.banner {
  margin-bottom: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 0.5px solid transparent;
}

.banner__title {
  margin: 0;
  font-size: var(--text-headline);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.banner__message {
  margin: var(--space-xs) 0 0;
  font-size: var(--text-footnote);
  line-height: 1.45;
  opacity: 0.9;
}

.banner--success {
  background: rgba(48, 209, 88, 0.12);
  border-color: rgba(48, 209, 88, 0.28);
  color: #b8f5c8;
}

.banner--info {
  background: rgba(10, 132, 255, 0.12);
  border-color: rgba(10, 132, 255, 0.28);
  color: #b3d9ff;
}

.banner--error {
  background: var(--color-danger-bg);
  border-color: rgba(255, 69, 58, 0.35);
  color: #ff9f99;
}

/* レガシー（ログイン等） */
.alert {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-callout);
  line-height: 1.4;
  margin-bottom: var(--space-md);
}

.alert--error {
  background: var(--color-danger-bg);
  color: #ff6961;
  border: 0.5px solid rgba(255, 69, 58, 0.35);
}

/* —— Links —— */
.link-footer {
  margin-top: var(--space-lg);
  text-align: center;
  font-size: var(--text-footnote);
}

.link-footer a {
  color: var(--color-accent);
  text-decoration: none;
}

.link-footer a:hover {
  text-decoration: underline;
}

.link-footer .link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: var(--color-accent);
  cursor: pointer;
  text-decoration: none;
}

.link-footer .link-button:hover {
  text-decoration: underline;
}

/* —— Steam-like shop —— */
.page-shop {
  background: #0e141b;
  background-image: radial-gradient(120% 80% at 0% 0%, rgba(23, 67, 115, 0.35), transparent 50%),
    radial-gradient(80% 60% at 100% 0%, rgba(62, 42, 120, 0.2), transparent 45%);
}

.app-shell--shop {
  min-height: 100dvh;
}

.app-main--shop {
  max-width: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.shop-shell {
  display: flex;
  flex: 1;
  min-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
}

/* Sidebar（Steam 左ナビ風） */
.shop-sidebar {
  display: none;
  width: 240px;
  flex-shrink: 0;
  flex-direction: column;
  padding: var(--space-lg) var(--space-md);
  background: rgba(15, 20, 28, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 900px) {
  .shop-sidebar {
    display: flex;
  }
}

.shop-sidebar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.shop-sidebar__logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.shop-sidebar__name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e3f0ff;
}

.shop-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shop-sidebar__item {
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  color: #9eb5c9;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.shop-sidebar__item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.shop-sidebar__item--active {
  background: rgba(102, 192, 244, 0.15);
  color: #66c0f4;
}

.shop-sidebar__foot {
  margin-top: auto;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.shop-sidebar__profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.35rem;
  margin-bottom: var(--space-sm);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}

.shop-sidebar__profile:hover {
  background: rgba(255, 255, 255, 0.06);
}

.shop-sidebar__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(102, 192, 244, 0.35);
}

.shop-sidebar__avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(
    145deg,
    hsl(var(--avatar-hue, 210), 55%, 42%) 0%,
    hsl(calc(var(--avatar-hue, 210) + 40), 50%, 32%) 100%
  );
}

.shop-sidebar__profile-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shop-sidebar__profile-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e3f0ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-sidebar__profile-action {
  font-size: 0.6875rem;
  color: #66c0f4;
}

.shop-sidebar__logout-form {
  margin: 0;
}

.shop-sidebar__logout {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: var(--text-footnote);
  color: #66c0f4;
  cursor: pointer;
}

.shop-sidebar__logout:hover {
  text-decoration: underline;
}

.shop-main {
  flex: 1;
  min-width: 0;
  padding: var(--space-md) clamp(var(--space-md), 3vw, var(--space-xl)) var(--space-2xl);
  overflow-y: auto;
}

.shop-topbar {
  margin-bottom: var(--space-lg);
}

.shop-topbar__title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f0f6fc;
}

.shop-topbar__desc {
  margin: var(--space-xs) 0 0;
  font-size: var(--text-footnote);
  color: #7f9bb0;
}

.shop-shelf {
  margin-bottom: var(--space-2xl);
}

.shop-shelf__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shop-shelf__title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fa9bc;
}

.shop-shelf__count {
  font-size: var(--text-caption);
  color: #5a7085;
}

/* タイルグリッド（Steam カプセル風） */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1200px) {
  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

.tile {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}

.tile:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.tile--focus {
  box-shadow: 0 0 0 2px #66c0f4;
}

.tile--soon {
  opacity: 0.72;
}

.tile--soon:hover {
  transform: none;
  box-shadow: none;
}

.tile__inner {
  display: block;
  text-decoration: none;
  color: inherit;
}

.tile__inner--store {
  display: flex;
  flex-direction: column;
}

.tile__cover-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.tile__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: #1a2332;
}

.tile__cover-bg,
.tile__cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tile__cover-bg {
  background-size: cover;
  background-position: center;
}

.tile__cover-img {
  object-fit: cover;
  object-position: center;
  display: block;
}

.tile__cover-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 45%,
    rgba(0, 0, 0, 0.25) 100%
  );
  pointer-events: none;
}

.tile__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.2s;
}

.tile:hover .tile__hover {
  opacity: 1;
}

.tile--soon .tile__hover {
  display: none;
}

.tile__cta {
  padding: 0.45rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.tile__cta--play {
  background: linear-gradient(180deg, #75b022 0%, #588a1f 100%);
  color: #d2e885;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tile__cta--buy {
  background: linear-gradient(180deg, #66c0f4 0%, #2f8fc9 100%);
  color: #fff;
}

.tile__cta--muted {
  background: rgba(255, 255, 255, 0.12);
  color: #8fa9bc;
}

.tile__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 0.2rem 0.45rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 3px;
}

.tile__badge--owned {
  background: rgba(27, 40, 56, 0.85);
  color: #a4d007;
  border: 1px solid rgba(164, 208, 7, 0.35);
}

.tile__badge--store {
  background: rgba(0, 0, 0, 0.5);
  color: #c7d5e0;
}

.tile__meta {
  padding: 0.65rem 0.15rem 0.25rem;
  background: transparent;
}

.tile__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e3f0ff;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile__subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: #6b8499;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile--owned .tile__title {
  color: #fff;
}

.tile__key-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  color: #66c0f4;
  text-decoration: none;
}

.tile__key-link:hover {
  text-decoration: underline;
}

.tile__key-note {
  margin: 0.35rem 0 0;
  font-size: 0.6875rem;
  color: #8ba3b8;
  line-height: 1.4;
}

.payment-mode-banner .banner__message {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #b8c9d9;
}

.payment-mode-banner .banner__message a {
  color: #66c0f4;
}

.store-key-banner {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  border-radius: 10px;
  background: rgba(22, 30, 42, 0.85);
  border: 1px solid rgba(102, 192, 244, 0.2);
}

.store-key-banner__title {
  margin: 0 0 var(--space-xs);
  font-size: 1rem;
  font-weight: 600;
  color: #e3f0ff;
}

.store-key-banner__desc {
  margin: 0 0 var(--space-md);
  font-size: var(--text-footnote);
  color: #7f9bb0;
  line-height: 1.5;
}

.empty-state {
  text-align: center;
  color: var(--color-label-secondary);
  padding: var(--space-2xl);
}

/* モバイル: 下部タブバー分の余白 */
@media (max-width: 899px) {
  .shop-main {
    padding-bottom: calc(var(--space-2xl) + 76px + env(safe-area-inset-bottom));
  }
}

.shop-mobile-bar {
  display: flex;
  align-items: stretch;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 4px 4px 0;
  padding-bottom: calc(4px + env(safe-area-inset-bottom));
  gap: 2px;
  background: rgba(12, 16, 22, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

@media (min-width: 900px) {
  .shop-mobile-bar {
    display: none;
  }
}

.shop-mobile-bar__item,
.shop-mobile-bar__form button.shop-mobile-bar__item {
  flex: 1;
  min-width: 0;
  min-height: 56px;
  padding: 6px 4px 8px;
  border: none;
  border-radius: 10px;
  font: inherit;
  text-decoration: none;
  color: #6b8499;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.shop-mobile-bar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 1.125rem;
  line-height: 1;
  transition: background 0.15s, transform 0.15s;
}

.shop-mobile-bar__label {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 380px) {
  .shop-mobile-bar__label {
    font-size: 0.625rem;
  }
}

.shop-mobile-bar__item--active {
  color: #66c0f4;
}

.shop-mobile-bar__item--active .shop-mobile-bar__icon {
  background: rgba(102, 192, 244, 0.22);
  color: #8fd4ff;
}

.shop-mobile-bar__item:active:not(.shop-mobile-bar__item--active) {
  background: rgba(255, 255, 255, 0.06);
}

.shop-mobile-bar__item--logout {
  color: #8a9bb0;
}

.shop-mobile-bar__item--logout .shop-mobile-bar__icon {
  color: #c9a0a8;
}

.shop-mobile-bar__item--logout:active {
  background: rgba(255, 69, 58, 0.12);
  color: #ff8a80;
}

.shop-mobile-bar__form {
  flex: 1;
  display: flex;
  min-width: 0;
  margin: 0;
}

.shop-mobile-bar__form .shop-mobile-bar__item {
  width: 100%;
  cursor: pointer;
}

.page-shop .banner {
  border-radius: 8px;
}

.page-shop .banner--success {
  background: rgba(117, 176, 34, 0.12);
  border-color: rgba(164, 208, 7, 0.25);
  color: #c6e377;
}

.page-shop .banner--info {
  background: rgba(102, 192, 244, 0.1);
  border-color: rgba(102, 192, 244, 0.25);
  color: #9ed4f7;
}

/* —— Profile —— */
.profile-card {
  max-width: 520px;
}

.profile-card__preview {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-card__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid rgba(102, 192, 244, 0.4);
}

.profile-card__avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(
    145deg,
    hsl(var(--avatar-hue, 210), 55%, 42%) 0%,
    hsl(calc(var(--avatar-hue, 210) + 40), 50%, 32%) 100%
  );
}

.profile-card__name {
  margin: 0 0 var(--space-xs);
  font-size: 1.375rem;
  font-weight: 700;
  color: #e3f0ff;
}

.profile-card__email {
  margin: 0;
  font-size: var(--text-footnote);
  color: #6b7f92;
}

.page-shop .profile-card.surface {
  background: rgba(22, 30, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: var(--space-xl);
}

/* —— Lock page icon —— */
.status-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-lg);
  border-radius: 50%;
  background: var(--color-danger-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.surface--center {
  text-align: center;
}
