/* 공통 설정 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    -apple-system, sans-serif;
  background-color: #f5f5f5;
  color: #111;
}

.app-root {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* 모바일 기기 프레임 느낌 */
.mobile-frame {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background-color: #ffffff;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  position: relative;
}

main {
  height: 100%;
}

button {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
}

button:focus {
  outline: 2px solid #007aff;
  outline-offset: 2px;
}

/* 역할 선택 화면 */
.role-select {
  display: flex;
  height: 100vh;
}

.role-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 40px 16px;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.role-panel:active {
  transform: scale(0.98);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.08);
}

.role-owner {
  background-color: #ffffff;
  color: #000000;
}

.role-seller {
  background-color: #2f7ed8;
  color: #ffffff;
}

.role-inner {
  text-align: center;
}

.role-subtitle {
  font-size: 13px;
  line-height: 1.5;
  color: #444444;
  margin-bottom: 16px;
}

.role-subtitle--light {
  color: #e6f1ff;
}

.role-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.role-title--light {
  color: #ffffff;
}

/* 역할 선택 페이지 개선 (index.html) */
.role-select-root .mobile-frame {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.index-header {
  padding: 32px 24px 24px;
  text-align: center;
  flex-shrink: 0;
}

.index-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.index-logo {
  font-size: 28px;
  color: #2f7ed8;
  line-height: 1;
}

.index-brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #111;
}

.index-tagline {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.role-select-root .role-select {
  flex: 1;
  display: flex;
  gap: 12px;
  padding: 0 20px 20px;
  align-items: stretch;
  min-height: 0;
}

.role-select-root .role-panel {
  flex: 1;
  border-radius: 16px;
  padding: 28px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.role-select-root .role-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.role-select-root .role-panel:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.role-icon {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  line-height: 48px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
}

.role-icon-owner {
  background: rgba(0, 0, 0, 0.06);
  color: #333;
}

.role-icon-seller {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.role-select-root .role-title {
  font-size: 22px;
  margin: 0 0 8px;
}

.role-select-root .role-subtitle {
  font-size: 13px;
  margin: 0 0 16px;
  line-height: 1.45;
}

.role-cta {
  font-size: 13px;
  font-weight: 600;
  color: #2f7ed8;
}

.role-cta--light {
  color: rgba(255, 255, 255, 0.95);
}

.index-footer {
  padding: 16px 24px 28px;
  text-align: center;
  flex-shrink: 0;
}

.index-login-link {
  font-size: 14px;
  color: #666;
  text-decoration: none;
}

.index-login-link:hover {
  color: #2f7ed8;
  text-decoration: underline;
}

/* 로그인 화면 */
.login-root .mobile-frame {
  display: flex;
  flex-direction: column;
}

.login {
  padding: 56px 24px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.login-header {
  display: flex;
  justify-content: center;
  margin-bottom: 56px;
}

.login-logo-circle {
  width: 120px;
  height: 120px;
  border-radius: 60px;
  background-color: #2f7ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
}

.login-logo-image {
  width: 80%;
  height: auto;
  object-fit: contain;
}

.login-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.btn {
  width: 100%;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    background-color 0.12s ease-out;
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) inset;
}

.btn-kakao {
  background-color: #fee500;
  color: #191919;
}

.btn-google {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  color: #111111;
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.btn-icon-kakao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-icon-kakao svg {
  width: 20px;
  height: 20px;
  display: block;
}

.btn-email {
  background-color: #f2f2f2;
  color: #333333;
}

.login-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.login-legal {
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #888888;
}

.text-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #666666;
}

.text-link.small {
  font-size: 11px;
}

a.text-link {
  text-decoration: none;
}

a.text-link:hover {
  text-decoration: underline;
}

.separator-dot {
  color: #c0c0c0;
}

.separator-dot.small {
  font-size: 10px;
}

/* 폼 화면 (이메일 로그인/회원가입) */
.form-root .mobile-frame {
  display: flex;
  flex-direction: column;
}

/* ── 등록 페이지 버튼 칩 ─────────────────────────────────────── */
.pub-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.pub-chip {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid #e0e0e0;
  background: #fafafa;
  color: #555;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.3;
}
.pub-chip:active { transform: scale(0.97); }
.pub-chip--active {
  background: #111;
  color: #fff;
  border-color: #111;
}
.pub-chip--custom {
  border-style: dashed;
  color: #888;
}
.pub-chip--custom.pub-chip--active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}
.pub-custom-input {
  margin-top: 8px;
}

/* 등록 폼 힌트 텍스트 */
.field-hint {
  font-size: 12px;
  color: #7c3aed;
  margin: 6px 0 0;
  line-height: 1.5;
  background: #f5f3ff;
  border-radius: 8px;
  padding: 8px 12px;
}

/* 사진 미리보기 그리드 */
.pub-photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pub-photo-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1.5px solid #e0e0e0;
  flex-shrink: 0;
}

/* 진행률 바 */
.pub-progress-wrap {
  margin-bottom: 12px;
}

.pub-progress-bar {
  height: 6px;
  background: #ede9fe;
  border-radius: 99px;
  overflow: hidden;
}

.pub-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  border-radius: 99px;
  transition: width 0.2s;
  width: 0%;
}

.pub-progress-text {
  font-size: 12px;
  color: #7c3aed;
  margin: 6px 0 0;
  font-weight: 600;
}

.publish-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px 12px 16px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.publish-header .back-button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #111;
  cursor: pointer;
  border-radius: 8px;
}

.publish-header .back-button:hover {
  background: #f0f0f0;
}

