/* Brongko Customer Page Styles */

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

:root {
  --primary-color: #222D11;
  --primary-dark: #1a2310;
  --primary-light: #3a4a22;
  --secondary-color: #4a5a32;
  --text-color: #333;
  --text-light: #666;
  --text-muted: #999;
  --border-color: #e5e5e5;
  --bg-light: #fafafa;
  --bg-page: #f5f5f5;
  --success-color: #22c55e;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --kakao-color: #FEE500;
}

/* Login Page Body */
body.login-body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
  background: var(--bg-page);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Mypage Body */
body.mypage-body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
  background: var(--bg-page);
  min-height: 100vh;
  padding: 0;
  margin: 0;
}

/* Login Container */
.login-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 420px;
  padding: 40px;
}

.logo {
  text-align: center;
  margin-bottom: 30px;
}

.logo h1 {
  font-size: 28px;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 2px;
}

.logo h1 span {
  color: var(--text-light);
}

.logo p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 8px;
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 25px;
}

.tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.tab:hover {
  color: var(--text-light);
}

.tab.active {
  color: var(--primary-color);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

/* Form Sections */
.form-section {
  display: none;
}

.form-section.active {
  display: block;
}

/* Social Login */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.social-btn.kakao {
  background: var(--kakao-color);
  color: #000;
}

/* 소셜 회원가입 안내 */
.social-register-info {
  background: #f0f7e6;
  border: 1px solid #c5d9a4;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.social-register-info p {
  color: #222D11;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 25px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.divider span {
  padding: 0 15px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(34, 45, 17, 0.1);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

/* Input with Button */
.input-with-btn {
  display: flex;
  gap: 10px;
}

.input-with-btn input {
  flex: 1;
}

.input-with-btn .btn-secondary {
  white-space: nowrap;
  padding: 14px 16px;
}

/* Timer Text */
.timer-text {
  margin-top: 8px;
  font-size: 13px;
  color: var(--error-color);
  text-align: right;
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: var(--border-color);
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  padding: 10px 16px;
  background: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(34, 45, 17, 0.05);
}

.btn-secondary:disabled {
  background: var(--bg-light);
  color: var(--text-muted);
  border-color: var(--border-color);
  cursor: not-allowed;
}

.btn-outline {
  padding: 14px;
  background: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: rgba(34, 45, 17, 0.05);
}

/* Register Steps */
.register-step {
  display: none;
}

.register-step.active {
  display: block;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.step-number {
  width: 28px;
  height: 28px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
}

.step-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.step-buttons button {
  flex: 1;
}

/* Terms Section */
.terms-section {
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  cursor: pointer;
  position: relative;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-color);
}

.checkbox-label.all-check {
  font-weight: 600;
  font-size: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 10px;
}

.terms-list {
  padding-left: 10px;
}

.terms-list .checkbox-label {
  padding: 10px 0;
  font-size: 14px;
}

.view-terms {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

/* Back Link */
.back-link {
  text-align: center;
  margin-top: 25px;
}

.back-link a {
  color: var(--text-light);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s;
}

.back-link a:hover {
  color: var(--primary-color);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* 알림 모달 최상단 */
#alertModal {
  z-index: 99999;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
}

.modal-footer .btn-primary {
  width: 100%;
}

/* Toast - 공통 토스트 컴포넌트 */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast-item {
  background: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  pointer-events: auto;
  animation: toastSlideIn 0.3s ease-out;
  border-left: 4px solid #333;
}

.toast-item.hiding {
  animation: toastSlideOut 0.3s ease-out forwards;
}

.toast-item.success { border-left-color: #4caf50; }
.toast-item.error { border-left-color: #f44336; }
.toast-item.warning { border-left-color: #ff9800; }
.toast-item.info { border-left-color: #2196f3; }

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  color: white;
}

.toast-item.success .toast-icon { background: #4caf50; }
.toast-item.success .toast-icon::before { content: '\2713'; }
.toast-item.error .toast-icon { background: #f44336; }
.toast-item.error .toast-icon::before { content: '\2715'; }
.toast-item.warning .toast-icon { background: #ff9800; }
.toast-item.warning .toast-icon::before { content: '\26A0'; }
.toast-item.info .toast-icon { background: #2196f3; }
.toast-item.info .toast-icon::before { content: '\2139'; }

.toast-msg {
  flex: 1;
  color: #333;
  font-size: 13px;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: #999;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.toast-close:hover {
  background: #f5f5f5;
  color: #333;
}

@keyframes toastSlideIn {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(400px); opacity: 0; }
}

@media (max-width: 768px) {
  .toast-container {
    top: 60px;
    right: 10px;
    left: 10px;
  }
  .toast-item {
    min-width: auto;
    max-width: none;
  }
}

/* Verify Code Group Animation */
.verify-code-group {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading State */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .login-container {
    padding: 30px 25px;
    border-radius: 16px;
  }

  .logo h1 {
    font-size: 24px;
  }

  .form-group input,
  .btn-primary,
  .btn-secondary {
    padding: 12px 14px;
    font-size: 14px;
  }

  .input-with-btn {
    flex-direction: column;
  }

  .input-with-btn .btn-secondary {
    width: 100%;
  }
}

/* ============================================
   Mypage Styles (Unified with Main Site)
   ============================================ */

body.mypage-body {
  background: var(--bg-light);
  display: block;
  padding: 0;
  padding-top: 0;
}

/* Header - Using main site styles */
.mypage-header-unified {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border-color);
  z-index: 1000;
}

.mypage-header-unified nav {
  max-width: 100vw;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mypage-header-unified .logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
  text-decoration: none;
  margin: 0;
  text-align: left;
}

.mypage-header-unified .logo span {
  color: var(--text-light);
  font-weight: 300;
}

.mypage-header-unified .nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.mypage-header-unified .nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.mypage-header-unified .nav-links a:hover {
  color: var(--primary-color);
}

.mypage-header-unified .nav-links a.nav-active {
  color: var(--primary-color);
  font-weight: 600;
}

.mypage-header-unified .nav-links a.nav-logout {
  padding: 8px 18px;
  background: var(--primary-color);
  color: white !important;
  border-radius: 20px;
  font-weight: 500;
  transition: background 0.3s, transform 0.2s;
}

.mypage-header-unified .nav-links a.nav-logout:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Mobile Menu Button for Mypage */
.mypage-header-unified .mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.mypage-header-unified .mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-color);
  margin: 5px 0;
  transition: all 0.3s;
}

/* Mobile Navigation Active Link */
.mobile-nav .mobile-nav-active {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.mobile-nav .mobile-logout {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: var(--primary-color);
  color: white !important;
  border-radius: 25px;
  font-weight: 500;
  text-align: center;
  border-bottom: none !important;
}

/* Mypage Hero Section */
.mypage-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  padding: 120px 20px 60px;
  margin-bottom: -30px;
}

.mypage-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

/* User Info Card */
.user-info-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.user-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: 600;
  flex-shrink: 0;
}

.user-details h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-color);
}

.user-grade {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(34, 45, 17, 0.1);
  border-radius: 20px;
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 600;
}

.user-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}

.stat-item {
  padding: 16px 10px;
  background: var(--bg-light);
  border-radius: 12px;
  transition: transform 0.2s;
}

.stat-item:hover {
  transform: translateY(-2px);
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-expiring {
  margin-top: 6px;
}

.expiring-badge {
  display: inline-block;
  padding: 3px 8px;
  background: #fff5f5;
  color: #e53e3e;
  font-size: 10px;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid #fed7d7;
}

/* Main Content */
.mypage-main {
  background: var(--bg-light);
  padding: 0 20px 100px;
}

.mypage-container {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 50px;
}

/* Section */
.mypage-section {
  background: white;
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}

.mypage-section:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
}

.section-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
}

.section-header .view-all {
  color: var(--primary-color);
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.section-header .view-all:hover {
  opacity: 0.7;
}

.section-content {
  padding: 15px 20px;
}

/* Menu List */
.menu-list {
  list-style: none;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.2s;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background: var(--bg-light);
  margin: 0 -20px;
  padding: 15px 20px;
}

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

.menu-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.menu-text {
  font-size: 15px;
  color: var(--text-color);
}

.menu-badge {
  background: var(--error-color);
  color: white;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.menu-arrow {
  color: var(--text-muted);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 14px;
}

/* Item Cards */
.item-card {
  padding: 15px;
  background: var(--bg-light);
  border-radius: 12px;
  margin-bottom: 10px;
}

.item-card:last-child {
  margin-bottom: 0;
}

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

.item-title {
  font-size: 15px;
  font-weight: 600;
}

.item-status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.item-status.active {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success-color);
}

.item-status.expired {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error-color);
}

.item-status.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.item-info {
  font-size: 13px;
  color: var(--text-light);
}

.item-info span {
  display: block;
  margin-bottom: 4px;
}

.item-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.btn-start-pass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white !important;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(34, 45, 17, 0.25);
}

