:root {
    --color-bg-primary: #FFF;
    --color-border-tertiary: #E5E7EB;
    --color-text-primary: #111827;
    --color-text-quaternary: #9CA3AF;
    --color-bg-interactive-secondary: #F3F4F6;
    --spacing-20: 20px;
    --spacing-16: 16px;
    --spacing-8: 8px;
    --spacing-6: 6px;
    --spacing-4: 4px;
    --spacing-0: 0px;
    --spacing-24: 24px;
    --spacing-40: 40px;
    --border-radius-circle: 9999px;
    --border-radius-8: 8px;
    --color-text-info: #3B82F6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-y: auto;
    max-width: auto;
    margin: 0 auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    -webkit-overflow-scroll8fing: touch;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    background-color: #fff;
}

.status-bar .time {
    font-weight: bold;
}

.status-bar .status-icons i {
    margin-left: 5px;
}

.container {
    width: 100%;
    margin: 0 auto;
    min-height: 100%;
    padding-bottom: 10px;
    position: relative;
}

header {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 12px var(--spacing-20);
    border-bottom: 1px solid var(--color-border-tertiary);
    background: var(--color-bg-primary);
}

header .back-link {
    display: flex;
    align-items: center;
}

header h1 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.search-bar {
    position: relative;
    width: 100%;
    display: flex;
    align-self: stretch;
}

.search-bar input {
    width: 100%;
    padding: 12px 40px;
    border: none;
    border-radius: 8px;
    background-color: #f1f3f5;
    
    /* Text styles */
    overflow: hidden;
    color: var(--color-text-quaternary);
    text-overflow: ellipsis;
    font-family: Pretendard;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 160%;
    letter-spacing: -0.32px;

    /* Multi-line ellipsis */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    flex: 1 0 0;
}

.search-bar input::placeholder {
    color: var(--color-text-quaternary);
}

.search-bar svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #4B5563;
}

.categories {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    padding-top: 5px;
}

.category-btn {
    display: flex;
    padding: var(--spacing-6) var(--spacing-16);
    justify-content: center;
    align-items: center;
    gap: 8px;
    
    border-radius: var(--border-radius-circle);
    border: 1px solid var(--color-border-tertiary);
    background: var(--color-bg-interactive-secondary);
    
    /* Text styles */
    color: var(--color-text-primary);
    font-family: Pretendard;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 160%;
    letter-spacing: -0.28px;
    white-space: nowrap;
}

.category-btn.active {
    background-color: #333;
    color: #fff;
}

.featured-events {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: stretch;
}

h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

