* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  /* 따뜻한 신비 컬러 팔레트 */
  --bg-primary: #1a1325;
  --bg-secondary: #251a35;
  --bg-card: #2d2342;
  --bg-card-hover: #3a2d52;
  --bg-light: #f5f0e6;
  
  /* 골드 계열 */
  --accent-gold: #d4af37;
  --accent-gold-bright: #f4d03f;
  --accent-gold-soft: #e8c468;
  --accent-gold-dark: #b8941f;
  
  /* 보라/자주 계열 */
  --accent-purple: #9d6dc9;
  --accent-purple-light: #b88dd9;
  --accent-purple-deep: #6b4789;
  
  /* 따뜻한 강조색 */
  --accent-rose: #d4837a;
  --accent-coral: #e8a87c;
  --accent-warm: #f4c2a1;
  
  /* 상태 색상 */
  --accent-green: #88c9a1;
  --accent-blue: #7eb8da;
  --accent-red: #e07b7b;
  
  /* 텍스트 */
  --text-primary: #f9f4ec;
  --text-secondary: #d8c9b8;
  --text-muted: #a89888;
  --text-dark: #3d2e1f;
  
  /* 보더 */
  --border-color: #4a3a5e;
  --border-light: #5d4a73;
  --border-gold: rgba(212, 175, 55, 0.3);
  
  /* 그림자 */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
  
  --font-main: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

body {
  font-family: var(--font-main);
  background: linear-gradient(135deg, #1a1325 0%, #251a35 50%, #2d1f3f 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 별빛 효과 배경 */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(244, 208, 63, 0.3), transparent),
    radial-gradient(2px 2px at 60px 70px, rgba(157, 109, 201, 0.3), transparent),
    radial-gradient(1px 1px at 50px 160px, rgba(244, 208, 63, 0.2), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(212, 131, 122, 0.2), transparent),
    radial-gradient(2px 2px at 80px 120px, rgba(157, 109, 201, 0.2), transparent);
  background-size: 200px 200px;
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

#loading-screen {
  position: fixed; inset: 0; 
  background: radial-gradient(circle at center, #2d1f3f 0%, #1a1325 100%);
  display: flex; align-items: center; justify-content: center; z-index: 9999;
}
.loading-content { text-align: center; position: relative; }
.crystal-ball { 
  font-size: 100px; 
  animation: pulse 2.5s ease-in-out infinite; 
  display: block; 
  margin-bottom: 25px;
  filter: drop-shadow(0 0 30px rgba(244, 208, 63, 0.5));
}
.loading-content h2 { 
  font-size: 32px; 
  color: var(--accent-gold-bright); 
  margin-bottom: 35px; 
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(244, 208, 63, 0.4);
}
.loading-bar { 
  width: 320px; max-width: 80vw; height: 5px; 
  background: rgba(255,255,255,0.1); 
  border-radius: 3px; overflow: hidden; margin: 0 auto; 
  box-shadow: 0 0 10px rgba(244, 208, 63, 0.2);
}
.loading-fill { 
  height: 100%; 
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-gold-bright), var(--accent-rose));
  width: 0%; 
  animation: loadingProgress 2.5s ease-in-out forwards;
  box-shadow: 0 0 15px rgba(244, 208, 63, 0.6);
}
@keyframes pulse { 
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 30px rgba(244, 208, 63, 0.5)); } 
  50% { transform: scale(1.08); filter: drop-shadow(0 0 50px rgba(244, 208, 63, 0.8)); } 
}
@keyframes loadingProgress { 0%{width:0%} 100%{width:100%} }

#app { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* 모바일 메뉴 토글 */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 15px; left: 15px;
  z-index: 200;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold-bright);
  width: 48px; height: 48px;
  border-radius: 12px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

