/* ==========================================================================
   OUTGRID custom.css
   템플릿(style.css, responsive.css) 외 커스텀 스타일
   ========================================================================== */


/* ==========================================================================
   1. Global utilities & components
   ========================================================================== */

.text-bg-white {
  background-color: #ffffff;
}

/* 모바일: 패럴랙스 카테고리 텍스트는 배경 투명 + 진한 글자로 표시 */
@media (max-width: 767px) {
  .parallax-category-text.text-bg-white {
    background-color: rgba(0, 0, 0, 0.5);
  }
}

.text-bg-black {
  background-color: rgba(0, 0, 0, 0.5);
}

.text-style-title {
  font-size: 35px;
  font-weight: 700;
}

.text-size-xs {
  font-size: 12px;
}

.text-size-s {
  font-size: 14px;
}

.text-size-m {
  font-size: 16px;
}

.text-size-l {
  font-size: 20px;
}

.text-size-xl {
  font-size: 30px;
}

.agree-box {
  border: solid 1px #d0d0d0;
  padding: 20px;
  height: 150px;
  font-size: 12px;
  color: gray;
  overflow-y: scroll;
  background-color: #f0f0f0;
}

/* 푸터 모바일 정리 */
@media (max-width: 991px) {
  .footer-strip .footer-logo {
    max-width: 160px;
    height: auto;
  }
}

.event-detail-title {
  width: 85px !important;
  display: inline-block;
  flex-shrink: 0;
}

/* ==========================================================================
   2. Home — event cards (index.php)
   ========================================================================== */

/* 메인 노출 행사 (index.php) */
.home-event-section {
  padding: 40px 16px 48px;
}

.home-event-wrap {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.home-event-wrap.is-count-1 {
  grid-template-columns: 1fr;
}

.home-event-wrap.is-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-event-wrap.is-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-event-wrap.is-count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-event-wrap.is-count-many {
  grid-template-columns: 1fr;
}

.home-event-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.home-event-card:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.home-event-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.home-event-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f3f3;
}

.home-event-wrap.is-count-2 .home-event-card-image {
  aspect-ratio: 4 / 3;
}

.home-event-wrap.is-count-3 .home-event-card-image,
.home-event-wrap.is-count-4 .home-event-card-image {
  aspect-ratio: 16 / 10;
}

.home-event-wrap.is-count-3 .home-event-card-title,
.home-event-wrap.is-count-4 .home-event-card-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.home-event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-event-card.is-hero {
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.home-event-card.is-hero .home-event-card-image {
  aspect-ratio: 16 / 9;
}

.home-event-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 32px 28px 28px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.home-event-card-body {
  padding: 18px 18px 20px;
}

.home-event-card-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #232323;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 1px 5px;
  margin-bottom: 10px;
}

.home-event-card.is-hero .home-event-card-category {
  background: #fff;
  border-color: #fff;
}

.home-event-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #232323;
  line-height: 1.35;
  margin: 0 0 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 2);
}

.home-event-wrap.is-count-2 .home-event-card-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.home-event-card.is-hero .home-event-card-title {
  font-size: clamp(22px, 4vw, 32px);
  color: #fff;
  margin-bottom: 12px;
}

.home-event-card-meta {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #888;
}

.home-event-card.is-hero .home-event-card-meta {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 16px;
}

.home-event-card-meta li+li {
  margin-top: 4px;
}

.home-event-card-btn {
  margin: 0;
}

.home-event-empty-card {
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fafafa;
  padding: 64px 24px;
  text-align: center;
}

.home-event-empty-text {
  font-size: 16px;
  font-weight: 600;
  color: #666;
  margin: 0 0 16px;
}

@media (max-width: 767px) {
  .home-event-section {
    padding: 24px 12px 36px;
  }

  .home-event-wrap.is-count-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-event-wrap.is-count-3,
  .home-event-wrap.is-count-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-event-wrap.is-count-2 .home-event-card-image {
    aspect-ratio: 16 / 10;
  }

  .home-event-card-overlay {
    padding: 24px 18px 20px;
  }

  .home-event-card-body {
    padding: 16px 16px 18px;
  }

  .home-event-wrap.is-count-2 .home-event-card-title {
    font-size: 18px;
  }

  .home-event-wrap.is-count-3 .home-event-card-title,
  .home-event-wrap.is-count-4 .home-event-card-title {
    font-size: 18px;
  }
}

/* ==========================================================================
   3. Event list — ongoing section (event.php)
   ========================================================================== */

/* 행사 목록 — 진행중 섹션 (event.php) */
.event-ongoing-section {
  padding: 48px 0 40px;
  background: #f7f7f7;
  border-bottom: 1px solid #ececec;
}

.event-ongoing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 24px;
  padding: 0 16px;
}

.event-ongoing-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #888;
  margin: 0;
  line-height: 1;
}

.event-ongoing-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: #232323;
  margin: 0;
  line-height: 1.3;
}

.event-ongoing-badge {
  font-size: 12px;
  font-weight: 600;
  color: #232323;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
}

.event-ongoing-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.event-ongoing-card-status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(35, 35, 35, 0.82);
  border-radius: 4px;
  padding: 5px 9px;
}

.event-category-section {
  padding-top: 48px;
}

@media (max-width: 991px) {
  .home-event-wrap.is-count-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-event-wrap.is-count-3 .home-event-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .event-ongoing-section {
    padding: 32px 0 28px;
  }

  .event-ongoing-head {
    margin-bottom: 10px;
  }

  .home-event-wrap.is-count-3 .home-event-card:last-child {
    max-width: none;
  }
}

/* ==========================================================================
   4. Home hub (index.php)
   ========================================================================== */

/* 메인 허브 (index.php) */
.home-hub-page {
  background: #f7f7f7;
}

.home-hub-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.home-hub-hero {
  background: #232323;
  color: #fff;
  padding: 48px 0 44px;
}

.home-hub-eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 10px;
}

.home-hub-hero-title {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 12px;
}

.home-hub-hero-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 20px;
}

.home-hub-hero-desc strong {
  color: #ffd45a;
  font-weight: 700;
}

.home-hub-hero-actions,
.home-hub-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-hub-welcome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.home-hub-welcome-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.home-hub-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}

.home-hub-body {
  padding: 24px 0 48px;
}

.home-hub-panel {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 24px 22px;
  margin-bottom: 16px;
}

@media (max-width: 767px) {
  .home-hub-panel {
    padding: 16px 10px;
  }
}

.home-hub-panel-head {
  margin-bottom: 18px;
}

.home-hub-panel-head h2 {
  font-size: 18px;
  font-weight: 700;
  color: #232323;
  margin: 0 0 4px;
}

.home-hub-panel-head p {
  font-size: 13px;
  color: #888;
  margin: 0;
}

