/* =========================================================
   WISHORA — STYLE SHEET
   Table of contents:
   1. Variables / Reset
   2. Base typography
   3. Layout helpers
   4. Buttons
   5. Header + nav
   6. Mobile menu
   7. Hero
   8. Utilities  9. Hero search  10. Explore  11. Wish cards
   12. Categories  13. Coming soon  14. Why  15. Final CTA
   16. Inner pages  18. Footer  19. Responsive  20. Reduced motion
   ========================================================= */

/* ---------- 1. Variables / Reset ---------- */
:root {
  /* Brand colors */
  --color-bg: #FFF9FC;
  --color-primary: #8B5CF6;
  --color-primary-dark: #7440E0;
  --color-secondary: #EC4899;
  --color-accent: #F59E0B;
  --color-text: #171322;
  --color-text-soft: #6B6475;
  --color-card: #FFFFFF;
  --color-border: rgba(23, 19, 34, 0.08);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  /* Same look, slightly deeper stops: white text on these passes WCAG AA
     (>= 4.5:1). Use it wherever white text sits on the gradient. */
  --gradient-strong: linear-gradient(135deg, #7C3AED 0%, #DB2777 100%);
  /* Pink for small TEXT on light backgrounds (#EC4899 is only ~3.4:1). */
  --color-secondary-text: #BE185D;
  --gradient-soft: linear-gradient(160deg, rgba(139,92,246,0.10) 0%, rgba(236,72,153,0.08) 100%);

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(23, 19, 34, 0.06);
  --shadow-md: 0 12px 28px rgba(139, 92, 246, 0.14);
  --shadow-lg: 0 24px 48px rgba(139, 92, 246, 0.18);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Type */
  --font-en: 'Inter', system-ui, -apple-system, sans-serif;
  --font-bn: 'Noto Sans Bengali', 'Hind Siliguri', system-ui, sans-serif;

  /* Layout */
  --container-width: 1180px;
  --header-height: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-bn), var(--font-en);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="en"] body {
  font-family: var(--font-en), var(--font-bn);
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, p {
  margin: 0;
}

/* ---------- 2. Base typography ---------- */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #7C3AED;
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

/* Visible focus states everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-heading {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--color-text-soft);
  font-size: 1.02rem;
}

section {
  padding: 72px 0;
}

/* Author display rules (.btn, .music-player…) would otherwise override the
   HTML `hidden` attribute and show elements that should stay hidden. */
[hidden] {
  display: none !important;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  min-height: 44px;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-strong);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  background: rgba(139, 92, 246, 0.06);
  border-color: var(--color-primary);
}

.btn-light {
  background: #fff;
  color: var(--color-primary-dark);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.18);
}

.btn-large {
  padding: 15px 32px;
  font-size: 1.02rem;
}

.btn-header {
  display: none;
}

