/* ===== Pages ===== */
.page {
  display: none;
  padding: 28px 32px 80px;
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Stats Row ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius-lg);
}

.stat-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.stat-card:hover::before { opacity: 1; }
.stat-card[onclick] { cursor: pointer; }
.stat-card[onclick]:active { transform: translateY(-1px) scale(0.99); }

.stat-total::before { background: linear-gradient(135deg, rgba(124, 92, 252, 0.08), transparent); }
.stat-saveable::before { background: linear-gradient(135deg, rgba(92, 252, 218, 0.08), transparent); }
.stat-active::before { background: linear-gradient(135deg, rgba(252, 92, 139, 0.08), transparent); }
.stat-points::before { background: linear-gradient(135deg, rgba(252, 201, 53, 0.08), transparent); }

.stat-icon {
  font-size: 36px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-value.highlight { color: var(--accent-cyan); }
.stat-value.gold { color: var(--accent-gold); }

.stat-change {
  font-size: 12px;
  color: var(--text-muted);
}

.stat-change.positive { color: var(--accent-green); }
.stat-change.negative { color: var(--accent-pink); }

/* ===== AI Alert Banner ===== */
.ai-alert-banner {
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.15), rgba(92, 252, 218, 0.1));
  border: 1px solid rgba(124, 92, 252, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  animation: pulseGlow 3s ease infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(124, 92, 252, 0.1); }
  50% { box-shadow: 0 0 40px rgba(124, 92, 252, 0.25); }
}

.ai-alert-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ai-pulse {
  width: 10px;
  height: 10px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse 1.5s ease infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(92, 252, 218, 0.4); }
  50% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(92, 252, 218, 0); }
}

.ai-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-purple);
  white-space: nowrap;
}

.ai-message {
  font-size: 14px;
  color: var(--text-secondary);
}

.ai-message strong { color: var(--accent-cyan); }

.btn-ai-action {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.btn-ai-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 92, 252, 0.4);
}

/* ===== Dashboard Grid ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== Subscriptions Page ===== */
.subs-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-bar {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.search-bar input::placeholder { color: var(--text-muted); }

.filter-group {
  display: flex;
  gap: 10px;
}

.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.filter-select:focus { border-color: var(--accent-purple); color: var(--text-primary); }

.subs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.sub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.sub-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.sub-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sub-card-emoji {
  font-size: 40px;
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-card-actions {
  display: flex;
  gap: 8px;
}

.sub-card-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-card-btn:hover {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
  background: rgba(252, 92, 139, 0.1);
}

.sub-card-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.sub-card-category {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.sub-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.sub-card-price {
  font-size: 28px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sub-card-period {
  font-size: 13px;
  color: var(--text-muted);
}

.sub-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.sub-card-date {
  font-size: 13px;
  color: var(--text-secondary);
}

.sub-card-usage {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.usage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.usage-dot.good { background: var(--accent-green); box-shadow: 0 0 6px var(--accent-green); }
.usage-dot.medium { background: var(--accent-gold); box-shadow: 0 0 6px var(--accent-gold); }
.usage-dot.bad { background: var(--accent-pink); box-shadow: 0 0 6px var(--accent-pink); }

/* ===== Analytics Page ===== */
.analytics-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ai-score-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
}

.score-display {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.score-circle {
  position: relative;
  width: 180px;
  height: 180px;
}

.score-svg {
  width: 180px;
  height: 180px;
  transform: rotate(-90deg);
}

.score-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 12;
}

.score-fill {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 191;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -56%);
  font-size: 52px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.score-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 20px);
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.ai-insights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: var(--transition);
}

.insight-item:hover { transform: translateX(4px); }

.insight-item.warning { background: rgba(252, 201, 53, 0.08); border-color: rgba(252, 201, 53, 0.2); }
.insight-item.danger { background: rgba(252, 92, 139, 0.08); border-color: rgba(252, 92, 139, 0.2); }
.insight-item.success { background: rgba(92, 252, 143, 0.08); border-color: rgba(92, 252, 143, 0.2); }
.insight-item.info { background: rgba(124, 92, 252, 0.08); border-color: rgba(124, 92, 252, 0.2); }

.insight-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }

.insight-content strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.insight-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.badge-danger { background: rgba(252, 92, 139, 0.2); color: var(--accent-pink); }

/* ===== Cancel List ===== */
.cancel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cancel-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 1px solid rgba(252, 92, 139, 0.15);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.cancel-item:hover { border-color: rgba(252, 92, 139, 0.4); }

.cancel-item-emoji { font-size: 30px; }

.cancel-item-info { flex: 1; }
.cancel-item-name { font-size: 15px; font-weight: 700; }
.cancel-item-reason { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.cancel-item-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-pink);
}