.btn-start-pass:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 45, 17, 0.35);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-start-pass:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-start-pass svg,
.btn-use-pass svg {
  margin-right: 6px;
  vertical-align: middle;
}

.btn-use-pass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white !important;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(34, 45, 17, 0.25);
}

.btn-use-pass:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 45, 17, 0.35);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: white !important;
}

/* Booking Card Styles */
.booking-card {
  background: var(--bg-light);
}

.booking-details {
  margin-top: 12px;
}

.booking-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color);
}

.booking-detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 12px;
  color: var(--text-light);
  min-width: 60px;
}

.detail-value {
  font-size: 13px;
  color: var(--text-color);
  text-align: right;
}

.detail-value.order-id {
  font-family: monospace;
  font-size: 11px;
  color: var(--text-muted);
}

/* Pass Card Enhancements */
.booking-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  text-align: right;
}

.btn-cancel-booking {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #dc2626;
  background: #fff;
  border: 1px solid #dc2626;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel-booking:hover {
  background: #dc2626;
  color: #fff;
}

.item-card.active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(255, 255, 255, 1));
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.item-card.pending {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(255, 255, 255, 1));
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.item-card.expired {
  background: var(--bg-light);
  opacity: 0.7;
}

.pass-hours,
.pass-expire {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.hours-label,
.expire-label {
  color: var(--text-light);
  font-size: 12px;
}

.hours-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
}