.home-hub-panel-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.home-hub-more {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  white-space: nowrap;
}

.home-hub-more:hover {
  color: #232323;
}

.home-hub-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  border-radius: 12px;
  padding: 22px 22px;
  margin-bottom: 16px;
}

.home-hub-promo-point {
  background: linear-gradient(135deg, #fff9ec 0%, #fff0c8 100%);
  border: 1px solid #e8c36a;
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.12);
}

.home-hub-promo-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #9a6b00;
  background: #fff;
  border: 1px solid #e8c36a;
  border-radius: 999px;
  padding: 6px 12px;
}

.home-hub-promo-main {
  flex: 1 1;
  min-width: 0;
}

.home-hub-promo-main h2 {
  font-size: 17px;
  font-weight: 700;
  color: #232323;
  margin: 0 0 6px;
  line-height: 1.4;
}

.home-hub-promo-main h2 em {
  font-style: normal;
  color: #d48800;
}

.home-hub-promo-main p {
  font-size: 13px;
  color: #7a5800;
  margin: 0;
  line-height: 1.5;
}

.home-hub-promo-progress {
  margin-top: 12px;
}

.home-hub-promo-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  margin-bottom: 6px;
}

.home-hub-promo-progress-bar span {
  display: block;
  height: 100%;
  background: #232323;
  border-radius: inherit;
}

.home-hub-promo-progress-text {
  font-size: 12px;
  font-weight: 600;
  color: #9a6b00;
}

.home-hub-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.home-hub-stat {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 16px 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-hub-stat:hover {
  border-color: #232323;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  color: inherit;
}

.home-hub-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #232323;
  line-height: 1.2;
}

.home-hub-stat span {
  font-size: 12px;
  color: #888;
}

.home-hub-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.home-hub-quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: #555;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 14px 8px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-hub-quick i {
  font-size: 18px;
  color: #232323;
}

.home-hub-quick:hover {
  background: #232323;
  border-color: #232323;
  color: #fff;
}

.home-hub-quick:hover i {
  color: #fff;
}

.home-hub-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.home-hub-step {
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 16px 14px;
}

.home-hub-step-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #aaa;
  margin-bottom: 8px;
}

.home-hub-step h3 {
  font-size: 15px;
  font-weight: 700;
  color: #232323;
  margin: 0 0 6px;
}

.home-hub-step p {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  margin: 0;
}

.home-event-wrap-inset {
  max-width: none;
  padding: 0;
}

.home-hub-review-list {
  display: grid;
  gap: 10px;
}

.home-hub-review-item {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 16px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-hub-review-item:hover {
  border-color: #232323;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  color: inherit;
}

.home-hub-review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.home-hub-review-top strong {
  font-size: 14px;
  font-weight: 700;
  color: #232323;
}

.home-hub-review-top span {
  font-size: 12px;
  color: #aaa;
  flex-shrink: 0;
}

.home-hub-review-item p {
  font-size: 13px;
  color: #666;
  line-height: 1.55;
  margin: 0 0 8px;
}

.home-hub-review-author {
  font-size: 12px;
  color: #aaa;
}

.home-hub-faq-list {
  display: grid;
  gap: 8px;
}

.home-hub-faq-item {
  border: 1px solid #ececec;
  border-radius: 10px;
  overflow: hidden;
  background: #fafafa;
}

.home-hub-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: #232323;
  padding: 14px 16px;
  position: relative;
  padding-right: 36px;
}

.home-hub-faq-item summary::-webkit-details-marker {
  display: none;
}

.home-hub-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #aaa;
  font-weight: 400;
}

.home-hub-faq-item[open] summary::after {
  content: "−";
}

.home-hub-faq-item p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0;
  padding: 0 16px 14px;
  border-top: 1px solid #ececec;
  padding-top: 12px;
}

.home-hub-empty-box {
  border: 1px dashed #ddd;
  border-radius: 10px;
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: #999;
}

.home-hub-cta {
  background: #232323;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  color: #fff;
}

.home-hub-cta h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.home-hub-cta p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 18px;
  line-height: 1.55;
}