.publish-header-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.form-page {
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.form-header {
  margin-bottom: 20px;
}

.form-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.form-subtitle {
  margin: 0;
  font-size: 13px;
  color: #666666;
  line-height: 1.5;
}

.form-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-inline .field-input {
  flex: 1;
}

.field-inline .link-button {
  margin-top: 0;
  white-space: nowrap;
}

.form-error {
  min-height: 18px;
  margin: 4px 0;
  font-size: 12px;
  color: #e53935;
}

/* 사업자 인증 화면 */
.business-root .mobile-frame {
  display: flex;
  flex-direction: column;
}

.business-verify {
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.business-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.back-button {
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
}

.business-progress {
  display: flex;
  gap: 6px;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: #d0d6e4;
}

.progress-dot-active {
  width: 18px;
  background-color: #2f7ed8;
}

.business-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.business-steps {
  flex: 1;
  overflow-y: auto;
}

.business-step {
  display: none;
}

.business-step-active {
  display: block;
}

.business-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.business-desc {
  margin: 0 0 16px;
  font-size: 14px;
  color: #666666;
  line-height: 1.5;
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.choice-item {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 14px 16px 14px 48px;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  background-color: #ffffff;
  font-size: 14px;
  color: #333333;
  cursor: pointer;
}

.choice-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #d0d6e4;
  background-color: #ffffff;
}

.choice-item-active {
  border-color: #2f7ed8;
  background-color: #f0f4ff;
  color: #1f3d7a;
}

.choice-item-active::before {
  border-color: #2f7ed8;
  background-color: #2f7ed8;
  box-shadow: 0 0 0 3px rgba(47, 126, 216, 0.15);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 13px;
  color: #555555;
}

.field-label-sub {
  display: block;
  margin-top: 10px;
  margin-bottom: 4px;
  font-size: 12px;
  color: #777;
}

.field-input {
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  padding: 10px 12px;
  font-size: 14px;
}

.field-input:focus {
  border-color: #2f7ed8;
  outline: none;
  box-shadow: 0 0 0 2px rgba(47, 126, 216, 0.1);
}

.btn-primary {
  margin-top: 8px;
  background-color: #2f7ed8;
  color: #ffffff;
}

/* 등록 페이지: 노출 타입별 필드 (JS로 표시 제어) */
.form-field-media {
  display: none;
}
.form-field-media.form-field-media--visible {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 파일 선택 버튼 업그레이드 */
.file-upload-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.file-upload-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.file-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: 2px dashed #2f7ed8;
  background: linear-gradient(135deg, #f8faff 0%, #eef4ff 100%);
  color: #2f7ed8;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(47, 126, 216, 0.08);
}
.file-upload-btn:hover {
  background: linear-gradient(135deg, #eef4ff 0%, #e0ebff 100%);
  border-color: #1d6ac4;
  color: #1d6ac4;
  box-shadow: 0 4px 12px rgba(47, 126, 216, 0.15);
  transform: translateY(-1px);
}
.file-upload-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(47, 126, 216, 0.12);
}
.file-upload-btn.has-file {
  border-style: solid;
  background: linear-gradient(135deg, #e8f2ff 0%, #d6e8ff 100%);
  color: #1d6ac4;
}
.file-upload-icon {
  font-size: 20px;
  line-height: 1;
}
.file-upload-text {
  letter-spacing: -0.02em;
}
.file-upload-name {
  font-size: 13px;
  color: #666;
  padding: 0 4px;
  word-break: break-all;
}
.file-upload-name:empty {
  display: none;
}

/* 기본으로 숨겨두는 혜택 만들기 버튼 (JS로 보이게 처리) */
#btn-create-event {
  display: none;
}

.link-button {
  margin-top: 4px;
  background: none;
  border: none;
  color: #777777;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.business-footer {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-footer {
  width: 100%;
  border-radius: 999px;
  padding: 12px 18px;
  background-color: #2f7ed8;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* 홈 화면 */
.home-root .mobile-frame {
  display: flex;
  flex-direction: column;
}

.home-topbar {
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}

.home-logo-text {
  font-weight: 700;
  font-size: 18px;
}

.home-top-right {
  display: flex;
  gap: 16px;
}

.icon-button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.header-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.home {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 80px;
}

/* 주문 및 예약 페이지 */
.orders-main {
  padding-top: 16px;
}

.orders-tabs {
  display: flex;
  gap: 8px;
  padding: 0 2px 8px;
}

.orders-tab {
  flex: 1;
  padding: 10px 0;
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  background: #f8f8f8;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.orders-tab-active {
  background: linear-gradient(135deg, #2f7ed8, #1d6ac4);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(47, 126, 216, 0.35);
}

.orders-subtabs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 10px;
}

.orders-subtab {
  flex: 1;
  padding: 8px 0;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  font-size: 12px;
  color: #777;
  cursor: pointer;
}

.orders-subtab-active {
  border-color: #2f7ed8;
  background: #e8f4ff;
  color: #2f7ed8;
  font-weight: 600;
}

.orders-date {
  margin: 4px 0 10px;
}

.orders-date-toggle {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background: #fff;
  font-size: 13px;
  color: #444;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.orders-date-toggle span {
  font-weight: 600;
}

.orders-date-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.orders-card {
  margin-top: 4px;
}

.orders-card-inner {
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #eef0ff;
  box-shadow: 0 6px 20px rgba(47, 126, 216, 0.06);
}

.orders-field {
  margin: 0 0 8px;
  font-size: 13px;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.orders-field::after {
  content: "—";
  font-size: 11px;
  color: #bbb;
  margin-left: 8px;
}

.orders-field.has-value::after {
  content: "";
  margin: 0;
}

.orders-field-label {
  font-weight: 500;
}

.orders-field-value {
  font-size: 13px;
  color: #111;
}

.orders-divider {
  border: none;
  border-top: 1px dashed #e0e4f0;
  margin: 8px 0;
}

.orders-bottom-btn {
  margin-top: 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.home-categories {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  -ms-overflow-style: none;
}

.home-categories::-webkit-scrollbar {
  display: none;
}

@supports (scrollbar-width: none) {
  .home-categories { scrollbar-width: none; }
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  background-color: #ffffff;
  font-size: 12px;
  white-space: nowrap;
}

.chip-active {
  border-color: #2f7ed8;
  background-color: #e8f1ff;
  color: #1f5dad;
}

.chip:hover {
  border-color: #c0d6ff;
  background-color: #f3f7ff;
}

.home-stories {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.story-card {
  flex: 1;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(135deg, #ffe9f0, #e8f1ff);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.story-label {
  font-size: 11px;
  color: #666666;
}

.story-title {
  font-size: 13px;
  font-weight: 600;
}

.home-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feed-card {
  border-radius: 18px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.feed-thumbnail {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.feed-thumb-1 {
  background-image: linear-gradient(135deg, #ffe0ec, #ffd6b3);
}

.feed-thumb-2 {
  background-image: linear-gradient(135deg, #ffe8c2, #f5f1d5);
}

.feed-info {
  padding: 14px 16px 12px;
}

.feed-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.feed-subtitle {
  margin: 0 0 8px;
  font-size: 13px;
  color: #666666;
}

.feed-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: #999999;
}

.feed-empty {
  padding: 40px 16px;
  text-align: center;
  font-size: 13px;
  color: #888888;
}

.feed-empty-text {
  margin: 0 0 6px;
  font-size: 15px;
  color: #333;
}

.feed-empty-sub {
  margin: 0 0 20px;
  font-size: 13px;
  color: #666;
}

.feed-empty-btn {
  display: inline-block;
  padding: 14px 24px;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

.feed-empty-soft {
  color: #666;
  font-size: 14px;
}

/* 검색 페이지 */
.search-main {
  padding: 16px;
}
.search-header {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.search-input-main {
  flex: 1;
}
.search-results-section {
  flex: 1;
  overflow-y: auto;
}
.search-results {
  list-style: none;
  padding: 0;
  margin: 0;
}
.search-result-item {
  width: 100%;
  text-align: left;
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px solid #eee;
  margin-bottom: 8px;
  background-color: #fff;
  cursor: pointer;
}
.search-result-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.search-result-sub {
  font-size: 13px;
  color: #666;
}
.search-empty {
  margin-top: 12px;
  font-size: 13px;
  color: #777;
}

/* 혜택 받기 페이지 업그레이드 */
.benefits-main {
  padding-bottom: 80px;
}

.benefits-hero {
  padding: 28px 20px 24px;
  text-align: center;
  background: linear-gradient(165deg, #f0f7ff 0%, #e8f4ff 50%, #fff 100%);
  border-radius: 0 0 24px 24px;
  margin-bottom: 8px;
  box-shadow: 0 4px 20px rgba(47, 126, 216, 0.06);
}

.benefits-hero-icon {
  font-size: 40px;
  margin-bottom: 12px;
  line-height: 1;
}

.benefits-hero-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.benefits-hero-desc {
  margin: 0 0 20px;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.benefits-hero-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.benefits-hero-cta {
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(47, 126, 216, 0.25);
}

.benefits-list-wrap {
  padding: 0 16px;
}

.benefits-list-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.benefits-list-heading {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.benefits-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── 혜택 카드 (새 디자인) ── */
.benefit-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.15s;
}

.benefit-card:active {
  transform: scale(0.985);
  box-shadow: 0 6px 24px rgba(47,126,216,0.12);
}

/* 이벤트 이미지 썸네일 */
.benefit-card-img {
  height: 140px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 12px;
}

/* 이벤트 유형 배지 */
.benefit-card-type-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #4f46e5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* 카드 본문 */
.benefit-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 오너/스토어 정보 행 */
.benefit-card-owner-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}

.benefit-card-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #a78bfa);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-card-owner-name {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.benefit-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin: 0;
  line-height: 1.35;
}

.benefit-card-desc {
  font-size: 13px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

.benefit-card-reward-row {
  margin-top: 2px;
}

.benefit-card-reward {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border-radius: 8px;
  padding: 4px 10px;
}

.benefit-card-condition {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
  background: #f9fafb;
  border-radius: 8px;
  padding: 6px 10px;
}

.benefit-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.benefit-card-deadline {
  font-size: 12px;
  color: #9ca3af;
}

.benefit-card-cap {
  font-size: 11px;
  color: #6366f1;
  font-weight: 600;
  background: #ede9fe;
  border-radius: 999px;
  padding: 3px 9px;
}

.benefit-claim-btn {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
}

/* ── 내가 신청한 혜택 탭 ── */
.mb-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #f0f0f0;
  background: #fff;
  position: sticky;
  top: 56px;
  z-index: 10;
}

.mb-tab {
  flex: 1;
  padding: 13px 16px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.mb-tab--active {
  color: #4f46e5;
  border-bottom-color: #4f46e5;
}

.mb-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  padding-bottom: 90px;
}

/* 신청 내역 카드 */
.mb-claim-card {
  opacity: 1;
  transition: opacity 0.2s;
}

.mb-claim-card--expired {
  opacity: 0.7;
}

.mb-claim-date {
  margin-left: auto;
  font-size: 11px;
  color: #d1d5db;
  flex-shrink: 0;
}

.mb-active-badge,
.mb-expired-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.mb-active-badge {
  background: rgba(5,150,105,0.9);
  color: #fff;
}

.mb-expired-badge {
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.8);
}

.mb-status-badge {
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 9px;
}

.mb-status--active {
  color: #059669;
  background: #d1fae5;
}

.mb-status--done {
  color: #6b7280;
  background: #f3f4f6;
}

/* 이벤트 피드 목록 레이아웃 */
.benefits-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  padding-bottom: 90px;
}

.benefits-list-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 8px;
}

.benefits-list-heading {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin: 0;
}

.home-tabbar {
  height: 56px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  background-color: #ffffff;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 430px);
  z-index: 100;
}

.tab-item {
  flex: 1;
  border: none;
  background: none;
  font-size: 11px;
  color: #999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.tab-item-active {
  color: #2f7ed8;
  font-weight: 600;
}

.tab-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.tab-label {
  font-size: 10px;
  display: none;
}

/* 상세 페이지 */
.product-detail-page {
  padding-top: 24px;
}

.product-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.product-media {
  width: 100%;
  height: 200px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffe0ec, #ffd6b3);
  margin-bottom: 16px;
}

.product-media-filled {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.product-store {
  font-size: 12px;
  color: #666666;
  margin-bottom: 4px;
}

.product-description {
  font-size: 14px;
  margin-bottom: 8px;
}

.product-price {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.product-benefits h2 {
  font-size: 14px;
  margin: 0 0 4px;
}

.product-benefits p {
  font-size: 13px;
  margin: 0 0 12px;
  color: #666666;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

/* ────────────────────────────────────────
   Product Detail v2 (pd-*)
──────────────────────────────────────── */

/* 플로팅 헤더 */
.pd-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 430px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  z-index: 200;
  background: transparent;
}

.pd-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pd-header-actions {
  display: flex;
  gap: 8px;
}

.pd-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-danger-icon {
  color: #ef4444;
}

/* 히어로 영역 */
.pd-hero {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  flex-shrink: 0;
}

.pd-hero-media {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #7c3aed, #db2777, #f59e0b);
}

.pd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.45) 100%);
}

/* 메인 콘텐츠 */
.pd-main {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 80px;
}

/* 상품 정보 카드 */
.pd-info-card {
  background: #fff;
  border-radius: 20px 20px 0 0;
  margin-top: -24px;
  padding: 20px 16px 16px;
  position: relative;
  z-index: 10;
}

.pd-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.pd-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
}

.pd-badge-type {
  background: #f3f0ff;
  color: #7c3aed;
}

.pd-badge-reservation {
  background: #fef3c7;
  color: #d97706;
}

.pd-title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
  line-height: 1.3;
}

.pd-price-row {
  margin-bottom: 12px;
}

.pd-price {
  font-size: 22px;
  font-weight: 800;
  color: #7c3aed;
}

/* 상점 칩 */
.pd-store-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f7ff;
  border: 1px solid #ede9ff;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.pd-store-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #7c3aed;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pd-store-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  flex: 1;
}

.pd-store-arrow {
  font-size: 18px;
  color: #aaa;
}

/* 섹션 */
.pd-section {
  padding: 16px 16px 0;
}

.pd-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
}

.pd-section-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin: 12px 0 8px;
}

.pd-description {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin: 0;
  white-space: pre-wrap;
}

.pd-expand-btn {
  background: none;
  border: none;
  color: #7c3aed;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0 0;
}

.pd-benefits-text {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.pd-live-time {
  font-size: 14px;
  font-weight: 600;
  color: #db2777;
  margin: 0;
}

/* 캘린더 */
.pd-calendar {
  background: #fafafa;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid #f0f0f0;
}

.pd-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pd-cal-nav {
  background: none;
  border: none;
  font-size: 20px;
  color: #7c3aed;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
}

.pd-cal-nav:hover {
  background: #f3f0ff;
}

.pd-cal-month {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.pd-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  color: #888;
  margin-bottom: 6px;
}

.pd-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.pd-cal-day {
  aspect-ratio: 1;
  border: none;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.pd-cal-day:hover:not(:disabled) {
  background: #f3f0ff;
  color: #7c3aed;
}

.pd-cal-day.pd-cal-selected {
  background: #7c3aed;
  color: #fff;
  font-weight: 700;
}

.pd-cal-day.pd-cal-past {
  color: #ccc;
  cursor: default;
}

.pd-cal-empty {
  background: transparent;
}

/* 시간 슬롯 */
.pd-time-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.pd-time-slot {
  padding: 8px 0;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
}

.pd-time-slot:hover {
  border-color: #7c3aed;
  color: #7c3aed;
}

.pd-time-slot--selected {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

/* Sticky 액션 바 */
.pd-action-bar {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 430px);
  padding: 10px 16px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-action-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
}

.pd-action-btn-sm {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border-radius: 12px;
}

.pd-wallet-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 4px;
}

.pd-wallet-label {
  font-size: 12px;
  color: #888;
}

.pd-wallet-balance {
  font-size: 14px;
  font-weight: 700;
  color: #7c3aed;
}

.pd-reserve-hint {
  font-size: 13px;
  color: #555;
  font-weight: 500;
  padding: 0 4px 4px;
  text-align: center;
}

/* 모달 */
.pd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pd-modal {
  background: #fff;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 430px;
  padding: 24px 20px 32px;
}

.pd-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pd-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #111;
  margin: 0;
}

.pd-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #888;
  cursor: pointer;
  padding: 4px;
}

.pd-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.pd-modal-product-name {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.pd-modal-price-row,
.pd-modal-balance-row,
.pd-modal-after-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #555;
}

.pd-modal-price {
  font-size: 18px;
  font-weight: 800;
  color: #7c3aed;
}

.pd-modal-balance {
  font-weight: 600;
  color: #333;
}

.pd-modal-after {
  font-weight: 600;
  color: #2e7d32;
}

.pd-modal-warn {
  font-size: 13px;
  color: #e53935;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

.pd-modal-footer {
  display: flex;
  gap: 10px;
}

.pd-modal-footer .btn {
  flex: 1;
  padding: 13px;
  font-size: 15px;
  border-radius: 12px;
}

/* ════════════════════════════════════════════
   Product Detail v3 (pd2-*)   이미지 기반 리디자인
   ════════════════════════════════════════════ */

/* 플로팅 헤더 */
.pd2-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 430px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  z-index: 500;
  background: transparent;
  overflow: visible;
}

.pd2-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd2-header-right {
  display: flex;
  gap: 6px;
}

.pd2-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* 캐러셀 */
.pd2-carousel {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #f0f0f0;
  flex-shrink: 0;
}

.pd2-slides {
  position: absolute;
  inset: 0;
}

.pd2-slide {
  position: absolute;
  inset: 0;
  transition: transform 0.35s ease;
}

/* 좋아요 오버레이 */
.pd2-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 20;
}

.pd2-heart-icon {
  width: 20px;
  height: 20px;
  color: #ccc;
}

/* 도트 인디케이터 */
.pd2-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 20;
}

.pd2-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.2s;
}