/* ---------- 5. Header + nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(255, 249, 252, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 249, 252, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 20px rgba(23, 19, 34, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--gradient-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg);
  top: 6px;
  left: 6px;
  opacity: 0.9;
}

.brand-spark {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
}

.brand-spark::before,
.brand-spark::after {
  content: "";
  position: absolute;
  background: #fff;
}

.brand-spark::before {
  width: 100%;
  height: 1.6px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.brand-spark::after {
  height: 100%;
  width: 1.6px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.brand-name {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--color-text-soft);
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-text);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 44px;
  color: var(--color-text-soft);
}

.lang-option {
  padding: 2px 4px;
  border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.lang-divider {
  color: var(--color-border);
}

body[data-lang="bn"] .lang-option[data-lang="bn"],
body[data-lang="en"] .lang-option[data-lang="en"] {
  color: var(--color-primary-dark);
  background: rgba(139, 92, 246, 0.1);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.menu-line {
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 6. Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 20px 40px rgba(23,19,34,0.08);
  padding: 20px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
  z-index: 400;
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.mobile-menu a {
  display: block;
  padding: 13px 10px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-menu a:hover {
  background: rgba(139, 92, 246, 0.06);
}

.mobile-cta {
  width: 100%;
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.hero-glow-a {
  width: 420px;
  height: 420px;
  background: var(--color-primary);
  top: -180px;
  right: -140px;
}

.hero-glow-b {
  width: 340px;
  height: 340px;
  background: var(--color-secondary);
  bottom: -160px;
  left: -120px;
  opacity: 0.35;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.hero-heading {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero-text {
  color: var(--color-text-soft);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-soft);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.hero-orb-1 {
  width: 220px;
  height: 220px;
  top: 10%;
  left: 6%;
  animation: float-slow 7s ease-in-out infinite;
}

.hero-orb-2 {
  width: 140px;
  height: 140px;
  bottom: 4%;
  right: 8%;
  animation: float-slow 8s ease-in-out infinite reverse;
}

.hero-star {
  position: absolute;
  color: var(--color-accent);
  font-size: 1.4rem;
  animation: twinkle 3s ease-in-out infinite;
}

.hero-star-1 { top: 8%; right: 20%; animation-delay: 0.2s; }
.hero-star-2 { bottom: 18%; left: 10%; animation-delay: 1s; font-size: 1rem; }
.hero-star-3 { top: 46%; right: 4%; animation-delay: 1.8s; font-size: 1.1rem; }

.greeting-card {
  position: relative;
  width: 240px;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: float-card 6s ease-in-out infinite;
}

.greeting-card-top {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.greeting-heart {
  color: var(--color-secondary);
}

.greeting-sparkle {
  color: var(--color-accent);
}

.greeting-title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 6px;
}

.greeting-sub {
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.greeting-ribbon {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 20px;
  background: var(--gradient-primary);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-16px) scale(1.03); }
}

@keyframes float-card {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ---------- 8. Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Bilingual markup: every string is rendered in both languages and the
   inactive one is hidden, so pages work without JavaScript. */
html[lang="bn"] [data-l="en"],
html[lang="en"] [data-l="bn"] {
  display: none !important;
}

/* Controls that only make sense with JavaScript stay hidden without it. */
html:not(.js) .js-only {
  display: none !important;
}

/* Future ad slots: layout hooks only. Hidden, empty, load nothing. */
.ad-slot {
  display: none !important;
}

.text-link {
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.soon-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(139, 92, 246, 0.1);
  color: var(--color-primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.soon-tag-light {
  background: rgba(139, 92, 246, 0.12);
}

/* ---------- 9. Hero search ---------- */
.hero-search {
  margin: 0 0 26px;
  max-width: 560px;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-field:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2), var(--shadow-md);
}

.search-icon {
  flex-shrink: 0;
  color: var(--color-text-soft);
}

.search-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: var(--color-text);
}

.search-input:focus,
.search-input:focus-visible {
  outline: none;
}

.search-input::placeholder {
  color: var(--color-text-soft);
  opacity: 1;
}

.search-input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-soft);
}

.search-clear:hover {
  background: rgba(139, 92, 246, 0.08);
  color: var(--color-text);
}

.search-submit {
  flex-shrink: 0;
  padding: 10px 22px;
}

.search-hint {
  margin: 10px 0 0 6px;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.search-feedback {
  margin: 8px 0 0 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.search-feedback a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-soon {
  white-space: normal;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
}

.hero-inner > *,
.soon-layout > *,
.footer-grid > * {
  min-width: 0;
}

/* ---------- 10. Explore: chips, status, groups ---------- */
.explore {
  padding-top: 56px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}

.chip.is-active {
  background: var(--gradient-strong);
  color: #fff;
  border-color: transparent;
}

.results-status {
  text-align: center;
  margin: 0 0 28px;
  font-size: 0.95rem;
  color: var(--color-text-soft);
}

.wish-group + .wish-group {
  margin-top: 40px;
}

.group-title {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

/* ---------- 11. Wish cards ---------- */
.wish-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.wish-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.wish-card:hover,
.wish-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(139, 92, 246, 0.3);
}

.wish-thumb {
  position: relative;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  overflow: hidden;
}

.wish-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.4), transparent 60%);
}

