/* Advent Friends — Festive Holiday Design System */
:root {
  /* Classic Pine & Warm Cream (inspired by bold-stroke festive illustration) */
  --bg-top: #0f3d33;
  --bg-mid: #145043;
  --bg-bottom: #0a2922;
  --surface: rgba(255, 248, 234, 0.08);
  --surface-strong: rgba(255, 248, 234, 0.14);
  --card-bg: #fff8ea;
  --card-ink: #1b2822;
  --ink: #fff8ea;
  --ink-muted: #d6e4dd;
  --accent: #f1c453;
  --accent-strong: #ffd875;
  --accent-ink: #172721;
  --crimson: #cf3838;
  --crimson-hover: #e34747;
  --border: rgba(255, 248, 234, 0.24);
  --border-dashed: rgba(255, 248, 234, 0.42);
  --shadow-lg: 0 22px 54px rgba(4, 18, 14, 0.46);
  --shadow-sm: 0 8px 20px rgba(4, 18, 14, 0.28);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --font-display: Georgia, "Times New Roman", "Palatino Linotype", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="winter"] {
  --bg-top: #091326;
  --bg-mid: #132544;
  --bg-bottom: #070e1d;
  --surface: rgba(226, 240, 255, 0.08);
  --surface-strong: rgba(226, 240, 255, 0.14);
  --ink: #f3f7ff;
  --ink-muted: #bfd2ee;
  --accent: #7cc4ff;
  --accent-strong: #a7d8ff;
  --accent-ink: #081526;
  --crimson: #2f74d0;
  --crimson-hover: #3b86e8;
  --border: rgba(185, 218, 255, 0.2);
  --border-dashed: rgba(165, 210, 255, 0.38);
}

[data-theme="crimson"] {
  --bg-top: #4c0e18;
  --bg-mid: #6e1625;
  --bg-bottom: #2c070d;
  --surface: rgba(255, 242, 232, 0.08);
  --surface-strong: rgba(255, 242, 232, 0.14);
  --ink: #fff7f0;
  --ink-muted: #f2cfd5;
  --accent: #f6d379;
  --accent-strong: #ffe59e;
  --accent-ink: #2b070e;
  --crimson: #c82333;
  --crimson-hover: #e03243;
  --border: rgba(255, 224, 210, 0.24);
  --border-dashed: rgba(255, 224, 210, 0.42);
}