.pd2-dot--active {
  background: #fff;
  transform: scale(1.2);
}

/* 스크롤 본문 */
.pd2-main {
  flex: 1;
  overflow-y: auto;
  background: #fff;
  padding-bottom: 130px;
}

/* 상품 정보 영역 */
.pd2-info {
  padding: 16px 16px 12px;
}

.pd2-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.pd2-title {
  font-size: 19px;
  font-weight: 800;
  color: #111;
  line-height: 1.3;
  margin: 0;
  flex: 1;
}

.pd2-like-count {
  font-size: 13px;
  font-weight: 600;
  color: #ef4444;
  white-space: nowrap;
  padding-top: 3px;
}

.pd2-subtitle {
  font-size: 13px;
  color: #888;
  margin: 0 0 4px;
  line-height: 1.5;
}

.pd2-views {
  font-size: 12px;
  color: #aaa;
  margin: 0 0 10px;
}

.pd2-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pd2-price {
  font-size: 24px;
  font-weight: 900;
  color: #111;
  letter-spacing: -0.5px;
}

.pd2-event-badge {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 99px;
  border: none;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: default;
}

/* 리뷰 스니펫 */
.pd2-review-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fff8f0;
  border-top: 1px solid #fde8cc;
  border-bottom: 1px solid #fde8cc;
}

.pd2-review-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f97316;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pd2-review-text {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

/* 구분선 */
.pd2-divider {
  height: 8px;
  background: #f5f5f5;
}

/* 섹션 공통 */
.pd2-section {
  padding: 16px;
}

.pd2-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin: 0 0 12px;
}

/* 수량 선택 */
.pd2-qty-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd2-qty-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.pd2-qty-option:has(input:checked) {
  border-color: #ef4444;
  background: #fff5f5;
}

.pd2-qty-radio {
  accent-color: #ef4444;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pd2-qty-body {
  flex: 1;
}

.pd2-qty-label {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.pd2-qty-note {
  font-size: 12px;
  color: #ef4444;
  margin-top: 2px;
}

.pd2-qty-price {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

/* 스펙 그리드 */
.pd2-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
}

.pd2-spec-item {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pd2-spec-item:nth-child(even) {
  border-right: none;
}

.pd2-spec-label {
  font-size: 11px;
  color: #aaa;
}

.pd2-spec-value {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

/* 상점/공유 행 */
.pd2-store-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-top: 1px solid #f5f5f5;
}

.pd2-store-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.pd2-store-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd2-store-name-sm {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.pd2-share-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1.5px solid #ddd;
  border-radius: 99px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  cursor: pointer;
}

/* 오너 전용 */
.pd2-owner-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
}

.pd2-owner-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid #ddd;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
}

.pd2-owner-btn--danger {
  border-color: #fecaca;
  color: #ef4444;
}

/* 홍보 상태 배너 */
.pd2-promo-status {
  margin: 0 16px 12px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 12px;
  padding: 12px 14px;
}

.pd2-promo-status-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pd2-promo-label {
  font-size: 12px;
  color: #16a34a;
  font-weight: 600;
}

.pd2-promo-bar-wrap {
  flex: 1;
  height: 6px;
  background: #d1fae5;
  border-radius: 99px;
  min-width: 60px;
}

.pd2-promo-bar {
  height: 100%;
  background: #22c55e;
  border-radius: 99px;
  transition: width 0.4s;
}

.pd2-promo-count {
  font-size: 12px;
  font-weight: 700;
  color: #16a34a;
}

.pd2-promo-done {
  font-size: 14px;
  font-weight: 700;
  color: #16a34a;
}

/* ── 하단 액션 바 ─────────────────────────── */
.pd2-action-bar {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 430px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  z-index: 200;
}

.pd2-buy-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid #111;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.pd2-buy-btn:hover { background: #111; color: #fff; }

.pd2-promote-bar-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #ef4444;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: -0.3px;
  box-shadow: 0 4px 16px rgba(239,68,68,0.35);
  transition: transform 0.1s, box-shadow 0.1s;
}

.pd2-promote-bar-btn:active { transform: scale(0.98); box-shadow: 0 2px 8px rgba(239,68,68,0.3); }

/* ── 모달 공통 (pd2-*) ─────────────────────── */
.pd2-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pd2-modal {
  background: #fff;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 430px;
  padding: 22px 20px 32px;
}

.pd2-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pd2-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.pd2-modal-x {
  background: none;
  border: none;
  font-size: 18px;
  color: #888;
  cursor: pointer;
  padding: 4px;
}

.pd2-modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.pd2-modal-product {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  margin: 0;
}

.pd2-modal-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #555;
}

.pd2-modal-price {
  font-size: 18px;
  font-weight: 800;
  color: #ef4444;
}

.pd2-modal-warn {
  font-size: 13px;
  color: #ef4444;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

.pd2-modal-foot {
  display: flex;
  gap: 10px;
}

.pd2-modal-cancel {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid #ddd;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
}

.pd2-modal-confirm {
  flex: 2;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.pd2-modal-confirm--red {
  background: #ef4444;
  box-shadow: 0 4px 14px rgba(239,68,68,0.3);
}

.pd2-modal-confirm:disabled { opacity: 0.5; cursor: not-allowed; }

/* ⋮ 드롭다운 메뉴 */
.pd2-more-wrap {
  position: relative;
}

.pd2-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  min-width: 150px;
  z-index: 600;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.pd2-dropdown-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  border: none;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: background 0.12s;
}

.pd2-dropdown-item:hover { background: #f8f8f8; }

.pd2-dropdown-item--danger {
  color: #ef4444;
}

.pd2-dropdown-item--danger:hover { background: #fff5f5; }

/* 하단 여백 */
.pd2-bottom-spacer {
  height: 130px;
}

/* 홍보 모달 */
.pd2-promo-how {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: #fafafa;
  border-radius: 12px;
}

.pd2-promo-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}

.pd2-promo-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pd2-promo-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1.5px solid #e8e8e8;
}

.pd2-promo-link-text {
  flex: 1;
  font-size: 11px;
  color: #666;
  word-break: break-all;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pd2-promo-copy {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 8px;
  border: none;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* 홍보 미디어 미리보기 */
.pd2-promo-media-preview {
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  max-height: 180px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd2-promo-video,
.pd2-promo-image {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  display: block;
}

/* 홍보 방식 선택 바텀시트 */
.pd2-bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 12px 20px 32px;
  max-width: 430px;
  margin: 0 auto;
  animation: slideUp 0.28s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.pd2-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #e0e0e0;
  margin: 0 auto 16px;
}
.pd2-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.pd2-sheet-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 16px;
}
.pd2-promo-type-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pd2-promo-type-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid #f0f0f0;
  border-radius: 14px;
  background: #fafafa;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.pd2-promo-type-btn:hover,
.pd2-promo-type-btn:active { background: #f0f0f0; border-color: #e0e0e0; }
.pd2-promo-type-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.pd2-promo-type-label {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  display: block;
}
.pd2-promo-type-desc {
  font-size: 12px;
  color: #888;
  display: block;
  margin-top: 2px;
}

/* ════════════════════════════════════════════
   Store Detail v2 (sd-*)
   ════════════════════════════════════════════ */

/* 플로팅 헤더 */
.sd-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 430px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  z-index: 200;
  background: transparent;
  transition: background 0.2s, backdrop-filter 0.2s, box-shadow 0.2s;
}

.sd-header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.sd-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-header-right {
  display: flex;
  gap: 6px;
}

.sd-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  font-size: 16px;
}

.sd-icon-btn--danger { color: #ef4444; }

/* 3점 더보기 드롭다운 */
.sd-more-wrap {
  position: relative;
}

.sd-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  z-index: 300;
  overflow: hidden;
}

.sd-dropdown-item {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}

.sd-dropdown-item:hover {
  background: #f5f5f7;
}

.sd-dropdown-item + .sd-dropdown-item {
  border-top: 1px solid #f0f0f0;
}

.sd-dropdown-item--danger {
  color: #ef4444;
}

/* 커버 편집 오버레이 (소유자 전용) */
.sd-cover-edit {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.sd-cover-edit-icon {
  font-size: 28px;
}

/* 커버 배너 */
.sd-cover {
  position: relative;
  width: 100%;
  height: 180px;
  flex-shrink: 0;
}

.sd-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.3) 100%);
}

/* 프로필 카드 */
.sd-profile-card {
  padding: 0 16px 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.sd-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #fff;
  margin-top: -36px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  overflow: hidden;
}

.sd-profile-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sd-store-name {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  margin: 0;
}

.sd-category-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: #f3f0ff;
  color: #7c3aed;
}

.sd-description {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* 통계 */
.sd-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.sd-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.sd-stat-num {
  font-size: 16px;
  font-weight: 800;
  color: #111;
}

.sd-stat-label {
  font-size: 11px;
  color: #888;
}

.sd-stat-divider {
  width: 1px;
  height: 24px;
  background: #eee;
}

/* 액션 버튼 */
.sd-action-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.sd-follow-btn {
  flex: 1;
  padding: 9px;
  border-radius: 10px;
  border: 2px solid #111;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.sd-follow-btn--active {
  background: #fff;
  color: #111;
}

.sd-fav-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #888;
}

.sd-fav-btn--active {
  border-color: #f59e0b;
  color: #f59e0b;
}

/* 탭 */
.sd-tabs {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  position: sticky;
  top: 56px;
  z-index: 100;
}

.sd-tab {
  flex: 1;
  padding: 12px 0;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
}

.sd-tab--active {
  color: #111;
  font-weight: 700;
  border-bottom-color: #111;
}

/* 상품 그리드 */
.sd-tab-panel {
  padding: 12px;
  padding-bottom: 80px;
  background: #f8f8f8;
  min-height: 200px;
}

.sd-products-empty {
  text-align: center;
  padding: 40px 16px;
  color: #aaa;
  font-size: 14px;
}

.sd-products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sd-prod-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.15s;
}

.sd-prod-card:active { transform: scale(0.97); }