.wish-thumb-icon {
  position: relative;
  z-index: 1;
}

.wish-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.wish-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  position: relative;
  z-index: 2;
}

.wish-cat {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: -10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-secondary-text);
}

.wish-cat:hover {
  text-decoration: underline;
}

.featured-tag {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: rgba(236, 72, 153, 0.1);
  color: var(--color-secondary-text);
  font-size: 0.72rem;
  font-weight: 700;
}

.wish-title {
  font-size: 1.18rem;
  line-height: 1.4;
  margin: 0;
}

/* Stretched link: the whole card is one tap target, one tab stop. */
.wish-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.wish-link:focus-visible {
  outline: none;
}

.wish-card:has(.wish-link:focus-visible) {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.wish-desc {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.lang-chips li {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-soft);
}

.wish-open {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-primary-dark);
}

.wish-card.is-featured .wish-thumb {
  height: 170px;
}

/* ---------- Thumbnail themes ---------- */
.thumb-birthday { background: linear-gradient(135deg, #FDE68A, #F59E0B); }
.thumb-love { background: linear-gradient(135deg, #FBCFE8, #EC4899); }
.thumb-friendship { background: linear-gradient(135deg, #BFDBFE, #60A5FA); }
.thumb-anniversary { background: linear-gradient(135deg, #DDD6FE, #8B5CF6); }
.thumb-congratulations { background: linear-gradient(135deg, #BBF7D0, #22C55E); }
.thumb-thankyou { background: linear-gradient(135deg, #FDE68A, #FBBF24); }
.thumb-sorry { background: linear-gradient(135deg, #E0E7FF, #818CF8); }
.thumb-goodmorning { background: linear-gradient(135deg, #FEF3C7, #FB923C); }
.thumb-goodnight { background: linear-gradient(135deg, #C7D2FE, #4F46E5); }
.thumb-mother { background: linear-gradient(135deg, #FBCFE8, #F472B6); }
.thumb-father { background: linear-gradient(135deg, #BAE6FD, #0EA5E9); }
.thumb-sister { background: linear-gradient(135deg, #FBCFE8, #C084FC); }
.thumb-brother { background: linear-gradient(135deg, #A5F3FC, #22D3EE); }
.thumb-missing { background: linear-gradient(135deg, #E9D5FF, #A855F7); }
.thumb-special { background: linear-gradient(135deg, #FDE68A, #EC4899); }
.thumb-eid { background: linear-gradient(135deg, #BBF7D0, #10B981); }
.thumb-newyear { background: linear-gradient(135deg, #FDE68A, #8B5CF6); }
.thumb-default { background: var(--gradient-soft); }

.empty-state {
  max-width: 520px;
  margin: 8px auto 0;
  padding: 36px 24px;
  text-align: center;
  background: #fff;
  border: 1px dashed rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-md);
}

.empty-icon {
  font-size: 1.8rem;
  color: var(--color-accent);
  margin: 0 0 8px;
}

.empty-title {
  font-weight: 700;
  margin: 0 0 6px;
}

.empty-text,
.empty-soon {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  margin: 0 0 16px;
}

/* ---------- 12. Categories ---------- */
.categories {
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.05));
}

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

.cat-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.cat-icon {
  font-size: 1.7rem;
  line-height: 1;
}

.cat-name {
  font-size: 1.02rem;
  margin: 4px 0 0;
}

.cat-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--color-text-soft);
}

.cat-meta {
  margin: auto 0 0;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 700;
}

.cat-count {
  color: var(--color-text);
}

.cat-go {
  color: var(--color-primary-dark);
}

.cat-card.is-live {
  border-color: rgba(139, 92, 246, 0.28);
  box-shadow: var(--shadow-sm);
}

.cat-card.is-live:hover,
.cat-card.is-live:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cat-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
}

.cat-link:focus-visible {
  outline: none;
}

.cat-card:has(.cat-link:focus-visible) {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.cat-card.is-soon {
  background: rgba(255, 255, 255, 0.6);
  border-style: dashed;
}

.cat-card.is-soon .cat-icon {
  filter: grayscale(0.6);
}

/* ---------- 13. Coming soon ---------- */
.soon-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.creator-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--gradient-soft);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.creator-card:focus {
  outline: none;
}

.creator-card:target,
.creator-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.35);
}

.creator-card h3 {
  font-size: 1.3rem;
  margin: 14px 0 8px;
}

.creator-card p {
  margin: 0;
  color: var(--color-text-soft);
}

.planned-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.planned-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
}

.planned-icon {
  font-size: 1.2rem;
}

.planned-name {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---------- 14. Why Wishora ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.why-card {
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.why-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-strong);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
}

.why-card h3 {
  font-size: 1.08rem;
  margin: 0 0 6px;
}

.why-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--color-text-soft);
}

/* ---------- 15. Final CTA ---------- */
.final-cta {
  background: var(--gradient-strong);
  color: #fff;
  text-align: center;
}

.final-cta-inner {
  max-width: 640px;
}

.final-cta h2 {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin-bottom: 12px;
}

.final-cta p {
  color: #fff;
  margin: 0 0 26px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta-row .btn {
  white-space: normal;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
}

.btn-ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

/* ---------- 16. Inner pages (category / content) ---------- */
.page-hero {
  position: relative;
  padding: 36px 0 44px;
  overflow: hidden;
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero-compact {
  padding-bottom: 20px;
}

.breadcrumb {
  margin-bottom: 18px;
  font-size: 0.88rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "›";
  margin-inline-end: 8px;
  color: var(--color-text-soft);
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--color-text-soft);
}

.page-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin: 0 0 10px;
}

.page-title {
  font-size: clamp(1.9rem, 5.5vw, 2.8rem);
  line-height: 1.25;
  margin: 0 0 12px;
}

.page-lead {
  font-size: 1.1rem;
  color: var(--color-text-soft);
  max-width: 640px;
  margin: 0 0 14px;
}

.page-intro {
  max-width: 680px;
}

.page-intro p {
  margin: 0 0 12px;
}

.block-title {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: 0 0 18px;
}

.cat-wishes,
.howto,
.other {
  padding: 36px 0;
}

.howto-text {
  max-width: 640px;
  color: var(--color-text-soft);
  margin: 0 0 12px;
}

.howto-code {
  margin: 0 0 4px;
}

.howto-code code {
  display: block;
  padding: 14px 16px;
  overflow-wrap: anywhere;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  color: var(--color-text);
}

.prose-section {
  padding-top: 8px;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 34px 0 10px;
  scroll-margin-top: 90px;
}

.prose p,
.prose-list li {
  margin: 0 0 12px;
}

.prose-list {
  padding-inline-start: 1.2em;
  list-style: disc;
  margin: 0 0 12px;
}

.prose-updated {
  color: var(--color-text-soft);
  font-size: 0.9rem;
  margin: 0 0 4px;
}

.contact-box {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.contact-box p {
  margin: 0;
}

/* ---------- 18. Footer ---------- */
.site-footer {
  background: #171322;
  color: rgba(255,255,255,0.7);
  padding-top: 60px;
}

.site-footer .brand-name {
  -webkit-text-fill-color: #fff;
  background: none;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-desc {
  margin-top: 14px;
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.7;
}

.footer-col-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a,
.footer-lang-btn {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  background: none;
  border: none;
  padding: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-align: start;
}

.footer-col a:hover,
.footer-lang-btn:hover {
  color: #fff;
}

.footer-social {
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 14px !important;
}

.footer-bottom {
  padding: 22px 20px;
  text-align: center;
  font-size: 0.82rem;
}



/* ---------- 17. Creator ---------- */
.create-band {
  padding: 0 0 56px;
}

.create-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--gradient-soft);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.create-card h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  margin: 0 0 6px;
}

.create-card p {
  margin: 0;
  color: var(--color-text-soft);
}

.creator-section {
  padding: 8px 0 56px;
}

.creator {
  max-width: 820px;
  margin: 0 auto;
}

.nojs-box {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px;
  background: #fff;
  border: 1px dashed var(--color-primary);
  border-radius: var(--radius-md);
}

.steps {
  display: flex;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #857D91;
  background: #fff;
  font-weight: 700;
  color: var(--color-text);
}

.step.is-done .step-num {
  border-color: var(--color-primary-dark);
  background: rgba(139, 92, 246, 0.12);
  color: var(--color-primary-dark);
  font-size: 0;
}

.step.is-done .step-num::after {
  content: "\2713";
  font-size: 1rem;
}

.step.is-current .step-num {
  background: var(--gradient-strong);
  border-color: transparent;
  color: #fff;
}

.step.is-current .step-name {
  color: var(--color-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.step-caption {
  margin: 0 0 18px;
  font-weight: 700;
}

.notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.1);
  border-inline-start: 4px solid var(--color-primary-dark);
}

.notice-error {
  background: #FEE2E2;
  color: #7F1D1D;
  border-inline-start-color: #B91C1C;
  font-weight: 600;
}

.step-panel > h2 {
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  margin: 0 0 8px;
  scroll-margin-top: 90px;
}

.step-panel > h2:focus {
  outline: none;
}

.panel-hint {
  margin: 0 0 18px;
  color: var(--color-text-soft);
}

.fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
  min-width: 0;
}

.fieldset legend {
  padding: 0;
  margin-bottom: 8px;
  font-weight: 700;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.choice-card {
  display: block;
  position: relative;
  height: 100%;
  cursor: pointer;
}

.choice-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-height: 44px;
  padding: 16px;
  background: #fff;
  border: 2px solid #857D91;
  border-radius: var(--radius-md);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.choice-card:hover .choice-body {
  border-color: var(--color-primary-dark);
}

.choice-input:checked + .choice-body {
  border-color: var(--color-primary-dark);
  background: rgba(139, 92, 246, 0.07);
  box-shadow: 0 0 0 1px var(--color-primary-dark);
}

.choice-input:checked + .choice-body .choice-name::before {
  content: "\2713  ";
  color: var(--color-primary-dark);
}

.choice-input:focus-visible + .choice-body {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.choice-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.choice-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.choice-desc,
.choice-meta {
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.meta-label {
  font-weight: 600;
}

.choice-thumb {
  height: 90px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.choice-extra {
  margin: 6px 0 0;
}

.swatch {
  width: 100%;
  height: 28px;
  border-radius: 8px;
}

.soon-block {
  margin: 4px 0 20px;
  padding: 14px 16px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
}

.soon-block-title {
  margin: 0 0 4px;
  font-weight: 700;
}

.soon-block .panel-hint {
  margin-bottom: 10px;
}

.soon-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.soon-chips li {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(139, 92, 246, 0.08);
  color: var(--color-text);
  font-size: 0.88rem;
}

.field {
  margin: 0 0 22px;
}

.field > label,
.field .field-label {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

.req-badge {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 1px 9px;
  border-radius: var(--radius-pill);
  background: #F1EEF6;
  color: #4B4458;
  font-size: 0.72rem;
  font-weight: 700;
}

.req-badge.is-required {
  background: #FDE7F1;
  color: #9D174D;
}

.field-hint {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--color-text-soft);
}

.counter {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  margin-inline-start: 6px;
  font-weight: 600;
}

.input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
  border: 1.5px solid #857D91;
  border-radius: 12px;
}

.textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.input:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary-dark);
}

.input[aria-invalid="true"] {
  border-color: #B91C1C;
  box-shadow: 0 0 0 1px #B91C1C;
}

.field-error {
  margin: 6px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #B91C1C;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px 0 12px;
  background: #fff;
  border: 1.5px solid #857D91;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

/* The input fills the whole pill (a 44px+ target); the dot is drawn. */
.radio {
  position: relative;
}

.radio input {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.radio > span {
  position: relative;
  padding-inline-start: 30px;
}

.radio > span::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 2px solid #857D91;
  background: #fff;
}

.radio input:checked + span::before {
  border-color: var(--color-primary-dark);
  background: radial-gradient(circle, var(--color-primary-dark) 0 45%, #fff 50% 100%);
}

.radio:has(input:checked) {
  border-color: var(--color-primary-dark);
  background: rgba(139, 92, 246, 0.08);
  font-weight: 600;
}

.radio:has(input:focus-visible) {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.msg-default,
.msg-custom {
  margin-top: 12px;
}

.msg-quote {
  margin: 0;
  padding: 12px 14px;
  background: #fff;
  border-inline-start: 4px solid var(--color-primary-dark);
  border-radius: 8px;
  white-space: pre-line;
}

.step-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

.step-actions .btn {
  flex: 1 1 150px;
}

.step-actions > span {
  flex: 0 0 0;
}

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

.summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 16px;
  margin: 0 0 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.summary dt {
  font-weight: 700;
  color: var(--color-text-soft);
  font-size: 0.85rem;
  margin-top: 8px;
}

.summary dt:first-child {
  margin-top: 0;
}

.summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.summary-multiline {
  white-space: pre-line;
}

.preview-frame:focus,
.preview-frame:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.preview-frame {
  display: block;
  width: 100%;
  height: min(72vh, 640px);
  min-height: 420px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.share-box {
  margin-bottom: 12px;
}

.share-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
}

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

.share-actions .btn {
  flex: 1 1 140px;
}

.share-status {
  min-height: 1.7em;
  margin: 12px 0;
  font-weight: 700;
  color: #14532D;
}

.share-status.is-error {
  color: #7F1D1D;
}

.privacy-note {
  margin: 8px 0 0;
  padding: 12px 14px;
  background: rgba(245, 158, 11, 0.14);
  border-radius: 12px;
  font-size: 0.92rem;
}

@media (min-width: 640px) {
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .choice-grid-sm { grid-template-columns: repeat(3, 1fr); }
  .summary { grid-template-columns: max-content 1fr; }
  .summary dt { margin-top: 0; }
  .create-card { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (max-width: 639px) {
  .step-name { display: none; }
}

@media (min-width: 640px) {
  .step-caption { display: none; }
}

/* ---------- 19. Responsive ---------- */
@media (min-width: 640px) {
  .wish-grid { grid-template-columns: repeat(2, 1fr); }
  .is-featured-item { grid-column: 1 / -1; }
  .wish-card.is-featured { flex-direction: row; }
  .wish-card.is-featured .wish-thumb { height: auto; width: 42%; min-height: 220px; }
  .wish-card.is-featured .wish-body { padding: 28px; justify-content: center; }
  .wish-card.is-featured .wish-title { font-size: 1.5rem; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .planned-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .main-nav { display: block; }
  .btn-header { display: inline-flex; }
  .menu-toggle { display: none; }
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .soon-layout { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .wish-grid { grid-template-columns: repeat(3, 1fr); }
  .is-featured-item { grid-column: span 2; }
  .wish-grid > .is-featured-item:only-child { grid-column: 1 / -1; }
  .wish-card.is-featured .wish-thumb { width: 46%; }
}

@media (max-width: 420px) {
  .hero { padding: 40px 0 56px; }
  .hero-heading { font-size: 1.9rem; }
  .hero-actions .btn { width: 100%; }
  .search-submit { padding: 10px 16px; }
  .greeting-card { width: 200px; padding: 22px 18px; }
  .hero-visual { height: 280px; }
  section { padding: 56px 0; }
  .cat-card { padding: 16px 14px; }
}

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-orb,
  .hero-star,
  .greeting-card { animation: none !important; }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .wish-card:hover,
  .wish-card:focus-within,
  .cat-card.is-live:hover { transform: none; }
}