.expire-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color);
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border-color);
  display: none;
  justify-content: space-around;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  transition: color 0.3s;
}

.bottom-nav .nav-item.active {
  color: var(--primary-color);
}

.bottom-nav .nav-item svg {
  width: 22px;
  height: 22px;
}

/* Responsive Styles for Mypage */
@media (max-width: 768px) {
  .mypage-header-unified nav {
    padding: 15px 20px;
  }

  .mypage-header-unified .nav-links {
    display: none;
  }

  .mypage-header-unified .mobile-menu-btn {
    display: block;
  }

  .mypage-hero {
    padding: 100px 15px 50px;
  }

  .user-info-card {
    padding: 20px;
  }

  .user-avatar {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }

  .user-details h2 {
    font-size: 18px;
  }

  .stat-value {
    font-size: 18px;
  }

  .mypage-main {
    padding: 0 15px 100px;
  }

  .mypage-container {
    padding-top: 40px;
  }

  .bottom-nav {
    display: flex;
  }

  .section-header {
    padding: 15px;
  }

  .section-content {
    padding: 12px 15px;
  }

  .menu-item:hover {
    margin: 0 -15px;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .user-stats {
    gap: 8px;
  }

  .stat-item {
    padding: 12px 8px;
  }

  .stat-value {
    font-size: 16px;
  }

  .stat-label {
    font-size: 11px;
  }}

/* ===================================
   Mypage Accordion Styles
   =================================== */

.mypage-accordion {
  background: white;
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}

.mypage-accordion:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
}

.accordion-header:hover {
  background-color: var(--bg-light);
}

.accordion-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
}

.accordion-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.accordion-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  color: var(--text-muted);
}

.accordion-header.open .accordion-arrow,
.mypage-accordion.open .accordion-header .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  border-top: 1px solid transparent;
}

