@charset "UTF-8";
@import url("reset.css");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --primary: #FF4081;
  --primary-dark: #F50057;
  --primary-light: #FF6B9D;
  --primary-pale: #FFF0F5;
  --accent: #FF7043;
  --accent-dark: #E64A19;
  --success: #4CAF50;
  --warning: #E91E63;
  --danger: #F44336;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-400: #BDBDBD;
  --gray-500: #9E9E9E;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  --white: #FFFFFF;
  --black: #000000;
  --cream: #FFF8F0;
  --pink-gradient: linear-gradient(135deg, #FF4081 0%, #FF6B9D 50%, #FFAB91 100%);
  --shadow-sm: 0 1px 2px 0 rgba(255, 64, 129, 0.05);
  --shadow: 0 2px 8px rgba(255, 64, 129, 0.1);
  --shadow-md: 0 4px 12px rgba(255, 64, 129, 0.15);
  --shadow-lg: 0 8px 24px rgba(255, 64, 129, 0.2);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray-800);
  background-color: var(--white);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
}

.main {
  padding-top: 56px;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 2px 10px rgba(255, 64, 129, 0.15);
  border-bottom: 3px solid transparent;
  background-image: linear-gradient(white, white), var(--pink-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pink-gradient);
}

.header__left-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 20px;
  font-weight: bold;
  transition: all 0.2s;
  background: var(--primary-pale);
}

.header__left-icon:hover {
  background: var(--pink-gradient);
  color: white;
  transform: scale(1.05);
}

.header__left-icon:active {
  transform: scale(0.95);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  background: var(--pink-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header__logo svg {
  width: 32px;
  height: 32px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn--primary {
  background: var(--pink-gradient);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255, 64, 129, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 64, 129, 0.4);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--secondary:hover {
  background: var(--primary-pale);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary-light);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card:active {
  transform: scale(0.98);
}

.card__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--gray-100);
}

.card__content {
  padding: 16px;
}

.card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.card__original-price {
  font-size: 13px;
  color: var(--gray-400);
  text-decoration: line-through;
  margin-left: 6px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--white);
}

.badge--gradient {
  background: var(--pink-gradient);
}

.badge--success {
  background: var(--success);
}

.badge--warning {
  background: var(--warning);
}

/* Input */
.input-group {
  margin-bottom: 16px;
}

.input-group__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
}

.input::placeholder {
  color: var(--gray-400);
}

/* Tab Menu */
.tab-menu {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--primary-pale);
  border-radius: var(--radius-lg);
}

.tab-menu__item {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-align: center;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
}

.tab-menu__item.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(255, 64, 129, 0.3);
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 2px solid var(--primary-pale);
  z-index: 1000;
  padding: 8px 0;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.bottom-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bottom-nav__item {
  flex: 1;
  text-align: center;
}

.bottom-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 0;
  color: var(--gray-400);
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.bottom-nav__link.active {
  color: var(--primary);
}

.bottom-nav__link img {
  width: 22px;
  height: 22px;
}

/* Progress Bar */
.progress-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: var(--pink-gradient);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: var(--gray-900);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.modal h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.modal p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 20px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
}

/* Raffle Card */
.raffle-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.raffle-card:active {
  transform: scale(0.98);
}

.raffle-card__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--gray-100);
}

.raffle-card__content {
  padding: 12px;
}

.raffle-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  height: 2.6em;
}

.raffle-card__price-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  background: var(--pink-gradient);
  color: var(--white);
  margin-bottom: 8px;
}

.raffle-card__progress {
  margin-bottom: 8px;
}