.home-hub-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.home-hub-cta-done {
  background: linear-gradient(135deg, #f0faf4 0%, #e8f5ee 100%);
  border: 1px solid #8ecfaa;
}

.home-hub-cta-done h2 {
  color: #1f6b42;
}

.home-hub-cta-done p {
  color: #3d7a5a;
}

@media (max-width: 767px) {
  .home-hub-hero {
    padding: 36px 0 32px;
    text-align: center;
  }

  .home-hub-hero .home-hub-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .home-hub-welcome {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .home-hub-welcome-user {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .home-hub-hero-actions,
  .home-hub-welcome-actions {
    justify-content: center;
    width: 100%;
  }

  .home-hub-promo {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-hub-steps {
    grid-template-columns: 1fr;
  }

  .home-hub-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-hub-panel-head-row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }

  .home-hub-panel-head-row>div:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  .home-hub-panel-head-row .home-hub-more {
    flex-shrink: 0;
    align-self: center;
    font-size: 12px;
  }
}

/* ==========================================================================
   6. Home — arrival cards (index.php)
   ========================================================================== */

/* 홈 — 도착 인증 카드 */
.home-arrival-section .home-arrival-head-icon {
  color: #e53935;
  margin-right: 4px;
}

.home-arrival-guest {
  text-align: center;
  padding: 28px 16px;
  background: #fafafa;
  border-radius: 10px;
}

.home-arrival-guest-icon {
  font-size: 36px;
  color: #bbb;
  margin-bottom: 12px;
}

.home-arrival-guest p {
  font-size: 14px;
  color: #666;
  margin: 0 0 16px;
  line-height: 1.6;
}

.home-arrival-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-arrival-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.home-arrival-card-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #232323;
  text-decoration: none;
  margin-bottom: 4px;
}

.home-arrival-event-state {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  background: #eee;
  padding: 2px 8px;
  border-radius: 10px;
}

.home-arrival-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.home-arrival-badge.is-done {
  background: #e8f5e9;
  color: #2e7d32;
}

.home-arrival-badge.is-wait {
  background: #fff3e0;
  color: #ef6c00;
}

.home-arrival-badge.is-lock {
  background: #f5f5f5;
  color: #757575;
}

.home-arrival-live-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.home-arrival-live-item {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}

.home-arrival-live-label {
  display: block;
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}

.home-arrival-live-value {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #232323;
  line-height: 1.35;
  word-break: keep-all;
}

.home-arrival-live-value.is-inside {
  color: #2e7d32;
}

.home-arrival-live-value.is-outside {
  color: #c62828;
}

.home-arrival-info {
  margin: 0 0 14px;
  padding: 0;
}

.home-arrival-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  line-height: 1.5;
}

.home-arrival-info-row:last-child {
  border-bottom: none;
}

.home-arrival-info-row dt {
  flex: 0 0 88px;
  margin: 0;
  color: #888;
  font-weight: 500;
}

.home-arrival-info-row dd {
  flex: 1 1 0;
  margin: 0;
  color: #333;
  min-width: 0;
}

.home-arrival-info-row dd.home-arrival-warn {
  color: #c62828;
}

.home-arrival-map-wrap {
  position: relative;
  margin-bottom: 14px;
}

/* 도착 인증 중앙 모달 (목록·실시간 지도 공통) */
.arrival-checkin-modal {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  padding-top: calc(24px + env(safe-area-inset-top, 0));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.26s ease, visibility 0.26s ease;
}

.arrival-checkin-modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.arrival-checkin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 35, 35, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.arrival-checkin-modal__panel {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding: 30px 24px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
  text-align: center;
  transform: scale(0.9) translateY(16px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.arrival-checkin-modal.is-visible .arrival-checkin-modal__panel {
  transform: scale(1) translateY(0);
}

.arrival-checkin-modal__badge {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%);
  border: 2px solid #f0a88a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e53935;
  font-size: 26px;
  box-shadow: 0 6px 16px rgba(229, 57, 53, 0.15);
}

.arrival-checkin-modal__title {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
  color: #232323;
  letter-spacing: -0.02em;
}

.arrival-checkin-modal__msg {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

.arrival-checkin-modal__msg strong {
  color: #2e7d32;
  font-weight: 700;
}

.arrival-checkin-modal__warn {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #c62828;
}

.arrival-checkin-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: #232323;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(35, 35, 35, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.arrival-checkin-modal__btn:disabled {
  opacity: 0.65;
  cursor: default;
  box-shadow: none;
}

.arrival-checkin-modal__btn:not(:disabled):active {
  background: #111;
  transform: scale(0.98);
}

.arrival-checkin-modal__later {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 8px;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.arrival-checkin-modal__later:hover {
  color: #555;
}

body.arrival-checkin-modal-open {
  overflow: hidden;
}

.home-arrival-map {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  background: #eee;
  overflow: hidden;
}

.home-arrival-map--preview,
.home-arrival-map--preview * {
  cursor: default !important;
  pointer-events: none !important;
  touch-action: pan-y;
}

.home-arrival-map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  font-size: 12px;
  color: #888;
  margin: 8px 0 0;
}

.home-arrival-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-arrival-map-legend-item img {
  display: block;
  flex-shrink: 0;
}

.home-arrival-map-legend .is-target {
  color: #e53935;
}

.home-arrival-map-legend .is-me {
  color: #1976d2;
}

.home-arrival-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.home-arrival-help {
  flex: 1 1 100%;
  font-size: 13px;
  color: #666;
  margin: 0 0 4px;
  line-height: 1.5;
}

.home-arrival-done-msg {
  flex: 1 1 100%;
  font-size: 14px;
  font-weight: 600;
  color: #2e7d32;
  margin: 0 0 4px;
}

.home-arrival-faq-link {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #ececec;
  text-align: center;
}

.home-arrival-faq-link p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 12px;
}

/* 실시간 지도 전용 페이지 (mypage_arrival_map.php) */
.arrival-live-map-page {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #eee;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

.arrival-live-map-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #fff;
}

.arrival-live-map-bar {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #ececec;
  padding-top: env(safe-area-inset-top, 0);
}

.arrival-live-map-bar-btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-right: 1px solid #ececec;
  border-radius: 0;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.arrival-live-map-bar-btn img {
  display: block;
  flex-shrink: 0;
}

.arrival-live-map-bar-btn.is-my {
  color: #1976d2;
}

.arrival-live-map-bar-btn.is-target {
  color: #c62828;
}

.arrival-live-map-bar-btn.is-back {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 8px 10px;
  border-right: 0;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  gap: 4px;
}

.arrival-live-map-bar-btn.is-back i {
  font-size: 11px;
  line-height: 1;
}

.arrival-live-map-bar-btn:hover,
.arrival-live-map-bar-btn:focus {
  background: #f7f7f7;
  color: inherit;
  text-decoration: none;
}

.arrival-live-map-bar-btn.is-active {
  background: #f3f3f3;
}

.arrival-live-map-status {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
  font-size: 12px;
  line-height: 1.4;
}

.arrival-live-map-status-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: #333;
}

.arrival-live-map-status-distance {
  flex: 0 0 auto;
  font-weight: 600;
  color: #666;
  white-space: nowrap;
}

.arrival-live-map-status-distance.is-inside {
  color: #2e7d32;
}

.arrival-live-map-status-distance.is-outside {
  color: #c62828;
}

.arrival-live-map-canvas-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.arrival-live-map-canvas {
  width: 100%;
  height: 100%;
  background: #eee;
  touch-action: none;
  -ms-touch-action: none;
}

.arrival-live-map-canvas>div {
  touch-action: none;
  -ms-touch-action: none;
}

.arrival-live-map-zoom {
  position: absolute;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0));
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.arrival-live-map-zoom-btn {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: #333;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.arrival-live-map-zoom-btn:active {
  background: #f0f0f0;
}

.arrival-live-map-status-distance.is-done {
  color: #2e7d32;
}

.home-arrival-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%);
  border: 1px solid #f0a88a;
  box-shadow: 0 8px 24px rgba(229, 57, 35, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-arrival-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(229, 57, 35, 0.16);
  color: inherit;
  text-decoration: none;
}

.home-arrival-banner-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e53935;
  color: #fff;
  border-radius: 50%;
  font-size: 20px;
}

.home-arrival-banner-main {
  flex: 1 1 auto;
  min-width: 0;
}

.home-arrival-banner-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #232323;
  line-height: 1.35;
  margin-bottom: 2px;
}

.home-arrival-banner-meta {
  display: block;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.home-arrival-banner-meta em {
  font-style: normal;
  font-weight: 700;
  color: #e53935;
}

.home-arrival-banner-action {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #e53935;
  white-space: nowrap;
}

.home-arrival-banner-action i {
  font-size: 11px;
  margin-left: 2px;
}

.home-arrival-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13px;
  color: #666;
}

.home-arrival-summary-item strong {
  color: #232323;
}

@media (max-width: 767px) {
  .home-arrival-live-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-arrival-actions {
    justify-content: center;
    text-align: center;
  }

  .home-arrival-help,
  .home-arrival-done-msg {
    text-align: center;
  }

  .home-arrival-info-row dt {
    flex: 0 0 100%;
  }

  .home-arrival-banner {
    flex-wrap: wrap;
    padding: 16px;
  }

  .home-arrival-banner-action {
    width: 100%;
    padding-top: 4px;
    border-top: 1px solid rgba(229, 57, 35, 0.15);
    text-align: right;
  }
}