.mypage-accordion.open .accordion-content {
  max-height: 2000px;
  border-top-color: var(--border-color);
}

.accordion-content > div {
  padding: 15px 20px;
}

/* Accordion Register Button */
.btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(34, 45, 17, 0.15);
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 45, 17, 0.35);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

/* User Actions */
.user-actions {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.btn-edit-profile {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-edit-profile:hover {
  background: var(--primary-color);
  color: white;
}

/* Booking Tabs */
.booking-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin: -15px -20px 15px;
  padding: 0 20px;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.tab-btn:hover {
  color: var(--text-light);
}

.tab-btn.active {
  color: var(--primary-color);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ===================================
   Modal Styles
   =================================== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
}

.modal-close {
  width: 32px;
  height: 32px;
  background: var(--bg-light);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--border-color);
  color: var(--text-color);
}

.modal form {
  padding: 20px;
}

.modal .form-group {
  margin-bottom: 20px;
}

.modal .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 8px;
}

.modal .form-group input,
.modal .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.modal .form-group textarea {
  resize: vertical;
  min-height: 60px;
}

.modal .form-group input:focus,
.modal .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(34, 45, 17, 0.1);
}

.modal .form-group input:disabled {
  background: var(--bg-light);
  color: var(--text-muted);
  cursor: not-allowed;
}

.modal .form-group small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-cancel {
  flex: 1;
  padding: 12px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: var(--border-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-submit {
  flex: 1;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(34, 45, 17, 0.15);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 45, 17, 0.35);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.modal-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border-color);
  margin-top: -1px;
  display: flex;
  gap: 10px;
}

.btn-change-password {
  flex: 1;
  padding: 11px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-change-password:hover {
  background: var(--border-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-delete-account {
  flex: 1;
  padding: 11px 16px;
  background: #fff3f3;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #e74c3c;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-delete-account:hover {
  background: #fde8e8;
  border-color: #e74c3c;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.15);
}

.btn-danger {
  padding: 10px 20px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-danger:hover {
  background: #c0392b;
}

.delete-account-warning {
  padding: 15px;
  background: #fff3f3;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
}

.delete-account-warning p {
  margin: 0 0 10px;
  color: #e74c3c;
}

.delete-account-warning ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-light);
}

.delete-account-warning li {
  margin-bottom: 4px;
}

.field-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-light);
}

.social-register-info {
  padding: 12px;
  background: #f0f7ff;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--text-color);
}

/* ===================================
   Bottom Navigation Fix
   =================================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border-color);
  display: none;
  justify-content: space-around;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  transition: color 0.3s;
}

.bottom-nav-item.active {
  color: var(--primary-color);
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
}

/* Point Item */
.point-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.point-item:last-child {
  border-bottom: none;
}

.point-info {
  flex: 1;
}

.point-type {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 4px;
}

.point-date {
  font-size: 12px;
  color: var(--text-muted);
}

.point-amount {
  font-size: 16px;
  font-weight: 600;
}

.point-amount.plus {
  color: var(--primary-color);
}

.point-amount.minus {
  color: #8a8a8a;
}

/* Review Item */
.review-item {
  padding: 15px;
  background: var(--bg-light);
  border-radius: 12px;
  margin-bottom: 10px;
}

.review-item:last-child {
  margin-bottom: 0;
}

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

.review-studio {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
}

.review-rating {
  color: #f59e0b;
  font-size: 14px;
}

.review-content {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 8px;
}

.review-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* Mobile Responsive for Accordion */
@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }

  .accordion-header {
    padding: 15px;
  }

  .accordion-content > div {
    padding: 12px 15px;
  }

  .booking-tabs {
    margin: -12px -15px 12px;
    padding: 0 15px;
  }

  .modal-content {
    max-width: 100%;
    margin: 0 10px;
    max-height: 85vh;
  }
}

@media (max-width: 480px) {
  .accordion-header h3 {
    font-size: 15px;
  }

  .btn-register {
    padding: 5px 10px;
    font-size: 12px;
  }}
/* ============================================
   Button Loading & Double-Click Prevention
   ============================================ */