.raffle-card__progress-text {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.raffle-card__btn {
  width: 100%;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  background: var(--pink-gradient);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(255, 64, 129, 0.3);
}

/* Page Content */
.page-content {
  padding-top: 56px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Hero Section */
.hero {
  background: var(--pink-gradient);
  padding: 32px 20px;
  text-align: center;
  color: var(--white);
}

.hero__title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.hero__subtitle {
  font-size: 14px;
  opacity: 0.9;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
}

.stats__item {
  background: var(--white);
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stats__value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.stats__label {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Section */
.section {
  padding: 20px 16px;
}

.section__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

/* Purchase Section */
.purchase-section {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin: 16px;
  box-shadow: var(--shadow);
}

.purchase-section__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.purchase-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.purchase-btn {
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-700);
  transition: all 0.2s;
}

.purchase-btn.active {
  border-color: var(--primary);
  background: var(--primary-pale);
  color: var(--primary);
}

.purchase-btn:active {
  transform: scale(0.95);
}

.purchase-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.purchase-summary__label {
  font-size: 14px;
  color: var(--gray-600);
}

.purchase-summary__value {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

/* Review */
.review-item {
  background: var(--white);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.review-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.review-item__user {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

.review-item__stars {
  color: var(--warning);
  font-size: 14px;
}

.review-item__content {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

.review-item__date {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 8px;
}

/* User Info Section */
.user-stats {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-lg);
  margin: 16px;
  box-shadow: var(--shadow);
}

.user-stats__row {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.user-stats__item {
  flex: 1;
}

.user-stats__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.user-stats__label {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Star Rating */
.star {
  color: var(--gray-300);
}

.star.filled {
  color: var(--warning);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--gray-500);
}

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }

.hidden {
  display: none !important;
}

.error-text {
  color: var(--danger);
  font-size: 13px;
  margin-top: 4px;
}

.success-text {
  color: var(--success);
  font-size: 13px;
  margin-top: 4px;
}

/* ============================================
   PC / Tablet Responsive Styles (min-width: 768px)
   ============================================ */
@media screen and (min-width: 768px) {
  /* Body & Container */
  body {
    background-color: var(--gray-100);
  }

  .container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
  }

  /* Header - PC */
  .header {
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    height: 64px;
    padding: 0 20px;
  }

  .header__logo {
    font-size: 24px;
  }

  .header__left-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .hero-slider {
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
    background: var(--gray-100);
  }

  .hero-slider__wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
  }

  .hero-slider__slide {
    min-width: 100%;
    height: 100%;
    position: relative;
  }

  .hero-slider__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .hero-slider__slide:hover .hero-slider__image {
    transform: scale(1.02);
  }

  .hero-slider__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 24px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
  }

  .hero-slider__title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }

  .hero-slider__desc {
    font-size: 13px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  }

  .hero-slider__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--pink-gradient);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(255, 64, 129, 0.4);
  }

  .hero-slider__dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
  }

  .hero-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
  }

  .hero-slider__dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }

  .hero-slider__title {
    font-size: 22px;
  }

  .hero-slider__desc {
    font-size: 14px;
  }

  /* Tab Menu */
  .tab-menu {
    max-width: 600px;
    margin: 20px auto;
    padding: 6px;
    border-radius: var(--radius-lg);
  }

  .tab-menu__item {
    padding: 14px 24px;
    font-size: 15px;
  }

  /* Product Grid */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
  }

  .product-card {
    border-radius: var(--radius-xl);
  }

  .product-card__body {
    padding: 16px;
  }

  .product-card__title {
    font-size: 15px;
  }

  .product-card__price {
    font-size: 16px;
  }

  .product-card__btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  /* Bottom Navigation */
  .bottom-nav {
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 12px 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .bottom-nav__list {
    max-width: 400px;
    margin: 0 auto;
  }

  .bottom-nav__link {
    font-size: 12px;
  }

  .bottom-nav__link img {
    width: 28px;
    height: 28px;
  }

  /* Result Card (my-raffles) */
  .result-slider {
    height: 200px;
  }

  .result-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
  }

  .result-card {
    border-radius: var(--radius-xl);
  }

  .result-card__header {
    height: 150px;
  }

  /* Modal */
  .result-modal {
    max-width: 480px;
    border-radius: var(--radius-xl);
    margin: auto;
  }

  /* Form Elements */
  .form-group {
    margin-bottom: 20px;
  }

  .form-label {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .form-input {
    padding: 14px 16px;
    font-size: 15px;
    border-radius: var(--radius-md);
  }

  /* Buttons */
  .btn {
    padding: 14px 24px;
    font-size: 15px;
    border-radius: var(--radius-md);
  }

  .btn--primary {
    padding: 16px 28px;
    font-size: 16px;
  }

  /* Product Detail */
  .product-detail__info {
    padding: 24px;
  }

  .product-detail__title {
    font-size: 22px;
  }

  .product-detail__price {
    font-size: 24px;
  }

  /* Raffle History */
  .raffle-history__item {
    padding: 16px;
  }

  /* Profile Page */
  .profile-header {
    padding: 32px 24px;
  }

  .profile-header__name {
    font-size: 22px;
  }

  /* Toast */
  .toast {
    bottom: 30px;
    padding: 14px 28px;
    font-size: 15px;
  }
}

/* ============================================
   Large Desktop Styles (min-width: 1024px)
   ============================================ */
@media screen and (min-width: 1024px) {
  .container {
    max-width: 640px;
  }

  .header,
  .bottom-nav,
  .tab-menu {
    max-width: 640px;
  }

  .hero-slider {
    height: 450px;
  }

  .hero-slider__title {
    font-size: 32px;
  }

  .hero-slider__desc {
    font-size: 16px;
  }
}