/* 사이드바 - 고급스러운 느낌 */
.sidebar {
  width: 240px; 
  background: linear-gradient(180deg, #251a35 0%, #1a1325 100%);
  border-right: 1px solid var(--border-gold);
  padding: 25px 0; 
  position: fixed; top: 0; left: 0; height: 100vh; z-index: 150;
  display: flex; flex-direction: column;
  transition: transform 0.3s;
  box-shadow: 2px 0 20px rgba(0,0,0,0.3);
}
.logo { 
  display: flex; align-items: center; gap: 14px; 
  padding: 20px 25px 30px; 
  border-bottom: 1px solid var(--border-gold); 
  margin-bottom: 25px; 
}
.logo-icon { 
  font-size: 36px; 
  filter: drop-shadow(0 0 10px rgba(244, 208, 63, 0.5));
}
.logo-text { 
  font-size: 19px; 
  font-weight: 700; 
  color: var(--accent-gold-bright);
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(244, 208, 63, 0.3);
}
.nav-menu { list-style: none; flex: 1; padding: 0 12px; }
.nav-item { 
  display: flex; align-items: center; gap: 14px; 
  padding: 14px 18px; 
  cursor: pointer; 
  color: var(--text-secondary); 
  font-size: 15px; font-weight: 500; 
  transition: all 0.3s ease; 
  border-radius: 10px;
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
}
.nav-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent-gold);
  transform: scaleY(0);
  transition: transform 0.3s;
}
.nav-item:hover { 
  background: rgba(212, 175, 55, 0.08); 
  color: var(--accent-gold-soft); 
  padding-left: 22px;
}
.nav-item:hover::before { transform: scaleY(1); }
.nav-item.active { 
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), rgba(157, 109, 201, 0.08));
  color: var(--accent-gold-bright); 
  font-weight: 600;
  box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.1);
}
.nav-item.active::before { transform: scaleY(1); }
.nav-icon { font-size: 22px; }

.main-content { 
  margin-left: 240px; flex: 1; min-height: 100vh; padding: 35px; 
  max-width: calc(100vw - 240px); 
}

.page { display: none; }
.page.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header { 
  display: flex; align-items: center; justify-content: space-between; 
  margin-bottom: 30px; flex-wrap: wrap; gap: 15px; 
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-gold);
}
.page-header h1 { 
  font-size: 30px; font-weight: 700; 
  color: var(--accent-gold-bright);
  text-shadow: 0 0 20px rgba(244, 208, 63, 0.2);
  letter-spacing: 1px;
}

.step-container { display: none; }
.step-container.active { display: block; animation: fadeIn 0.4s ease; }
.step-header { margin-bottom: 30px; }
.step-header h1, .step-header h2 { 
  font-size: 28px; font-weight: 700; 
  color: var(--accent-gold-bright); 
  margin-bottom: 10px;
  text-shadow: 0 0 15px rgba(244, 208, 63, 0.2);
}
.step-header p { color: var(--text-secondary); font-size: 16px; }
.step-buttons { 
  display: flex; gap: 15px; margin-top: 30px; 
  padding-top: 25px; 
  border-top: 1px solid var(--border-gold); 
  flex-wrap: wrap; 
}