[data-theme="gingerbread"] {
  --bg-top: #26140c;
  --bg-mid: #3c2115;
  --bg-bottom: #1b0e08;
  --surface: rgba(255, 238, 214, 0.08);
  --surface-strong: rgba(255, 238, 214, 0.14);
  --ink: #fff6e8;
  --ink-muted: #e3c8af;
  --accent: #f0a84b;
  --accent-strong: #ffbe6b;
  --accent-ink: #241106;
  --crimson: #b83b28;
  --crimson-hover: #d14833;
  --border: rgba(255, 219, 178, 0.2);
  --border-dashed: rgba(255, 212, 160, 0.38);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background: radial-gradient(circle at 20% 0%, var(--bg-mid) 0%, var(--bg-top) 48%, var(--bg-bottom) 100%);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Festive string lights */
.string-lights {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  height: 26px;
  overflow: hidden;
  pointer-events: none;
  border-top: 2px solid rgba(255, 240, 200, 0.18);
}

.string-lights span {
  width: 9px;
  height: 14px;
  border-radius: 50% 50% 50% 50% / 35% 35% 65% 65%;
  margin-top: 4px;
  display: inline-block;
  animation: twinkle 2.8s infinite ease-in-out alternate;
}

.string-lights span:nth-child(4n+1) { background: #ffd166; box-shadow: 0 0 12px #ffd166; animation-delay: 0s; }
.string-lights span:nth-child(4n+2) { background: #ef476f; box-shadow: 0 0 12px #ef476f; animation-delay: 0.7s; }
.string-lights span:nth-child(4n+3) { background: #7ae582; box-shadow: 0 0 12px #7ae582; animation-delay: 1.4s; }
.string-lights span:nth-child(4n)   { background: #7cc4ff; box-shadow: 0 0 12px #7cc4ff; animation-delay: 2.1s; }

@keyframes twinkle {
  0% { opacity: 0.45; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1.08); }
}

/* Gentle CSS Snowfall */
.snow-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.flake {
  position: absolute;
  top: -12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  animation: snowfall linear infinite;
}

@keyframes snowfall {
  0% { transform: translateY(-10px) translateX(0); opacity: 0; }
  10% { opacity: 0.75; }
  90% { opacity: 0.65; }
  100% { transform: translateY(105vh) translateX(28px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .flake, .string-lights span { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}

/* Layout Containers */
.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

.site-header {
  position: relative;
  z-index: 10;
  padding: 14px 0 10px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--crimson), #8f1d1d);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.92rem;
}

.header-nav a {
  color: var(--ink-muted);
}

.header-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* Hero Section */
.hero {
  padding: 20px 0 40px;
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 14px 0 28px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0 0 12px;
  line-height: 1.18;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.hero-sub {
  font-size: 1.04rem;
  color: var(--ink-muted);
  margin: 0 0 20px;
  max-width: 52ch;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

/* Forms & Inputs */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.input, .textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(8, 14, 12, 0.36);
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 185, 92, 0.22);
}

.textarea {
  min-height: 106px;
  resize: vertical;
}

.char-counter {
  text-align: right;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* Theme Picker */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.theme-pill {
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.theme-pill:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.theme-pill.active {
  border-color: var(--accent-strong);
  background: rgba(229, 185, 92, 0.16);
  box-shadow: 0 0 0 2px rgba(229, 185, 92, 0.2);
}

.theme-swatch {
  width: 28px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease, background 0.14s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.btn-crimson {
  background: linear-gradient(180deg, var(--crimson-hover), var(--crimson));
  color: #fff;
}

.btn-ghost {
  background: var(--surface-strong);
  border-color: var(--border);
  color: var(--ink);
}

.btn-danger {
  background: rgba(201, 52, 52, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fecaca;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.84rem;
  border-radius: 10px;
}

.btn-full {
  width: 100%;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* 24-Day Advent Calendar Grid */
.calendar-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.calendar-shell-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 920px) {
  .calendar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .calendar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}

.preview-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 520px) {
  .preview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Individual Day Tile */
.day-tile {
  position: relative;
  aspect-ratio: 1 / 1.06;
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  cursor: pointer;
  border: 1.5px dashed var(--border-dashed);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
  overflow: hidden;
}

.day-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
}

.day-tile.filled {
  border-style: solid;
  border-color: rgba(255, 240, 210, 0.28);
  background: rgba(0, 0, 0, 0.2);
  padding: 6px;
}

.day-tile.openable {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(229, 185, 92, 0.35), 0 8px 20px rgba(0, 0, 0, 0.28);
}

.day-tile.openable::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(255, 232, 160, 0.18), transparent 60%);
  pointer-events: none;
}

.day-num {
  position: relative;
  z-index: 2;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--ink);
}

.day-empty-plus {
  font-size: 1.4rem;
  opacity: 0.75;
  line-height: 1;
}

.day-empty-cta {
  font-size: 0.7rem;
  color: var(--ink-muted);
}

.gift-svg-wrap {
  width: 78%;
  max-width: 76px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s ease;
}

.day-tile:hover .gift-svg-wrap {
  transform: scale(1.06) rotate(-2deg);
}

.gift-sticker {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  font-size: 0.95rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.day-author {
  position: relative;
  z-index: 2;
  width: 100%;
  font-size: 0.73rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

.day-badge {
  position: relative;
  z-index: 2;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--accent-strong);
  letter-spacing: 0.02em;
}

/* My Calendars List */
.my-calendars {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.my-cal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  margin-top: 8px;
}

.my-cal-meta {
  min-width: 0;
}

.my-cal-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-cal-code {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* Share Toolbar on Calendar Page */
.cal-hero {
  padding: 18px 0 22px;
}

.cal-header-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-banner {
  margin: 14px 0 18px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(229, 185, 92, 0.14);
  border: 1px solid rgba(229, 185, 92, 0.35);
  color: var(--ink);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Content / SEO Sections */
.section {
  padding: 46px 0;
}

.section-header {
  max-width: 680px;
  margin-bottom: 24px;
}

.section-header p {
  color: var(--ink-muted);
  margin: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 780px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: var(--accent);
  color: var(--accent-ink);
  margin-bottom: 12px;
}

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 720px) {
  .ideas-grid {
    grid-template-columns: 1fr;
  }
}

.idea-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}

.idea-list li {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 0.93rem;
}

/* Accordion FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent-strong);
  flex-shrink: 0;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item p {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 10, 8, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  background: #14281f;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalPop 0.22s ease-out;
}

[data-theme="winter"] .modal-card { background: #10203b; }
[data-theme="crimson"] .modal-card { background: #4a0e19; }
[data-theme="gingerbread"] .modal-card { background: #2f1a10; }

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Wrap & Sticker Pickers */
.wrap-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.wrap-option {
  cursor: pointer;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 8px 6px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
}

.wrap-option.active {
  border-color: var(--accent-strong);
  background: rgba(229, 185, 92, 0.16);
}

.sticker-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sticker-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  font-size: 1.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sticker-btn.active {
  border-color: var(--accent-strong);
  background: rgba(229, 185, 92, 0.22);
  transform: scale(1.06);
}

/* Unwrap Note Card */
.note-letter {
  background: var(--card-bg);
  color: var(--card-ink);
  border-radius: 18px;
  padding: 22px;
  margin: 14px 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border: 2px solid #ecd9b5;
  animation: unwrapBounce 0.45s cubic-bezier(0.2, 1.3, 0.4, 1);
}

@keyframes unwrapBounce {
  0% { transform: scale(0.75) rotate(-3deg); opacity: 0; }
  65% { transform: scale(1.03) rotate(1deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

.note-letter-msg {
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 14px;
}

.note-letter-from {
  font-size: 0.92rem;
  font-weight: 700;
  color: #7c4a1d;
  text-align: right;
}

.viral-cta-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(229, 185, 92, 0.18), rgba(201, 52, 52, 0.16));
  border: 1px solid rgba(229, 185, 92, 0.4);
  text-align: center;
}

.confetti-piece {
  position: fixed;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  z-index: 200;
  pointer-events: none;
  animation: confettiDrop 1.2s ease-out forwards;
}

@keyframes confettiDrop {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 250;
  background: #141c17;
  color: #fff;
  border: 1px solid var(--accent);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* AdSense Slot (clean, unobtrusive) */
.ad-slot-wrapper {
  margin: 24px auto;
  text-align: center;
  min-height: 1px;
}

/* Legal Pages */
.prose {
  max-width: 760px;
  margin: 24px auto 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
}

.prose h1 { font-size: 2rem; margin-bottom: 8px; }
.prose h2 { font-size: 1.3rem; margin-top: 26px; }
.prose p, .prose li { color: var(--ink-muted); }

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--ink-muted);
}

.footer-links a:hover {
  color: var(--ink);
}

.story-preview-img {
  width: 100%;
  max-width: 260px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
  margin: 12px auto;
  box-shadow: var(--shadow-sm);
}

.error-text {
  color: #fca5a5;
  font-size: 0.86rem;
  margin-top: 8px;
}

.muted-copy {
  color: var(--ink-muted);
  font-size: 0.94rem;
  line-height: 1.62;
}

/* Header nav responsive wrap */
@media (max-width: 700px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .header-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.86rem;
  }
}

/* 4-theme grid */
.theme-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

/* Live Christmas Countdown Bar */
.countdown-bar {
  margin: 8px 0 14px;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 248, 234, 0.11), rgba(0, 0, 0, 0.24));
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.countdown-today {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.countdown-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-strong);
  box-shadow: 0 0 12px var(--accent-strong);
  flex-shrink: 0;
}

.countdown-clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cd-unit {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

.cd-unit strong {
  font-size: 1rem;
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}

.cd-unit small {
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cd-sep {
  font-weight: 700;
  color: var(--ink-muted);
}

.cd-label {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-left: 2px;
}

/* Interactive Preview Theme Switcher & Hints */
.preview-theme-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.preview-theme-chip {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.24);
  color: var(--ink-muted);
  font-size: 0.76rem;
  font-weight: 600;
  font-family: inherit;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.preview-theme-chip:hover,
.preview-theme-chip.active {
  border-color: var(--accent-strong);
  color: var(--ink);
  background: rgba(241, 196, 83, 0.16);
}

.chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.preview-hint-bar {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.preview-hint-bar strong {
  color: var(--accent-strong);
}

/* Interactive Tile Animations */
@keyframes lockShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px) rotate(-2deg); }
  40% { transform: translateX(5px) rotate(2deg); }
  60% { transform: translateX(-4px) rotate(-1deg); }
  80% { transform: translateX(4px) rotate(1deg); }
}

.day-tile.shake {
  animation: lockShake 0.42s ease-in-out;
  border-color: #fca5a5 !important;
}

@keyframes giftPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12) rotate(-3deg); }
  100% { transform: scale(1); }
}

.day-tile.pop-unwrap {
  animation: giftPop 0.38s cubic-bezier(0.2, 1.3, 0.4, 1);
}

/* Module A: 6 Use-Case Cards */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 920px) {
  .use-cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
}