/* ============================================
   Extra Large Desktop Styles (min-width: 1280px)
   ============================================ */
@media screen and (min-width: 1280px) {
  body {
    padding: 24px 0;
  }

  .container {
    max-width: 680px;
    border-radius: var(--radius-xl);
    overflow: hidden;
  }

  .header,
  .bottom-nav,
  .tab-menu {
    max-width: 680px;
  }

  .hero-slider {
    height: 480px;
  }

  .hero-slider__title {
    font-size: 34px;
  }

  .hero-slider__desc {
    font-size: 17px;
  }

  .bottom-nav,
  .tab-menu {
    max-width: 680px;
  }

  .product-grid {
    max-width: 680px;
    gap: 20px;
    padding: 24px;
  }
}

/* ============================================
   Partners Section (Footer 위)
   ============================================ */
.partners-section {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--gray-100) 100%);
  padding: 40px 20px 32px;
  border-top: 1px solid var(--gray-200);
}

.partners-section__header {
  text-align: center;
  margin-bottom: 24px;
}

.partners-section__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.partners-section__title::before,
.partners-section__title::after {
  content: '';
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light));
}

.partners-section__title::after {
  background: linear-gradient(90deg, var(--primary-light), transparent);
}

.partners-section__subtitle {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 400;
}

.partners-section__slider {
  overflow: hidden;
  margin: 0 -20px;
  padding: 0 20px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.partners-section__slider:active {
  cursor: grabbing;
}

.partners-section__slider.dragging {
  cursor: grabbing;
}

.partners-section__slider.dragging .partners-section__track {
  animation: none;
}

.partners-section__track {
  display: flex;
  gap: 16px;
  animation: partnersScroll 20s linear infinite;
  will-change: transform;
}

.partners-section__track:hover {
  animation-play-state: paused;
}

.partners-section__slider.dragging .partners-section__track:hover {
  animation-play-state: running;
}

@keyframes partnersScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 8px));
  }
}

.partners-section__item {
  flex-shrink: 0;
}

.partners-section__card {
  width: 160px;
  height: 110px;
  background: var(--white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.partners-section__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 64, 129, 0.15);
  border-color: var(--primary-light);
}

.partners-section__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}

.partners-section__card:hover .partners-section__img {
  filter: grayscale(0%);
}

.partners-section__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.partners-section__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: all 0.3s ease;
  cursor: pointer;
}

.partners-section__dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--pink-gradient);
}

/* PC Responsive - Partners Section */
@media screen and (min-width: 768px) {
  .partners-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 48px 32px 40px;
  }

  .partners-section__title {
    font-size: 20px;
  }

  .partners-section__title::before,
  .partners-section__title::after {
    width: 40px;
  }

  .partners-section__subtitle {
    font-size: 14px;
  }

  .partners-section__slider {
    margin: 0 -32px;
    padding: 0 32px;
  }

  .partners-section__card {
    width: 180px;
    height: 120px;
  }
}

@media screen and (min-width: 1024px) {
  .partners-section {
    max-width: 640px;
  }
}

@media screen and (min-width: 1280px) {
  .partners-section {
    max-width: 680px;
  }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 40px 20px 100px;
  font-size: 12px;
  line-height: 1.8;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-700);
}

.footer__link {
  color: var(--gray-300);
  font-weight: 500;
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--primary-light);
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.footer__social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all 0.2s;
}

.footer__social-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer__section {
  margin-bottom: 20px;
}

.footer__title {
  color: var(--gray-200);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 13px;
}

.footer__phone {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 4px;
}

.footer__hours {
  color: var(--gray-500);
  margin-bottom: 12px;
}

.footer__info {
  margin-bottom: 8px;
}

.footer__info-label {
  color: var(--gray-500);
}

.footer__info-value {
  color: var(--gray-300);
}

.footer__cert {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--gray-700);
  border-bottom: 1px solid var(--gray-700);
}

.footer__cert-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__cert-logo {
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--gray-500);
}

.footer__cert-text {
  font-size: 11px;
  color: var(--gray-500);
  line-height: 1.5;
}

.footer__copyright {
  text-align: center;
  color: var(--gray-600);
  padding-top: 16px;
}

@media screen and (min-width: 768px) {
  .footer {
    max-width: 600px;
    margin: 0 auto;
    padding: 48px 32px 100px;
  }

  .footer__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
  }

  .footer__section {
    flex: 1;
    min-width: 200px;
  }

  .footer-slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 8px;
  }
}