/* 카테고리 - 카드 같은 느낌 */
.category-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
  gap: 20px; 
}
.category-card { 
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  border: 2px solid var(--border-color); 
  border-radius: 20px; 
  padding: 35px 20px; 
  text-align: center; 
  cursor: pointer; 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  display: flex; flex-direction: column; align-items: center; gap: 15px;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(244, 208, 63, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.category-card:hover { 
  border-color: var(--accent-gold); 
  transform: translateY(-5px); 
  box-shadow: var(--shadow-gold);
}
.category-card:hover::before { opacity: 1; }
.category-icon { 
  font-size: 50px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
  position: relative;
  z-index: 1;
}
.category-name { 
  font-size: 17px; font-weight: 600; 
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

/* 폼 - 고급스럽게 */
.customer-form { 
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(45, 35, 66, 0.8) 100%);
  border: 1px solid var(--border-gold); 
  border-radius: 20px; 
  padding: 35px; 
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.form-group { display: flex; flex-direction: column; gap: 10px; position: relative; }
.form-group label { 
  font-size: 13px; font-weight: 700; 
  color: var(--accent-gold-bright); 
  text-transform: uppercase; letter-spacing: 1.2px; 
}
.form-group input, .form-group textarea { 
  background: rgba(26, 19, 37, 0.6); 
  border: 1.5px solid var(--border-light); 
  border-radius: 12px; 
  padding: 14px 18px; 
  color: var(--text-primary); 
  font-family: var(--font-main); 
  font-size: 15px; line-height: 1.6; width: 100%;
  transition: all 0.3s;
}
.form-group input:focus, .form-group textarea:focus { 
  outline: none; 
  border-color: var(--accent-gold); 
  background: rgba(26, 19, 37, 0.9);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.radio-group { display: flex; gap: 25px; padding-top: 8px; }
.radio-label { 
  display: flex; align-items: center; gap: 10px; 
  cursor: pointer; font-size: 15px; 
  color: var(--text-primary); font-weight: 500; 
}
.radio-label input { width: 18px; height: 18px; accent-color: var(--accent-gold); }

.name-suggestions { 
  position: absolute; top: 100%; left: 0; right: 0; 
  background: var(--bg-card-hover); 
  border: 1px solid var(--accent-gold); 
  border-radius: 12px; 
  z-index: 50; max-height: 250px; overflow-y: auto; margin-top: 6px; 
  box-shadow: var(--shadow-lg); 
}
.suggestion-item { 
  padding: 14px 18px; cursor: pointer; font-size: 14px; 
  border-bottom: 1px solid var(--border-color); 
  color: var(--text-primary); 
  transition: all 0.2s;
}
.suggestion-item:hover { 
  background: var(--accent-gold); 
  color: var(--bg-primary); 
  font-weight: 600; 
}
.search-results { 
  background: rgba(157, 109, 201, 0.15); 
  border: 1px solid var(--accent-purple); 
  border-radius: 14px; 
  padding: 18px 22px; margin-bottom: 22px; 
  font-size: 15px; 
}

/* 배열법 */
.spread-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.spread-card { 
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  border: 2px solid var(--border-color); 
  border-radius: 20px; 
  padding: 35px 22px; 
  text-align: center; cursor: pointer; 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}
.spread-card:hover { 
  border-color: var(--accent-purple); 
  transform: translateY(-5px); 
  box-shadow: 0 15px 35px rgba(157, 109, 201, 0.3); 
}
.spread-card.selected { 
  border-color: var(--accent-gold); 
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(157, 109, 201, 0.1));
  box-shadow: var(--shadow-gold);
}
.spread-icon { font-size: 40px; margin-bottom: 18px; display: block; }
.spread-card h3 { font-size: 21px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.spread-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 15px; line-height: 1.6; }
.spread-tag { 
  display: inline-block; 
  background: rgba(157, 109, 201, 0.25); 
  color: var(--accent-purple-light); 
  padding: 6px 16px; border-radius: 20px; 
  font-size: 13px; font-weight: 600; 
}

/* 카드 선택 */
.selection-info { display: flex; align-items: center; gap: 20px; margin-top: 10px; flex-wrap: wrap; }
.selection-count { 
  background: rgba(212, 175, 55, 0.15); 
  color: var(--accent-gold-bright); 
  padding: 8px 20px; border-radius: 25px; 
  font-size: 14px; font-weight: 700; 
  border: 1.5px solid var(--accent-gold); 
}

.selected-slots-container { 
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  border-radius: 18px; padding: 22px; margin-bottom: 20px; 
  border: 1.5px dashed var(--border-light);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.2);
}
.selected-slots { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; min-height: 140px; }

.slot-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.slot-card { 
  width: 85px; height: 138px; 
  background: #fff; 
  border: 3px solid var(--accent-gold); 
  border-radius: 10px; 
  display: flex; align-items: center; justify-content: center; 
  position: relative; overflow: hidden; 
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
  transition: all 0.3s;
}
.slot-card:hover { transform: scale(1.05); }
.slot-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot-card.reversed img { transform: rotate(180deg); }
.slot-position-label { 
  font-size: 13px; color: var(--accent-gold-bright); 
  font-weight: 700; text-align: center; max-width: 95px; 
}
.slot-direction { font-size: 12px; font-weight: 600; }
.slot-card .remove-btn { 
  position: absolute; top: 5px; right: 5px; 
  background: rgba(224, 123, 123, 0.95); 
  color: white; border: none; border-radius: 50%; 
  width: 24px; height: 24px; 
  font-size: 13px; font-weight: 700; cursor: pointer; 
  display: flex; align-items: center; justify-content: center; z-index: 10; 
}
.empty-slot { 
  width: 85px; height: 138px; 
  border: 2.5px dashed var(--border-light); 
  border-radius: 10px; 
  display: flex; align-items: center; justify-content: center; 
  font-size: 12px; color: var(--text-muted); text-align: center; padding: 8px; 
}

.deck-controls { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.btn-shuffle { 
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-gold));
  color: white; border: none; border-radius: 25px; 
  padding: 12px 28px; 
  font-family: var(--font-main); font-size: 14px; font-weight: 700; 
  cursor: pointer; 
  box-shadow: 0 5px 20px rgba(157, 109, 201, 0.4); 
  display: flex; align-items: center; gap: 10px;
  transition: all 0.3s;
}
.btn-shuffle:hover { 
  transform: translateY(-3px) scale(1.03); 
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

.card-search-input, .search-input { 
  background: var(--bg-card); 
  border: 1.5px solid var(--border-light); 
  border-radius: 25px; padding: 12px 22px; 
  color: var(--text-primary); 
  font-family: var(--font-main); font-size: 14px; 
  min-width: 200px; flex: 1; 
  transition: all 0.3s;
}
.card-search-input:focus, .search-input:focus { 
  outline: none; 
  border-color: var(--accent-gold); 
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.filter-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn { 
  background: var(--bg-card); 
  border: 1.5px solid var(--border-light); 
  border-radius: 22px; padding: 9px 20px; 
  color: var(--text-secondary); 
  font-family: var(--font-main); font-size: 13px; font-weight: 600; 
  cursor: pointer; 
  transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active { 
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-deep));
  border-color: var(--accent-purple); 
  color: white; 
  box-shadow: 0 4px 15px rgba(157, 109, 201, 0.3);
}

.card-deck { 
  display: grid; 
  grid-template-columns: repeat(15, 1fr); 
  gap: 8px; padding: 18px; 
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  border-radius: 18px; 
  border: 1px solid var(--border-gold);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.2);
}
.deck-card { 
  aspect-ratio: 2/3.2; width: 100%; 
  background: linear-gradient(135deg, #2a1850 0%, #4a2980 50%, #2a1850 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.5); 
  border-radius: 6px; cursor: pointer; 
  position: relative; 
  display: flex; align-items: center; justify-content: center; 
  overflow: hidden; transition: all 0.3s;
}
.deck-card::before { 
  content: '✦'; font-size: 22px; 
  color: rgba(244, 208, 63, 0.6); 
  position: absolute;
  text-shadow: 0 0 10px rgba(244, 208, 63, 0.4);
}
.deck-card::after { 
  content: ''; position: absolute; inset: 4px; 
  border: 1px solid rgba(244, 208, 63, 0.3); 
  border-radius: 4px; 
}
.deck-card:hover { 
  border-color: var(--accent-gold-bright); 
  box-shadow: 0 0 25px rgba(244, 208, 63, 0.7); 
  transform: scale(1.18); z-index: 10;
}
.deck-card.selected-in-deck { opacity: 0.2; cursor: not-allowed; pointer-events: none; }

/* 결과 */
.result-meta { 
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(157, 109, 201, 0.08));
  border: 1.5px solid var(--accent-gold); 
  border-radius: 16px; padding: 20px 26px; margin-bottom: 25px; 
  font-size: 15px; line-height: 1.9;
  box-shadow: var(--shadow-sm);
}
.result-meta strong { color: var(--accent-gold-bright); }

.result-cards { 
  display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; 
  margin-bottom: 35px; padding: 30px; 
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  border-radius: 20px;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.2);
}
.result-card-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.result-card-img { 
  width: 115px; height: 188px; 
  background: #fff; 
  border: 3px solid var(--accent-gold); 
  border-radius: 12px; 
  display: flex; align-items: center; justify-content: center; 
  overflow: hidden; 
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
  transition: all 0.3s;
}
.result-card-img:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6); }
.result-card-img img { width: 100%; height: 100%; object-fit: cover; }
.result-card-img.reversed img { transform: rotate(180deg); }
.result-position { font-size: 14px; color: var(--accent-gold-bright); font-weight: 700; }
.result-card-name { font-size: 13px; color: var(--text-primary); text-align: center; max-width: 115px; font-weight: 500; }