.btn-cancel {
  background: rgba(252, 92, 139, 0.15);
  border: 1px solid rgba(252, 92, 139, 0.3);
  color: var(--accent-pink);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.btn-cancel:hover {
  background: var(--accent-pink);
  color: white;
  transform: translateY(-1px);
}

/* ===== Trend Chart ===== */
.trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 160px;
  padding-top: 20px;
}

.trend-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.trend-bar-amount {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.trend-bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-height: 4px;
}

.trend-bar.current {
  background: var(--gradient-primary);
  box-shadow: 0 0 20px rgba(124, 92, 252, 0.4);
}

.trend-bar.past { background: linear-gradient(180deg, rgba(124,92,252,0.5), rgba(92,252,218,0.3)); }

.trend-bar-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ===== Rewards Page ===== */
.rewards-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.points-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.points-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(252, 201, 53, 0.15), transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.points-content { position: relative; z-index: 1; }

.points-icon { font-size: 60px; margin-bottom: 16px; filter: drop-shadow(0 0 20px rgba(252, 201, 53, 0.5)); }

.points-amount {
  font-size: 72px;
  font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.points-label {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.points-progress { max-width: 400px; margin: 0 auto; }

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 100px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(252, 201, 53, 0.4);
}

/* ===== Recommend Page ===== */
.recommend-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.affiliate-hero {
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.15), rgba(252, 92, 139, 0.1));
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.affiliate-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.affiliate-hero h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
}

.affiliate-hero p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.affiliate-cards-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.affiliate-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  cursor: pointer;
}

.affiliate-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.affiliate-card-icon {
  width: 56px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.affiliate-card-info { flex: 1; }
.affiliate-card-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.affiliate-card-benefit { font-size: 13px; color: #5a9fd4; font-weight: 600; margin-bottom: 2px; }
.affiliate-card-desc { font-size: 12px; color: var(--text-muted); }

.affiliate-card-arrow { font-size: 18px; color: var(--text-muted); }

/* ===== Alternatives ===== */
.alternatives-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-gutter: stable;
}

.alternatives-list::-webkit-scrollbar { width: 6px; }
.alternatives-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 6px; }
.alternatives-list::-webkit-scrollbar-thumb { background: var(--accent-purple); border-radius: 6px; }
.alternatives-list::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

/* ===== Alternative Service Package Card ===== */
.alt-package {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.alt-package:hover { border-color: rgba(92,252,218,0.35); box-shadow: 0 8px 32px rgba(92,252,218,0.08); }

.alt-package-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px 14px;
  background: linear-gradient(135deg, rgba(124,92,252,0.05), rgba(252,92,139,0.03));
  border-bottom: 1px solid var(--border);
}