/* 버튼 로딩 상태 */
.btn-loading,
button.btn-loading,
.btn.btn-loading,
.btn-primary.btn-loading,
.btn-secondary.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  right: 12px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spinner 0.6s linear infinite;
}

/* secondary 버튼용 스피너 */
.btn-loading.btn-secondary::after {
  border-color: rgba(0, 0, 0, 0.2);
  border-top-color: var(--primary, #222D11);
}

@keyframes btn-spinner {
  to {
    transform: rotate(360deg);
  }
}

/* 버튼 disabled 상태 */
button:disabled,
.btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================
   Page Loading Overlay
   ============================================ */

.page-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.page-loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.page-loading-content {
  background: #fff;
  padding: 30px 50px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.page-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: var(--primary, #222D11);
  border-radius: 50%;
  animation: page-spinner 0.8s linear infinite;
  margin: 0 auto 15px;
}

.page-loading-message {
  color: #333;
  font-size: 14px;
  margin: 0;
}

@keyframes page-spinner {
  to {
    transform: rotate(360deg);
  }
}

/* ==================== Customer Slide Override ==================== */
/* 마이페이지용 카드는 더 작은 사이즈 */
.mypage-content .slide-wrapper {
  gap: 16px;
}

.mypage-content .slide-wrapper > * {
  width: calc(33.33% - 12px);
  min-width: 220px;
  max-width: 300px;
}

/* ==================== Pagination ==================== */
.pagination {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-btn:hover:not(.disabled):not(.active) {
  background: #f5f5f5;
  border-color: var(--primary);
}

.pagination-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-ellipsis {
  padding: 0 8px;
  color: #999;
}

.pagination-info {
  font-size: 13px;
  color: #666;
}

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

/* ==================== Review ==================== */
.writable-bookings-section {
  margin-bottom: 20px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px dashed var(--primary);
}

.writable-bookings-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.writable-bookings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.writable-booking-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
}

.writable-booking-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.writable-studio {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.writable-date {
  font-size: 12px;
  color: #888;
}

.btn-write-review {
  padding: 6px 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-write-review:hover {
  opacity: 0.9;
}

.review-item {
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 12px;
  background: #fff;
}

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

.review-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-studio {
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

.review-rating .star-filled {
  color: #f5a623;
}

.review-rating .star-empty {
  color: #ddd;
}

.review-rating .rating-number {
  font-size: 13px;
  color: #888;
}

.review-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.review-status-pending {
  background: #fff3cd;
  color: #856404;
}

.review-status-approved {
  background: #d4edda;
  color: #155724;
}

.review-status-rejected {
  background: #f8d7da;
  color: #721c24;
}

.review-status-deleted {
  background: #e9ecef;
  color: #6c757d;
}

.review-content {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
  white-space: pre-wrap;
}

.review-images {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.review-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
}

.review-admin-reply {
  margin-top: 12px;
  padding: 12px;
  background: #f0f4ff;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.reply-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.reply-content {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  white-space: pre-wrap;
}

.reply-date {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.review-date {
  font-size: 13px;
  color: #999;
}

.review-actions {
  display: flex;
  gap: 6px;
}

.btn-review-action {
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s;
}

.btn-review-action.btn-edit {
  color: #555;
}

.btn-review-action.btn-edit:hover {
  background: #f5f5f5;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-review-action.btn-delete {
  color: #e74c3c;
}

.btn-review-action.btn-delete:hover {
  background: #fdf0ef;
  border-color: #e74c3c;
}

/* Star Rating Input */
.star-rating-input {
  display: flex;
  gap: 4px;
  font-size: 28px;
  cursor: pointer;
}

.star-rating-input .star {
  color: #ddd;
  transition: color 0.15s;
  user-select: none;
}

.star-rating-input .star.active {
  color: #f5a623;
}

.star-rating-input .star:hover {
  color: #f5a623;
}

.review-booking-info {
  font-size: 14px;
  color: #555;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

@media (max-width: 480px) {
  .writable-booking-item {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .btn-write-review {
    text-align: center;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .review-header-right {
    width: 100%;
    justify-content: space-between;
  }
}