.use-case-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.use-case-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.use-case-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.use-case-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.24);
  color: var(--accent-strong);
}

.use-case-sub {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin: 0 0 8px;
}

.use-case-tip {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0;
}

/* Module B: 24 Note Ideas Filterable Grid */
.section-header-row {
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-tab {
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-tab:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.filter-tab.active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent-strong);
}

.idea-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 920px) {
  .idea-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .idea-cards-grid {
    grid-template-columns: 1fr;
  }
}

.idea-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.idea-card.is-hidden {
  display: none;
}

.idea-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.idea-day-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(241, 196, 83, 0.18);
  border: 1px solid rgba(241, 196, 83, 0.4);
  color: var(--accent-strong);
}

.idea-cat-tag {
  font-size: 0.74rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.idea-card-text {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink);
  line-height: 1.55;
}

.idea-card-foot {
  display: flex;
  justify-content: flex-end;
}

.section-inline-cta {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.section-inline-cta a {
  font-weight: 700;
}

/* Module C: Themes & Wraps Showcase */
.theme-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 960px) {
  .theme-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .theme-showcase-grid {
    grid-template-columns: 1fr;
  }
}

.theme-showcase-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.theme-showcase-card:hover {
  transform: translateY(-2px);
}

.theme-showcase-card.active {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 2px rgba(241, 196, 83, 0.22);
}

