.mypage-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 56px;
  box-sizing: border-box;
}

.mypage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.mypage-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-button {
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(120, 206, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-link-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.sidebar-card,
.content-card,
.summary-card,
.service-card {
  border-radius: 20px;
  background: rgba(7, 16, 34, 0.82);
  border: 1px solid rgba(111, 204, 255, 0.24);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 16px 50px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(47, 180, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #eaf6ff;
}

.sidebar-card {
  padding: 18px;
  position: sticky;
  top: 20px;
  height: fit-content;
}

.side-section-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #73d9ff;
  text-transform: uppercase;
}

.profile-overview {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(115, 217, 255, 0.12);
  margin-bottom: 16px;
}

.profile-name {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.profile-email {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(234, 246, 255, 0.74);
  word-break: break-all;
}

.status-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.status-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(115, 217, 255, 0.1);
}

.status-item-label {
  margin: 0 0 6px;
  font-size: 11px;
  color: #87ddff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-item-value {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav-button {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(120, 206, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #eaf6ff;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}

.side-nav-button.is-active {
  background: linear-gradient(135deg, rgba(28, 181, 255, 0.18), rgba(59, 130, 255, 0.18));
  border-color: rgba(98, 214, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(98, 214, 255, 0.1) inset;
}

.main-column {
  display: grid;
  gap: 18px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.friend-summary-grid {
  margin-bottom: 18px;
}

.summary-card {
  padding: 18px;
}

.summary-label {
  margin: 0 0 8px;
  font-size: 11px;
  color: #87ddff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-value {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}

.summary-sub {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(234, 246, 255, 0.7);
}

.content-card {
  padding: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.section-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.section-subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(234, 246, 255, 0.72);
}

.section-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-grid {
  display: grid;
  gap: 12px;
}

.detail-row {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(115, 217, 255, 0.14);
}

.detail-label {
  margin: 0 0 6px;
  font-size: 12px;
  color: #87ddff;
}

.detail-value {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  word-break: break-all;
}

.sub-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(234, 246, 255, 0.66);
}

.hidden {
  display: none !important;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  display: block;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(98, 214, 255, 0.42);
  text-decoration: none;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(28, 181, 255, 0.16);
  color: #9fe7ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-title {
  margin: 12px 0 8px;
  font-size: 20px;
  font-weight: 800;
}

.service-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(234, 246, 255, 0.74);
}

.service-meta {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: #aee9ff;
}

.empty-state {
  padding: 22px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(115, 217, 255, 0.2);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(234, 246, 255, 0.74);
}

.settings-layout {
  display: grid;
  gap: 18px;
}

.settings-view,
.settings-edit {
  display: grid;
  gap: 12px;
}

.settings-edit-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.save-message {
  min-height: 20px;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: #bdeeff;
}

.alert-box {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(115, 217, 255, 0.12);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(234, 246, 255, 0.76);
}

.mini-link-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mini-link {
  color: #7edcff;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.7;
}

.mini-link:hover {
  text-decoration: underline;
}

.inline-id-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mono-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: 0.03em;
  word-break: break-all;
}

.mini-copy-button {
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(120, 206, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #eaf6ff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.mini-copy-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.friend-id-box {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(115, 217, 255, 0.12);
}

.friend-id-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(234, 246, 255, 0.72);
}

.form-group select.form-input {
  width: 100%;
}

.primary-button {
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(98, 214, 255, 0.35);
  background: linear-gradient(135deg, rgba(28, 181, 255, 0.95), rgba(59, 130, 255, 0.95));
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(29, 130, 255, 0.24);
}

.primary-button:hover {
  filter: brightness(1.05);
}

.primary-button:disabled,
.ghost-button:disabled,
.mini-copy-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.grow {
  flex: 1 1 auto;
}

.inline-message {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #bdeeff;
}

.friend-search-box {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(115, 217, 255, 0.12);
  margin-bottom: 18px;
}

.friend-search-header {
  margin-bottom: 14px;
}

.friend-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.friend-search-results {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.friend-result-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(115, 217, 255, 0.14);
}

.friend-result-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.friend-result-name {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.friend-result-public-id {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #9fe7ff;
}

.friend-result-meta {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(234, 246, 255, 0.72);
}

.friend-result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.friend-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d2f3ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.friend-result-badge.is-blocked {
  background: rgba(255, 87, 87, 0.14);
  color: #ffb2b2;
}

.friend-result-badge.is-following {
  background: rgba(28, 181, 255, 0.16);
  color: #9fe7ff;
}

.friend-result-detail-button {
  min-width: 110px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 8, 20, 0.7);
  backdrop-filter: blur(8px);
}

.modal-card {
  width: min(100%, 760px);
  max-height: min(90vh, 900px);
  overflow: auto;
  border-radius: 22px;
  background: rgba(7, 16, 34, 0.96);
  border: 1px solid rgba(111, 204, 255, 0.24);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 16px 50px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(47, 180, 255, 0.12);
  color: #eaf6ff;
}

.friend-modal-card {
  width: min(100%, 820px);
}

.confirm-modal-card {
  width: min(100%, 560px);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(115, 217, 255, 0.1);
}

.modal-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  color: #87ddff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.modal-close-button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(120, 206, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal-close-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.friend-detail-body,
.friend-confirm-body {
  padding: 18px 20px;
}

.friend-detail-hero {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(115, 217, 255, 0.12);
  margin-bottom: 16px;
}

.friend-detail-name {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.friend-detail-public-id {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.7;
  color: #9fe7ff;
}

.friend-detail-status-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.friend-detail-grid {
  display: grid;
  gap: 12px;
}

.friend-detail-warning {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 87, 87, 0.08);
  border: 1px solid rgba(255, 87, 87, 0.18);
  color: #ffd5d5;
  font-size: 14px;
  line-height: 1.8;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 0 20px 20px;
}

.danger-button {
  border-color: rgba(255, 114, 114, 0.26);
  color: #ffc1c1;
}

.danger-button:hover {
  background: rgba(255, 87, 87, 0.1);
}

.danger-solid-button {
  border-color: rgba(255, 87, 87, 0.28);
  background: linear-gradient(135deg, rgba(255, 87, 87, 0.96), rgba(220, 38, 38, 0.96));
  box-shadow: 0 10px 24px rgba(255, 87, 87, 0.2);
}

.friend-subnav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.friend-subnav-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(120, 206, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #eaf6ff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.friend-subnav-button.is-active {
  background: linear-gradient(135deg, rgba(28, 181, 255, 0.18), rgba(59, 130, 255, 0.18));
  border-color: rgba(98, 214, 255, 0.45);
}

.friend-pane {
  display: block;
}

.friend-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.relation-list,
.notification-list {
  display: grid;
  gap: 12px;
}

.relation-card,
.notification-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(115, 217, 255, 0.14);
}

.relation-card-main,
.notification-card-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.relation-card-name {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.relation-card-public-id {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #9fe7ff;
}

.relation-card-meta {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(234, 246, 255, 0.72);
}

.relation-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.approval-action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.notification-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.notification-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(234, 246, 255, 0.78);
}

.notification-meta {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #9fe7ff;
}

.notification-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 189, 89, 0.16);
  color: #ffd68a;
  font-size: 11px;
  font-weight: 700;
}

.notification-read-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d2f3ff;
  font-size: 11px;
  font-weight: 700;
}

.empty-inline-box {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(115, 217, 255, 0.18);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(234, 246, 255, 0.72);
}

@media (max-width: 760px) {
  .friend-pane-header,
  .relation-card-main,
  .notification-card-main {
    flex-direction: column;
    align-items: stretch;
  }

  .relation-card-actions,
  .approval-action-row {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .friend-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .friend-result-main {
    flex-direction: column;
    align-items: stretch;
  }

  .friend-result-actions {
    justify-content: flex-start;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions>* {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-card {
    position: static;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mypage-header {
    flex-direction: column;
    align-items: stretch;
  }

  .mypage-header-actions {
    justify-content: flex-start;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
  }
}