.alt-package-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.alt-package-title { flex: 1; min-width: 0; }
.alt-package-from { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.alt-package-name { font-size: 17px; font-weight: 800; }

.alt-package-save {
  background: linear-gradient(135deg, rgba(92,252,143,0.18), rgba(92,252,218,0.12));
  border: 1px solid rgba(92,252,143,0.35);
  color: var(--accent-green);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.alt-package-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  border-top: 1px solid var(--border);
  gap: 0;
}

.alt-plan {
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.alt-plan:last-child { border-right: none; }
.alt-plan:hover { background: rgba(92,252,218,0.05); }

.alt-plan.recommended {
  background: rgba(124,92,252,0.06);
}

.alt-plan.selected {
  background: rgba(124,92,252,0.15);
  border-right-color: transparent;
  outline: 2px solid var(--accent-purple);
  outline-offset: -2px;
  border-radius: 8px;
}

.alt-plan.selected .alt-plan-price {
  color: var(--accent-purple);
}

.alt-plan-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gradient-primary);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.alt-plan-tier { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.alt-plan-price { font-size: 20px; font-weight: 900; color: var(--text-primary); }
.alt-plan-period { font-size: 11px; color: var(--text-muted); }
.alt-plan-desc { font-size: 12px; color: var(--text-secondary); margin-top: 6px; line-height: 1.4; }

.alt-package-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.alt-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.alt-feat {
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  padding: 3px 10px;
  border-radius: 20px;
}

.btn-alt-link {
  background: var(--gradient-green);
  border: none;
  color: var(--bg-primary);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-alt-link:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(92,252,143,0.4); }

/* ===== Cancel Service Card ===== */
.cancel-service-card {
  background: linear-gradient(135deg, rgba(92, 252, 218, 0.1), rgba(124, 92, 252, 0.1));
  border: 1px solid rgba(92, 252, 218, 0.2);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.cancel-service-content {
  display: flex;
  align-items: center;
  gap: 32px;
}

.cancel-service-icon { font-size: 64px; }

.cancel-service-text { flex: 1; }
.cancel-service-text h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.cancel-service-text p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px; }

.cancel-service-features {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.feature-tag {
  background: rgba(92, 252, 218, 0.12);
  border: 1px solid rgba(92, 252, 218, 0.2);
  color: var(--accent-cyan);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.btn-cancel-service {
  background: var(--gradient-green);
  border: none;
  color: var(--bg-primary);
  padding: 16px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.btn-cancel-service:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(92, 252, 143, 0.4);
}

/* ===== Cut Guide Page (援щ룆CUT) ===== */
.cutguide-container {
  padding: 0 24px 40px;
}

.cutguide-hero {
  text-align: center;
  padding: 48px 20px 32px;
}

.cutguide-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(252,92,139,0.15), rgba(124,92,252,0.15));
  border: 1px solid rgba(252,92,139,0.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-pink);
  margin-bottom: 16px;
}

.cutguide-hero h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cutguide-hero p {
  color: var(--text-muted);
  font-size: 14px;
}

.cutguide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* 1열 레이아웃: 각 카드가 독립적으로 열림 */
.cutguide-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cutguide-list .cutguide-card {
  width: 100%;
}

/* 2열 독립 컬럼 레이아웃 */
.cutguide-twocol {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: start;
}
.cutguide-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cutguide-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
}

.cutguide-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.cutguide-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}

.cutguide-card-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.07);
  border-radius: 12px;
}

.cutguide-card-title {
  flex: 1;
  min-width: 0;
}

.cutguide-card-name {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.cutguide-difficulty {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.3px;
}

.difficulty-easy {
  background: rgba(92,252,218,0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(92,252,218,0.3);
}

.difficulty-medium {
  background: rgba(252,201,53,0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(252,201,53,0.3);
}

.cutguide-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.cutguide-toggle:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

.toggle-arrow {
  transition: transform 0.3s ease;
  display: inline-block;
}

.cutguide-steps {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
  animation: fadeIn 0.25s ease;
}

.cutguide-ol {
  padding-left: 20px;
  margin: 16px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cutguide-li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border-left: 3px solid var(--accent-purple);
}

.cutguide-tip {
  font-size: 12px;
  color: var(--accent-gold);
  background: rgba(252,201,53,0.08);
  border: 1px solid rgba(252,201,53,0.2);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.cutguide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}

.cutguide-link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 구독CUT 카테고리 탭 ── */
.cuttabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 4px 0;
}
.cuttab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}
.cuttab:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}
.cuttab.cuttab-active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}
.cuttab-count {
  background: rgba(255,255,255,0.22);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}
.cuttab:not(.cuttab-active) .cuttab-count {
  background: rgba(124,92,252,0.12);
  color: var(--accent-purple);
}

/* ── 구독CUT 행 기반 아코디언 ── */
.cutpanels { display: flex; flex-direction: column; gap: 0; }
.cutpanel  { animation: fadeIn 0.2s ease; }

.cutrow {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s;
  background: var(--bg-secondary);
}
.cutrow:hover { border-color: var(--border-hover); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

.cutrow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
}
.cutrow-left  { display: flex; align-items: center; gap: 12px; }
.cutrow-icon  { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255,255,255,0.06); flex-shrink: 0; }
.cutrow-info  { display: flex; flex-direction: column; gap: 3px; }
.cutrow-name  { font-size: 14px; font-weight: 700; }
.cutrow-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cutrow-steps-count { font-size: 12px; color: var(--text-muted); font-weight: 600; }