/* ==========================================================================
   7. Global layout — mypage section, mobile tabbar
   ========================================================================== */

/* 마이페이지 섹션 */
.mypage-section {
  padding: 40px 0;
}

@media (max-width: 767px) {
  .top-space {
    display: none;
  }

  .mypage-section {
    padding: 0 0;
  }

  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
}

/* 모바일 하단 탭 메뉴 */
.outgrid-mobile-tabbar {
  display: none;
}

@media (max-width: 767px) {
  .outgrid-mobile-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    align-items: stretch;
    justify-content: space-around;
    gap: 0;
    min-height: 56px;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .outgrid-mobile-tabbar-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 2px 4px;
    color: #888;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
  }

  .outgrid-mobile-tabbar-item:hover,
  .outgrid-mobile-tabbar-item:focus {
    color: #232323;
    text-decoration: none;
  }

  .outgrid-mobile-tabbar-item.is-active {
    color: #232323;
  }

  .outgrid-mobile-tabbar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 18px;
    line-height: 1;
  }

  .outgrid-mobile-tabbar-item.is-active .outgrid-mobile-tabbar-icon {
    color: #232323;
  }

  .outgrid-mobile-tabbar-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ==========================================================================
   8. Global — disable template animations
   ========================================================================== */

/* OUTGRID — entrance/scroll animations off */
.wow,
.wow.is-revealed,
.animate__animated,
[class*="animate__"],
.up-down-ani {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* ==========================================================================
   9. Shared — image zoom modal (Swiper)
   ========================================================================== */

#image-zoom-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1060;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-direction: column;
}

#image-zoom-modal .image-zoom-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  z-index: 1062;
}

#image-zoom-modal .swiper {
  width: 100%;
  height: 80vh;
}

#image-zoom-modal .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

#image-zoom-modal .swiper-slide img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 4px;
  object-fit: contain;
}

#image-zoom-modal .swiper-button-next,
#image-zoom-modal .swiper-button-prev {
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: background 0.3s;
  background-size: 24px 24px;
  background-position: center;
  background-repeat: no-repeat;
  background-image: none;
}

#image-zoom-modal .swiper-button-next:hover,
#image-zoom-modal .swiper-button-prev:hover {
  background-color: rgba(0, 0, 0, 0.8) !important;
}

#image-zoom-modal .swiper-button-next::after,
#image-zoom-modal .swiper-button-prev::after {
  display: none !important;
  content: none !important;
}

#image-zoom-modal .swiper-button-next {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2022L5%2044l-2.1-2.1L22.8%2022%202.9%202.1%205%200l22%2022z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E") !important;
}

#image-zoom-modal .swiper-button-prev {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2022L22%200l2.1%202.1L4.2%2022l19.9%2019.9L22%2044%200%2022z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E") !important;
}

/* ==========================================================================
   11. Event form (event_form.php)
   ========================================================================== */

.event-addr-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.event-addr-row .event-addr-zip {
  width: 140px;
  max-width: 100%;
  margin-bottom: 0;
}

.event-addr-fields .big-input {
  margin-bottom: 10px;
}

.event-gender-options {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 52px;
  padding-top: 4px;
}

.event-gender-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  font-weight: 500;
}

.event-gender-option input[type="radio"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  flex-shrink: 0;
}

.postcode-layer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9998;
}

.postcode-layer-wrap {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(500px, calc(100vw - 32px));
  height: 520px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  overflow: hidden;
  flex-direction: column;
}

.postcode-layer-wrap.is-open {
  display: flex;
}

.postcode-layer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.postcode-layer-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.postcode-layer-close {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0;
}

#postcode_layer_embed {
  flex: 1;
  min-height: 0;
  width: 100%;
}

/* ==========================================================================
   12. Event payment (event_payment.php)
   ========================================================================== */

.page-event-payment {
  font-family: 'Malgun Gothic', 'Dotum', sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.pay-box {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.pay-box h2 {
  margin-top: 0;
  color: #333;
  font-size: 24px;
}

.pay-info {
  border-top: 2px solid #eee;
  border-bottom: 2px solid #eee;
  padding: 20px 0;
  margin: 20px 0;
  text-align: left;
  line-height: 1.8;
}

.pay-info div {
  display: flex;
}

.pay-info b {
  color: #000;
  width: 90px;
  flex-shrink: 0;
}

.pay-info span {
  color: #666;
  width: auto;
  flex: 1;
}

.price {
  color: #d32f2f !important;
  font-weight: bold;
  font-size: 1.2em;
}

.point-box {
  text-align: left;
  margin: 0 0 20px;
  padding: 16px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 8px;
}

.point-box label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 8px;
}

.point-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.point-row input[type="number"] {
  flex: 1;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 0 12px;
  font-size: 15px;
}

.point-apply-btn {
  height: 40px;
  padding: 0 14px;
  border: 1px solid #222;
  background: #fff;
  color: #222;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.point-meta {
  margin-top: 10px;
  font-size: 12px;
  color: #888;
  line-height: 1.6;
}

.pay-btn {
  background-color: #222;
  color: #fff;
  border: none;
  padding: 15px;
  width: 100%;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.pay-btn:hover {
  background-color: #444;
}

.pay-btn-point {
  background-color: #111;
}

.pay-btn-sub {
  background-color: #f8f9fa;
  color: #666;
  border: 1px solid #ddd;
  padding: 8px 12px;
  display: inline-block;
  width: auto;
  margin: 0 2px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.pay-btn-sub:hover {
  background-color: #e9ecef;
  color: #333;
}

/* ==========================================================================
   13. Event arrival QR (event_arrival_qr.php)
   ========================================================================== */

.page-arrival-qr {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  margin: 0;
  padding: 24px 16px;
  color: #222;
}

.page-arrival-qr .card {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.page-arrival-qr h1 {
  font-size: 20px;
  margin: 0 0 8px;
}

.page-arrival-qr .sub {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.page-arrival-qr .badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 16px;
}

.page-arrival-qr .badge.ok {
  background: #e8f5e9;
  color: #2e7d32;
}

.page-arrival-qr .badge.wait {
  background: #fff3e0;
  color: #ef6c00;
}

.page-arrival-qr .badge.err {
  background: #ffebee;
  color: #c62828;
}

.page-arrival-qr .btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.page-arrival-qr .btn-primary {
  background: #222;
  color: #fff;
  margin-top: 12px;
}

.page-arrival-qr .btn-secondary {
  background: #eee;
  color: #333;
  margin-top: 10px;
}

.page-arrival-qr .meta {
  font-size: 13px;
  color: #777;
  margin-top: 16px;
}

/* ==========================================================================
   14. Event view — review layer (event_view.php)
   ========================================================================== */

.review-layer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}

.review-layer-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  padding: 24px;
}

.review-layer-inner {
  position: relative;
}

.review-layer-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
}

.review-layer-close:hover {
  color: #000;
}

/* ==========================================================================
   15. FAQ (faq.php)
   ========================================================================== */

.faq-cat-sticky-wrap {
  position: sticky;
  top: 0;
  margin: 0 0 2rem;
  padding: 10px 0 15px 0;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.28s ease, border-color 0.28s ease;
  border-bottom: 1px solid transparent;
}

.faq-cat-sticky-wrap.is-pinned {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  border-bottom-color: #ececec;
}

.faq-cat-sentinel {
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.faq-intro-text .faq-inquiry-btn {
  display: inline-block;
  vertical-align: middle;
  margin: 0 4px;
  padding: 6px 14px;
  line-height: 1.2;
}

.faq-cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 0;
}

.faq-cat-nav a {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  color: #555;
  font-size: 14px;
  text-decoration: none;
  background: #fff;
  transition: all 0.2s ease;
}

.faq-cat-nav a:hover {
  border-color: #232323;
  background: #232323;
  color: #fff;
}

.faq-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #232323;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #232323;
}