.sd-prod-thumb {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.sd-prod-info {
  padding: 8px 10px 10px;
}

.sd-prod-name {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  margin: 0 0 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
}

.sd-prod-price {
  font-size: 13px;
  font-weight: 700;
  color: #ef4444;
  margin: 0;
}

/* 소개 탭 */
.sd-about-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.sd-about-title {
  font-size: 13px;
  font-weight: 700;
  color: #888;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sd-about-text {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

/* 프로필 화면 */
.profile-main {
  padding-top: 24px;
}

.profile-header {
  display: flex;
  padding: 0 16px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 36px;
  background-color: #f3f6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
}

.profile-avatar-image {
  width: 56px;
  height: 56px;
  border-radius: 28px;
  object-fit: cover;
}

.profile-summary {
  flex: 1;
}

.profile-name {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.profile-counts {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: #666666;
}

.profile-counts strong {
  display: block;
  font-size: 13px;
  color: #111111;
}

.profile-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px 0;
}

.profile-actions .btn {
  flex: 1;
  font-size: 12px;
}

.profile-tabs {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 12px 16px 0;
}

.profile-tab {
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px 6px;
  border-bottom: 2px solid transparent;
}

.profile-tab-active {
  border-bottom-color: #2f7ed8;
}

.profile-tab-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.profile-content {
  padding: 8px 8px 80px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.profile-grid-item {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
}

.profile-grid-thumb {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(135deg, #ffe0ec, #ffd6b3);
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 4px;
}

.profile-empty {
  padding: 32px 8px;
  text-align: center;
  font-size: 13px;
  color: #888888;
}

.profile-store-card {
  padding: 16px;
  border-radius: 14px;
  background-color: #f6f7fb;
  font-size: 13px;
  color: #444444;
}

.profile-store-card h2 {
  margin: 0 0 6px;
  font-size: 16px;
}

.profile-content--hidden {
  display: none !important;
}

.profile-content-events {
  padding: 0;
}

.profile-events-list {
  padding: 0 8px 80px;
}

.profile-events-list .feed-card {
  margin-bottom: 12px;
}

.profile-events-empty {
  padding: 32px 16px;
  text-align: center;
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}

.profile-events-empty--hidden {
  display: none;
}

.profile-events-link {
  display: inline-block;
  margin-top: 12px;
  color: #2f7ed8;
  font-weight: 600;
  text-decoration: none;
}

.profile-event-btn {
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
  text-align: center;
}

/* ── 프로필 히어로 (신규 디자인) ─────────────────────────── */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 20px;
  background: linear-gradient(160deg, #f0f4ff 0%, #ffffff 60%);
  border-bottom: 1px solid #eef0f5;
}

.profile-hero-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #e8eeff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(47,126,216,0.15);
  margin-bottom: 12px;
}

.profile-hero-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
}

.profile-hero-name {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.profile-hero-bio {
  margin: 0 0 14px;
  font-size: 13px;
  color: #666;
  text-align: center;
  min-height: 18px;
}

.profile-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  font-size: 12px;
  color: #666;
}

.profile-stat strong {
  font-size: 17px;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
}

.profile-stat-divider {
  width: 1px;
  height: 28px;
  background: #e0e0e0;
}

.profile-hero-edit-btn {
  padding: 8px 28px;
  border: 1.5px solid #2f7ed8;
  border-radius: 20px;
  background: #fff;
  color: #2f7ed8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.profile-hero-edit-btn:hover {
  background: #2f7ed8;
  color: #fff;
}

/* ── 프로필 빠른 메뉴 ─────────────────────────────────── */
.profile-quick-menu {
  display: flex;
  justify-content: space-around;
  padding: 16px 8px;
  border-bottom: 1px solid #f0f0f0;
}

.profile-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 12px;
  transition: background 0.15s;
  min-width: 60px;
}

.profile-quick-item:hover {
  background: #f5f7ff;
}

.profile-quick-icon {
  font-size: 22px;
  line-height: 1;
}

.profile-quick-label {
  font-size: 11px;
  color: #555;
  font-weight: 500;
}

/* ── 프로필 탭 바 (신규) ─────────────────────────────── */
.profile-tab-bar {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #f0f0f0;
  padding: 0 8px;
}

.profile-tab-bar .profile-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 4px;
  border: none;
  background: none;
  font-size: 12px;
  color: #888;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.profile-tab-bar .profile-tab.profile-tab-active {
  color: #2f7ed8;
  border-bottom-color: #2f7ed8;
  font-weight: 600;
}

.profile-tab-icon-text {
  font-size: 18px;
}

.profile-tab-text {
  font-size: 11px;
}

.profile-tab-manage {
  flex: 0 0 auto;
  padding: 6px 14px;
  border: 1.5px solid #2f7ed8;
  border-radius: 14px;
  background: #fff;
  color: #2f7ed8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.15s, color 0.15s;
}

.profile-tab-manage.profile-manage-btn--active {
  background: #2f7ed8;
  color: #fff;
}

/* 예약 페이지 */
.reserve-main {
  padding: 16px 16px 100px;
  overflow-y: auto;
}

.reserve-seller {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: #f6f7fb;
  border: 1px solid #eee;
}

.reserve-seller-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f7ed8, #1d6ac4);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

.reserve-seller-info {
  flex: 1;
  min-width: 0;
}

.reserve-seller-name {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.reserve-seller-role {
  margin: 0 0 4px;
  font-size: 13px;
  color: #666;
}

.reserve-seller-intro {
  margin: 0;
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}

.reserve-calendar {
  margin-bottom: 20px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #eee;
  background: #fff;
}

.reserve-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.reserve-calendar-prev,
.reserve-calendar-next {
  border: none;
  background: none;
  font-size: 18px;
  color: #2f7ed8;
  cursor: pointer;
  padding: 4px 10px;
}

.reserve-calendar-month {
  font-size: 16px;
  font-weight: 700;
}

.reserve-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
}

.reserve-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.reserve-calendar-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.reserve-calendar-blank {
  visibility: hidden;
}

.reserve-calendar-day {
  border: none;
  background: #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
  color: #333;
}

.reserve-calendar-day:hover {
  background: #e5e5e5;
}

.reserve-calendar-day-selected {
  background: #2f7ed8;
  color: #fff;
}

.reserve-section-label {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.reserve-times {
  margin-bottom: 20px;
}

.reserve-time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reserve-time-slot {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}

.reserve-time-slot-disabled {
  background: #eee;
  color: #999;
  cursor: not-allowed;
}

.reserve-time-slot-selected {
  border-color: #2f7ed8;
  background: #e8f4ff;
  color: #2f7ed8;
}

.reserve-menu {
  margin-bottom: 24px;
}

.reserve-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}

.reserve-menu-item {
  border-bottom: 1px solid #eee;
}

.reserve-menu-item:last-child {
  border-bottom: none;
}

.reserve-menu-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
}

.reserve-menu-check {
  width: 18px;
  height: 18px;
}

.reserve-menu-name {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

.reserve-menu-price {
  font-size: 14px;
  color: #2f7ed8;
  font-weight: 600;
}

.reserve-next-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
}

/* 결제 동의(체크아웃) 페이지 */
.checkout-main {
  padding: 16px 16px 100px;
  overflow-y: auto;
}

.checkout-seller {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #f6f7fb;
  border: 1px solid #eee;
}

.checkout-seller-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f7ed8, #1d6ac4);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkout-seller-contact {
  flex: 1;
}

.checkout-contact-name,
.checkout-contact-phone {
  margin: 0 0 4px;
  font-size: 14px;
  color: #333;
}

.checkout-product {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.checkout-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.checkout-row-amount .checkout-amount {
  font-size: 18px;
  font-weight: 700;
  color: #2f7ed8;
}

.checkout-label {
  font-size: 13px;
  color: #666;
  min-width: 80px;
}

.checkout-value {
  flex: 1;
  font-size: 14px;
  color: #111;
}

.checkout-buyer {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.checkout-section-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.checkout-edit-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #2f7ed8;
  background: #fff;
  color: #2f7ed8;
  font-size: 13px;
  cursor: pointer;
}

.checkout-request {
  margin-top: 14px;
}

.checkout-request-input {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
}

.checkout-seller-info {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.checkout-seller-details p {
  margin: 0 0 8px;
  font-size: 13px;
  color: #333;
}

.checkout-seller-details .checkout-label {
  display: inline-block;
  min-width: 90px;
  color: #666;
}

.checkout-legal {
  padding: 16px 0;
}

.checkout-legal-links {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.checkout-link {
  font-size: 13px;
  color: #2f7ed8;
  text-decoration: underline;
}

.checkout-consent-text {
  margin: 0;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.checkout-submit-btn {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.checkout-modal--hidden {
  display: none;
}

.checkout-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.checkout-modal-box {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.checkout-modal-box h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.checkout-modal-box .form-field {
  margin-bottom: 14px;
}

.checkout-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.checkout-modal-actions .btn {
  flex: 1;
}

/* 채팅(커뮤니티) 페이지 */
.chat-root .mobile-frame {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
}

.chat-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-view-hidden {
  display: none !important;
}

/* 당근 스타일 커뮤니티 뷰 전환 */
.community-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.community-view-hidden {
  display: none !important;
}

.chat-list-main {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.chat-list-desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: #666;
}

.chat-room-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.chat-room-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: #f6f7fb;
  border: 1px solid #eee;
  cursor: pointer;
  transition: background 0.15s;
}

.chat-room-item:hover,
.chat-room-item:active {
  background: #eef2ff;
}

.chat-room-item-icon {
  font-size: 22px;
}

.chat-room-item-name {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

.chat-room-item-arrow {
  font-size: 18px;
  color: #999;
}

.chat-list-empty {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: #888;
}

.chat-list-empty--hidden {
  display: none;
}

.chat-room-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.chat-back-btn {
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  color: #2f7ed8;
}

.chat-room-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8f9fc;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 85%;
}

.chat-msg--mine {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-msg--theirs .chat-msg-name {
  font-size: 12px;
  color: #2f7ed8;
  margin-bottom: 2px;
}

.chat-msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.chat-msg--theirs .chat-msg-bubble {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-bottom-left-radius: 4px;
}

.chat-msg--mine .chat-msg-bubble {
  background: #2f7ed8;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg-time {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.chat-input-wrap {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
  background: #fff;
  border-top: 1px solid #eee;
}

.chat-input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  font-size: 14px;
  outline: none;
}

.chat-input:focus {
  border-color: #2f7ed8;
}

.chat-send-btn {
  padding: 12px 18px;
  border-radius: 20px;
  border: none;
  background: #2f7ed8;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.chat-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 당근 스타일 커뮤니티 피드 */
.community-feed {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 80px;
  position: relative;
}

.community-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.community-post-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid #eee;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.community-post-card:active {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.community-post-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.community-post-author {
  font-size: 13px;
  font-weight: 600;
  color: #2f7ed8;
}

.community-post-time {
  font-size: 12px;
  color: #999;
}

.community-post-card-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.community-post-card-category {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 999px;
  background-color: #eef2ff;
  color: #4158a6;
}

.community-post-card-body {
  margin: 0 0 10px;
  font-size: 14px;
  color: #555;
  line-height: 1.45;
}

.community-post-card-meta {
  font-size: 12px;
  color: #888;
}

.community-post-card-comments {
  margin-right: 8px;
}

.community-empty {
  padding: 48px 24px;
  text-align: center;
  font-size: 14px;
  color: #888;
  line-height: 1.5;
}

.community-empty--hidden {
  display: none;
}

.community-categories {
  margin: 8px 16px 0;
}

.community-write-top {
  display: flex;
  justify-content: flex-end;
  padding: 6px 16px 0;
}
.community-write-top-btn {
  font-size: 13px;
  padding: 6px 10px;
}

/* 알림 모달 */
.notif-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.notif-overlay--hidden {
  display: none;
}
.notif-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.notif-box {
  position: relative;
  width: calc(100% - 32px);
  max-width: 420px;
  max-height: 70vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  padding: 16px 16px 12px;
  display: flex;
  flex-direction: column;
  z-index: 1;
}
.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.notif-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.notif-close-btn {
  border: none;
  background: none;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}
.notif-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}
.notif-empty {
  margin: 16px 4px;
  font-size: 13px;
  color: #777;
}
.notif-item {
  padding: 10px 4px;
  border-bottom: 1px solid #eee;
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-message {
  margin: 0 0 4px;
  font-size: 14px;
}
.notif-time {
  margin: 0;
  font-size: 11px;
  color: #999;
}

/* 설정 페이지 */
.settings-main {
  padding: 16px;
}
.settings-section-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f1f5;
}
.settings-section-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}
.settings-section-subtitle {
  margin: 0 0 12px;
  font-size: 12px;
  color: #777;
}
.settings-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.settings-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f3f7;
  background: transparent;
  border-radius: 0;
  width: 100%;
  text-align: left;
}
.settings-item-row:last-child {
  border-bottom: none;
}
.settings-item-label {
  font-size: 14px;
  color: #222;
}
.settings-item-desc {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}
.settings-item-action {
  font-size: 12px;
  color: #2f7ed8;
}
.settings-danger-row .settings-item-label {
  color: #d7263d;
}
.settings-danger-row .settings-item-action {
  color: #d7263d;
}

.community-fab {
  position: fixed;
  right: 20px;
  bottom: 90px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  border: none;
  background: #2f7ed8;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(47, 126, 216, 0.4);
  z-index: 10;
  transition: transform 0.15s, box-shadow 0.15s;
}

.community-fab:hover,
.community-fab:active {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(47, 126, 216, 0.45);
}

.community-fab-icon {
  font-size: 18px;
}

/* 글 상세 */
.community-detail-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 100px;
}

.community-detail-post {
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
}

.community-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.community-detail-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
}