.interpretation-loading { 
  text-align: center; padding: 80px 20px; 
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  border-radius: 20px;
}
.magic-spinner { 
  font-size: 80px; 
  animation: spin 3s linear infinite; 
  display: block; margin-bottom: 25px;
  filter: drop-shadow(0 0 30px rgba(244, 208, 63, 0.5));
}
.interpretation-loading p { font-size: 17px; color: var(--text-secondary); line-height: 1.9; }
@keyframes spin { 0%{transform:rotate(0)} 100%{transform:rotate(360deg)} }

.interpretation-result { 
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(45, 35, 66, 0.7) 100%);
  border: 1px solid var(--border-gold); 
  border-radius: 20px; padding: 45px; 
  line-height: 2.1; font-size: 16px; 
  color: var(--text-primary); display: none; 
  box-shadow: var(--shadow-md);
}
.interpretation-result h2 { 
  color: var(--accent-gold-bright); 
  font-size: 26px; font-weight: 700; 
  margin: 32px 0 18px; 
  padding-bottom: 12px; 
  border-bottom: 2px solid var(--border-gold);
  text-shadow: 0 0 15px rgba(244, 208, 63, 0.2);
}
.interpretation-result h2:first-child { margin-top: 0; }
.interpretation-result h3 { 
  color: var(--accent-purple-light); 
  font-size: 20px; font-weight: 700; 
  margin: 25px 0 14px; 
}
.interpretation-result p { margin-bottom: 16px; }
.interpretation-result strong { 
  color: var(--accent-gold-bright); 
  font-weight: 700;
  text-shadow: 0 0 10px rgba(244, 208, 63, 0.2);
}