.faq-section {
  scroll-margin-top: calc(var(--faq-nav-height, 64px) + 24px);
}

.faq-title {
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-title:hover {
  background-color: #fcfcfc;
}

.faq-title[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

.fa-chevron-down {
  transition: transform 0.3s ease;
}

.faq-answer ul,
.faq-answer ol {
  margin: 0.75rem 0 0.75rem 1.25rem;
  padding-left: 1rem;
}

.faq-answer li {
  margin-bottom: 0.35rem;
}

.faq-answer p {
  margin-bottom: 0.5rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Base theme sets section overflow:hidden; sticky requires visible overflow */
.faq-content-section,
.faq-content-section .container,
.faq-content-section .row,
.faq-content-section .col-lg-10 {
  overflow: visible !important;
}

/* ==========================================================================
   16. Policy (policy.php)
   ========================================================================== */

.policy-content {
  line-height: 1.8;
  color: #232323;
}

.policy-content p {
  margin-bottom: 1rem;
}

/* ==========================================================================
   17. Auth — login & register (login.php, register*.php)
   ========================================================================== */

.outgrid-auth-section {
  padding: 40px 0 60px;
}

.outgrid-auth-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 32px 28px;
}

.outgrid-auth-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #232323;
  margin: 0 0 8px;
}

.outgrid-auth-card .outgrid-auth-lead {
  font-size: 14px;
  color: #777;
  margin: 0 0 28px;
  line-height: 1.6;
}

.outgrid-auth-steps {
  margin-bottom: 28px;
}

.outgrid-auth-steps-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.outgrid-auth-step {
  flex: 1 1 0;
  min-width: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fafafa;
  text-align: center;
}

.outgrid-auth-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #999;
  background: #eee;
}

.outgrid-auth-step-label {
  font-size: 11px;
  font-weight: 600;
  color: #888;
  line-height: 1.3;
}

.outgrid-auth-step.is-active {
  border-color: #232323;
  background: #fff;
}

.outgrid-auth-step.is-active .outgrid-auth-step-num {
  background: #232323;
  color: #fff;
}

.outgrid-auth-step.is-active .outgrid-auth-step-label {
  color: #232323;
}

.outgrid-auth-step.is-done {
  border-color: #d8d8d8;
  background: #f5f5f5;
}

.outgrid-auth-step.is-done .outgrid-auth-step-num {
  background: #232323;
  color: #fff;
}

.outgrid-auth-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
}

.outgrid-auth-form label .required {
  color: #e53935;
}

.outgrid-auth-form .big-input,
.outgrid-auth-form select {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  background: #fff;
  font-size: 14px;
  color: #333;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.outgrid-auth-form select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
}

.outgrid-auth-form .big-input:focus,
.outgrid-auth-form select:focus {
  outline: none;
  border-color: #232323;
}

.outgrid-auth-form .auth-msg {
  display: block;
  margin: -10px 0 14px;
  font-size: 12px;
}

.outgrid-auth-term-box {
  margin-bottom: 20px;
}

.outgrid-auth-term-box h3 {
  font-size: 14px;
  font-weight: 700;
  color: #232323;
  margin: 0 0 10px;
}

.outgrid-auth-term-content {
  width: 100%;
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  padding: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #555;
  background: #fafafa;
}

.outgrid-auth-agree-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-bottom: 16px;
}

.outgrid-auth-agree-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.outgrid-auth-agree-row label {
  margin: 0;
  font-weight: 500;
  font-size: 14px;
}

.outgrid-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.outgrid-auth-complete-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #f0faf0;
  color: #2e7d32;
  font-size: 32px;
}

.outgrid-auth-point-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.outgrid-auth-point-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fafafa;
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.outgrid-auth-point-list li strong {
  display: block;
  color: #232323;
  margin-bottom: 4px;
}

.outgrid-auth-point-list .point-badge {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #e53935;
  white-space: nowrap;
}

.outgrid-auth-point-list li.is-done {
  background: #fff;
  border-color: #d8d8d8;
}

.outgrid-auth-point-list li.is-highlight {
  padding: 0;
  background: linear-gradient(135deg, #f5f9ff 0%, #eaf2ff 100%);
  border: 2px solid #2f6fed;
  box-shadow: 0 8px 24px rgba(47, 111, 237, 0.14);
}

.outgrid-auth-point-list li.is-highlight .outgrid-auth-point-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.outgrid-auth-point-list li.is-highlight .outgrid-auth-point-link:hover,
.outgrid-auth-point-list li.is-highlight .outgrid-auth-point-link:focus {
  background: rgba(47, 111, 237, 0.08);
  text-decoration: none;
  color: inherit;
}

.outgrid-auth-point-list li.is-highlight strong {
  color: #1a56db;
  font-size: 15px;
}

.outgrid-auth-point-list .point-badge--accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #2f6fed;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(47, 111, 237, 0.3);
}

.outgrid-auth-btn-highlight {
  background: #2f6fed !important;
  border-color: #2f6fed !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(47, 111, 237, 0.3);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.outgrid-auth-btn-highlight:hover,
.outgrid-auth-btn-highlight:focus {
  background: #1a56db !important;
  border-color: #1a56db !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(47, 111, 237, 0.36);
  transform: translateY(-1px);
}

.outgrid-auth-actions .outgrid-auth-btn-highlight {
  min-width: 200px;
}

.outgrid-auth-links {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #666;
}

.outgrid-auth-links a {
  color: #232323;
  font-weight: 600;
  text-decoration: underline;
}

.outgrid-auth-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
}

