:root {
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-base: 1rem;
  --font-md: 1.125rem;
  --font-lg: 1.25rem;
  --font-xl: 1.5rem;
  --font-2xl: 2rem;
  --bg-primary: #f8f8f8;
  --bg-secondary: rgba(248, 248, 248, 0.7);
  --bg-card: #ffffff;
  --text-primary: #555;
  --text-secondary: #777;
  --accent: #CCCCFF;
  --accent-hover: #b3b3ff;
  --mint: #CCFFCC;
  --mint-hover: #b3ffb3;
  --blue-link: #1E88E5;
  --border-color: #e8e8e8;
  --border-strong: #d0d9f0;
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 6px 12px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 20px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  font-family: 'Pretendard', 'Noto Sans KR', 'Malgun Gothic', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', sans-serif;
  background: linear-gradient(90deg, rgba(204, 204, 255, 0.3) 0%, rgba(204, 255, 204, 0.3) 100%);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  letter-spacing: 0;
  min-height: 100vh;
}
a { color: inherit; }
.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.app-header {
  padding: 0;
  text-align: center;
  top: 0;
  z-index: 1000;
  height: 190px;
  background-image: url('/static/images/hotdealdad_logo.png');
  background-repeat: no-repeat;
  background-position: center 10px;
  background-size: auto 130px;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}
.header-logo-link {
  display: block;
  width: 100%;
  height: 140px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1001;
  cursor: pointer;
  text-decoration: none;
}
.address-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 137px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 350px;
  padding: 0 20px;
  z-index: 1000;
}
.address-input {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background-color: rgba(248, 248, 248, 0.9);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  box-shadow: var(--shadow-sm);
  outline: none;
}
.header-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  flex-wrap: wrap;
}
.keyword-alert-wrapper { position: relative; display: inline-block; }
.new-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  background: linear-gradient(45deg, #FFB3B3, #FFC8C8);
  color: #994444;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(255, 179, 179, 0.4);
}
.new-badge::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #FFB3B3;
}
.page, .footer-inner {
  width: min(100%, 850px);
  margin: 0 auto;
  padding: 0 15px;
}
.mini-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px auto 10px;
  color: var(--text-secondary);
  font-size: var(--font-sm);
}
.mini-nav a {
  text-decoration: none;
  color: var(--text-secondary);
}
.breadcrumb {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  margin: 16px 0 0;
  text-align: center;
}
.breadcrumb a {
  text-decoration: none;
  color: var(--blue-link);
}
.hero {
  margin: 14px 0 10px;
  padding: 24px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  background-color: #f0f4ff;
  color: #5a6d9a;
  border: 1px solid #d0d9f0;
  font-size: var(--font-xs);
  font-weight: 600;
  margin: 0 0 10px;
}
h1 {
  font-size: clamp(1.65rem, 4vw, var(--font-2xl));
  line-height: 1.28;
  margin: 0 0 14px;
  color: var(--text-primary);
  font-weight: 700;
}
.lead {
  max-width: 720px;
  margin: 0 auto 10px;
  font-size: var(--font-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}
.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}
.button,
.keyword-alert-button,
.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: #444;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 36px;
  border: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  white-space: nowrap;
}
.button:hover,
.keyword-alert-button:hover,
.home-button:hover {
  color: #333;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transform: scale(1.03);
}
.button.primary,
.keyword-alert-button { background-color: var(--accent); }
.button.primary:hover,
.keyword-alert-button:hover { background-color: var(--accent-hover); }
.button.secondary,
.home-button { background-color: var(--mint); }
.button.secondary:hover,
.home-button:hover { background-color: var(--mint-hover); }
.notice {
  max-width: 760px;
  margin: 16px auto 0;
  padding: 10px 14px;
  background: #f0f7f0;
  border: 1px solid #d0e0d0;
  border-radius: var(--radius-sm);
  color: #5a8a7a;
  font-size: var(--font-sm);
  line-height: 1.6;
}
.content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px 20px;
  margin: 14px 0 26px;
}
h2 {
  font-size: var(--font-lg);
  margin: 28px 0 10px;
  color: var(--text-primary);
  letter-spacing: 0;
  line-height: 1.35;
}
h2:first-child { margin-top: 0; }
h3 {
  font-size: var(--font-md);
  margin: 22px 0 8px;
  letter-spacing: 0;
}
p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: var(--font-sm);
}
ul {
  margin: 10px 0 18px;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: var(--font-sm);
}
li { margin: 4px 0; }
.quick-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 18px 16px;
  margin: 0 0 24px;
}
.faq details {
  margin: 8px 0;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: box-shadow 0.2s ease;
}
.faq details[open] {
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: var(--font-sm);
  color: var(--text-primary);
  font-weight: 600;
  position: relative;
  padding: 4px 24px 4px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-weight: 600;
}
.faq details[open] summary::after { content: "−"; }
.faq p {
  margin: 10px 2px 4px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.related-links {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-color);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.related-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.related-link:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.related-keyword {
  font-size: var(--font-sm);
  font-weight: 700;
  line-height: 1.35;
}
.related-group {
  margin-top: 3px;
  font-size: var(--font-xs);
  color: var(--text-secondary);
  line-height: 1.35;
}
.site-footer {
  max-width: 850px;
  margin: 32px auto 20px;
  padding: 20px 16px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: var(--font-xs);
  line-height: 1.6;
}
@media (max-width: 640px) {
  .app-header {
    height: 148px;
    background-position: center 5px;
    background-size: auto 100px;
  }
  .header-logo-link { height: 100px; }
  .address-bar {
    top: 106px;
    max-width: 320px;
    padding: 0 18px;
  }
  .address-input {
    padding: 7px 10px;
    font-size: 12px;
  }
  .header-buttons {
    gap: 8px;
    padding: 8px 10px;
  }
  .page { padding: 0 12px; }
  .breadcrumb { margin-top: 12px; }
  .hero {
    padding: 20px 14px;
    margin-top: 12px;
  }
  .content { padding: 18px 14px; }
  .button { width: 100%; }
  .new-badge {
    font-size: 9px;
    padding: 2px 5px;
    top: -6px;
    right: -10px;
  }
}