.save-buttons { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.btn { 
  padding: 14px 28px; 
  border-radius: 12px; border: none; 
  font-family: var(--font-main); font-size: 15px; font-weight: 600; 
  cursor: pointer; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
  display: inline-flex; align-items: center; gap: 10px; 
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-primary { 
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-deep)); 
  color: white;
  box-shadow: 0 4px 15px rgba(157, 109, 201, 0.3);
}
.btn-secondary { 
  background: var(--bg-card); color: var(--text-primary); 
  border: 1.5px solid var(--border-light); 
}
.btn-success { 
  background: linear-gradient(135deg, var(--accent-green), #6fa085);
  color: white; 
}
.btn-info { background: var(--accent-blue); color: white; }
.btn-large { padding: 18px 40px; font-size: 16px; }

/* 달력 */
.calendar-wrapper { 
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(45, 35, 66, 0.8) 100%);
  border: 1px solid var(--border-gold); 
  border-radius: 20px; padding: 28px; margin-bottom: 28px; 
  box-shadow: var(--shadow-md);
}
.calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.calendar-nav-btn { 
  background: var(--bg-secondary); 
  border: 1.5px solid var(--border-light); 
  color: var(--text-primary); 
  width: 46px; height: 46px; border-radius: 12px; 
  font-size: 18px; cursor: pointer; 
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.calendar-nav-btn:hover { 
  background: var(--accent-purple); 
  border-color: var(--accent-purple); 
  transform: scale(1.05);
}
.calendar-title { 
  font-size: 24px; font-weight: 700; 
  color: var(--accent-gold-bright);
  text-shadow: 0 0 15px rgba(244, 208, 63, 0.2);
}
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar-day-header { 
  text-align: center; padding: 14px 0; 
  font-size: 13px; font-weight: 700; 
  color: var(--accent-gold); 
  text-transform: uppercase;
  letter-spacing: 1px;
}
.calendar-day-header.sun { color: var(--accent-red); }
.calendar-day-header.sat { color: var(--accent-blue); }
.calendar-day { 
  aspect-ratio: 1; 
  background: var(--bg-secondary); 
  border: 1.5px solid var(--border-color); 
  border-radius: 12px; padding: 10px; 
  cursor: pointer; 
  display: flex; flex-direction: column; 
  position: relative; min-height: 75px;
  transition: all 0.3s;
}
.calendar-day:hover { 
  background: var(--bg-card-hover); 
  border-color: var(--accent-gold);
  transform: scale(1.05);
  z-index: 5;
}
.calendar-day.other-month { opacity: 0.3; }
.calendar-day.today { 
  border-color: var(--accent-gold-bright); 
  border-width: 2.5px; 
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(244, 208, 63, 0.05));
  box-shadow: 0 0 20px rgba(244, 208, 63, 0.3);
}
.calendar-day.has-consultation { 
  background: linear-gradient(135deg, rgba(157, 109, 201, 0.25), rgba(157, 109, 201, 0.1));
  border-color: var(--accent-purple); 
}
.calendar-day.has-consultation:hover { 
  background: rgba(157, 109, 201, 0.4); 
  transform: scale(1.08);
  box-shadow: 0 5px 20px rgba(157, 109, 201, 0.4);
}
.calendar-day-num { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.calendar-day.sun .calendar-day-num { color: var(--accent-red); }
.calendar-day.sat .calendar-day-num { color: var(--accent-blue); }
.calendar-day-count { 
  margin-top: auto; 
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-deep));
  color: white; 
  font-size: 11px; font-weight: 700; 
  padding: 4px 10px; border-radius: 14px; 
  align-self: center;
  box-shadow: 0 2px 8px rgba(157, 109, 201, 0.4);
}