@media screen and (min-width: 1024px) {
  .footer {
    max-width: 640px;
  }
}

.footer-slider {
  width: 100%;
  max-width: 200px;
  overflow: hidden;
  border-radius: 8px;
}

.footer-slider__track {
  display: flex;
  transition: transform 0.3s ease;
}

.footer-slider__image {
  width: 100%;
  min-width: 200px;
  height: 80px;
  border-radius: 8px;
  object-fit: contain;
}

.footer-slider__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.footer-slider__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
}

.footer-slider__dot.active {
  background: var(--primary);
}

@media screen and (min-width: 1280px) {
  .footer {
    max-width: 680px;
  }
}

/* ============================================
   Terms/Privacy Popup
   ============================================ */
.terms-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.terms-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.terms-popup {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
}

.terms-popup-overlay.active .terms-popup {
  transform: scale(1) translateY(0);
}

.terms-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 2px solid var(--primary-pale);
  background: var(--pink-gradient);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.terms-popup__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.terms-popup__close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.terms-popup__close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.terms-popup__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  line-height: 1.8;
  color: var(--gray-700);
  font-size: 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.terms-popup__body h1,
.terms-popup__body h2,
.terms-popup__body h3 {
  color: var(--gray-900);
  margin: 24px 0 12px;
  font-weight: 600;
}

.terms-popup__body h1:first-child,
.terms-popup__body h2:first-child,
.terms-popup__body h3:first-child {
  margin-top: 0;
}

.terms-popup__body p {
  margin-bottom: 12px;
}

.terms-popup__body ul,
.terms-popup__body ol {
  margin: 12px 0;
  padding-left: 20px;
}

.terms-popup__body li {
  margin-bottom: 8px;
}

.terms-popup__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: center;
}

.terms-popup__btn {
  padding: 12px 40px;
  background: var(--pink-gradient);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.terms-popup__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media screen and (min-width: 768px) {
  .terms-popup {
    max-width: 700px;
  }

  .terms-popup__body {
    padding: 32px;
    font-size: 15px;
  }

  .terms-popup__title {
    font-size: 20px;
  }
}

/* ============================================
   Home Header
   ============================================ */
.home-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(255, 64, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  border-bottom: 3px solid transparent;
  background-image: linear-gradient(white, white), var(--pink-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: all 0.3s ease;
}

.home-header--scrolled {
  box-shadow: 0 4px 20px rgba(255, 64, 129, 0.25);
  height: 56px;
}

.home-header__logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-header__logo-area img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.home-header__logo-text {
  font-size: 20px;
  font-weight: 800;
  background: var(--pink-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-header__center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.home-header__search {
  position: relative;
  width: 40px;
  transition: all 0.3s ease;
}

.home-header__search--expanded {
  width: 200px;
}

.home-header__search-input {
  width: 100%;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: 8px 16px 8px 36px;
  font-size: 14px;
  background: var(--white);
  transition: all 0.2s ease;
}

.home-header__search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(255, 64, 129, 0.15);
}

.home-header__search-input::placeholder {
  color: var(--gray-400);
}

.home-header__search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 16px;
  pointer-events: none;
  transition: color 0.2s;
}

.home-header__search-input:focus + .home-header__search-icon {
  color: var(--primary);
}

.home-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-header__icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-pale);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--primary);
  font-size: 18px;
}

.home-header__icon-btn:hover {
  background: var(--pink-gradient);
  color: var(--white);
  transform: scale(1.05);
}

.home-header__icon-btn:active {
  transform: scale(0.95);
}

.home-header__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--danger);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(244, 67, 54, 0.3);
}

.home-header__ticket-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-left: 4px;
}

/* Home Header - PC Responsive */
@media screen and (min-width: 768px) {
  .home-header {
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    height: 64px;
    padding: 0 20px;
  }

  .home-header--scrolled {
    height: 60px;
  }

  .home-header__logo-area img {
    width: 40px;
    height: 40px;
  }

  .home-header__logo-text {
    font-size: 22px;
  }

  .home-header__search {
    width: 44px;
  }

  .home-header__search--expanded {
    width: 240px;
  }

  .home-header__search-input {
    padding: 10px 18px 10px 40px;
    font-size: 15px;
  }

  .home-header__search-icon {
    left: 14px;
    font-size: 18px;
  }

  .home-header__icon-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .home-header__badge {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
}

@media screen and (min-width: 1024px) {
  .home-header {
    max-width: 640px;
  }
}

@media screen and (min-width: 1280px) {
  .home-header {
    max-width: 680px;
  }
}