.community-detail-body-text {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

.community-comments-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.community-comments-title span {
  color: #2f7ed8;
  font-weight: 700;
}

.community-comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.community-comment-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.community-comment-item:last-child {
  border-bottom: none;
}

.community-comment-author {
  font-size: 13px;
  font-weight: 600;
  color: #2f7ed8;
  margin-right: 8px;
}

.community-comment-time {
  font-size: 11px;
  color: #999;
}

.community-comment-text {
  margin: 6px 0 0;
  font-size: 14px;
  color: #333;
  line-height: 1.45;
}

.community-comment-input-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.community-comment-input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  font-size: 14px;
  outline: none;
}

.community-comment-input:focus {
  border-color: #2f7ed8;
}

.community-comment-submit {
  padding: 12px 18px;
  border-radius: 20px;
  border: none;
  background: #2f7ed8;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.community-comment-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.community-detail-actions {
  margin-top: 8px;
}

.community-msg-btn {
  width: 100%;
  margin-top: 0;
}

/* 글 쓰기 폼 */
.community-write-form {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.community-write-form .form-field {
  margin-bottom: 14px;
}

.community-write-form .btn-primary {
  margin-top: 16px;
}

.community-detail-media {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.community-detail-image {
  max-width: 48%;
  border-radius: 8px;
  object-fit: cover;
}
.community-detail-video {
  width: 100%;
  border-radius: 8px;
}

/* 이벤트 만들기 폼 */
.event-create-body .form-field {
  margin-bottom: 16px;
}

.event-create-body .btn-primary {
  margin-top: 20px;
}

/* ========== 랜딩 페이지 (모바일 프레임) ========== */
.app-root.landing-root {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 45%, #334155 100%);
}
.app-root.landing-root .mobile-frame {
  background: transparent;
  box-shadow: none;
  max-width: 430px;
}
.landing-hero {
  position: relative;
  min-height: 42vh;
  padding: 48px 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
  background: linear-gradient(165deg, #1e3a5f 0%, #2563eb 50%, #3b82f6 100%);
  box-shadow: 0 20px 50px rgba(30, 58, 95, 0.4);
}
.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.landing-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
}
.landing-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.landing-badge {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.landing-brand .landing-logo {
  font-size: 28px;
  color: rgba(255,255,255,0.95);
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.landing-brand-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.landing-tagline {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.landing-subcopy {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  margin: 0 0 28px;
}
.landing-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.landing-cta-group .landing-cta-main {
  display: inline-block;
  width: 100%;
  max-width: 280px;
  padding: 16px 24px;
  border-radius: 999px;
  background: #fff;
  color: #1e40af;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.landing-cta-group .landing-cta-main:hover,
.landing-cta-group .landing-cta-main:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}
.landing-cta-group .btn-ghost {
  display: inline-block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s, border-color 0.2s;
}
.landing-cta-group .btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.8);
}
.landing-main {
  background: #f8fafc;
  padding-bottom: 32px;
}
.landing-section {
  padding: 40px 20px 32px;
}
.landing-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 24px;
  text-align: center;
  letter-spacing: -0.02em;
}
.landing-feature-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.landing-feature-card {
  background: #fff;
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.landing-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}
.landing-feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.landing-feature-card h3::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  flex-shrink: 0;
}
.landing-feature-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
  margin: 0;
}
.landing-section--roles {
  padding-top: 24px;
}
.landing-role-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.landing-role-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.landing-role-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}
.landing-role-card:first-child {
  border-left: 4px solid #2563eb;
}
.landing-role-card:last-child {
  border-left: 4px solid #7c3aed;
}
.landing-role-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
}
.landing-role-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 16px;
}
.landing-role-link {
  font-size: 14px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.landing-role-link:hover {
  gap: 8px;
}
.landing-section--cta {
  text-align: center;
  padding: 40px 20px 36px;
  background: linear-gradient(180deg, #e0e7ff 0%, #f0f4ff 100%);
  border-radius: 24px;
  margin: 0 16px 24px;
  border: 1px solid rgba(129, 140, 248, 0.2);
}
.landing-section-text {
  font-size: 14px;
  line-height: 1.6;
  color: #4338ca;
  margin: 0 0 24px;
}
.landing-section--cta .landing-cta-main {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.landing-section--cta .landing-cta-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.45);
}
.landing-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: #6366f1;
}
.landing-inline-link {
  color: #4f46e5;
  font-weight: 600;
  text-decoration: underline;
}
.landing-section--legal {
  padding: 24px 20px 32px;
  text-align: center;
  background: #f1f5f9;
  border-radius: 20px 20px 0 0;
}
.landing-legal-links {
  margin: 0 0 8px;
  font-size: 13px;
}
.landing-legal-links a {
  color: #475569;
  text-decoration: none;
}
.landing-legal-links a:hover {
  color: #2563eb;
  text-decoration: underline;
}
.landing-separator {
  color: #94a3b8;
  margin: 0 6px;
}
.landing-footer-meta {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

/* ========== 랜딩 페이지 (사이트형: 왼쪽 카피 + 오른쪽 앱 체험) ========== */
.landing-site {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
}

.landing-site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.landing-site-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 800;
  font-size: 18px;
}

.landing-site-logo {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.landing-site-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.landing-site-links a {
  font-size: 14px;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
}

.landing-site-links a:hover {
  color: #2563eb;
}

.landing-site-cta {
  padding: 8px 16px !important;
  border-radius: 999px;
  background: #2563eb;
  color: #fff !important;
}

.landing-site-cta:hover {
  background: #1d4ed8;
  color: #fff !important;
}

.landing-site-hero {
  padding: 48px 24px 64px;
}

.landing-site-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.landing-site-hero-left {
  max-width: 520px;
}

.landing-site-badge {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1e40af;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 999px;
}

.landing-site-title {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.landing-site-title-accent {
  color: #2563eb;
}

.landing-site-subtitle {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.55;
  color: #475569;
}

.landing-site-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-site-btn-primary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-site-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.45);
}

.landing-site-btn-ghost {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  color: #475569;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  transition: border-color 0.2s, color 0.2s;
}

.landing-site-btn-ghost:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.landing-site-hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

/* 휴대폰 목업: 뷰포트에 맞춰 크기·비율 유지, 앱 화면이 보이도록 */
.landing-site-phone {
  --phone-width: min(320px, 90vw, 42vmin);
  width: var(--phone-width);
  max-width: calc(100vw - 32px);
  height: 0;
  padding-bottom: calc(var(--phone-width) * (19.5 / 9));
  position: relative;
  border-radius: clamp(24px, 6vw, 36px);
  background: #1a1a1a;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25), 0 0 0 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.landing-site-phone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(10px, 2.5vw, 14px);
  border-radius: inherit;
  box-sizing: border-box;
  pointer-events: none;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.landing-site-phone-notch {
  position: absolute;
  top: clamp(8px, 2vw, 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: clamp(12px, 2.5vw, 18px);
  border-radius: 0 0 12px 12px;
  background: #0a0a0a;
  z-index: 2;
  flex-shrink: 0;
}

/* 화면 영역: iframe이 채울 명확한 컨테이너 */
.landing-site-phone-screen {
  position: absolute;
  top: clamp(36px, 8vw, 52px);
  left: clamp(8px, 2vw, 12px);
  right: clamp(8px, 2vw, 12px);
  bottom: clamp(8px, 2vw, 12px);
  border-radius: clamp(16px, 4vw, 24px);
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.landing-site-phone-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: inherit;
  background: #fff;
  display: block;
}

.landing-site-phone-label {
  margin: 14px 0 0;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.landing-site-phone-store {
  margin: 6px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.landing-site-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.landing-site-section {
  padding: 48px 0 40px;
}

.landing-site-section-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 28px;
  text-align: center;
  letter-spacing: -0.02em;
}

.landing-site-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.landing-site-feature-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-site-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.landing-site-feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-site-feature-card h3::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  flex-shrink: 0;
}

.landing-site-feature-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
  margin: 0;
}

.landing-site-role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.landing-site-role-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-site-role-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.landing-site-role-card:first-child {
  border-left: 4px solid #2563eb;
}

.landing-site-role-card:last-child {
  border-left: 4px solid #7c3aed;
}

.landing-site-role-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
}

.landing-site-role-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 18px;
}

.landing-site-role-link {
  font-size: 14px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.landing-site-role-link:hover {
  gap: 8px;
}

.landing-site-section--final {
  text-align: center;
  padding: 56px 24px 48px;
  background: linear-gradient(180deg, #e0e7ff 0%, #eef2ff 100%);
  border-radius: 24px;
  margin-top: 24px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.landing-site-section-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #4338ca;
  margin: 0 0 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.landing-site-section--final .landing-site-btn-primary {
  margin-bottom: 12px;
}

.landing-site-social-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.landing-site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.landing-site-btn:hover {
  transform: translateY(-1px);
}

.landing-site-btn-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.landing-site-btn-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.landing-site-btn-kakao {
  background-color: #fee500;
  color: #191919;
  border: none;
}

.landing-site-btn-google {
  background-color: #fff;
  color: #333;
  border: 1px solid #dadce0;
}

.landing-site-login-note {
  margin: 0;
  font-size: 14px;
  color: #6366f1;
}

.landing-site-login-note a {
  color: #4f46e5;
  font-weight: 600;
  text-decoration: underline;
}

.landing-site-footer {
  padding: 32px 24px 40px;
  text-align: center;
  border-top: 1px solid #e2e8f0;
  margin-top: 24px;
}

.landing-site-app-note {
  margin: 0 0 12px;
  font-size: 13px;
  color: #64748b;
}

.landing-site-legal {
  margin: 0 0 8px;
  font-size: 13px;
}

.landing-site-legal a {
  color: #64748b;
  text-decoration: none;
}

.landing-site-legal a:hover {
  color: #2563eb;
  text-decoration: underline;
}

.landing-site-sep {
  color: #94a3b8;
  margin: 0 8px;
}

.landing-site-copy {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}

@media (max-width: 900px) {
  .landing-site-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .landing-site-hero-left {
    max-width: none;
  }

  .landing-site-hero-cta {
    justify-content: center;
  }

  .landing-site-feature-grid {
    grid-template-columns: 1fr;
  }

  .landing-site-role-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .landing-site-title {
    font-size: 28px;
  }

  .landing-site-phone {
    --phone-width: min(320px, 85vw, 45vh);
  }
}

/* 데스크톱 랜딩 페이지 */
.landing-root:not(.app-root) {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #f0f4ff 0, #f8f8ff 40%, #fff);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    -apple-system, sans-serif;
  color: #111111;
}

.landing-nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-logo {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  object-fit: contain;
}

.landing-brand {
  font-weight: 700;
  font-size: 18px;
}

.landing-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.landing-link {
  font-size: 14px;
  color: #4a4a4a;
  text-decoration: none;
}

.landing-link-cta {
  padding: 8px 14px;
  border-radius: 999px;
  background-color: #111111;
  color: #ffffff;
}

.landing-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 40px;
}

.landing-copy {
  max-width: 560px;
}

.landing-title {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.2;
}

.landing-highlight {
  color: #2f7ed8;
}

.landing-subtitle {
  margin: 0 0 24px;
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
}

.landing-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.landing-cta-primary {
  padding: 10px 18px;
  border-radius: 999px;
  background-color: #2f7ed8;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.landing-cta-secondary {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #dddddd;
  background-color: #ffffff;
  font-size: 14px;
  cursor: pointer;
}

.landing-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #666666;
}

.landing-badges li {
  padding: 6px 10px;
  border-radius: 999px;
  background-color: rgba(47, 126, 216, 0.08);
}

.landing-phone-section {
  display: flex;
  justify-content: center;
}

.landing-phone-frame {
  width: 320px;
  height: 640px;
  border-radius: 32px;
  background-color: #ffffff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  padding: 16px 10px 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.landing-phone-notch {
  align-self: center;
  width: 40%;
  height: 20px;
  border-radius: 0 0 18px 18px;
  background-color: #111111;
  margin-bottom: 12px;
}

.landing-phone-iframe {
  flex: 1;
  border: none;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .landing-hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 24px;
  }

  .landing-phone-section {
    order: -1;
  }
}