.outgrid-auth-remember label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.outgrid-auth-remember input[type="checkbox"] {
  width: auto;
  margin: 0;
}

@media (max-width: 767px) {
  .outgrid-auth-card {
    padding: 24px 18px;
  }

  .outgrid-auth-step-label {
    font-size: 10px;
  }
}

/* ── 회원가입 전체: 공통 모바일 ── */
.register-flow-step-pill {
  display: none;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f0f0f0;
  color: #555;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.register-flow-head h2 {
  font-size: 22px;
  font-weight: 700;
  color: #232323;
  margin: 0 0 8px;
}

.register-flow-head .outgrid-auth-lead {
  margin-bottom: 20px;
}

.register-flow-actions--desktop {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.register-flow-mobile-bar {
  display: none;
}

.register-flow-mobile-primary {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px !important;
  font-size: 15px;
  font-weight: 700;
  white-space: normal;
  line-height: 1.35;
}

.register-flow-mobile-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.register-flow-mobile-secondary {
  display: block;
  text-align: center;
  padding: 2px 0;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  text-decoration: none;
}

.register-flow-mobile-secondary:hover,
.register-flow-mobile-secondary:focus {
  color: #555;
  text-decoration: underline;
}

.register-flow-form .register-flow-field {
  margin-bottom: 4px;
}

.register-flow-form .register-flow-field label {
  margin-bottom: 8px;
}

.register-flow-form .big-input,
.register-flow-form select {
  margin-bottom: 8px;
}

.register-flow-form .auth-msg {
  margin-bottom: 12px;
}

.register-flow-form-section {
  margin-bottom: 20px !important;
  padding: 20px 16px !important;
}

.register-flow-birth-row select {
  flex: 1;
  min-width: 0;
  margin-bottom: 0 !important;
  -webkit-appearance: none;
  appearance: none;
  padding-right: 32px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
}

.register-flow-addr-row .btn {
  flex-shrink: 0;
}

.register-flow-postcode-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9998;
}

.register-flow-postcode-wrap {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(500px, calc(100vw - 24px));
  height: min(480px, calc(100vh - 120px));
  background: #fff;
  border-radius: 12px;
  z-index: 9999;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.register-flow-postcode-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
}

.register-flow-postcode-head strong {
  font-size: 14px;
}

.register-flow-postcode-head button {
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

#postcode_layer_embed {
  height: calc(100% - 49px);
}

/* 3단계: 가입완료 */
.register-complete-head .outgrid-auth-complete-icon {
  margin-left: auto;
  margin-right: auto;
}

.register-complete-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #ffe082;
  background: #fffde7;
  font-size: 13px;
  line-height: 1.5;
}

.register-complete-alert i {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 18px;
  color: #f9a825;
}

.register-complete-alert strong {
  display: block;
  margin-bottom: 4px;
  color: #232323;
  font-size: 14px;
}

.register-complete-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.register-complete-point {
  display: block;
  padding: 16px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fafafa;
  color: inherit;
  text-decoration: none;
}

.register-complete-point.is-done {
  background: #fff;
}

.register-complete-point.is-highlight {
  background: linear-gradient(135deg, #f5f9ff 0%, #eaf2ff 100%);
  border: 2px solid #2f6fed;
  box-shadow: 0 8px 24px rgba(47, 111, 237, 0.14);
}

.register-complete-point-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.register-complete-point-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.register-complete-point-badge.is-earned {
  background: #f5f5f5;
  color: #e53935;
}

.register-complete-point-badge.is-bonus {
  background: #2f6fed;
  color: #fff;
  box-shadow: 0 4px 12px rgba(47, 111, 237, 0.3);
}

.register-complete-point-status {
  font-size: 12px;
  font-weight: 700;
  color: #888;
}

.register-complete-point-status.is-next {
  color: #2f6fed;
}

.register-complete-point-body h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #232323;
}

.register-complete-point.is-highlight .register-complete-point-body h3 {
  color: #1a56db;
}

.register-complete-point-body p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.55;
}

.register-complete-point-linkhint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(47, 111, 237, 0.15);
  font-size: 14px;
  font-weight: 700;
  color: #2f6fed;
}

/* ── 회원가입 1단계: 약관동의 ── */
.page-register-flow .register-flow-section {
  padding: 16px 0 60px;
}