.customer-list-section { margin-top: 30px; }
.customer-list-section h2 { 
  color: var(--accent-gold-bright); 
  font-size: 22px; margin-bottom: 18px;
  text-shadow: 0 0 15px rgba(244, 208, 63, 0.2);
}
.customer-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.customer-card { 
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(45, 35, 66, 0.8) 100%);
  border: 1.5px solid var(--border-color); 
  border-radius: 16px; padding: 22px; 
  cursor: pointer; transition: all 0.4s; 
}
.customer-card:hover { 
  border-color: var(--accent-gold); 
  transform: translateY(-4px); 
  box-shadow: var(--shadow-gold);
}
.customer-name { 
  font-size: 19px; font-weight: 700; 
  color: var(--accent-gold-bright); 
  margin-bottom: 10px; 
}
.customer-info { font-size: 14px; color: var(--text-secondary); line-height: 2; }
.consultation-count { 
  display: inline-block; 
  background: linear-gradient(135deg, rgba(157, 109, 201, 0.3), rgba(157, 109, 201, 0.15));
  color: var(--accent-purple-light); 
  padding: 6px 16px; border-radius: 22px; 
  font-size: 12px; font-weight: 700; margin-top: 12px; 
  border: 1px solid rgba(157, 109, 201, 0.3);
}

