/* YeonPlingHouse - 매칭 모임 플랫폼 */

/* Gmarket Sans Font */
@font-face {
  font-family: 'Gmarket Sans';
  src: url('/fonts/GmarketSansLight.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Gmarket Sans';
  src: url('/fonts/GmarketSansMedium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Gmarket Sans';
  src: url('/fonts/GmarketSansBold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

:root {
  --primary-bg: #F4F4FF;
  --primary-pink: #FF5069;
  --primary-teal: #1B7D8E;
  --text-primary: #000000;
  --text-secondary: #999999;
  --text-white: #FFFFFF;
  --wine: #7b036f;
  --coffee: #6F4E37;
  --shadow: rgba(0, 0, 0, 0.25);
  --man: #4E6CFF;
  --woman: #FF2D81;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: 'Gmarket Sans', sans-serif !important;
  background-color: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Common Container */
.page-container {
  display: flex;
  justify-content: center;
  align-items: start;
  min-height: 100vh;
  /* padding: 20px; */
}

.page-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 400px;
  min-height: 100vh;
  padding: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

/* Decoration Space */
/* .decoration-space {
  width: 316px;
  height: 236px;
} */

/* Common Logo */
.logo-container {
  width: 103px;
  height: 103px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Common Title */
.page-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  color: var(--text-primary);
  width: 266px;
  margin: 0;
}

/* Subtitle */
.page-subtitle {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  color: var(--text-secondary);
  margin: 0;
}

/* Common Primary Button */
.primary-button {
  width: 100%;
  display: inline-block;
  background-color: var(--primary-pink);
  color: var(--text-white);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  padding: 17px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-button:hover {
  background-color: #E54560;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow);
}

.primary-button:active {
  transform: translateY(0);
}

/* Secondary Button (Cyan) */
.secondary-button {
  width: 100%;
  display: inline-block;
  background-color: #31C8FF;
  color: var(--text-white);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  padding: 17px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.secondary-button:hover {
  background-color: #28B5E8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow);
}

.secondary-button:active {
  transform: translateY(0);
}

/* Button Group */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* Badge Container */
.badge-container {
  width: 100%;
  height: 248px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 10px;
}

/* Host Badge */
.host-badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 80px;
  height: 80px;
  background-color: var(--primary-teal);
  border-radius: 60px;
  padding: 5px 10px;
  box-shadow: 0px 4px 4px 0px var(--shadow);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.host-badge:hover {
  background-color: #156A7A;
  transform: scale(1.05);
  box-shadow: 0px 6px 8px 0px var(--shadow);
}

.host-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
}

.host-text {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  color: var(--text-white);
  width: 34px;
  height: 9px;
}

/* Footer (from footer component) */
footer {
  width: 100%;
  max-width: 400px;
  height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  margin: 0 auto;
}

footer p {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  color: var(--text-secondary);
  width: 275px;
  height: 25px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Password Input (Party Intro) */
.password-display {
  background-color: var(--text-white);
  border: 1px solid var(--primary-pink);
  border-radius: 50px;
  padding: 10px 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.password-input {
  width: 100%;
  font-size: 26px;
  font-weight: 400;
  line-height: 0.77;
  text-align: center;
  color: var(--primary-pink);
  background: transparent;
  border: none;
  outline: none;
  letter-spacing: 30px;
}

.password-input:not(:placeholder-shown) {
  padding-left: 20px;
}


.password-input::placeholder {
  color: var(--primary-pink);
  opacity: 0.5;
  letter-spacing: 8px;
}

/* Form Description */
.form-description {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  color: var(--text-secondary);
  margin: 0;
}

/* Form Group */
.form-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  padding: 0 10px;
}

/* Form Input */
.form-input {
  width: 100%;
  height: 56px;
  background-color: var(--text-white);
  border: 1px solid var(--primary-pink);
  border-radius: 50px;
  padding: 18px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.33;
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: var(--text-secondary);
}

.form-input:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 2px rgba(255, 80, 105, 0.1);
}

/* Form Input with Label */
.form-input-with-label {
  width: 100%;
  height: 56px;
  background-color: var(--text-white);
  border: 1px solid var(--primary-pink);
  border-radius: 50px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.input-label {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.form-input-inline {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  min-width: 0;
}

.form-input-inline::placeholder {
  color: var(--text-secondary);
}

/* Party Layout */
.party-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--primary-bg);
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Party Header */
.party-header {
  width: 100%;
  max-width: 400px;
  height: 100px;
  background-color: var(--text-white);
  border-bottom: 1px solid #31C8FF;
  box-shadow: 0px 4px 4px 0px var(--shadow);
  display: flex;
  flex-direction: column;
}

.header-top {
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.party-name {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

.header-bottom {
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.nickname-badge {
  background-color: #31C8FF;
  color: var(--text-white);
  font-size: 16px;
  font-weight: 500;
  padding: 5px 15px;
  border-radius: 6px;
  height: 25px;
  /* display: flex; */
  /* align-items: center; */
}

.party-number {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  width: 74px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 0 2px;
}

/* Party Content */
.party-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 10px 10px;
  width: 100%;
  max-width: 400px;
  padding-bottom: 200px;
}

/* Gender Toggle */
.gender-toggle {
  display: flex;
  height: 48px;
  width: 100%;
  max-width: 266px;
}

.gender-btn {
  flex: 1;
  padding: 8px 16px;
  font-size: 20px;
  font-weight: 300;
  border: 1px solid var(--primary-pink);
  background-color: transparent;
  color: var(--primary-pink);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gender-btn:first-child {
  border-radius: 8px 0 0 8px;
}

.gender-btn:last-child {
  border-radius: 0 8px 8px 0;
  border-left: none;
}

.gender-btn.active {
  background-color: var(--primary-pink);
  color: var(--text-white);
}

.gender-btn:hover:not(.active) {
  background-color: rgba(255, 80, 105, 0.1);
}

/* Party Navigation */
.party-nav {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100vw;
  max-width: 400px;
  overflow-x: auto;
  overflow-y: hidden;
  height: 60px;
  display: flex;
  justify-content: space-between;
  background-color: var(--text-white);
  border-top: 1px solid #e0e0e0;
  z-index: 100;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  text-decoration: none;
  color: #ADAFBB;
  font-size: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-item .nav-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
}

.nav-item.active {
  color: var(--primary-pink);
}

.nav-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Introduction Form */
.intro-form-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 360px;
}

.intro-form-item {
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
}

.intro-label {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  margin-bottom: 4px;
  text-align: left;
}

.intro-input {
  width: 100%;
  height: 56px;
  background-color: var(--text-white);
  border: 1px solid var(--primary-pink);
  border-radius: 50px;
  padding: 18px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.33;
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s ease;
}

.intro-input::placeholder {
  color: var(--text-secondary);
}

.intro-input:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 2px rgba(255, 80, 105, 0.1);
}

.intro-select {
  width: 100%;
  height: 56px;
  background-color: var(--text-white);
  border: 1px solid var(--primary-pink);
  border-radius: 50px;
  padding: 18px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.33;
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s ease;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10L12 15L17 10' stroke='%23FF5069' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 24px;
  padding-right: 50px;
}

.intro-select:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 2px rgba(255, 80, 105, 0.1);
}

.intro-select option:first-child {
  color: var(--text-secondary);
}

.intro-textarea {
  width: 100%;
  height: 126px;
  background-color: var(--text-white);
  border: 1px solid var(--primary-pink);
  border-radius: 10px;
  padding: 18px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.33;
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s ease;
  resize: vertical;
  font-family: 'Gmarket Sans', sans-serif;
}

.intro-textarea::placeholder {
  color: var(--text-secondary);
}

.intro-textarea:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 2px rgba(255, 80, 105, 0.1);
}

/* Profile Page */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  padding: 10px 0;
}

.profile-card {
  place-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  /* width: 150px; */
  /* height: 150px; */
  width: 100%;
  height: 100%;
  max-width: 200px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid #4E6CFF;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 4px 4px 0px var(--shadow);
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 12px 0px var(--shadow);
  border-color: var(--primary-pink);
}

/* Avatar Selection Card (info page) */
.avatar-select-card {
  width: 100%;
  max-width: 266px;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background-color: #f0f0f0; */
  background-color: white;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-nickname {
  width: 100px;
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-white);
}
.profile-nickname span {
  position: relative;
  top: 2px;
}

/* Badge Colors by Gender */
.badge-male {
  background-color: #4E6CFF;
}

.badge-female {
  background-color: #FF2D81;
}

/* Avatar Selection Modal */
.avatar-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-modal-content {
  background: white;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin: 10px;
}

.avatar-modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.avatar-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.avatar-modal-close {
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #999;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
}

.avatar-modal-close:hover {
  color: #333;
}

.avatar-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 15px;
  width: 100%;
}

.avatar-option {
  width: 100%;
  aspect-ratio: 1;
  max-width: 120px;
  max-height: 120px;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  object-fit: cover;
  justify-self: center;
}

.avatar-option:hover {
  border-color: #4E6CFF;
  transform: scale(1.1);
}

.avatar-option.selected {
  border-color: #FF5069;
  border-width: 3px;
  box-shadow: 0 0 10px rgba(255, 80, 105, 0.3);
}

/* Profile Modal */
.profile-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  background-color: var(--primary-bg) !important;
  border-radius: 10px;
  padding: 30px 15px 100px;
  overflow-y: auto;
  z-index: 1001;
  box-shadow: 0px 8px 16px 0px var(--shadow);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  font-size: 30px;
  font-weight: 300;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--text-primary);
}

.profile-detail-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.profile-detail-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-teal);
  background: white;
}

