/* ===== KopiMums Custom CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  --background: hsl(40, 30%, 97%);
  --foreground: hsl(160, 20%, 15%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(160, 20%, 15%);
  --popover: hsl(0, 0%, 100%);
  --popover-foreground: hsl(160, 20%, 15%);
  --primary: hsl(168, 55%, 38%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(35, 60%, 93%);
  --secondary-foreground: hsl(30, 40%, 20%);
  --muted: hsl(40, 20%, 94%);
  --muted-foreground: hsl(160, 10%, 40%);
  --accent: hsl(168, 35%, 88%);
  --accent-foreground: hsl(168, 40%, 18%);
  --destructive: hsl(0, 84%, 60%);
  --destructive-foreground: hsl(0, 0%, 100%);
  --border: hsl(40, 15%, 88%);
  --input: hsl(40, 15%, 88%);
  --ring: hsl(168, 55%, 38%);
  --radius: 0.75rem;
  --warm: hsl(30, 45%, 93%);
  --warm-foreground: hsl(30, 35%, 25%);
  --sage: hsl(150, 30%, 90%);
  --sage-foreground: hsl(150, 25%, 22%);
  --lavender: hsl(260, 30%, 93%);
  --lavender-foreground: hsl(260, 25%, 28%);
  --kopi: hsl(25, 50%, 30%);
  --kopi-foreground: hsl(35, 60%, 93%);
}

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

body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Quicksand', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Nunito', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color .2s;
}

/* ===== Container ===== */
.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

@media(min-width:640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media(min-width:1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ===== Navbar ===== */
.km-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.km-navbar .nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.km-navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.km-navbar .logo svg {
  height: 24px;
  width: 24px;
  color: var(--primary);
}

.km-navbar .logo span {
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--foreground);
}

.km-navbar .logo .logo-accent {
  color: var(--primary);
}

.km-navbar .logo .logo-accent-2 {
  color: #4d3724;
}

.km-navbar .nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.km-navbar .nav-links a,
.nav-item-dropdown {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.km-navbar .nav-links a:hover,
.nav-item-dropdown:hover {
  color: var(--primary);
}

@media(min-width: 1024px) {
  .nav-links .dropdown {
    position: relative;
    padding: 1.25rem 0;
  }

  .nav-links .dropdown:hover>.dropdown-menu {
    display: block;
    top: 100%;
    margin: 0;
  }
}

.km-navbar .nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}

.btn-icon:hover {
  background: var(--muted);
  color: var(--primary);
}

.km-navbar .btn-join {
  display: none;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: .875rem;
  border: none;
  cursor: pointer;
  transition: background .2s;
}

.km-navbar .btn-join:hover {
  opacity: 0.9;
}

.km-navbar .hamburger {
  display: flex;
}

@media(min-width:768px) {
  .km-navbar .nav-links {
    display: flex;
  }

  .km-navbar .btn-join {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .km-navbar .hamburger {
    display: none;
  }
}

/* Mobile menu */
.km-mobile-menu {
  display: none;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 1rem 1rem;
}

.km-mobile-menu.open {
  display: block;
}

.km-mobile-menu a {
  display: block;
  padding: 0.5rem 0;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.km-mobile-menu a:hover {
  color: var(--primary);
}

.km-mobile-menu .btn-join-mobile {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: .875rem;
  border: none;
  cursor: pointer;
  text-align: center;
}

.mobile-nav-group {
  margin-bottom: 1.5rem;
}

.mobile-header-tree {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.mobile-header-tree svg {
  transition: transform 0.3s ease;
  color: var(--muted-foreground);
}

.mobile-nav-group.open .mobile-header-tree svg {
  transform: rotate(180deg);
}

.mobile-nav-content {
  display: none;
  padding-left: 0.5rem;
  margin-bottom: 1rem;
}

.mobile-nav-group.open .mobile-nav-content {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.km-mobile-menu .mobile-nav-group a {
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--foreground);
  display: block;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .875rem;
  padding: 0.625rem 1.25rem;
  border: none;
  cursor: pointer;
  font-family: 'Quicksand', sans-serif;
  transition: all .2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background: var(--muted);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
}

.btn-ghost:hover {
  background: var(--muted);
}

.btn-sm {
  font-size: .75rem;
  padding: 0.375rem 0.75rem;
}

.btn-lg {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}

.btn-pill {
  border-radius: 9999px;
}

.btn-full {
  width: 100%;
}

/* ===== Cards ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow .2s;
}

.card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.card-header {
  padding: 1.25rem 1.25rem 0;
}

.card-content {
  padding: 1.25rem;
}

.card-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--foreground);
  margin: 0;
}

.card-desc {
  font-size: .875rem;
  color: var(--muted-foreground);
  margin: 0.25rem 0 0;
}

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: .75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  line-height: 1.4;
}

.badge-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.badge-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
}

.badge-warm {
  background: var(--warm);
  color: var(--warm-foreground);
}

.badge-sage {
  background: var(--sage);
  color: var(--sage-foreground);
}

.badge-lavender {
  background: var(--lavender);
  color: var(--lavender-foreground);
}

.badge-accent {
  background: var(--accent);
  color: var(--accent-foreground);
}

.badge-pink {
  background: #fce7f3;
  color: #be185d;
}

.badge-green {
  background: #dcfce7;
  color: #15803d;
}

/* ===== Tabs ===== */
.tabs-list {
  display: flex;
  background: var(--muted);
  border-radius: var(--radius);
  padding: 0.25rem;
  gap: 0.25rem;
  overflow-x: auto;
}

.tab-trigger {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: .875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--muted-foreground);
  font-family: 'Quicksand', sans-serif;
  white-space: nowrap;
  transition: all .2s;
}

.tab-trigger.active,
.tab-trigger:hover {
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ===== Input ===== */
.input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .875rem;
  background: var(--card);
  color: var(--foreground);
  font-family: 'Quicksand', sans-serif;
  outline: none;
  transition: border .2s;
}

.input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(47, 147, 124, 0.15);
}

.input-icon {
  position: relative;
}

.input-icon>svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  height: 16px;
  width: 16px;
  color: var(--muted-foreground);
  pointer-events: none;
}

.input-icon .input {
  padding-left: 2.25rem;
  padding-right: 2.5rem;
}

.clear-input {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--muted-foreground);
  display: none;
  background: none;
  border: none;
  padding: 2px;
  border-radius: 50%;
  transition: all 0.2s;
  z-index: 5;
}