/* 법적 문서 페이지 (개인정보처리방침, 이용약관) */
.legal-root .mobile-frame {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.legal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 8px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.legal-header .back-button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #111;
  cursor: pointer;
  border-radius: 8px;
}

.legal-header .back-button:hover {
  background: #f0f0f0;
}

.legal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.legal-main {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 40px;
}

.legal-updated {
  font-size: 13px;
  color: #666;
  margin: 0 0 24px;
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section h2 {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 0 0 10px;
  line-height: 1.4;
}

.legal-section p,
.legal-section li {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  margin: 0 0 8px;
}

.legal-section ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.legal-section li {
  margin-bottom: 4px;
}

/* 반응형 - 아주 작은 화면 대응 */
@media (max-width: 360px) {
  .login {
    padding: 24px 16px 16px;
  }

  .login-logo-circle {
    width: 100px;
    height: 100px;
  }
}

/* ──────────────────────────────
   지갑 시스템 공통 스타일
   ────────────────────────────── */

/* 유틸리티 */
.hidden { display: none !important; }

.wallet-main-padded {
  padding: 24px 20px;
  padding-bottom: 100px;
}

.wallet-main-bottom {
  padding-bottom: 100px;
}

.wallet-balance-card--spaced {
  margin-bottom: 24px;
}

.wallet-btn-top-sm { margin-top: 8px; }
.wallet-btn-top-md { margin-top: 12px; }
.wallet-btn-top-lg { margin-top: 16px; }
.wallet-btn-top-xl { margin-top: 20px; }

.wallet-balance-card {
  background: linear-gradient(135deg, #6c63ff 0%, #4f46e5 100%);
  color: #fff;
  border-radius: 20px;
  padding: 28px 24px 20px;
  margin: 20px 16px 0;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

.wallet-balance-label {
  font-size: 13px;
  opacity: 0.85;
  margin: 0 0 8px;
}

.wallet-balance-amount {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.wallet-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.wallet-card-chip {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
}

.wallet-card-chip--active {
  background: rgba(255, 255, 255, 0.3);
}

.wallet-card-change-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
}

.wallet-charge-btn {
  width: 100%;
  background: #fff;
  color: #4f46e5;
  font-weight: 700;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wallet-charge-btn:active {
  opacity: 0.9;
}

.wallet-section {
  padding: 20px 16px 0;
}

.wallet-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 0 0 12px;
}

.wallet-notice {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 16px;
}

.wallet-notice p {
  font-size: 13px;
  color: #555;
  margin: 0 0 6px;
  line-height: 1.5;
}

.wallet-notice p:last-child {
  margin: 0;
}

.wallet-notice--warn {
  background: #fff3e0;
}

.wallet-notice--warn p {
  color: #e65100;
}

.wallet-msg {
  margin-top: 12px;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f5f5f5;
}

.wallet-tx-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
}

.wallet-tx-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 16px;
  background: #fff;
  gap: 12px;
}

.wallet-tx-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.wallet-tx-type {
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  padding: 2px 8px;
  display: inline-block;
  width: fit-content;
}

.wallet-tx-type--charge {
  background: #e8f5e9;
  color: #2e7d32;
}

.wallet-tx-type--purchase {
  background: #e3f2fd;
  color: #1565c0;
}

.wallet-tx-desc {
  font-size: 13px;
  color: #333;
}

.wallet-tx-date {
  font-size: 12px;
  color: #999;
}

.wallet-tx-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.wallet-tx-amount {
  font-size: 15px;
  font-weight: 700;
}

.wallet-tx-amount--plus {
  color: #2e7d32;
}

.wallet-tx-amount--minus {
  color: #e53935;
}

.wallet-tx-balance {
  font-size: 12px;
  color: #999;
}

.wallet-tx-empty {
  padding: 32px 16px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* 충전 금액 그리드 */
.wallet-amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.wallet-amount-btn {
  padding: 14px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.15s;
}

.wallet-amount-btn--selected,
.wallet-amount-btn:active {
  border-color: #4f46e5;
  background: #eef0ff;
  color: #4f46e5;
}

.wallet-custom-amount {
  margin-bottom: 16px;
}

.wallet-custom-label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.wallet-custom-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px 16px;
  background: #fff;
}

.wallet-custom-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  background: transparent;
}

.wallet-custom-unit {
  font-size: 15px;
  color: #666;
}

.wallet-selected-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #f5f5f5;
  border-radius: 12px;
  font-size: 14px;
  color: #333;
}

.wallet-selected-amount strong {
  font-size: 18px;
  font-weight: 800;
  color: #4f46e5;
}

/* 카드 등록 페이지 */
.wallet-card-info-box {
  text-align: center;
  padding: 40px 20px 32px;
  background: linear-gradient(135deg, #f8f9ff 0%, #eef0ff 100%);
  border-radius: 20px;
  margin-bottom: 20px;
}

.wallet-card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.wallet-card-title {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  margin: 0 0 10px;
}

.wallet-card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ══════════════════════════════════════════
   정산 페이지 - 계좌 카드
   ══════════════════════════════════════════ */
.settlement-account-card {
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 16px;
  padding: 18px;
  min-height: 72px;
}

/* 미등록 상태 */
.settlement-account-empty-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}

.settlement-account-empty-icon {
  font-size: 32px;
}

.settlement-account-empty {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin: 0;
  text-align: center;
}

.settlement-account-empty-sub {
  font-size: 12px;
  color: #aaa;
  margin: 0;
  text-align: center;
}

/* 등록 완료 상태 */
.settlement-account-registered {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.settlement-account-bank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.settlement-account-bank-icon {
  font-size: 22px;
}

.settlement-account-bank-name {
  font-size: 16px;
  font-weight: 800;
  color: #111;
  flex: 1;
}

.settlement-account-verified-badge {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #d1fae5;
  border-radius: 999px;
  padding: 3px 9px;
}

.settlement-account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

.settlement-account-row:last-child {
  border-bottom: none;
}

.settlement-account-label {
  font-size: 13px;
  color: #888;
}

.settlement-account-value {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  font-variant-numeric: tabular-nums;
}

.settlement-info-box {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 16px;
}

.settlement-info-box p {
  font-size: 13px;
  color: #555;
  margin: 0 0 8px;
  line-height: 1.5;
}

.settlement-info-box p:last-child {
  margin: 0;
}

.settlement-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settlement-item {
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 14px;
  padding: 16px;
}

.settlement-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.settlement-month {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.settlement-badge {
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  padding: 3px 10px;
}

.settlement-badge--paid {
  background: #e8f5e9;
  color: #2e7d32;
}

.settlement-badge--pending {
  background: #fff3e0;
  color: #e65100;
}

.settlement-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid #f5f5f5;
}

.settlement-item-row:last-child {
  border-bottom: none;
}

.settlement-item-row--total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1.5px solid #e0e0e0;
  border-bottom: none;
}

.settlement-item-label {
  color: #888;
}

.settlement-item-value {
  font-weight: 600;
  color: #111;
}

.settlement-item-value--minus {
  color: #e53935;
}

.settlement-item-value--total {
  font-size: 16px;
  font-weight: 800;
  color: #4f46e5;
}

/* ── 계좌 등록 폼 ── */
.settlement-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settlement-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settlement-form-label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.settlement-form-input {
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 15px;
  color: #111;
  background: #fafafa;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
  box-sizing: border-box;
}

.settlement-form-input:focus {
  border-color: #6366f1;
  background: #fff;
}

.settlement-form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* 폼 메시지 */
.settlement-form-msg {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
}

.settlement-form-msg--ok {
  color: #059669;
  background: #d1fae5;
}

.settlement-form-msg--err {
  color: #dc2626;
  background: #fee2e2;
}

.settlement-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.settlement-form-actions .btn {
  flex: 1;
}

.btn-block {
  width: 100%;
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* =============================================
   추천 상점 섹션 (home)
   ============================================= */
.home-recommended {
  padding: 16px 0 4px;
}

.home-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin: 0 0 10px 16px;
}

.home-store-scroll {
  display: flex;
  flex-direction: row;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 12px;
}

.home-store-scroll::-webkit-scrollbar {
  display: none;
}

@supports (scrollbar-width: none) {
  .home-store-scroll {
    scrollbar-width: none;
  }
}

.store-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 100px;
  max-width: 100px;
  background: #fff;
  border: 1.5px solid #ede8ff;
  border-radius: 16px;
  padding: 14px 8px 10px;
  cursor: pointer;
  text-align: center;
  transition: box-shadow 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.store-card:hover,
.store-card:active {
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.12);
  border-color: #4f46e5;
}

/* 상점 카드 상단 (아바타 + 배지 행) */
.store-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 4px;
}

/* 추천 배지 */
.store-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
}