/* 모달 */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay { 
  position: absolute; inset: 0; 
  background: rgba(0,0,0,0.85); 
  backdrop-filter: blur(8px); 
}
.modal-content { 
  position: relative; 
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-gold); 
  border-radius: 22px; 
  width: 100%; max-width: 850px; max-height: 88vh; 
  overflow-y: auto; padding: 38px; z-index: 1;
  box-shadow: var(--shadow-lg);
}
.card-modal-content { max-width: 700px; }
.modal-close { 
  position: absolute; top: 20px; right: 24px; 
  background: var(--bg-card); 
  border: 1.5px solid var(--border-light); 
  color: var(--text-primary); 
  width: 40px; height: 40px; border-radius: 50%; 
  font-size: 18px; cursor: pointer; 
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.modal-close:hover { 
  background: var(--accent-red); 
  border-color: var(--accent-red); 
  transform: rotate(90deg);
}

.customer-detail-header { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1.5px solid var(--border-gold); }
.customer-detail-name { 
  font-size: 30px; font-weight: 700; 
  color: var(--accent-gold-bright); margin-bottom: 14px;
  text-shadow: 0 0 20px rgba(244, 208, 63, 0.2);
}
.consultation-item { 
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(45, 35, 66, 0.7) 100%);
  border: 1.5px solid var(--border-color); 
  border-radius: 16px; padding: 24px; margin-bottom: 18px;
  transition: all 0.3s;
}
.consultation-item:hover { border-color: var(--border-gold); }
.consultation-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.consultation-date { font-size: 14px; color: var(--accent-gold-bright); font-weight: 700; }
.consultation-category-badge { 
  background: linear-gradient(135deg, rgba(157, 109, 201, 0.3), rgba(157, 109, 201, 0.15));
  color: var(--accent-purple-light); 
  padding: 6px 16px; border-radius: 22px; 
  font-size: 12px; font-weight: 700; 
  border: 1px solid rgba(157, 109, 201, 0.3);
}
.consultation-question { font-size: 15px; color: var(--text-primary); margin-bottom: 14px; line-height: 1.9; }
.consultation-question strong { color: var(--accent-gold-bright); }
.consultation-content-toggle { 
  background: none; 
  border: 1.5px solid var(--border-light); 
  color: var(--text-secondary); 
  padding: 9px 18px; border-radius: 10px; 
  font-size: 13px; font-weight: 600; cursor: pointer; 
  font-family: var(--font-main);
  transition: all 0.3s;
}
.consultation-content-toggle:hover { 
  border-color: var(--accent-gold); 
  color: var(--accent-gold-bright);
  background: rgba(212, 175, 55, 0.05);
}
.consultation-full-content { 
  margin-top: 20px; padding-top: 20px; 
  border-top: 1.5px solid var(--border-color); 
  font-size: 14px; line-height: 1.95; 
  color: var(--text-primary); display: none; 
}
.consultation-full-content h2 { color: var(--accent-gold-bright); font-size: 18px; margin: 18px 0 10px; }
.consultation-full-content h3 { color: var(--accent-purple-light); font-size: 16px; margin: 14px 0 8px; }

/* 카드 도감 */
.cards-encyclopedia { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.encyclopedia-card { 
  background: linear-gradient(135deg, var(--bg-card), rgba(45, 35, 66, 0.8));
  border: 1.5px solid var(--border-color); 
  border-radius: 14px; padding: 18px 12px; 
  text-align: center; cursor: pointer; transition: all 0.4s; 
}
.encyclopedia-card:hover { 
  border-color: var(--accent-gold); 
  transform: translateY(-5px); 
  box-shadow: var(--shadow-gold);
}
.encyclopedia-card-img { 
  width: 85px; height: 138px; 
  background: #fff; border-radius: 10px; 
  margin: 0 auto 12px; 
  display: flex; align-items: center; justify-content: center; 
  border: 2px solid var(--accent-gold); 
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}
.encyclopedia-card-img img { width: 100%; height: 100%; object-fit: cover; }
.encyclopedia-card-name { font-size: 13px; color: var(--text-primary); font-weight: 600; line-height: 1.4; }
.encyclopedia-card-suit { font-size: 11px; color: var(--text-muted); margin-top: 5px; }

.card-detail-header { text-align: center; margin-bottom: 28px; }
.card-detail-name { font-size: 30px; font-weight: 700; color: var(--accent-gold-bright); }
.card-detail-img { 
  width: 160px; height: 256px; 
  background: #fff; border-radius: 14px; 
  margin: 20px auto; 
  border: 3px solid var(--accent-gold); 
  display: flex; align-items: center; justify-content: center; 
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}
.card-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.card-detail-section { margin-bottom: 24px; }
.card-detail-section h4 { 
  font-size: 15px; font-weight: 700; 
  color: var(--accent-gold-bright); 
  text-transform: uppercase; 
  margin-bottom: 12px; padding-bottom: 10px; 
  border-bottom: 1.5px solid var(--border-gold); 
  letter-spacing: 1px;
}
.keyword-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.keyword-tag { 
  background: linear-gradient(135deg, rgba(157, 109, 201, 0.3), rgba(157, 109, 201, 0.15));
  color: var(--accent-purple-light); 
  padding: 6px 16px; border-radius: 22px; 
  font-size: 13px; font-weight: 600; 
  border: 1px solid rgba(157, 109, 201, 0.3);
}
.keyword-tag.reversed { 
  background: linear-gradient(135deg, rgba(224, 123, 123, 0.3), rgba(224, 123, 123, 0.15));
  color: var(--accent-red);
  border-color: rgba(224, 123, 123, 0.3);
}
.card-detail-text { font-size: 15px; line-height: 2; color: var(--text-secondary); }
.numerology-box { 
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.05));
  border: 1.5px solid var(--border-gold); 
  border-radius: 12px; padding: 18px; 
  font-size: 14px; line-height: 1.9; 
}
.numerology-box strong { color: var(--accent-gold-bright); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { 
  background: linear-gradient(180deg, var(--accent-purple), var(--accent-purple-deep));
  border-radius: 5px; 
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-gold); }