.clear-input:hover {
  color: var(--destructive);
}

.password-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  border-radius: 0.5rem;
}

.password-toggle svg {
  height: 18px;
  width: 18px;
  display: block;
}

.password-toggle:hover {
  color: var(--primary);
}

.password-toggle .eye-icon {
  display: none;
}

.password-toggle.active .eye-off-icon {
  display: none;
}

.password-toggle.active .eye-icon {
  display: block;
}

.textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .875rem;
  background: var(--card);
  color: var(--foreground);
  font-family: 'Quicksand', sans-serif;
  resize: vertical;
  outline: none;
  transition: border .2s;
}

.textarea:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(47, 147, 124, 0.15);
}

/* ===== Switch ===== */
.switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--muted);
  border-radius: 12px;
  cursor: pointer;
  border: none;
  transition: background .2s;
}

.switch.active {
  background: var(--primary);
}

.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform .2s;
}

.switch.active::after {
  transform: translateX(20px);
}

.input.error,
.textarea.error {
  border-color: var(--destructive) !important;
}

.input.error:focus,
.textarea.error:focus {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15) !important;
}

/* ===== Alert Banner ===== */
.alert-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
}

.alert-blue {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.alert-blue svg {
  color: #3b82f6;
}

.alert-blue .alert-title {
  color: #1e3a5f;
  font-weight: 600;
  font-size: .875rem;
}

.alert-blue .alert-text {
  color: #1d4ed8;
  font-size: .75rem;
}

.alert-amber {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.alert-amber svg {
  color: #f59e0b;
}

.alert-amber .alert-title {
  color: #78350f;
  font-weight: 600;
  font-size: .875rem;
}

.alert-amber .alert-text {
  color: #b45309;
  font-size: .75rem;
}

/* ===== Footer ===== */
.km-footer {
  background: var(--foreground);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0;
}

.km-footer .footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.km-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media(min-width:640px) {
  .km-footer .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width:768px) {
  .km-footer .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(min-width:1024px) {
  .km-footer .footer-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.km-footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.km-footer .footer-logo svg {
  height: 20px;
  width: 20px;
  color: var(--primary);
}

.km-footer .footer-logo span {
  font-family: 'Nunito', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
}

.km-footer .footer-logo .logo-accent {
  color: var(--primary);
}

.km-footer .footer-desc {
  font-size: .875rem;
  line-height: 1.6;
}

.km-footer h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: white;
  font-size: .875rem;
  margin: 0 0 0.75rem;
}

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

.km-footer ul li {
  margin-bottom: 0.5rem;
}

.km-footer ul a {
  font-size: .875rem;
  transition: color .2s;
}

.km-footer ul a:hover {
  color: var(--primary);
}

.km-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .75rem;
}

/* ===== Section helpers ===== */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 0.75rem;
}

.section-header p {
  color: var(--muted-foreground);
  max-width: 28rem;
  margin: 0 auto;
}

@media(min-width:768px) {
  .section-header h2 {
    font-size: 1.875rem;
  }
}

/* ===== Grid helpers ===== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

@media(min-width:640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media(min-width:768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width:1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* ===== Flex helpers ===== */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

/* ===== Text helpers ===== */
.text-xs {
  font-size: .75rem;
}

.text-sm {
  font-size: .875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

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

.text-muted {
  color: var(--muted-foreground);
}

.text-white {
  color: white;
}

.text-amber-600 {
  color: #d97706;
}

.text-green-600 {
  color: #16a34a;
}

.text-center {
  text-align: center;
}

.leading-relaxed {
  line-height: 1.625;
}

/* ===== Spacing ===== */
.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* ===== Max widths ===== */
.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-lg {
  max-width: 32rem;
}

.max-w-xl {
  max-width: 36rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ===== Special sections ===== */
.bg-warm-box {
  background: var(--warm);
}

.bg-sage-box {
  background: var(--sage);
}

.bg-lavender-box {
  background: var(--lavender);
}

.bg-secondary-box {
  background: var(--secondary);
}

.bg-muted-half {
  background: rgba(247, 244, 239, 0.5);
}

/* ===== Category Cards (Home) ===== */
.category-card {
  border-radius: 1rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: transform .2s;
}

.category-card:hover {
  transform: scale(1.02);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 46, 38, 0.6), rgba(26, 46, 38, 0.4), transparent);
}

.hero-content {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 1rem;
}

@media(min-width:768px) {
  .hero-content {
    padding: 8rem 2rem;
  }
}

.hero-content .hero-inner {
  max-width: 36rem;
}

.hero-content h1 {
  font-size: 1.875rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin: 0 0 1rem;
}

@media(min-width:768px) {
  .hero-content h1 {
    font-size: 3rem;
  }
}

.hero-content h1 span {
  color: var(--secondary);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  margin: 0 0 2rem;
}

.hero-search {
  display: flex;
  background: white;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 32rem;
}

.hero-search .search-icon {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  color: var(--muted-foreground);
}

.hero-search input {
  flex: 1;
  padding: 1rem 1rem 1rem 0;
  border: none;
  outline: none;
  font-size: .875rem;
  font-family: 'Quicksand', sans-serif;
  color: var(--foreground);
}

.hero-search input::placeholder {
  color: var(--muted-foreground);
}

.hero-search button {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0 1.5rem;
  border: none;
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  transition: opacity .2s;
}

.hero-search button:hover {
  opacity: 0.9;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: .75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: background .2s;
}

.hero-tag:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===== Community Post Card ===== */
.post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(47, 147, 124, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: .875rem;
  flex-shrink: 0;
}

/* ===== Star Rating ===== */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.star-rating svg {
  height: 16px;
  width: 16px;
  fill: var(--primary);
  color: var(--primary);
}

/* ===== Auth Page ===== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--background);
}

/* ===== Page wrapper ===== */
.page-wrapper {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  animation: fadeIn 0.5s ease-out;
}

@media(min-width:768px) {
  .page-wrapper {
    padding: 2rem 2rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Lucide Icons (inline SVG sizing) ===== */
.icon-xs {
  width: 12px;
  height: 12px;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-md {
  width: 20px;
  height: 20px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

.icon-xl {
  width: 32px;
  height: 32px;
}

/* ===== Transitions ===== */
.transition-shadow {
  transition: box-shadow .2s;
}

.transition-colors {
  transition: color .2s, background-color .2s;
}

.transition-all {
  transition: all .2s;
}

.cursor-pointer {
  cursor: pointer;
}

/* ===== Misc ===== */
.rounded-lg {
  border-radius: var(--radius);
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

.border {
  border: 1px solid var(--border);
}

.border-t {
  border-top: 1px solid var(--border);
}

/* ===== SweetAlert2 Custom Styling ===== */
.swal2-popup {
  font-family: 'Quicksand', sans-serif !important;
  border-radius: var(--radius) !important;
  padding: 2rem !important;
  background: var(--card) !important;
}

.swal2-title {
  font-family: 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  color: var(--foreground) !important;
  font-size: 1.5rem !important;
}

.swal2-html-container {
  font-family: 'Quicksand', sans-serif !important;
  color: var(--muted-foreground) !important;
  font-size: 1rem !important;
}

.swal2-confirm {
  background-color: var(--primary) !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  padding: 0.625rem 2rem !important;
  font-size: 0.875rem !important;
}

.swal2-cancel {
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  padding: 0.625rem 2rem !important;
  font-size: 0.875rem !important;
}

.swal2-icon.swal2-success {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
  background-color: var(--primary) !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
  border: 0.25em solid rgba(47, 147, 124, 0.3) !important;
}

/* ===== Dropdown ===== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  display: none;
  min-width: 200px;
  padding: 0.5rem 0;
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--foreground);
  text-align: left;
  list-style: none;
  background-color: var(--card);
  background-clip: padding-box;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: slideInUp 0.2s ease-out;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 1rem;
  clear: both;
  font-weight: 500;
  color: var(--muted-foreground);
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background-color: var(--muted);
  color: var(--primary);
}

.dropdown-divider {
  height: 0;
  margin: 0.5rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

/* ===== Offcanvas ===== */
.km-offcanvas {
  position: fixed;
  bottom: 0;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  background-color: var(--card);
  background-clip: padding-box;
  outline: 0;
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
}

.km-offcanvas-right {
  top: 0;
  right: 0;
  width: 400px;
  border-left: 1px solid var(--border);
  transform: translateX(100%);
}

.km-offcanvas.show {
  transform: none;
}

.km-offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.km-offcanvas-body {
  flex-grow: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.km-offcanvas-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
}

.km-offcanvas-backdrop.show {
  display: block;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-profile-user {
  height: 36px;
  width: 36px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border);
  transition: border-color 0.2s;
}

.btn-profile:hover .header-profile-user {
  border-color: var(--primary);
}

.shadow-md {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== Summary cards (gift registry) ===== */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.summary-card {
  text-align: center;
  padding: 1rem;
}

.summary-card .num {
  font-size: 1.5rem;
  font-weight: 700;
}

.summary-card .label {
  font-size: .75rem;
  color: var(--muted-foreground);
}

/* Category badge colors for activities */
.badge-cat-social {
  background: #fce7f3;
  color: #be185d;
}

.badge-cat-rejuve {
  background: #f3e8ff;
  color: #7c3aed;
}

.badge-cat-fitness {
  background: #dcfce7;
  color: #15803d;
}

.badge-cat-recovery {
  background: #dbeafe;
  color: #1d4ed8;
}

/* ===== Checklist / Handover ===== */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .2s;
}

.checklist-item:hover {
  background: var(--muted);
}

.checklist-item.done {
  background: rgba(150, 200, 180, 0.15);
  border-color: rgba(150, 200, 180, 0.3);
}

.checklist-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
}

.checklist-item.done .checklist-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.checklist-item.done .checklist-label,
.checklist-item.done .checklist-description {
  text-decoration: line-through;
  color: var(--muted-foreground);
}

/* ===== Interest selector (Village Matcher) ===== */
.interest-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: .875rem;
  cursor: pointer;
  background: transparent;
  font-family: 'Quicksand', sans-serif;
  transition: all .2s;
}

.interest-btn:hover {
  border-color: rgba(47, 147, 124, 0.4);
}

.interest-btn.selected {
  border-color: var(--primary);
  background: rgba(47, 147, 124, 0.1);
  color: var(--primary);
  font-weight: 600;
}

/* ===== Notification row ===== */
.notification-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.notification-row .noti-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: .875rem;
  font-weight: 500;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-destructive, .text-danger {
  color: #ef4444;
}

.mt-1 {
  margin-top: 0.25rem;
}

.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

.card {
  position: relative;
}

.bg-warm-box {
  background-color: var(--warm);
  border: 1px solid var(--border);
}

.bg-sage-box {
  background-color: var(--sage);
  border: 1px solid var(--border);
}

/* ===== Modal / Dialog ===== */
.km-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.km-modal-overlay.open {
  display: flex;
}

.km-modal-content {
  background: var(--card);
  width: 100%;
  max-width: 28rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  animation: modalScale 0.2s ease-out;
}

@keyframes modalScale {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.km-modal-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.km-modal-body {
  padding: 1.25rem;
}

/* Popover for share */
.share-popover {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 60;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  width: 14rem;
  padding: 0.75rem;
  display: none;
  margin-top: 0.5rem;
}

.share-popover.open {
  display: block;
}

.opacity-70 {
  opacity: 0.7;
}

.line-through {
  text-decoration: line-through;
}