.profile-detail-image.man {
  border-color: var(--man);
}
.profile-detail-image.woman {
  border-color: var(--woman);
}

.profile-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-detail-name {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

.profile-detail-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  border: 1px solid #E0E0E0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-item.full-width {
  flex-direction: column;
  gap: 8px;
}

.detail-label {
  font-size: 14px;
  font-weight: 500;
  /* color: var(--text-secondary); */
  color: var(--primary-teal);
  min-width: 120px;
}

.detail-value {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  text-align: right;
}

.detail-value-text {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
}

/* Choice Page */
.choice-card {
  position: relative;
  transition: all 0.3s ease;
}

.choice-card.selected {
  border-color: var(--primary-pink);
  background-color: rgba(255, 80, 105, 0.1);
  transform: scale(1.05);
}

.selection-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background-color: var(--primary-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0px 2px 4px 0px var(--shadow);
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Custom SweetAlert2 Styles */
.rolling-some-alert {
  border-radius: 15px !important;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25) !important;
}

.rolling-some-confirm-btn {
  border-radius: 50px !important;
  padding: 17px 30px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  min-width: 120px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-content {
    width: 100%;
    max-width: 400px;
  }
  
  .decoration-space {
    width: 100%;
    max-width: 316px;
  }
  
  .badge-container {
    width: 100%;
  }
  
  .password-display {
    width: 100%;
  }
  
  footer {
    width: 100%;
    max-width: 400px;
  }
}