.store-badge--hot { background: #fee2e2; color: #dc2626; }
.store-badge--rec { background: #fef9c3; color: #ca8a04; }
.store-badge--new { background: #dcfce7; color: #16a34a; }

/* 조회수 */
.store-card-score {
  font-size: 10px;
  color: #aaa;
  margin-top: 2px;
}

.store-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5 0%, #a78bfa 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.store-card-name {
  font-size: 12px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.store-card-category {
  font-size: 10px;
  color: #4f46e5;
  font-weight: 600;
  background: #ede8ff;
  border-radius: 20px;
  padding: 2px 8px;
}

.store-card-desc {
  font-size: 10px;
  color: #888;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
}

.store-card-skeleton {
  min-width: 100px;
  height: 130px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s infinite;
  border-radius: 16px;
  flex-shrink: 0;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.store-empty-text {
  font-size: 13px;
  color: #aaa;
  padding: 20px 0;
  text-align: center;
  width: 100%;
}

/* =============================================
   검색 결과 섹션
   ============================================= */
.search-section {
  margin-bottom: 8px;
}

.search-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #555;
  margin: 16px 0 6px;
  padding: 0 4px;
}

.search-store-item {
  background: #f8f6ff;
  border: 1.5px solid #ede8ff;
  border-radius: 12px;
  margin-bottom: 6px;
}

.search-store-category {
  font-size: 10px;
  color: #4f46e5;
  font-weight: 600;
  margin-top: 2px;
}


/* ─────────────────────────────────────────────
   피드 (Feed) — live.html 리디자인
   ───────────────────────────────────────────── */

/* 상단 헤더 */
.feed-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  background: #fff;
  border-bottom: 1px solid #f3f3f3;
}

.feed-header-back {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 20px;
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-header-icons {
  display: flex;
  gap: 6px;
}

.feed-icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #222;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.feed-icon-btn:active {
  background: #f5f5f5;
}

/* 카테고리 탭 */
.feed-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: #fff;
  border-bottom: 1px solid #efefef;
  position: sticky;
  top: 57px;
  z-index: 99;
}
.feed-tabs::-webkit-scrollbar { display: none; }

.feed-tab {
  flex-shrink: 0;
  padding: 11px 18px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
  transition: color 0.15s;
}

.feed-tab--active {
  color: #111;
  font-weight: 700;
  border-bottom-color: #111;
}

/* 피드 메인 스크롤 영역 */
.feed-main {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 80px;
  background: #f8f8f8;
}

/* 로딩 스켈레톤 */
.feed-loading {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-skeleton {
  width: 100%;
  height: 340px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* 빈 상태 */
.feed-empty {
  text-align: center;
  padding: 60px 24px;
  color: #888;
  font-size: 15px;
}

.feed-empty-action-btn {
  margin-top: 12px;
  width: auto;
  padding: 10px 24px;
  display: inline-block;
}

/* ── 피드 카드 (fc-*) ───────────────────────── */
.fc-card {
  background: #fff;
  margin: 0 0 10px;
  cursor: pointer;
  overflow: hidden;
}

.fc-card:first-child {
  margin-top: 0;
}

/* 이미지 영역 */
.fc-image {
  position: relative;
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

/* 실시간 라이브 스트림 카드 (기존 fc-card--live 호환) */
.fc-card--live {
  cursor: pointer;
  border: 2px solid #ef4444;
}

.fc-live-viewers-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 99px;
}

/* ══════════════════════════════════════════
   라이브 피드 헤더
   ══════════════════════════════════════════ */
.live-feed-header {
  justify-content: space-between;
}

.live-feed-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.live-feed-header-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: live-blink 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   라이브 피드 카드 (대형, lf-card)
   ══════════════════════════════════════════ */
#feed-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lf-card {
  display: block;
  background: #fff;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.12s;
  outline: none;
}

.lf-card:active {
  background: #f9f9f9;
}

/* 썸네일 영역 */
.lf-thumb {
  position: relative;
  width: 100%;
  height: 210px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

/* 상단 배지 행 */
.lf-top-row {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.lf-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px 4px 8px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(239,68,68,0.5);
}

.lf-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: live-blink 1.1s ease-in-out infinite;
  flex-shrink: 0;
}

.lf-viewer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* 하단 그라데이션 */
.lf-bottom-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  z-index: 1;
}

/* 참여하기 버튼 (썸네일 하단 우측) */
.lf-join-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(255,255,255,0.95);
  color: #111;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* 카드 본문 */
.lf-body {
  padding: 14px 16px 16px;
}

/* 호스트 정보 행 */
.lf-host-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.lf-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.lf-host-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lf-host-name {
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.lf-category {
  font-size: 11px;
  color: #6366f1;
  font-weight: 600;
  background: #ede9fe;
  border-radius: 999px;
  padding: 1px 8px;
  display: inline-block;
}

.lf-title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lf-desc {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   라이브 피드 스켈레톤
   ══════════════════════════════════════════ */
.live-feed-skeleton {
  width: 100%;
  height: 260px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-bottom: 1px solid #f0f0f0;
}

/* ══════════════════════════════════════════
   라이브 피드 빈 상태
   ══════════════════════════════════════════ */
.live-feed-empty-icon {
  font-size: 52px;
  margin-bottom: 12px;
}

.live-feed-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px;
}

.live-feed-empty-desc {
  font-size: 13px;
  color: #888;
  margin: 0 0 20px;
  line-height: 1.5;
}

/* 라이브 / 쇼츠 배지 */
.fc-live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
}

.fc-short-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #1a1a2e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
}

/* 좋아요 버튼 */
.fc-like-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 99px;
  padding: 6px 10px 6px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.15s;
}

.fc-like-btn:active { transform: scale(0.92); }

.fc-like-icon {
  width: 16px;
  height: 16px;
  color: #ccc;
  flex-shrink: 0;
}

.fc-like-btn--active .fc-like-icon {
  color: #ef4444;
}

.fc-like-count {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  min-width: 0;
}

/* 본문 영역 */
.fc-body {
  padding: 14px 16px 10px;
}

.fc-title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
  line-height: 1.35;
}

.fc-desc {
  font-size: 13px;
  color: #888;
  margin: 0 0 6px;
  line-height: 1.5;
}

.fc-views {
  font-size: 12px;
  color: #aaa;
  margin: 0 0 10px;
}

.fc-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fc-price {
  font-size: 19px;
  font-weight: 800;
  color: #111;
}

/* 혜택받기 버튼 */
.fc-claim-btn {
  flex-shrink: 0;
  padding: 7px 18px;
  border-radius: 99px;
  border: none;
  background: #f5e9c8;
  color: #8a6a00;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.fc-claim-btn:hover { background: #edda99; }
.fc-claim-btn--done { background: #e8f5e9; color: #2e7d32; }

/* 리뷰 한 줄 */
.fc-review-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 14px;
  border-top: 1px solid #f5f5f5;
}

.fc-reviewer-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.fc-review-text {
  font-size: 12px;
  color: #666;
  margin: 0;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* =============================================
   라이브 (live)
   ============================================= */
.live-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin: 16px 16px 8px;
}

.live-list {
  list-style: none;
  padding: 0 16px;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.live-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid #ede8ff;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: box-shadow 0.15s;
  text-align: left;
  width: 100%;
}

.live-card:hover,
.live-card:active {
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.12);
}

.live-card-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.live-card-badge--live {
  background: #ef4444;
  color: #fff;
}

.live-card-badge--upcoming {
  background: #ede8ff;
  color: #4f46e5;
}

.live-card-info {
  flex: 1;
  min-width: 0;
}

.live-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-card-meta {
  font-size: 12px;
  color: #888;
}

.live-card-viewers {
  font-size: 12px;
  color: #ef4444;
  font-weight: 600;
}

.live-empty {
  text-align: center;
  color: #aaa;
  font-size: 13px;
  padding: 40px 0;
}

.live-create-btn {
  margin: 0 16px 16px;
  width: calc(100% - 32px);
}

/* 라이브 목록 뷰 — flex 공간 채우기 */
#view-live-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

/* 라이브 시청 뷰 */
#view-live-room {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

#view-live-create {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
}

.live-room-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #111;
  color: #fff;
  flex-shrink: 0;
}

.live-room-back {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
}

.live-room-title {
  font-size: 15px;
  font-weight: 700;
  flex: 1;
  color: #fff;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-room-badge {
  font-size: 11px;
  background: #ef4444;
  color: #fff;
  border-radius: 20px;
  padding: 3px 10px;
  font-weight: 700;
}

/* ══════════════════════════════════════════
   라이브 룸 - 업그레이드 디자인
   ══════════════════════════════════════════ */

/* 라이브 룸 전체 래퍼 */
.live-room-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #0a0a0a;
}

.live-room-screen {
  background: #0d0d0d;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* 배경 블러 (영상 없을 때) */
.live-bg-blur {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #1e1b4b 0%, #0a0a0a 70%);
  z-index: 1;
}

/* 대기 화면 플레이스홀더 */
.live-room-placeholder {
  position: absolute;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  text-align: center;
}

.live-placeholder-icon {
  font-size: 48px;
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
}

.live-placeholder-text {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.02em;
}

/* 라이브 비디오 - 풀스크린 cover */
.live-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 10;
}

/* 상단·하단 그라데이션 오버레이 */
.live-screen-top-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, transparent 100%);
  z-index: 20;
  pointer-events: none;
}

.live-screen-bottom-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  z-index: 20;
  pointer-events: none;
}

/* HUD 오버레이 (영상 위) */
.live-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 12px) 16px 0;
  padding-top: max(env(safe-area-inset-top), 12px);
  z-index: 30;
}

.live-hud-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.live-hud-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-top: 2px;
}

.live-room-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.15s;
}

.live-room-back:hover,
.live-room-back:active {
  background: rgba(255,255,255,0.28);
}

.live-hud-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.live-hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: #ef4444;
  border-radius: 20px;
  padding: 3px 9px 3px 7px;
  width: fit-content;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(239,68,68,0.5);
}

.live-hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: live-blink 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.live-hud-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 175px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

.live-viewer-count {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
}

/* 채팅 오버레이 (영상 위, 하단) */
.live-chat-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 14px 14px;
  overflow: hidden;
  max-height: 220px;
  pointer-events: none;
}

.live-chat-msg {
  font-size: 13px;
  color: #fff;
  line-height: 1.45;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
  word-break: break-word;
  background: rgba(0,0,0,0.28);
  border-radius: 14px;
  padding: 5px 11px;
  display: inline-block;
  max-width: 90%;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.live-chat-name {
  color: #c4b5fd;
  margin-right: 5px;
  font-weight: 700;
}

/* 방송 컨트롤 (하단 중앙, 영상 위) */
.live-broadcast-controls {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 30;
}

.live-ctrl-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform 0.12s, background 0.15s;
}

.live-ctrl-btn:active {
  transform: scale(0.93);
}

.live-ctrl-btn--end {
  width: auto;
  height: 42px;
  border-radius: 21px;
  padding: 0 20px;
  background: rgba(239,68,68,0.92);
  border-color: rgba(239,68,68,0.6);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(239,68,68,0.45);
}

.live-ctrl-btn--end:active {
  background: rgba(220,38,38,0.95);
}

/* 방송 시작 화면 */
.live-start-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.72);
  z-index: 28;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.live-start-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  text-align: center;
}

.live-start-icon {
  font-size: 52px;
  margin-bottom: 4px;
}

.live-start-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.live-start-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.5;
}

.live-start-btn {
  margin-top: 8px;
  padding: 14px 40px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(239,68,68,0.55);
  transition: transform 0.12s, box-shadow 0.12s;
  letter-spacing: 0.02em;
}

.live-start-btn:active {
  transform: scale(0.97);
  box-shadow: 0 3px 12px rgba(239,68,68,0.45);
}

/* 채팅 입력 영역 */
.live-room-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  padding-bottom: max(env(safe-area-inset-bottom), 10px);
  background: #111;
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.live-room-input {
  flex: 1;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 22px;
  padding: 9px 16px;
  font-size: 14px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
  transition: border-color 0.15s;
}

.live-room-input::placeholder {
  color: rgba(255,255,255,0.35);
}

.live-room-input:focus {
  border-color: rgba(99,102,241,0.7);
  background: rgba(255,255,255,0.12);
}

.live-room-send {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(99,102,241,0.5);
  transition: transform 0.12s, background 0.15s;
}

.live-room-send:active {
  transform: scale(0.92);
  background: #4f46e5;
}

/* =============================================
   채팅 (DM 목록)
   ============================================= */
.dm-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  background: #fff;
  transition: background 0.1s;
}

.dm-item:hover,
.dm-item:active {
  background: #f8f6ff;
}

.dm-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5 0%, #a78bfa 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dm-info {
  flex: 1;
  min-width: 0;
}

.dm-name {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
}

.dm-last-msg {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-time {
  font-size: 11px;
  color: #bbb;
  white-space: nowrap;
}

.dm-empty {
  text-align: center;
  color: #aaa;
  font-size: 13px;
  padding: 60px 0;
  line-height: 1.8;
}

/* =============================================
   커뮤니티 공통 레이아웃
   ============================================= */
.comm-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.comm-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.comm-topbar-title {
  font-size: 17px;
  font-weight: 800;
  color: #111;
}

.comm-topbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.comm-back-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 6px 4px 0;
  color: #333;
  line-height: 1;
}

.comm-icon-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  line-height: 1;
}

.comm-icon-btn--danger {
  color: #ef4444;
}

.comm-scroll-main {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 80px;
}

/* =============================================
   커뮤니티 카테고리 탭 바
   ============================================= */
.comm-cat-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #f4f4f6;
}

.comm-cat-bar::-webkit-scrollbar { display: none; }

.comm-cat-btn {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  color: #777;
  cursor: pointer;
  transition: all 0.15s;
}

.comm-cat-btn--active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

/* =============================================
   커뮤니티 피드
   ============================================= */
.comm-feed-main {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 80px;
  background: #f8f8fb;
}

.comm-post-list {
  list-style: none;
  padding: 0 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comm-post-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  transition: box-shadow 0.15s;
  overflow: hidden;
}

.comm-post-card:hover,
.comm-post-card:active {
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.12);
}