/* 토스트 */
.toast { 
  position: fixed; bottom: 30px; right: 30px; 
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
  border: 1.5px solid var(--accent-gold); 
  border-radius: 14px; padding: 18px 28px; 
  font-size: 15px; font-weight: 500; 
  color: var(--text-primary); z-index: 9999; 
  animation: slideIn 0.4s ease; max-width: 380px; 
  box-shadow: var(--shadow-lg);
}
.toast.success { 
  border-color: var(--accent-green); 
  background: linear-gradient(135deg, var(--bg-card), rgba(136, 201, 161, 0.1));
}
.toast.error { 
  border-color: var(--accent-red); 
  background: linear-gradient(135deg, var(--bg-card), rgba(224, 123, 123, 0.1));
}
@keyframes slideIn { 
  from{transform:translateX(120px);opacity:0} 
  to{transform:translateX(0);opacity:1} 
}

/* 반응형 */
@media (max-width: 1200px) { .card-deck { grid-template-columns: repeat(13, 1fr); } }
@media (max-width: 900px) { .card-deck { grid-template-columns: repeat(10, 1fr); } }

@media (max-width: 768px) {
  body { font-size: 15px; }
  .mobile-menu-toggle { display: flex; align-items: center; justify-content: center; }
  .sidebar { transform: translateX(-100%); width: 250px; box-shadow: 5px 0 30px rgba(0,0,0,0.5); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 70px 18px 25px; max-width: 100vw; }
  .page-header h1 { font-size: 24px; }
  .step-header h1, .step-header h2 { font-size: 24px; }
  .form-row { grid-template-columns: 1fr; gap: 18px; }
  .customer-form { padding: 25px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .category-card { padding: 26px 14px; }
  .category-icon { font-size: 40px; }
  .category-name { font-size: 14px; }
  .spread-grid { grid-template-columns: 1fr; }
  .card-deck { grid-template-columns: repeat(8, 1fr); gap: 5px; padding: 10px; }
  .selected-slots { gap: 10px; }
  .slot-card, .empty-slot { width: 65px; height: 105px; }
  .slot-position-label { font-size: 11px; }
  .result-cards { padding: 16px; gap: 12px; }
  .result-card-img { width: 80px; height: 130px; }
  .result-card-name { font-size: 11px; max-width: 80px; }
  .result-position { font-size: 12px; }
  .interpretation-result { padding: 25px; font-size: 14px; }
  .interpretation-result h2 { font-size: 20px; }
  .interpretation-result h3 { font-size: 17px; }
  .calendar-day { min-height: 55px; padding: 5px; }
  .calendar-day-num { font-size: 13px; }
  .calendar-day-count { font-size: 9px; padding: 2px 6px; }
  .calendar-day-header { font-size: 11px; padding: 9px 0; }
  .calendar-title { font-size: 19px; }
  .calendar-wrapper { padding: 18px; }
  .modal-content { padding: 25px; max-height: 92vh; }
  .customer-detail-name { font-size: 24px; }
  .save-buttons { flex-direction: column; }
  .save-buttons .btn { width: 100%; justify-content: center; }
  .step-buttons .btn { flex: 1; justify-content: center; }
  .filter-buttons { width: 100%; }
  .filter-btn { font-size: 12px; padding: 7px 14px; }
  .deck-controls { flex-direction: column; align-items: stretch; }
  .btn-shuffle { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .card-deck { grid-template-columns: repeat(6, 1fr); }
  .cards-encyclopedia { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}