/* Legacy Support (기존 스타일 보존) */
.btn-brand {
  font-family: 'Inter', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-brand-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-light);
}

.btn-brand-primary:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--brand-light);
}

.btn-brand-danger {
  background-color: var(--brand-danger);
  border-color: var(--brand-danger-hover);
  color: var(--brand-light);
  font-size: 24px;
  font-weight: 700;
  padding: 14px 60px;
  border-radius: 30px;
}

.btn-brand-danger:hover {
  background-color: var(--brand-danger-hover);
  border-color: var(--brand-danger-hover);
  color: var(--brand-light);
}

/* Product Cards */
.product-card {
  background: var(--brand-light);
  border: none;
  border-radius: 8px;
  box-shadow: 3px 3px 3px 5px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-img-box {
  height: 314px;
  background: rgba(204, 204, 204, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}

.product-title {
  font-family: 'Hedvig Letters Serif', 'Noto Sans KR', serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--brand-secondary);
  line-height: 1.2;
  margin-bottom: 10px;
}

.product-price {
  font-family: 'Hedvig Letters Serif', 'Noto Sans KR', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--brand-blue);
}

.product-price.out-of-stock {
  color: var(--brand-red);
}

/* Service Features */
.service-features {
  padding: 100px 0;
  background: var(--brand-light);
}

.service-title {
  font-size: 32px;
  font-weight: 400;
  color: var(--brand-secondary);
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--brand-border);
}