.comm-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.comm-card-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comm-card-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.comm-card-author {
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.comm-card-time {
  font-size: 11px;
  color: #aaa;
}

.comm-cat-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.comm-card-body {
  margin-bottom: 8px;
}

.comm-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comm-card-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.comm-card-thumb {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #f0edff;
  margin-bottom: 8px;
  overflow: hidden;
}

.comm-card-thumb--video {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: #1a1a2e;
  color: #fff;
}

.comm-card-footer {
  display: flex;
  gap: 12px;
}

.comm-card-stat {
  font-size: 12px;
  color: #999;
}

/* FAB */
.comm-fab {
  position: absolute;
  bottom: 84px;
  right: 16px;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
  z-index: 10;
}

.comm-write-fab-top {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

.comm-empty {
  text-align: center;
  color: #bbb;
  font-size: 14px;
  padding: 60px 0;
  line-height: 2;
}

/* =============================================
   커뮤니티 글 상세
   ============================================= */
#view-post-detail {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.comm-detail-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 8px;
}

.comm-detail-article {
  padding: 16px;
  border-bottom: 6px solid #f4f4f6;
}

.comm-detail-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.comm-detail-title {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  margin: 0 0 12px;
  line-height: 1.4;
}

.comm-detail-body {
  font-size: 14px;
  color: #333;
  line-height: 1.7;
  white-space: pre-line;
}

.comm-detail-media {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comm-detail-img {
  width: 100%;
  border-radius: 12px;
  max-height: 360px;
  object-fit: cover;
}

.comm-detail-video {
  width: 100%;
  border-radius: 12px;
  max-height: 300px;
  background: #000;
}

.comm-detail-footer {
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
  border-bottom: 6px solid #f4f4f6;
}

.comm-msg-btn {
  width: 100%;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* 댓글 섹션 */
.comm-comments-section {
  padding: 12px 16px;
}

.comm-comments-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.comm-comments-label {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.comm-comments-count {
  font-size: 13px;
  color: #4f46e5;
  font-weight: 700;
}

.comm-comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comm-comment-item {
  display: flex;
  gap: 10px;
}

.comm-comment-avatar {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: #ede8ff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comm-comment-body {
  flex: 1;
}

.comm-comment-meta {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 3px;
}

.comm-comment-author {
  font-size: 12px;
  font-weight: 700;
  color: #333;
}

.comm-comment-time {
  font-size: 11px;
  color: #bbb;
}

.comm-comment-text {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
  margin: 0;
}

/* 댓글 입력 고정 바 */
.comm-comment-input-bar {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid #eee;
  background: #fff;
  flex-shrink: 0;
}

.comm-comment-input {
  flex: 1;
  border: 1.5px solid #e0e0e0;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 13px;
  outline: none;
}

.comm-comment-input:focus {
  border-color: #4f46e5;
}

.comm-comment-send {
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* =============================================
   커뮤니티 글 쓰기
   ============================================= */
#view-write-post {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.comm-write-main {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* 상단 카테고리 버튼 */
.comm-write-cats {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f0;
  overflow-x: auto;
}

.comm-write-cats::-webkit-scrollbar { display: none; }

.comm-write-cat-btn {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 16px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  color: #888;
  cursor: pointer;
}

.comm-write-cat-btn--active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

.comm-title-input {
  border: none;
  border-bottom: 1px solid #f0f0f0;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
}

.comm-title-input::placeholder { color: #ccc; }

.comm-body-input {
  border: none;
  padding: 14px 16px;
  font-size: 14px;
  color: #333;
  line-height: 1.7;
  outline: none;
  resize: none;
  width: 100%;
  box-sizing: border-box;
  min-height: 180px;
  flex: 1;
  background: #fff;
  font-family: inherit;
}

.comm-body-input::placeholder { color: #ccc; }

/* 미디어 미리보기 */
.comm-media-preview {
  display: flex;
  gap: 8px;
  padding: 0 16px 8px;
  overflow-x: auto;
  flex-wrap: wrap;
}

.comm-media-preview::-webkit-scrollbar { display: none; }

.comm-preview-item {
  position: relative;
  flex-shrink: 0;
}

.comm-preview-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: #f0edff;
  display: block;
}

.comm-preview-thumb--video {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
  color: #fff;
  font-size: 24px;
  width: 72px;
  height: 72px;
  border-radius: 10px;
}

.comm-preview-name {
  font-size: 10px;
  color: #666;
  display: block;
  text-align: center;
  margin-top: 2px;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comm-preview-del {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(239,68,68,0.9);
  color: #fff;
  font-size: 11px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* 미디어 툴바 */
.comm-media-toolbar {
  display: flex;
  gap: 4px;
  padding: 8px 16px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
  margin-top: auto;
}

.comm-media-btn {
  font-size: 22px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  -webkit-user-select: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
}

.comm-media-btn:hover { background: #ede8ff; }

.comm-submit-top-btn {
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.comm-write-error {
  color: #ef4444;
  font-size: 12px;
  padding: 4px 16px;
  margin: 0;
}

/* 프로필 그리드 카드 */
.profile-grid-item-wrap {
  display: flex;
  flex-direction: column;
}

/* 썸네일 버튼 - 정사각형 */
.profile-grid-item {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
}

/* 정보 행 (이미지 아래, 겹치지 않음) */
.profile-grid-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  padding: 4px 2px 2px;
  width: 100%;
}

.profile-grid-info-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.profile-grid-title {
  font-size: 10px;
  color: #333;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.profile-grid-views {
  font-size: 9px;
  color: #999;
}

.profile-grid-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  background: #ef4444;
  color: #fff;
}

.profile-grid-badge--short {
  background: #6366f1;
}

/* ⋮ 메뉴 버튼 (이미지 아래 정보 영역 우측, 겹침 없음) */
.profile-grid-menu {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: none;
  border: none;
  color: #999;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
  line-height: 1;
}

.profile-grid-menu:hover,
.profile-grid-menu:active {
  background: #f3f4f6;
  color: #333;
}

.profile-manage-btn {
  font-size: 12px;
  font-weight: 600;
  color: #4f46e5;
  background: none;
  border: 1.5px solid #4f46e5;
  border-radius: 8px;
  padding: 4px 12px;
  margin-left: auto;
  cursor: pointer;
}

.profile-manage-btn--active {
  background: #4f46e5;
  color: #fff;
}

/* scrollbar-width: @supports 래핑 (Chrome <121, Safari 미지원 대응) */
@supports (scrollbar-width: none) {
  .comm-cat-bar,
  .comm-write-cats,
  .comm-media-preview {
    scrollbar-width: none;
  }
}

/* ── 인라인 스타일 대체 유틸 클래스 ────────────────────── */

/* chat.html: file input 숨김 */
.comm-media-btn input[type="file"] { display: none; }

/* live.html */
.live-list-main { flex: 1; overflow-y: auto; padding-bottom: 80px; }
.live-room-stream-note { font-size: 11px; color: #666; margin-top: 8px; display: block; }
.live-scheduled-hidden { display: none; }

/* product-detail.html */
.btn-danger-outline { color: #ef4444; border-color: #ef4444; }

/* profile-edit.html */
.form-header--with-back { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* profile.html */
.profile-empty { display: none; }

/* store-detail.html */
.btn-delete-store { color: #ef4444; font-size: 18px; }

/* ══ 지갑 충전 페이지 (wallet-charge) ═════════════════════════ */
.wc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.wc-back-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #222;
}
.wc-header-title {
  font-size: 17px;
  font-weight: 700;
  color: #111;
}
.wc-main {
  padding: 20px 16px 120px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 잔액 카드 */
.wc-balance-card {
  background: linear-gradient(135deg, #6c63ff 0%, #4338ca 100%);
  border-radius: 24px;
  padding: 28px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(99, 79, 229, 0.35);
}
.wc-balance-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.wc-balance-icon { font-size: 18px; }
.wc-balance-label {
  font-size: 13px;
  opacity: 0.85;
  font-weight: 500;
}
.wc-balance-amount {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0;
}
.wc-balance-shine {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

/* 섹션 */
.wc-section { display: flex; flex-direction: column; gap: 14px; }
.wc-section-label {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

/* 금액 그리드 */
.wc-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.wc-amount-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  border: 2px solid #e8e8e8;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  gap: 2px;
}
.wc-amount-btn:active { transform: scale(0.96); }
.wc-amount-btn--active {
  border-color: #6c63ff;
  background: #f0effe;
  box-shadow: 0 0 0 1px #6c63ff;
}
.wc-amount-num {
  font-size: 17px;
  font-weight: 800;
  color: #111;
}
.wc-amount-btn--active .wc-amount-num { color: #4338ca; }
.wc-amount-unit {
  font-size: 11px;
  color: #888;
  font-weight: 500;
}
.wc-amount-btn--active .wc-amount-unit { color: #6c63ff; }

/* 직접 입력 */
.wc-custom-wrap {
  background: #f8f8f8;
  border-radius: 16px;
  padding: 14px 16px;
}
.wc-custom-label {
  font-size: 12px;
  color: #888;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.wc-custom-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wc-custom-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  outline: none;
}
.wc-custom-input::placeholder { color: #ccc; font-weight: 400; font-size: 15px; }
.wc-custom-unit {
  font-size: 16px;
  font-weight: 600;
  color: #555;
}

/* 충전 요약 */
.wc-summary-box {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eee;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wc-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #555;
}
.wc-summary-amount {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}
.wc-summary-divider {
  height: 1px;
  background: #f0f0f0;
}
.wc-summary-row--total {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}
.wc-summary-total {
  font-size: 20px;
  font-weight: 800;
  color: #6c63ff;
}

/* 안내 문구 */
.wc-notice-list {
  padding: 0 0 0 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wc-notice-list li {
  font-size: 12px;
  color: #999;
  line-height: 1.5;
}

/* 메시지 */
.wc-msg {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
}
.wc-msg--error { background: #fff1f0; color: #e53935; }
.wc-msg--success { background: #f0fff4; color: #2e7d32; }

/* 하단 고정 버튼 */
.wc-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 14px 16px 28px;
  background: linear-gradient(to top, #fff 80%, transparent);
  z-index: 20;
}
.wc-charge-btn {
  width: 100%;
  padding: 17px;
  background: linear-gradient(135deg, #6c63ff, #4338ca);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(99, 79, 229, 0.4);
  transition: opacity 0.15s, transform 0.15s;
  letter-spacing: -0.3px;
}
.wc-charge-btn:active { transform: scale(0.98); opacity: 0.9; }
.wc-charge-btn:disabled {
  background: #ccc;
  box-shadow: none;
  cursor: not-allowed;
}

/* ══ 라이브 상세 뷰 (live-detail) ══════════════════════════════ */
.live-detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}
.live-detail-back {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #222;
  display: flex;
  align-items: center;
}
.live-detail-header-title {
  font-size: 17px;
  font-weight: 700;
  color: #111;
}
.live-detail-body {
  display: flex;
  flex-direction: column;
  height: calc(100% - 57px);
  overflow-y: auto;
}
.live-detail-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  position: relative;
  flex-shrink: 0;
}
.live-detail-thumb-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}
.live-detail-viewers {
  font-size: 12px;
  color: #fff;
  background: rgba(0,0,0,0.45);
  border-radius: 99px;
  padding: 4px 10px;
}
.live-detail-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 50%);
}
.live-detail-host-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 8px;
}
.live-detail-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.live-detail-host-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.live-detail-host-name {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 0;
}
.live-detail-category {
  font-size: 12px;
  color: #ef4444;
  margin: 0;
  font-weight: 600;
}
.live-detail-content {
  padding: 4px 16px 12px;
  border-bottom: 1px solid #f5f5f5;
}
.live-detail-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin: 0 0 6px;
  line-height: 1.4;
}
.live-detail-desc {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.6;
  white-space: pre-wrap;
}
.live-detail-actions {
  padding: 20px 16px;
}
.live-detail-enter-btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(239,68,68,0.35);
}
.live-detail-enter-btn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* 프로필 페이지 라이브 시작 버튼 강조 */
#btn-start-live .profile-quick-icon { font-size: 22px; }