.theme-preview-banner {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.theme-mini-doors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.theme-mini-doors span {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 800;
  color: #fff;
}

.theme-showcase-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.theme-showcase-body h3 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.theme-tagline {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin: 0 0 8px;
}

.theme-desc {
  font-size: 0.86rem;
  color: var(--ink-muted);
  margin: 0 0 14px;
  flex: 1;
}

.wrap-studio-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
}

.wrap-studio-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.stickers-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sticker-chip {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.wrap-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 900px) {
  .wrap-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .wrap-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.wrap-gallery-card {
  cursor: pointer;
  background: rgba(0, 0, 0, 0.22);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  color: var(--ink);
  text-align: center;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.wrap-gallery-card:hover,
.wrap-gallery-card.active {
  transform: translateY(-2px);
  border-color: var(--accent-strong);
  background: rgba(241, 196, 83, 0.14);
}

.wrap-gallery-svg {
  width: 64px;
  height: 64px;
}

.wrap-gallery-name {
  font-size: 0.84rem;
  font-weight: 700;
}

.wrap-gallery-vibe {
  font-size: 0.72rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

/* Module D: Comparison Table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 560px;
}

.compare-table th,
.compare-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}

.compare-table thead th {
  background: rgba(0, 0, 0, 0.28);
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
}

.compare-table thead th:last-child {
  color: var(--accent-strong);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody th {
  font-weight: 700;
  color: var(--ink);
}

.cmp-trad {
  color: var(--ink-muted);
}

.cmp-online {
  color: var(--accent-strong);
  background: rgba(241, 196, 83, 0.06);
}

/* Module E: Tradition & Guide */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

@media (max-width: 780px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

.tips-ordered {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 0.93rem;
}

.tips-ordered strong {
  color: var(--ink);
}

.bottom-cta-banner {
  padding: 22px 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(241, 196, 83, 0.18), rgba(207, 56, 56, 0.16));
  border: 1px solid rgba(241, 196, 83, 0.45);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bottom-cta-banner h3 {
  margin-bottom: 4px;
  font-size: 1.32rem;
}

/* Subpage Helpers */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin: 12px 0 18px;
}

.subpage-hero {
  padding: 8px 0 22px;
  max-width: 760px;
}

.invite-script-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 24-Bulb Holiday Lights Progress Bar */
.lights-progress {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.lights-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.84rem;
}

.lights-title {
  font-weight: 700;
  color: var(--ink);
}

.lights-count {
  font-weight: 700;
  color: var(--accent-strong);
}

.lights-row {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 5px;
  padding-top: 4px;
  border-top: 2px solid rgba(255, 248, 234, 0.16);
}

@media (max-width: 720px) {
  .lights-row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    row-gap: 8px;
  }
}

.light-bulb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  border-radius: 50% 50% 45% 45% / 38% 38% 62% 62%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.62rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.light-bulb.lit {
  color: #161c18;
  border-color: rgba(255, 255, 255, 0.7);
}

.light-bulb.lit:nth-child(4n+1) { background: #ffd166; box-shadow: 0 0 10px rgba(255, 209, 102, 0.85); }
.light-bulb.lit:nth-child(4n+2) { background: #ff6b8b; box-shadow: 0 0 10px rgba(255, 107, 139, 0.85); }
.light-bulb.lit:nth-child(4n+3) { background: #7ae582; box-shadow: 0 0 10px rgba(122, 229, 130, 0.85); }
.light-bulb.lit:nth-child(4n)   { background: #7cc4ff; box-shadow: 0 0 10px rgba(124, 196, 255, 0.85); }

.light-bulb.opened {
  transform: scale(1.08);
  outline: 2px solid #fff8ea;
  outline-offset: 1px;
}

/* Opened & Ready-to-Unwrap Day Tile States */
.day-tile.ready-unwrap {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1.5px rgba(241, 196, 83, 0.5), 0 8px 22px rgba(0, 0, 0, 0.34);
  animation: gentlePulse 2.4s infinite ease-in-out;
}

@keyframes gentlePulse {
  0%, 100% { box-shadow: 0 0 0 1.5px rgba(241, 196, 83, 0.45), 0 8px 20px rgba(0, 0, 0, 0.3); }
  50% { box-shadow: 0 0 0 3px rgba(255, 216, 117, 0.72), 0 10px 26px rgba(241, 196, 83, 0.25); }
}

.day-tile.opened {
  border-style: solid;
  border-color: rgba(255, 248, 234, 0.5);
  background: linear-gradient(160deg, rgba(255, 248, 234, 0.16), rgba(0, 0, 0, 0.22));
}

.day-tile.opened .day-badge {
  color: #bbf7d0;
}

/* Owner Key Recovery Box */
.key-box {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--accent-strong);
  margin: 10px 0 12px;
}

/* GEO Quick Answer Box & Topic Cluster Links */
.geo-summary-box {
  margin: 10px 0 28px;
  padding: 20px 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(241, 196, 83, 0.13), rgba(0, 0, 0, 0.24));
  border: 1px solid rgba(241, 196, 83, 0.4);
  box-shadow: var(--shadow-sm);
}

.geo-summary-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 8px;
}

.geo-summary-answer {
  margin: 0 0 12px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink);
}

.geo-facts-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.guides-cluster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 720px) {
  .guides-cluster-grid {
    grid-template-columns: 1fr;
  }
}

.guide-link-card {
  display: block;
  color: var(--ink);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.guide-link-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-strong);
  text-decoration: none;
}