.service-item {
  text-align: center;
  padding: 20px;
}

.service-text {
  font-size: 20px;
  font-weight: 400;
  color: var(--brand-secondary);
}

/* Brand Logos */
.brand-section {
  padding: 50px 0;
  background: var(--brand-light);
}

.brand-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}

.brand-item {
  width: 200px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Forms */
.form-control {
  border: 1px solid var(--brand-border);
  border-radius: 4.8px;
  padding: 8px 16px;
  font-size: 20px;
  font-weight: 300;
  color: var(--brand-primary);
}

.form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.25);
}

.form-label {
  font-size: 16px;
  font-weight: 400;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

/* Cart & Checkout */
.cart-summary {
  background: var(--brand-gray);
  border-radius: 8px;
  padding: 20px;
}

.cart-item {
  background: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid var(--brand-secondary);
  padding: 15px 0;
}

.cart-item:last-child {
  border-bottom: none;
}

.order-summary-title {
  font-size: 24px;
  font-weight: 400;
  color: var(--brand-secondary);
}

.order-total {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-secondary);
  border-top: 1px solid var(--brand-secondary);
  padding-top: 10px;
  margin-top: 10px;
}

/* Utility Classes */
.text-brand-primary { color: var(--brand-primary) !important; }
.text-brand-secondary { color: var(--brand-secondary) !important; }
.text-brand-danger { color: var(--brand-danger) !important; }
.text-brand-blue { color: var(--brand-blue) !important; }
.text-brand-red { color: var(--brand-red) !important; }

.text-wine { color: var(--wine) !important; }
.text-coffee { color: var(--coffee) !important; }

.bg-brand-gray { background-color: var(--brand-gray) !important; }
.border-brand { border-color: var(--brand-border) !important; }

/* Responsive */
@media (max-width: 768px) {
  .brand-grid {
    flex-direction: column;
    gap: 30px;
  }
  
  .service-features {
    padding: 30px 0;
  }
  
  .service-title {
    font-size: 24px;
  }
  
  .service-text {
    font-size: 16px;
  }
  
  /* Avatar Modal Responsive */
  .avatar-modal-content {
    width: 90%;
    max-width: 400px;
    margin: 0px;
  }
  
  .avatar-modal-header {
    padding: 15px;
  }
  
  .avatar-modal-header h3 {
    font-size: 18px;
  }
  
  .avatar-modal-body {
    padding: 15px;
  }
  
  .avatar-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .avatar-option {
    max-width: 100px;
    max-height: 100px;
    flex-shrink: 0;
  }
  
  /* Party Navigation Responsive */
  .party-nav {
    width: 100%;
    max-width: 100vw;
  }
  
  .nav-item {
    padding: 10px 8px;
    min-width: 60px;
  }
  
  .nav-item .nav-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
  }
  
  .nav-item {
    font-size: 9px;
  }
  
  /* Form Group Responsive */
  .form-group {
    max-width: 100%;
    padding: 0 5px;
  }
  
  .form-input-with-label {
    padding: 12px 15px;
  }
  
  .input-label {
    font-size: 14px;
    min-width: 60px;
  }
  
  .form-input-inline {
    font-size: 14px;
  }
}

/* Legacy support for existing components */
.p-img-box {
    display: flex;
    justify-content: center;
    align-content: center;
}

.p-img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
}

.p-img-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    box-sizing: border-box;
    margin: 0 10px;
}