.event-slider {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.event-card {
    display: flex;
    width: 162px;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}

.event-card .image-container {
    width: 162px;
    height: 162px;
    border-radius: var(--border-radius-8);
    border: 1px solid var(--color-border-tertiary);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.event-card .image-container.event1 {
    background-image: url('imgs/event1.png');
}

.event-card .image-container.event2 {
    background-image: url('imgs/event2.png');
}

.event-card .image-container.event3 {
    background-image: url('imgs/event1.png');
}

.event-info {
    display: flex;
    padding: var(--spacing-8) var(--spacing-8) 0px 0px;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-8);
    align-self: stretch;
}

.event-info h3 {
    color: var(--color-text-primary);
    font-family: Pretendard;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 160%;
    letter-spacing: -0.16px;
    margin: 0;
}

.event-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.event-info i {
    margin-right: 5px;
    color: #adb5bd;
}

.event-info .date,
.event-info .location {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    align-self: stretch;
    color: var(--color-text-primary);
    font-family: Pretendard;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 160%;
    letter-spacing: -0.24px;
    margin: 0;
}

.categories-grid {
    padding: var(--spacing-20);
    background-color: #fff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-item {
    display: flex;
    padding: var(--spacing-16, 16px);
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1 0 0;
    border-radius: var(--border-radius-8, 8px);
    background: var(--color-bg-secondary, #F3F4F6);
}

.category-item img {
    width: 24px;
    height: 24px;
}

.category-item span {
    color: var(--color-text-primary, #111827);
    text-align: center;
    font-family: Pretendard;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 160%;
    letter-spacing: -0.14px;
}

.upcoming-events {
    padding: var(--spacing-20);
    padding-bottom: 80px;
    background-color: #fff;
    margin-top: 10px;
}

.recommendation-events {
    padding: var(--spacing-20);
    background-color: #fff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-header h2 {
    margin: 0;
    color: var(--color-text-primary, #111827);
    font-family: Pretendard;
    font-size: 18px;
    font-weight: 700;
    line-height: 160%;
    letter-spacing: -0.36px;
}

.more-link {
    color: #666;
    display: flex;
    align-items: center;
}

.more-link svg {
    width: 24px;
    height: 24px;
}

.section-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 40px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: auto;
    margin: 0 auto;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #9CA3AF;
}

.nav-item.active {
    color: #111827;
}

.nav-item img {
    width: 24px;
    height: 24px;
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
}

.search-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-0);
    align-self: stretch;
    padding: 16px var(--spacing-20);
    background: var(--color-bg-primary);
}

.section-title {
    color: var(--color-text-primary);
    font-family: Pretendard;
    font-size: 18px;
    font-weight: 700;
    line-height: 160%;
    letter-spacing: -0.36px;
}

.event-chip {
    display: flex;
    padding: var(--spacing-2, 2px) var(--spacing-6, 6px);
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 8px;
    top: 8px;
    border-radius: var(--border-radius-6, 6px);
    background: var(--color-bg-primary, #FFF);
    backdrop-filter: blur(10px);
    font-size: 12px;
    color: var(--color-text-primary, #1F2937);
    font-weight: 500;
}

.status-chip {
    display: flex;
    padding: var(--spacing-2, 2px) var(--spacing-6, 6px);
    justify-content: center;
    align-items: center;
    gap: var(--spacing-4, 4px);
    position: absolute;
    right: 8px;
    bottom: 8px;
    border-radius: var(--border-radius-6, 6px);
    background: var(--color-bg-interactive-inverse, #111827);
    color: #FFF;
    font-size: 12px;
    font-weight: 500;
}

.hosted-events {
    display: flex;
    padding-right: var(--spacing-20);
    align-items: center;
    gap: 8px;
    align-self: stretch;
    margin-top: 16px;
}

/* 이벤트 상세 페이지 스타일 */
.event-detail-container {
    width: 100%;
    margin: 0 auto;
    background: #F3F4F6;
    margin-top: -1px;
    padding: 0;
}

.event-image {
    width: 100%;
    position: relative;
}

.event-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.event-content {
    padding: 0 20px;
}

.event-description {
    padding: 32px 20px;
    background: #fff;
    margin-bottom: 12px;
}

.event-description h2 {
    color: var(--color-text-primary, #111827);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.event-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #4B5563;
}

.event-info-list {
    padding: 24px 20px;
    margin-bottom: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-item img {
    width: 24px;
    height: 24px;
}

.info-item span {
    font-size: 16px;
    color: #111827;
}

.back-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.back-link img {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .event-detail-container {
        padding: 0;
    }

    .event-title {
        font-size: 2rem;
    }

    .event-content {
        padding: 1rem;
    }

    .prize-list {
        grid-template-columns: 1fr;
    }
}

.add-schedule-group {
    position: fixed;
    margin-bottom: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 8px;
    width: 100%;
    z-index: 100;
    padding: 0 16px 12px 16px;
    box-sizing: border-box;
    background: transparent;
    max-width: 100vw;
}

.add-schedule-button {
    flex: 1 1 0;
    background-color: #111827;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 24px 0;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 50px;
    cursor: pointer;
    z-index: 100;
}

.add-calendar-icon-button {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    height: 50px;
    background: #111827;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.add-calendar-icon-button img {
    width: 24px;
    height: 24px;
    filter: invert(1);
}

/* 근처 행사 섹션 */
.nearby-events {
    padding: 24px 20px;
    background: #fff;
    margin-bottom: 80px;
}

.nearby-events .section-header {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.section-header2 {
    color: var(--color-text-primary, #111827);
    font-family: Pretendard;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 160%;
    letter-spacing: -0.16px;
    margin-bottom: 16px;
}

/* 추천 식당 섹션 */
.recommended-restaurants {
    padding: 24px 20px;
    background: #fff;
    margin-bottom: 12px;
}

.recommended-restaurants .section-header {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.restaurant-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.restaurant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.restaurant-info {
    flex: 1;
}

.restaurant-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.restaurant-info .address {
    font-size: 14px;
    color: #4B5563;
    margin-bottom: 8px;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-info .status {
    color: #2563EB;
    font-size: 14px;
}

.status-info .distance {
    color: #6B7280;
    font-size: 14px;
}

.restaurant-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.restaurant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 기존 이벤트 카드 스타일 재사용 */
.share-button {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.share-button:hover {
    background-color: #f3f4f6;
}

.info-coupon {
  display: flex;
  flex-direction: column; /* 세로로 쌓이게 */
  gap: 10px;              /* 쿠폰 박스 간격 */
}


.coupon-ticket {
  position: relative;
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  box-sizing: border-box;
  border: 1.5px solid #D1D5DB;
  border-radius: 8px;
  padding: 0 16px;
}

.coupon-ticket__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #111827;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s ease, transform .02s ease;
}

.coupon-ticket__btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.85;
}

.coupon-ticket__btn:active:not(:disabled) { transform: translateY(1px); }
.coupon-ticket__btn .fa-spinner { font-size: 14px; }

.coupon-ticket__content {
  flex: 1; /* 내용이 버튼 밀리지 않도록 */
  margin-left: 12px;
}


.coupon-ticket__btn:hover {
  background: #0056b3;
}

.coupon-ticket__icon-area {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coupon-ticket__icon {
  width: 32px;
  height: auto;
  text-align: center;
  color: #e9240e;
}

.coupon-ticket__divider {
  width: 0;
  height: 80px;
  border-left: 2px dashed #D1D5DB;
  margin: 0 12px;
  z-index: 1;
}

.coupon-ticket__content {
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0px;
}

.coupon-ticket__title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

.coupon-ticket__desc {
  font-size: 12px;
  color: #6B7280;
  font-weight: 500;
}

.coupon-ticket__date {
  font-size: 12px;
  color: #6B7280;
  font-weight: 600;
}

.onboarding-bg {
    background: url('imgs/background-image.png') no-repeat center center/cover;
    width: 100vw;
    height: 100vh;
    position: relative;
  }
  
  .onboarding-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3); /* 어두운 오버레이 */
  }
  
  .onboarding-content {
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .onboarding-content h1 {
    color: var(--color-text-inverse, #FFF);
    text-align: center;
    font-family: Pretendard;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 160%; /* 38.4px */
    letter-spacing: -0.48px;
    margin-top: 173px;
  }
  
  .onboarding-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    position: absolute;
    margin-left: 20px;
    margin-right: 20px;
    bottom: 34px;
    /* width: 100%;  <<== 이 줄을 삭제하거나 */
    width: calc(100% - 40px); /* 이렇게 바꿔도 됨 */
  }
  
  .onboarding-btn {
    width: 100%;
    padding: 12px 0;
    background: #FFD600;
    color: var(--color-gray-900, #111827);
    font-family: Pretendard;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 160%; /* 25.6px */
    letter-spacing: -0.32px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  .onboarding-btn:hover {
    background: #FFC400;
  }

.terms-container {
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
  padding: 32px 20px 32px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  min-height: 100vh; /* 또는 height: 100vh; */
}

.terms-title {
  font-size: 24px;
  font-weight: 700;
  color: #222b3a;
  margin-bottom: 32px;
}

.terms-list {
  flex: 1 0 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
  justify-content: flex-end;
}

.terms-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.terms-checkbox {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 6px;
  margin-right: 4px;
  font-size: 22px;
  color: #c4c4c4;
  border: 1.5px solid #e5e7eb;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.terms-item.checked .terms-checkbox {
  color: #3887f6;
  background: #eaf3fe;
  border: 1.5px solid #3887f6;
}

.terms-checkbox i {
  pointer-events: none;
}

.terms-label {
  flex: 1;
  color: var(--color-text-primary, #111827);
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%; /* 25.6px */
  letter-spacing: -0.32px;
}

.terms-link {
  color: #bdbdbd;
  font-size: 15px;
  text-decoration: none;
  margin-left: 8px;
}

.terms-next-btn {
  width: 100%;
  padding: 16px 0;
  background: #3887f6;
  color: var(--color-text-inverse, #FFF);
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 160%; /* 25.6px */
  letter-spacing: -0.16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 0;
  align-self: flex-end;
}

.terms-next-btn:disabled {
  background: #e5e7eb;
  color: #bdbdbd;
  cursor: not-allowed;
}

.terms-detail {
  display: none;
  background: #f8fafc;
  border-radius: 8px;
  margin: 8px 0 16px 0;
  padding: 18px 16px;
  font-size: 15px;
  color: #374151;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  max-height: 220px;
  overflow-y: auto;
  transition: max-height 0.3s;
}
.terms-detail.open {
  display: block;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.terms-detail-inner {
  font-family: Pretendard, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  max-height: 180px;
  overflow-y: auto;
}

.signup-container {
  width: 100%;
  background: #fff;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.signup-header {
  display: flex;
  align-items: center;
  height: 56px;
  border-bottom: 1px solid #eee;
  font-size: 20px;
  font-weight: 600;
  gap: 8px;
  padding: 0 20px;
}

.signup-header .back-link {
  color: #222;
  font-size: 20px;
  text-decoration: none;
  margin-right: 8px;
}

.signup-form {
  display: flex;
  flex-direction: column;
  margin-top: 32px;
  padding: 0 20px;
  flex: 1 0 auto;
  height: 100%;
}

.signup-label {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signup-input {
  padding: 14px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  color: #222;
  background: #fafbfc;
  outline: none;
}

.signup-input::placeholder {
  color: #bdbdbd;
}

.signup-upload-box {
  border: 1.5px dashed #e5e7eb;
  border-radius: 12px;
  background: #f6f7f9;
  min-height: 160px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.signup-upload-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
}

.signup-upload-inner img {
  display: block;
  margin: 0 auto 10px auto;
  max-width: 100%;
  max-height: 320px;
  border-radius: 8px;
  object-fit: contain;
}

.signup-upload-btn {
  border: 1.5px solid #bdbdbd;
  background: #fff;
  color: var(--color-text-primary, #111827);
  font-family: Pretendard;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%; /* 22.4px */
  letter-spacing: -0.28px;
  border-radius: 8px;
  padding: 8px 20px;
  cursor: pointer;
}

.signup-submit-btn {
  width: 100%;
  padding: 16px 0;
  background: #e5e7eb;
  color: var(--color-text-inverse, #FFF);
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%; /* 25.6px */
  letter-spacing: -0.32px;
  border: none;
  border-radius: var(--border-radius-8, 8px);
  cursor: not-allowed;
  margin-top: auto;
  margin-bottom: 34px;
  transition: background 0.2s, color 0.2s;
}
.signup-submit-btn:not(:disabled) {
  background: var(--color-bg-interactive-inverse, #111827);
  color: var(--color-text-inverse, #FFF);
  cursor: pointer;
}

.signup-complete-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.signup-complete-img {
  width: 156px;
  height: auto;
  display: block;
  margin-bottom: 32px;
}
.signup-complete-text {
  color: var(--color-text-secondary, #4B5563);
  text-align: center;
  font-family: Pretendard, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%; /* 25.6px */
  letter-spacing: -0.32px;
}

.interest-container {
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.interest-header {
  height: 56px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 0 20px;
}

.interest-header .back-link {
  color: #222;
  font-size: 20px;
  text-decoration: none;
}

.interest-main {
  padding: 0 20px;
}

.interest-title {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
  padding: 40px 0 0 0;
}

.interest-desc {
  color: #6B7280;
  font-size: 15px;
  margin-bottom: 40px;
}

.interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
  padding: 0;
}

.interest-btn {
  padding: 10px 22px;
  border-radius: 20px;
  border: none;
  background: #f3f4f6;
  color: #222;
  font-size: 16px;
  font-family: Pretendard, sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.interest-btn.selected {
  background: #111827;
  color: #fff;
}

.interest-submit-btn {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(16px + var(--tabbar-h, 64px) + env(safe-area-inset-bottom));
  height: 48px;
  padding: 0 16px;          /* 수평 패딩만 */
  box-sizing: border-box;

  display: flex;            /* 텍스트 수직/수평 중앙 */
  align-items: center;
  justify-content: center;

  line-height: 1;           /* 브라우저 기본 line-height 제거 */
  -webkit-appearance: none; /* iOS 기본 버튼 스타일 제거 */
  appearance: none;

  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  background: #2563eb;
  color: #fff;
  z-index: 10;
}

.interest-submit-btn:disabled {
  background: #e5e7eb;
  color: #bdbdbd;
  cursor: not-allowed;
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 160%; /* 25.6px */
  letter-spacing: -0.16px;
}

.interest-submit-btn:not(:disabled) {
  background: #3887f6;
  color: var(--color-text-inverse, #FFF);
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 160%; /* 25.6px */
  letter-spacing: -0.16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.myschedule-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  border-radius: var(--border-radius-8, 8px);
  border: 1px solid var(--color-border-tertiary, #E5E7EB);
  background: #fff;
  margin-bottom: 20px;
  overflow: hidden;
}
.myschedule-card-image {
  display: flex;
  height: 240px;
  padding: 8px 198px 209px 8px;
  align-items: center;
  border-radius: 0px;
  background: lightgray 0px -72.286px / 100% 188.571% no-repeat;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}
.myschedule-chips {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-4, 4px);
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
}
.myschedule-event-chip {
  background: #fff;
  color: #111827;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: inline-flex;
  align-items: center;
  position: static;
}
.myschedule-status-chip {
  background: #111827;
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: inline-flex;
  align-items: center;
  position: static;
}
.myschedule-card-content {
  display: flex;
  padding: var(--spacing-16, 16px);
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  align-self: stretch;
  width: 100%;
}
.myschedule-card-title {
  color: var(--color-text-primary, #111827);
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 160%;
  letter-spacing: -0.16px;
}
.myschedule-card-date,
.myschedule-card-location {
  color: var(--color-text-primary, #111827);
  font-family: Pretendard;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%;
  letter-spacing: -0.24px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.myschedule-list-container {
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 62px;
}
.ai-marketing-tools {
  padding: 24px 20px;
  margin-bottom: 62px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 8px;
}
.ai-marketing-tools-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ai-marketing-tools-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}
.ai-marketing-tools-btns {
  display: flex;
  gap: 16px;
}

.ai-marketing-tools-header svg {
  vertical-align: middle;
  position: relative;
}

.ai-tooltip-trigger {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.ai-tooltip {
  display: none;
  position: fixed;
  background: #1F2937;
  color: #FFF;
  font-size: 16px;
  font-family: Pretendard, sans-serif;
  line-height: 1.7;
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  z-index: 9999;
  white-space: normal;
  text-align: center;
  word-break: keep-all;
  max-width: 100vw;
  box-sizing: border-box;
}

.ai-tooltip::after {
  display: none;
}

.ai-tooltip-trigger:hover .ai-tooltip,
.ai-tooltip-trigger:focus .ai-tooltip {
  display: block;
}

.ai-feed-variants {
  display: flex;
  gap: 16px;
  margin: 0 0 12px 0;
}
.ai-feed-variant-btn {
  flex: 1;
  background: #E5E7EB;
  color: #1F2937;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.ai-feed-variant-btn.active {
  background: #1F2937;
  color: #fff;
}

/* My Page Styles */
.my-header {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 12px 20px;
  border-bottom: 1px solid #E5E7EB;
  background: #fff;
}
.my-header .back-link {
  margin-right: 8px;
}
.my-header-title {
  font-size: 18px;
  font-weight: 600;
}
.my-container {
  background: #fff;
  min-height: 100vh;
  padding-bottom: 80px;
}
.my-profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 0 16px 0;
}
.my-profile-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}
.my-profile-name {
  font-size: 18px;
  font-weight: 600;
  margin-top: 12px;
}
.my-profile-edit-btn {
  margin-top: 12px;
  padding: 8px 24px;
  background: #F3F4F6;
  color: #9CA3AF;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.my-content-section {
  padding: 0 20px;
}
.my-coupon-box {
  border-radius: 8px;
  margin-bottom: 24px;
  border-top: 1px solid #eeeeee;
  padding-top: 24px;
}
.my-coupon-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  font-size: 18px;
  font-weight: 500;
}
.my-coupon-link span {
  color: var(--color-text-primary, #111827);
  font-family: Pretendard;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 160%; /* 28.8px */
  letter-spacing: -0.36px;
}
.my-section {
  margin-bottom: 24px;
  border-top: 1px solid #eeeeee;
  padding-top: 24px;
}
.my-section-title, .my-coupon-title {
  color: var(--color-text-primary, #111827);
  font-family: Pretendard;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 160%; /* 28.8px */
  letter-spacing: -0.36px;
  margin-bottom: 16px;
}
.my-connected-account {
  display: flex;
  align-items: center;
  gap: 16px;
}
.my-kakao-icon {
  width: 32px;
  height: 32px;
  display: inline-block;
  vertical-align: middle;
  border-radius: 8px;
  object-fit: cover;
}
.my-account-email {
  color: var(--color-text-primary, #111827);
  text-align: center;
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%; /* 25.6px */
  letter-spacing: -0.32px;
}
.my-service-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
}
.my-allow {
  color: var(--color-text-info, #3B82F6) !important;
  text-align: center;
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%; /* 25.6px */
  letter-spacing: -0.32px;
}
.my-version-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.my-version-current {
  color: var(--color-text-quaternary, #9CA3AF);
  text-align: center;
  
  /* Regular/Body 2 */
  font-family: Pretendard;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%; /* 22.4px */
  letter-spacing: -0.28px;
}
.my-version-latest {
  color: var(--color-text-info, #3B82F6);
  text-align: center;
  
  /* Regular/Body 2 */
  font-family: Pretendard;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%; /* 22.4px */
  letter-spacing: -0.28px;
}
.my-terms-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.my-terms-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-16, 16px);
  align-self: stretch;
  color: var(--color-text-primary, #111827);
  text-align: center;
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%; /* 25.6px */
  letter-spacing: -0.32px;
  text-decoration: none;
}
.my-terms-link svg {
  flex-shrink: 0;
  margin-left: auto;
}
.my-bottom-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.my-logout,
.my-withdraw {
  font-size: 16px;
  color: #9CA3AF;
  text-decoration: none;
}
.nav-icon-inactive {
  filter: grayscale(1);
  opacity: 0.5;
}
.nav-text-inactive {
  color: #9CA3AF;
}

.my-service-setting span,
.my-terms-link {
  color: var(--color-text-primary, #111827);
  text-align: center;
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%; /* 25.6px */
  letter-spacing: -0.32px;
}

.my-coupon-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  margin-bottom: 16px;
}

.my-couponpage-title {
  color: var(--color-text-primary, #111827);

  /* Semibold/Title 6 */
  font-family: Pretendard;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 160%; /* 28.8px */
  letter-spacing: -0.36px;
}

.my-couponpage-date {
  color: var(--color-text-primary, #111827);

  /* Regular/Body 2 */
  font-family: Pretendard;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%; /* 22.4px */
  letter-spacing: -0.28px;
}

.my-coupon-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
}

.btn-cancel {
  background-color: #F3F4F6;
  color: #4B5563;
}

.btn-logout {
  background-color: #3B82F6;
  color: #fff;
}

.btn-withdraw {
  background-color: #EF4444; /* Red color for withdraw button */
  color: #fff;
}