.cutrow-detail {
  border-top: 1.5px solid var(--border);
  padding: 16px 18px 18px;
  animation: fadeIn 0.2s ease;
}

.cutrow-ol {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cutrow-ol li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  padding: 7px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.cutrow-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cutrow-tip {
  font-size: 12px;
  color: var(--accent-gold);
  background: rgba(252,201,53,0.08);
  border: 1px solid rgba(252,201,53,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  line-height: 1.5;
  flex: 1;
}
.cutrow-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  transition: opacity 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.cutrow-link:hover { opacity: 0.85; }

/* difficulty 뱃지 */
.difficulty-hard {
  background: rgba(252,92,139,0.15);
  color: var(--accent-pink);
  border: 1px solid rgba(252,92,139,0.3);
}

/* Warning status -> unused unified */
.sub-item.status-warning { border-left: 4px solid var(--accent-pink); }
.sub-status.warning { background: rgba(252,92,139,0.15); color: var(--accent-pink); border: 1px solid rgba(252,92,139,0.3); }

/* ─────────────────── 고객센터 페이지 ─────────────────── */
.support-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 0 32px;
}

/* ─────────────────── 도구 페이지 ─────────────────── */
.tools-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 8px 0;
}

.tools-card {
  width: 100%;
}

.tools-badge {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-weight: 600;
}

.tools-badge.coming-soon {
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(236,72,153,0.1));
  border-color: rgba(139,92,246,0.3);
  color: #a78bfa;
}

/* 내보내기 버튼 */
.export-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-export {
  padding: 12px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.2s;
  font-family: inherit;
}

.btn-export:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139,92,246,0.3);
}

.btn-import {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

/* 공유 계산기 */
.share-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 8px 0;
}

.share-calc-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  transition: all 0.2s;
}
.share-calc-item:hover {
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 4px 16px rgba(139,92,246,0.1);
}

.share-calc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.share-emoji { font-size: 24px; }
.share-name { font-weight: 700; flex: 1; font-size: 14px; }
.share-total { font-size: 13px; color: var(--text-muted); }

.share-calc-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.share-calc-controls label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.share-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-stepper button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--text-primary);
  font-weight: 700;
  transition: all 0.15s;
}
.share-stepper button:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.share-count {
  font-size: 20px;
  font-weight: 800;
  min-width: 24px;
  text-align: center;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.share-result {
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
  padding: 10px;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.share-result strong {
  color: #10b981;
  font-size: 18px;
}

/* 또래 비교 */
.peer-bars { display: flex; flex-direction: column; gap: 14px; }

.peer-bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 90px;
  align-items: center;
  gap: 12px;
}

.peer-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.peer-amount { font-size: 13px; font-weight: 700; text-align: right; color: var(--text-primary); }

.peer-bar-wrap {
  background: var(--bg-secondary);
  border-radius: 8px;
  height: 12px;
  overflow: hidden;
}

.peer-bar {
  height: 100%;
  border-radius: 8px;
  transition: width 1s ease;
}

/* Firebase 섹션 */
.firebase-card { border-color: rgba(251,191,36,0.3) !important; }

.firebase-coming {
  text-align: center;
  padding: 32px 16px;
}
.firebase-icon { font-size: 48px; margin-bottom: 16px; }
.firebase-coming h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.firebase-coming p { color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }

.btn-firebase {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(139,92,246,0.4);
}
.btn-firebase:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,92,246,0.5); }

/* ─────────────────── AI 인사이트 향상 ─────────────────── */
.insight-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 10px;
  border: 1px solid;
}
.insight-item.insight-warning {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.25);
}
.insight-item.insight-good {
  background: rgba(16,185,129,0.08);
  border-color: rgba(16,185,129,0.25);
}
.insight-item.insight-info {
  background: rgba(96,165,250,0.08);
  border-color: rgba(96,165,250,0.25);
}
.insight-icon { font-size: 24px; flex-shrink: 0; }
.insight-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.insight-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