/* Pagination */
.page-item a {
    color: var(--brand-primary);
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid var(--brand-border);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-item a:hover {
    background-color: var(--brand-primary);
    color: var(--brand-light);
}

.page-item.active a {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: var(--brand-light);
}

/* Swiper */
.main-slide {
    height: 600px;
    max-height: 40vh;
}

@media (max-width: 768px) {
    .main-slide {
        height: 400px;
    }
}

.main-slide .swiper-wrapper {
    height: 100%;
}

.main-slide .swiper-slide {
    height: 100%;
}

.main-slide .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Currency */
.currency-gbp::before {
    content: "£";
}

/* Shipping Info */
.shipping-info {
    background: var(--brand-gray);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.shipping-title {
    font-size: 16px;
    font-weight: 400;
    color: var(--brand-primary);
    text-align: center;
}

.shipping-text {
    font-size: 16px;
    font-weight: 400;
    color: var(--brand-primary);
    text-align: center;
    line-height: 1.5;
}

/* Age Verification */
.age-verification {
    font-size: 16px;
    color: var(--brand-primary);
    text-align: right;
    margin-top: 20px;
    font-style: italic;
}

/* Reasons to Choose Section */
.reasons-section {
    background-color: var(--brand-light);
    padding: 50px 0;
}

.reasons-title {
    font-family: 'Helvetica Neue', 'Noto Sans KR', sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--brand-secondary);
    text-align: center;
    letter-spacing: 0.2em;
    margin-bottom: 30px;
}

.title-underline {
    width: 800px;
    height: 1px;
    background-color: #CCCCCC;
    border: none;
    margin: 0 auto 40px;
}

.reasons-item {
    padding: 10px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reasons-text {
    font-family: 'Helvetica Neue', 'Noto Sans KR', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--brand-secondary);
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

.separator-line {
    width: 1px;
    height: 80px;
    background-color: #CCCCCC;
    margin: 0 auto;
}

/* All Products Button */
.all-products-btn {
    background-color: var(--brand-danger);
    border-color: var(--brand-danger-hover);
    color: var(--brand-light);
    font-family: 'Helvetica Neue', 'Noto Sans KR', sans-serif;
    font-size: 24px;
    font-weight: 700;
    padding: 14px 60px;
    border-radius: 30px;
    border: 1px solid var(--brand-danger-hover);
    transition: all 0.3s ease;
}

.all-products-btn:hover {
    background-color: var(--brand-danger-hover);
    border-color: var(--brand-danger-hover);
    color: var(--brand-light);
    transform: translateY(-2px);
}

/* Age Disclaimer */
.age-disclaimer {
    font-family: 'Helvetica Neue', 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--brand-dark);
    line-height: 1.5;
    margin: 0;
    max-width: 625px;
    text-align: center;
    margin: 0 auto;
}

/* Brand Partners Updates */
.brand-item {
    padding: 10px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-img {
    max-width: 200px;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title-underline {
        width: 100%;
        max-width: 400px;
    }
    
    .reasons-title {
        font-size: 24px;
        letter-spacing: 0.1em;
    }
    
    .reasons-text {
        font-size: 16px;
    }
    
    .separator-line {
        display: none;
    }
    
    .age-disclaimer {
        text-align: center;
        margin: 0 auto;
    }
    
    .all-products-btn {
        font-size: 20px;
        padding: 12px 40px;
    }
}

/* ==================== Party Result Page Styles ==================== */

.result-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background-color: #F4F4FF;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Result Header */
.result-container .header {
  width: 100%;
  max-width: 400px;
  height: 100px;
  background: #FFFFFF;
  border-bottom: 1px solid #31C8FF;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.result-container .header-top {
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.result-container .header-title {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.15;
  text-align: center;
  color: #000000;
}

.result-container .header-bottom {
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.result-container .nickname-badge {
  background: #31C8FF;
  border-radius: 6px;
  padding: 10px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-container .nickname-badge span {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.15;
  color: #FFFFFF;
}

.result-container .party-number {
  font-weight: 500;
  font-size: 12px;
  line-height: 1.15;
  color: #999999;
  width: 74px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Result Content */
.result-container .content {
  width: 100%;
  max-width: 400px;
  padding: 20px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.result-container .page-title {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  text-align: center;
  color: #000000;
  width: 266px;
}

/* Status Message */
.result-container .status-message {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.15;
  text-align: center;
  color: #FF5069;
}

.result-container .status-message.success {
  font-size: 20px;
  margin: 0;
  color: #4E6CFF;
}

.result-container .status-message.success.male { color: #FF5069; }
.result-container .status-message.success.female { color: #4E6CFF; }

.result-container .guide-image {
  width: 200px;
  height: 200px;
}

/* Match Badge */
.result-container .match-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.result-container .match-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 10px;
}

.result-container .match-number {
  background: #4E6CFF;
  border-radius: 10px;
  padding: 4px 15px 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.25;
  color: #FFFFFF;
}

.result-container .match-number.male { background: #FF5069; }
.result-container .match-number.female { background: #4E6CFF; }


.result-container .match-text {
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  text-align: center;
  color: #4E6CFF;
  position: relative;
  top: 2px;
}

.result-container .match-text.male { color: #FF5069; }
.result-container .match-text.female { color: #4E6CFF; }


.result-container .match-text.coffee {
  color: #4E6CFF;
}


/* Result Card */
.result-container .result-card {
  width: 100%;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-container .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.result-container .avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 30px;
  min-width: 180px;
}

.result-container .avatar-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.result-container .user-nickname {
  background: #4E6CFF;
  border-radius: 6px;
  padding: 6px 0px 2px;
  width: 100px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.15;
  color: #FFFFFF;
}

.result-container .user-nickname.male { background: #FF5069; }
.result-container .user-nickname.female { background: #4E6CFF; }

.result-container .user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 0px;
  max-width: 130px;
}

.result-container .info-item {
  display: flex;
  flex-direction: column;
}

.result-container .info-label {
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  color: #212529;
  width: 69px;
  height: 16px;
}

.result-container .info-value {
  background: #FFFFFF;
  border: 1px solid #4E6CFF;
  border-radius: 10px;
  padding: 4px 19px;
  width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.43;
  color: #000000;
}

.result-container .info-value.male { border-color: #FF5069; }
.result-container .info-value.female { border-color: #4E6CFF; }

.result-container .card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0px;
}

.result-container .phone-input {
  background: #FFFFFF;
  border: 1px solid #4E6CFF;
  border-radius: 10px;
  padding: 4px 10px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.33;
  color: #000000;
  min-width: 180px;
}

.result-container .phone-input.male { border-color: #FF5069; }
.result-container .phone-input.female { border-color: #4E6CFF; }

.result-container .button-group {
  display: flex;
  flex-direction: row;
  gap: 5px;
  padding: 0px 20px;
  justify-content: center;
  max-width: 130px;
}

.result-container .icon-button {
  background: #31C8FF;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  padding: 5px;
}

.result-container .icon-button svg {
  width: 24px;
  height: 24px;
}

/* Bottom Notice */
.result-container .bottom-notice {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.15;
  text-align: center;
  color: #999999;
  width: 100%;
  margin-top: 10px;
}

/* Result Bottom Navigation */
.result-container .bottom-nav {
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.result-container .bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 35px;
  width: 94px;
  height: 54px;
  cursor: pointer;
  text-decoration: none;
}

.result-container .bottom-nav .nav-item.small {
  padding: 15px 34px;
  width: 92px;
}

.result-container .bottom-nav .nav-item svg {
  width: 24px;
  height: 24px;
  margin-bottom: 5px;
}

.result-container .bottom-nav .nav-item span {
  font-weight: 500;
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
  color: #ADAFBB;
}

.result-container .bottom-nav .nav-item.active span {
  color: #FF5069;
}

.result-container .bottom-nav .nav-item.active svg path {
  fill: #FF5069;
}

/* Result Page Responsive */
@media (max-width: 380px) {
  .result-container .card-top {
    flex-direction: column;
    gap: 15px;
  }
  
  .result-container .avatar-section {
    min-width: auto;
    width: 100%;
    padding: 10px;
  }
  
  .result-container .user-info {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .result-container .info-value {
    width: 100%;
    max-width: 200px;
  }
  
  .result-container .card-bottom {
    flex-direction: column;
    gap: 10px;
  }
  
  .result-container .phone-input {
    min-width: auto;
    width: 100%;
  }
  
  .result-container .button-group {
    max-width: 100%;
    width: 100%;
    justify-content: center;
  }
}

.clock-box {
  position: relative;
  top: 2px;
}
.clock {
  font-size: 18px;
}

/* top bottom left right */
.top-1 { top: 1px; }
.top-2 { top: 2px; }
.top-3 { top: 3px; }
.top-4 { top: 4px; }
.top-5 { top: 5px; }
.top-6 { top: 6px; }
.top-7 { top: 7px; }
.top-8 { top: 8px; }
.top-9 { top: 9px; }
.top-10 { top: 10px; }

.bottom-1 { bottom: 1px; }
.bottom-2 { bottom: 2px; }
.bottom-3 { bottom: 3px; }
.bottom-4 { bottom: 4px; }
.bottom-5 { bottom: 5px; }
.bottom-6 { bottom: 6px; }
.bottom-7 { bottom: 7px; }
.bottom-8 { bottom: 8px; }
.bottom-9 { bottom: 9px; }
.bottom-10 { bottom: 10px; }

.left-1 { left: 1px; }
.left-2 { left: 2px; }
.left-3 { left: 3px; }
.left-4 { left: 4px; }
.left-5 { left: 5px; }
.left-6 { left: 6px; }
.left-7 { left: 7px; }
.left-8 { left: 8px; }
.left-9 { left: 9px; }
.left-10 { left: 10px; }

.right-1 { right: 1px; }
.right-2 { right: 2px; }
.right-3 { right: 3px; }
.right-4 { right: 4px; }
.right-5 { right: 5px; }
.right-6 { right: 6px; }
.right-7 { right: 7px; }
.right-8 { right: 8px; }
.right-9 { right: 9px; }
.right-10 { right: 10px; }

/* ==================== Error Page Styles ==================== */

.error-page-container {
  max-width: 600px;
  margin: 60px auto;
  padding: 40px 20px;
  text-align: center;
}

/* 말풍선 스타일 */
.error-speech-bubble {
  position: relative;
  background: linear-gradient(135deg, #FF5069 0%, #FF7A8E 100%);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(255, 80, 105, 0.2);
}

.error-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid #FF7A8E;
}

.error-speech-bubble p {
  color: white;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
}

/* 에러 코드 배지 */
.error-code-badge {
  display: inline-block;
  background: rgba(78, 108, 255, 0.1);
  color: #4E6CFF;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid #4E6CFF;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

/* 시스템 메시지 카드 */
.error-system-message {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
}

.error-system-message h2 {
  color: #333;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
}

.error-system-message p {
  color: #555;
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

/* 로고 */
.error-logo {
  margin-bottom: 30px;
}

.error-logo img {
  width: 80px;
  height: auto;
  opacity: 0.8;
}

/* 버튼 */
.error-page-container .btn-primary {
  background: linear-gradient(135deg, #FF5069 0%, #FF7A8E 100%);
  border: none;
  padding: 12px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(255, 80, 105, 0.3);
  transition: all 0.3s ease;
}

.error-page-container .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 80, 105, 0.4);
  background: linear-gradient(135deg, #FF3A54 0%, #FF6579 100%);
}

/* 반응형 */
@media (max-width: 768px) {
  .error-page-container {
    margin: 30px auto;
    padding: 20px 15px;
  }

  .error-speech-bubble {
    padding: 20px;
    margin-bottom: 30px;
  }

  .error-speech-bubble p {
    font-size: 16px;
  }

  .error-system-message {
    padding: 20px;
  }

  .error-system-message h2 {
    font-size: 14px;
  }

  .error-system-message p {
    font-size: 14px;
  }
}

/* ==================== Heart Loading Animation ==================== */

.center{
  display: flex;
}
.heart {
  position: absolute;
  margin: auto;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: pink;
  height: 80px;
  width: 80px;
  transform: rotate(-45deg);
  animation-name: beat;
  animation-duration: 1s;
  animation-iteration-count: infinite;
}

.heart:after {
  background-color: pink;
  content: "";
  border-radius: 50%;
  position: absolute;
  width: 80px;
  height: 80px;
  top: 0px;
  left: 40px;
}

.heart:before {
  background-color: pink;
  content: "";
  border-radius: 50%;
  position: absolute;
  width: 80px;
  height: 80px;
  top: -40px;
  left: 0px;
}

@keyframes backdiv {
  50% {
    background: #ffe6f2;
  }
}

@keyframes beat {
  0% {
    transform: scale(1) rotate(-45deg);
  }
  50% {
    transform: scale(0.6) rotate(-45deg);
  }
}

/* 카드끼리 간격 */
.result-card{
  margin-bottom: 14px; /* 12~20px 사이로 취향 */
}

/* 마지막 카드만 아래 여백 제거(선택) */
.result-card:last-child{
  margin-bottom: 0;
}