.register-agree-all {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 18px 16px;
  border: 2px solid #2f6fed;
  border-radius: 14px;
  background: linear-gradient(135deg, #f5f9ff 0%, #eef4ff 100%);
  box-shadow: 0 6px 20px rgba(47, 111, 237, 0.14);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.register-agree-all:hover {
  box-shadow: 0 8px 24px rgba(47, 111, 237, 0.18);
}

.register-agree-all:has(input:checked) {
  border-color: #1a56db;
  background: linear-gradient(135deg, #eaf2ff 0%, #dce8ff 100%);
  box-shadow: 0 8px 28px rgba(47, 111, 237, 0.22);
}

.register-agree-all:has(input:focus-visible) {
  outline: 2px solid #2f6fed;
  outline-offset: 2px;
}

.register-agree-all-input {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: #2f6fed;
  cursor: pointer;
}

.register-agree-all-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.register-agree-all-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #2f6fed;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 10px rgba(47, 111, 237, 0.28);
}

.register-agree-all:has(input:checked) .register-agree-all-badge {
  background: #1a56db;
}

.register-agree-all-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.register-agree-all-text strong {
  font-size: 17px;
  font-weight: 700;
  color: #1a56db;
  line-height: 1.4;
}

.register-agree-all:has(input:checked) .register-agree-all-text strong {
  color: #1348c4;
}

.register-agree-all-text small {
  font-size: 13px;
  color: #5a6b8a;
  line-height: 1.45;
}

.register-agree-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.register-agree-item {
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.register-agree-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  cursor: pointer;
}

.register-agree-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
}

.register-agree-check-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.register-agree-check-text strong {
  font-size: 14px;
  font-weight: 700;
  color: #232323;
  line-height: 1.4;
}

.register-agree-check-text small {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}

.register-agree-details {
  border-top: 1px solid #f0f0f0;
}

.register-agree-details summary {
  list-style: none;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  user-select: none;
}

.register-agree-details summary::-webkit-details-marker {
  display: none;
}

.register-agree-details summary::after {
  content: " ▾";
  float: right;
  color: #999;
}

.register-agree-details[open] summary::after {
  content: " ▴";
}

.register-agree-details-body {
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
}

.register-agree-actions--desktop {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

@media (max-width: 767px) {
  .page-register-flow .register-flow-page-title {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  .page-register-flow .register-flow-page-title h1 {
    font-size: 18px;
  }

  .page-register-flow .register-flow-section {
    padding: 16px 0 calc(120px + env(safe-area-inset-bottom, 0px));
  }

  .page-register-flow .register-flow-section>.container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .register-flow-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .register-flow-steps-desktop {
    display: none;
  }

  .register-flow-step-pill {
    display: block;
  }

  .register-flow-head h2 {
    font-size: 19px;
  }

  .register-flow-head .outgrid-auth-lead {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .register-agree-all {
    padding: 20px 16px;
    margin-bottom: 18px;
  }

  .register-agree-all-text strong {
    font-size: 16px;
  }

  .register-flow-actions--desktop,
  .register-agree-actions--desktop {
    display: none;
  }

  .register-flow-mobile-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    z-index: 10040;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #ececec;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .register-complete-point-linkhint {
    display: flex;
  }

  .register-complete-head .outgrid-auth-complete-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
    margin-bottom: 14px;
  }

  .register-optional-progress {
    padding: 16px !important;
    margin-bottom: 16px !important;
  }

  .register-optional-progress .mypage-profile-progress-title {
    font-size: 15px;
  }

  .register-flow-gender {
    margin-bottom: 8px;
  }

  .mypage-addr-row.register-flow-addr-row {
    flex-direction: column;
    align-items: stretch;
  }

  .mypage-addr-row.register-flow-addr-row .mypage-addr-zip {
    width: 100%;
  }

  .mypage-addr-row.register-flow-addr-row .btn {
    width: 100%;
    min-height: 44px;
  }
}

@media (min-width: 768px) {
  .register-agree-all {
    margin-bottom: 20px;
  }

  .register-agree-details-body {
    max-height: 180px;
    overflow-y: auto;
  }

  .register-flow-actions--desktop button:disabled,
  .register-agree-actions--desktop button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }

  .register-complete-point.is-highlight:hover {
    box-shadow: 0 10px 28px rgba(47, 111, 237, 0.18);
    transform: translateY(-1px);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }
}

/* ==========================================================================
   18. Mypage (mypage*.php, state.php)
   ========================================================================== */

.mypage-overview {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d5dde6;
  box-shadow: 0 12px 32px rgba(44, 53, 64, 0.08);
}

.mypage-hero-card {
  background: linear-gradient(135deg, #3d4a56 0%, #2f3842 48%, #263038 100%);
  padding: 32px 32px 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.mypage-hero-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.mypage-hero-card::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: 10%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.mypage-hero-card>.row {
  position: relative;
  z-index: 1;
}

.mypage-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 0%, #eef2f6 100%);
  border: 3px solid rgba(255, 255, 255, 0.35);
  color: #2f3842;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.mypage-hero-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.35;
}

.mypage-hero-nick {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
}

.mypage-hero-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.mypage-hero-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.mypage-hero-btn {
  display: inline-block;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #2f3842;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mypage-hero-btn:hover {
  background: #f0f4f8;
  color: #2f3842;
  text-decoration: none;
  transform: translateY(-1px);
}

.mypage-stats-panel {
  background: linear-gradient(180deg, #e4eaf0 0%, #eef2f6 100%);
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.mypage-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mypage-stat-link {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.mypage-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(47, 56, 66, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  height: 100%;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.mypage-stat-link:hover .mypage-stat,
.mypage-stat:hover {
  box-shadow: 0 6px 16px rgba(47, 56, 66, 0.08);
  transform: translateY(-1px);
  border-color: rgba(47, 56, 66, 0.14);
}

.mypage-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 13px;
}

.mypage-stat-body {
  min-width: 0;
  line-height: 1.2;
}

.mypage-stat--reg .mypage-stat-icon {
  background: #eef2ff;
  color: #4f5bd5;
}

.mypage-stat--arrival .mypage-stat-icon {
  background: #fff0eb;
  color: #e53935;
}

.mypage-stat--review .mypage-stat-icon {
  background: #fff8e6;
  color: #d48800;
}

.mypage-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #2f3842;
  line-height: 1.1;
}

.mypage-stat-label {
  display: block;
  font-size: 11px;
  color: #6b7785;
  letter-spacing: 0.01em;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mypage-action-card {
  display: block;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 24px 22px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.mypage-action-card:hover {
  border-color: #232323;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
  transform: translateY(-3px);
  color: inherit;
}

.mypage-action-card .action-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #232323;
  margin-bottom: 14px;
}

.mypage-action-card h5 {
  font-size: 16px;
  font-weight: 700;
  color: #232323;
  margin: 0 0 6px;
}

.mypage-action-card p {
  font-size: 13px;
  color: #888;
  margin: 0;
  line-height: 1.5;
}

.mypage-form-section {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 32px 28px;
}

.mypage-form-section h4 {
  font-size: 15px;
  font-weight: 700;
  color: #232323;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.mypage-form-section label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.mypage-form-section .big-input,
.mypage-form-section select {
  width: 100%;
  margin-bottom: 18px;
}

.mypage-form-section .field-readonly {
  background: #f8f8f8;
  color: #999;
  cursor: not-allowed;
}

.mypage-addr-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.mypage-addr-row .mypage-addr-zip {
  width: 140px;
  max-width: 100%;
  margin-bottom: 0;
}

.mypage-gender-options {
  display: flex;
  gap: 20px;
  margin-bottom: 18px;
}

.mypage-gender-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
}

.mypage-gender-option input {
  width: auto;
  margin: 0;
}

.mypage-birth-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.mypage-birth-row select {
  flex: 1;
  min-width: 90px;
  margin-bottom: 0;
}

.mypage-side-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.mypage-side-nav a:last-child {
  margin-bottom: 0;
}

.mypage-side-nav-wrap {
  position: relative;
}

.mypage-nav-col {
  min-width: 0;
}

.mypage-side-nav a:hover,
.mypage-side-nav a.is-active {
  background: #232323;
  color: #fff;
}

.mypage-meta {
  font-size: 13px;
  color: #888;
}

.mypage-profile-progress {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 28px 28px 24px;
}

.mypage-profile-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.mypage-profile-progress-label {
  font-size: 12px;
  color: #aaa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.mypage-profile-progress-title {
  font-size: 20px;
  font-weight: 700;
  color: #232323;
  margin: 0;
  line-height: 1.35;
}

.mypage-profile-progress-percent {
  font-size: 34px;
  font-weight: 700;
  color: #232323;
  line-height: 1;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.mypage-profile-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #f0f0f0;
  overflow: hidden;
}

.mypage-profile-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #232323;
  transition: width 0.25s ease;
}

.mypage-profile-progress-meta {
  margin: 12px 0 16px;
  font-size: 13px;
  color: #888;
}

.mypage-profile-progress-notice {
  margin-bottom: 18px;
}

.mypage-profile-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.mypage-profile-notice.is-progress,
.mypage-profile-notice.is-ready,
.mypage-profile-notice.is-done {
  position: relative;
  padding-left: 52px;
}

.mypage-profile-notice.is-progress::before,
.mypage-profile-notice.is-ready::before,
.mypage-profile-notice.is-done::before {
  content: "P";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  flex-shrink: 0;
}

.mypage-profile-notice strong {
  font-size: 13px;
  font-weight: 700;
  color: #232323;
}

.mypage-profile-notice span {
  color: #666;
}

.mypage-profile-point-highlight {
  display: inline-block;
  font-weight: 700;
  font-style: normal;
  color: #c88700;
  letter-spacing: -0.02em;
}

.mypage-profile-notice.is-progress {
  background: linear-gradient(135deg, #fff9ec 0%, #fff0c8 100%);
  border: 1px solid #e8c36a;
  box-shadow: 0 4px 16px rgba(212, 160, 23, 0.14);
}

.mypage-profile-notice.is-progress::before {
  background: linear-gradient(135deg, #ffd45a 0%, #e8a317 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(232, 163, 23, 0.35);
}

.mypage-profile-notice.is-progress strong {
  color: #9a6b00;
}

.mypage-profile-notice.is-progress span {
  color: #7a5800;
}

.mypage-profile-notice.is-progress .mypage-profile-point-highlight {
  color: #d48800;
  font-size: 14px;
}

.mypage-profile-notice.is-ready {
  background: linear-gradient(135deg, #2a2208 0%, #232323 55%, #1a1a1a 100%);
  border: 1px solid #e8a317;
  box-shadow: 0 6px 20px rgba(232, 163, 23, 0.28);
}

.mypage-profile-notice.is-ready::before {
  background: linear-gradient(135deg, #ffd45a 0%, #e8a317 100%);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.25);
}

.mypage-profile-notice.is-ready strong,
.mypage-profile-notice.is-ready span {
  color: #fff;
}

.mypage-profile-notice.is-ready .mypage-profile-point-highlight {
  color: #ffd45a;
  font-size: 14px;
}

.mypage-profile-notice.is-done {
  background: linear-gradient(135deg, #f0faf4 0%, #e8f5ee 100%);
  border: 1px solid #8ecfaa;
  box-shadow: 0 4px 14px rgba(46, 139, 87, 0.1);
}

.mypage-profile-notice.is-done::before {
  content: "✓";
  background: linear-gradient(135deg, #5ecf9a 0%, #2e8b57 100%);
  color: #fff;
  font-size: 14px;
}

.mypage-profile-notice.is-done strong {
  color: #1f6b42;
}

.mypage-profile-notice.is-done span {
  color: #3d7a5a;
}

.mypage-profile-notice.is-done .mypage-profile-point-highlight {
  color: #2e8b57;
}

.mypage-profile-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mypage-profile-checklist li {
  font-size: 12px;
  color: #999;
  padding: 2px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #c0c0c0;
}

.mypage-profile-checklist li.is-done {
  color: #232323;
  background: #fff;
  border-color: #c0c0c0;
}

.mypage-unit-input {
  position: relative;
  margin-bottom: 18px;
}

.mypage-unit-input .big-input {
  padding-right: 52px;
  margin-bottom: 0;
}

.mypage-unit-input .mypage-unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #aaa;
  pointer-events: none;
}

@media (max-width: 767px) {

  .mypage-section,
  .mypage-section>.container,
  .mypage-section>.container>.row {
    overflow: visible !important;
  }

  .mypage-nav-col {
    position: sticky;
    top: 0;
    z-index: 10030;
    margin-bottom: 12px !important;
    padding: 8px 0 10px;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  }

  .mypage-side-nav-wrap::after {
    content: "";
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    width: 32px;
    border-radius: 0 11px 11px 0;
    background: linear-gradient(to left, #fff 20%, rgba(255, 255, 255, 0));
    pointer-events: none;
  }

  .mypage-side-nav {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 2px;
    padding: 8px 10px !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .mypage-side-nav::-webkit-scrollbar {
    display: none;
  }

  .mypage-side-nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    padding: 9px 14px;
    white-space: nowrap;
    scroll-snap-align: start;
    font-size: 13px;
    border-radius: 999px;
  }

  .mypage-hero-card {
    padding: 24px 20px 20px;
  }

  .mypage-hero-name {
    font-size: 19px;
  }

  .mypage-stats-panel {
    padding: 10px 12px 12px;
  }

  .mypage-stat {
    padding: 12px 7px;
    gap: 8px;
  }

  .mypage-stat-icon {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .mypage-stat strong {
    font-size: 17px;
  }

  .mypage-stat-label {
    font-size: 10px;
  }

  .mypage-form-section {
    padding: 24px 18px;
  }

  .mypage-profile-progress {
    padding: 22px 18px 20px;
  }

  .mypage-profile-progress-percent {
    font-size: 28px;
  }
}

.mypage-leave-link {
  color: #888;
  text-decoration: underline;
}

.mypage-leave-link:hover {
  color: #555;
}

.mypage-leave-box {
  padding: 24px 26px;
  border: 1px solid #f0caca;
  border-radius: 12px;
  background: #fff8f8;
}

.mypage-leave-title {
  margin: 0 0 14px;
  font-size: 18px;
  color: #8a2424;
}

.mypage-leave-list {
  margin: 0;
  padding-left: 18px;
  color: #555;
  line-height: 1.7;
}

.mypage-leave-list li+li {
  margin-top: 8px;
}

.mypage-leave-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  line-height: 1.6;
  cursor: pointer;
}

.mypage-leave-agree input {
  margin-top: 4px;
}

.mypage-leave-submit {
  background: #8a2424;
  border-color: #8a2424;
}

.mypage-leave-submit:hover {
  background: #6f1d1d;
  border-color: #6f1d1d;
}


.state-event-ended-note {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #767676;
}

.state-event-card.is-unavailable {
  background: #fafafa;
}

.outgrid-permission-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.outgrid-permission-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fafafa;
}

.outgrid-permission-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.outgrid-permission-label strong {
  font-size: 15px;
  font-weight: 600;
  color: #232323;
}

.outgrid-permission-desc {
  font-size: 12px;
  color: #767676;
}

.outgrid-permission-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
}

.outgrid-permission-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.outgrid-permission-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #cfcfcf;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.outgrid-permission-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.outgrid-permission-switch input:checked+.outgrid-permission-slider {
  background: #ff6b00;
}

.outgrid-permission-switch input:checked+.outgrid-permission-slider::before {
  transform: translateX(22px);
}

.outgrid-permission-switch input:focus-visible+.outgrid-permission-slider {
  outline: 2px solid #ff6b00;
  outline-offset: 2px;
}