:root {
  --color-background: #050816;
  --color-surface: rgba(15, 23, 42, 0.9);
  --color-surface-elevated: rgba(22, 31, 56, 0.85);
  --color-border: rgba(59, 72, 99, 0.4);
  --color-border-strong: rgba(148, 163, 184, 0.5);
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --color-primary: #8b5cf6;
  --color-primary-hover: #7c3aed;
  --color-secondary: #06b6d4;
  --color-success: #22c55e;
  --color-success-bg: rgba(34, 197, 94, 0.1);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-sm: 0.75rem;
  --shadow-soft: 0 20px 45px rgba(2, 6, 23, 0.35);
  --shadow-glow: 0 0 120px rgba(88, 28, 135, 0.25);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.08), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(6, 182, 212, 0.08), transparent 55%),
    var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Main content fade-in on page load */
.main-content {
  animation: contentFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

/* Auth pages fade-in on page load */
.auth-main,
.auth-container {
  animation: contentFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

@keyframes contentFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered element animations for app pages */
.page-header {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
  opacity: 0;
}

.page-container > section:first-of-type,
.points-overview-card,
.list-section:first-of-type,
.rewards-section:first-of-type {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
  opacity: 0;
}

.page-container > section:nth-of-type(2),
.list-section:nth-of-type(2),
.rewards-section:nth-of-type(2) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
  opacity: 0;
}

.page-container > section:nth-of-type(3),
.list-section:nth-of-type(3),
.rewards-section:nth-of-type(3) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
  opacity: 0;
}

/* Stagger cards within sections */
.task-card:nth-child(1),
.reward-card:nth-child(1),
.item-card:nth-child(1),
.stat-card:nth-child(1) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
  opacity: 0;
}

.task-card:nth-child(2),
.reward-card:nth-child(2),
.item-card:nth-child(2),
.stat-card:nth-child(2) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s forwards;
  opacity: 0;
}

.task-card:nth-child(3),
.reward-card:nth-child(3),
.item-card:nth-child(3),
.stat-card:nth-child(3) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
  opacity: 0;
}

.task-card:nth-child(4),
.reward-card:nth-child(4),
.item-card:nth-child(4),
.stat-card:nth-child(4) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.25s forwards;
  opacity: 0;
}

.task-card:nth-child(5),
.reward-card:nth-child(5),
.item-card:nth-child(5),
.stat-card:nth-child(5) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
  opacity: 0;
}

.task-card:nth-child(n+6),
.reward-card:nth-child(n+6),
.item-card:nth-child(n+6),
.stat-card:nth-child(n+6) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.35s forwards;
  opacity: 0;
}

/* Settings page specific */
.settings-grid > section:first-of-type {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
  opacity: 0;
}

.settings-grid > section:nth-of-type(2) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
  opacity: 0;
}

.settings-grid > section:nth-of-type(3) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
  opacity: 0;
}

.settings-grid > section:nth-of-type(4) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
  opacity: 0;
}

/* Dashboard specific */
.dashboard-stats-grid .stat-card:nth-child(1) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
  opacity: 0;
}

.dashboard-stats-grid .stat-card:nth-child(2) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.25s forwards;
  opacity: 0;
}

.dashboard-stats-grid .stat-card:nth-child(3) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
  opacity: 0;
}

.dashboard-stats-grid .stat-card:nth-child(4) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.35s forwards;
  opacity: 0;
}

/* App shell fade management */
.app-shell {
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 15% 85%, rgba(34, 211, 238, 0.15), transparent 60%),
    radial-gradient(circle at 85% 25%, rgba(139, 92, 246, 0.12), transparent 50%);
  z-index: 0;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

/* Ensure messages appear above everything */
.messages-container {
  position: fixed !important;
  top: 1.5rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 10000 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  max-width: 600px !important;
  width: calc(100% - 3rem) !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 280px;
  padding: 2.5rem 2rem;
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(59, 72, 99, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
}

.sidebar-top-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-nav-top {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.sidebar-nav-bottom-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-logo {
  width: 52px;
  height: 52px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.45);
  overflow: hidden;
}

.sidebar-logo svg {
  width: 28px;
  height: 28px;
  fill: rgba(255, 255, 255, 0.92);
}

.sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  background: transparent;
  /* No blend mode needed here since sidebar-logo has gradient background */
  mix-blend-mode: normal;
}

/* Make all logo images have transparent backgrounds and remove white corners */
/* mix-blend-mode: screen makes white pixels transparent on dark backgrounds */
img[src*="perekas-logo.png"],
img[alt="Perekas"] {
  background: transparent !important;
  mix-blend-mode: screen;
  /* Increase brightness slightly to help blend white corners */
  filter: brightness(1.1) contrast(1.05);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  /* Ensure no white background shows through */
  isolation: isolate;
}

.landing-logo img,
.nav-icon-logo {
  background: transparent !important;
  mix-blend-mode: screen;
  filter: brightness(1.1) contrast(1.05);
  isolation: isolate;
}

/* Sidebar logo doesn't need blend mode since it has gradient background */
.sidebar-logo img {
  mix-blend-mode: normal;
}

/* For favicon specifically, we can't use CSS blend modes, so ensure container is transparent */
link[rel="icon"] {
  background: transparent !important;
}

.sidebar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.sidebar-tagline {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-nav-top .sidebar-nav {
  margin-top: 0;
}

/* Settings page sidebar fade-in animation (only on initial load) */
.settings-nav.initial-load .nav-link {
  opacity: 0;
}

.settings-nav.initial-load .nav-link:nth-child(1) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

.settings-nav.initial-load .nav-link:nth-child(2) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.settings-nav.initial-load .nav-link:nth-child(3) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
}

.settings-nav.initial-load .nav-link:nth-child(4) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

.sidebar.settings-initial-load .sidebar-header {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
  opacity: 0;
}

.sidebar.settings-initial-load .sidebar-footer {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
  opacity: 0;
}

/* Main sidebar fade-in when returning from settings */
.sidebar.sidebar-fade-in .sidebar-header {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
  opacity: 0;
}

.sidebar.sidebar-fade-in .sidebar-nav:not(.settings-nav) .nav-link {
  opacity: 0;
}

.sidebar.sidebar-fade-in .sidebar-nav:not(.settings-nav) .nav-link:nth-child(1) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

.sidebar.sidebar-fade-in .sidebar-nav:not(.settings-nav) .nav-link:nth-child(2) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.sidebar.sidebar-fade-in .sidebar-nav:not(.settings-nav) .nav-link:nth-child(3) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
}

.sidebar.sidebar-fade-in .sidebar-nav:not(.settings-nav) .nav-link:nth-child(4) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

.sidebar.sidebar-fade-in .sidebar-nav-bottom {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
  opacity: 0;
}

.sidebar.sidebar-fade-in .sidebar-footer {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
  opacity: 0;
}

/* Settings sidebar fade-in when entering from main app */
.sidebar.settings-sidebar-fade-in .sidebar-header {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
  opacity: 0;
}

.sidebar.settings-sidebar-fade-in .settings-nav .nav-link {
  opacity: 0;
}

.sidebar.settings-sidebar-fade-in .settings-nav .nav-link:nth-child(1) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

.sidebar.settings-sidebar-fade-in .settings-nav .nav-link:nth-child(2) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.sidebar.settings-sidebar-fade-in .settings-nav .nav-link:nth-child(3) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
}

.sidebar.settings-sidebar-fade-in .settings-nav .nav-link:nth-child(4) {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

.sidebar.settings-sidebar-fade-in .sidebar-footer {
  animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
  opacity: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-text-secondary);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  border: 1px solid transparent;
}

.nav-link svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.nav-link:hover {
  background: rgba(30, 41, 59, 0.45);
  color: var(--color-text-primary);
  transform: translateX(4px);
}

.nav-link.active {
  color: var(--color-primary);
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.12);
}

.sidebar-nav-bottom {
  gap: 0.75rem;
}

.nav-link-settings {
  margin-top: 0;
}

.sidebar-footer {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(59, 72, 99, 0.35);
  background: rgba(14, 22, 43, 0.7);
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.6);
}

.sidebar-footer-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.sidebar-footer-meta {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.sidebar-logout {
  margin-top: 1rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: rgba(248, 113, 113, 0.95);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sidebar-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.2);
}

.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 3.5rem 3rem;
}

.page-container {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-container.dashboard-page {
  max-width: 1180px;
  width: 100%;
}

.page-container.settings-page {
  max-width: 980px;
  width: 100%;
}

.settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(59, 72, 99, 0.35);
}

.settings-family-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 72, 99, 0.45);
  background: rgba(15, 23, 42, 0.65);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.5);
}

.chip-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.chip-value {
  font-weight: 600;
  color: var(--color-text-primary);
}

.settings-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.settings-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(59, 72, 99, 0.4);
  box-shadow: var(--shadow-soft);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.settings-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.settings-card-header h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.settings-card-header p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.98rem;
}

.settings-card-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.settings-form-columns {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-grid-single {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-label {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-text-primary);
}

.settings-card input[type="text"],
.settings-card input[type="email"],
.settings-card input[type="password"],
.settings-card input[type="date"],
.settings-card input[type="number"],
.settings-card select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: var(--color-text-primary);
  color: var(--color-text-primary);
  font-size: 0.98rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.settings-card input[type="text"]::placeholder,
.settings-card input[type="email"]::placeholder,
.settings-card input[type="password"]::placeholder {
  color: rgba(148, 163, 184, 0.65);
}

.settings-card input[type="text"]:focus,
.settings-card input[type="email"]:focus,
.settings-card input[type="password"]:focus,
.settings-card input[type="date"]:focus,
.settings-card input[type="number"]:focus,
.settings-card select:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.settings-card input[disabled],
.settings-card select[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.field-select {
  position: relative;
}

.field-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid rgba(148, 163, 184, 0.7);
  border-bottom: 2px solid rgba(148, 163, 184, 0.7);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.field-select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
}

@media (max-width: 640px) {
  .form-grid,
  .form-grid-single {
    grid-template-columns: 1fr;
  }

  .danger-zone > div {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .danger-zone form[data-confirm] {
    width: 100%;
  }

  .danger-zone form[data-confirm] .btn {
    width: 100%;
    justify-content: center;
  }
}

.field-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  border-radius: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  background: rgba(30, 41, 59, 0.55);
  color: var(--color-text-primary);
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.btn:hover:not(:disabled) {
  background: rgba(30, 41, 59, 0.75);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #6366f1);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--color-primary-hover), #4f46e5);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.3);
  color: var(--color-text-secondary);
}

.btn-ghost:hover:not(:disabled) {
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--color-text-primary);
}

.settings-toggle-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toggle-row {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(59, 72, 99, 0.45);
  background: rgba(15, 23, 42, 0.65);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.5);
}

.toggle-row input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-slider {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.toggle-slider::after {
  content: "";
  position: absolute;
  inset: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(226, 232, 240, 0.9);
  transition: transform 0.2s ease;
}

.toggle-row input[type="checkbox"]:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.toggle-row input[type="checkbox"]:checked + .toggle-slider::after {
  transform: translateX(18px);
}

.settings-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.settings-checkbox {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(59, 72, 99, 0.35);
  background: rgba(15, 23, 42, 0.6);
  position: relative;
}

.settings-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-checkbox-indicator {
  width: 24px;
  height: 24px;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.6);
  background: rgba(15, 23, 42, 0.9);
  position: relative;
  flex-shrink: 0;
}

.settings-checkbox-indicator::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 0.45rem;
  background: linear-gradient(135deg, var(--color-primary), #6366f1);
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.settings-checkbox input[type="checkbox"]:checked + .settings-checkbox-indicator::after {
  opacity: 1;
  transform: scale(1);
}

.settings-checkbox input[type="checkbox"]:disabled + .settings-checkbox-indicator {
  opacity: 0.7;
}

.notification-form-simple {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.notification-simple-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notification-simple-list li {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(59, 72, 99, 0.3);
}

.notification-simple-list li:last-child {
  border-bottom: none;
}

.notification-simple-list label {
  display: block;
  cursor: pointer;
}

.notification-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.notification-simple-title {
  display: block;
  font-weight: 600;
  color: var(--color-text-primary);
}

.notification-simple-description {
  display: block;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.notification-switch-button {
  width: 48px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  position: relative;
  transition: all 0.2s ease;
  padding: 0;
  display: flex;
  align-items: center;
}

.notification-switch-handle {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
}

.notification-switch-button.is-active {
  border-color: rgba(99, 102, 241, 0.6);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.85), rgba(236, 72, 153, 0.85));
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.25);
}

.notification-switch-button.is-active .notification-switch-handle {
  transform: translateY(-50%) translateX(22px);
}

.notification-switch-button:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.8);
  outline-offset: 3px;
}

.notification-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(59, 72, 99, 0.3);
}

.notification-footer p {
  margin: 0;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.95rem;
}

.subscription-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.subscription-highlight-card {
  border: 1px solid rgba(59, 72, 99, 0.45);
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: radial-gradient(circle at top right, rgba(74, 222, 128, 0.08), transparent 45%),
    rgba(8, 15, 32, 0.8);
  box-shadow: 0 25px 45px rgba(2, 6, 23, 0.45);
  display: grid;
  gap: 1.5rem;
}

.subscription-highlight-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.subscription-highlight h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.subscription-highlight p {
  margin: 0;
  color: var(--color-text-secondary);
}

.subscription-badge {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: rgba(226, 232, 240, 0.85);
}

.subscription-highlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.subscription-plan-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.subscription-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.subscription-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.subscription-plan-card {
  border: 1px solid rgba(59, 72, 99, 0.4);
  border-radius: 1.25rem;
  padding: 1.25rem;
  background: rgba(6, 12, 26, 0.78);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: inset 0 0 0 1px rgba(7, 12, 28, 0.5);
}

.subscription-plan-card.is-current {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 20px 36px rgba(99, 102, 241, 0.2);
}

.plan-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.plan-card-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.plan-card-price {
  margin: 0.2rem 0 0;
  color: rgba(148, 163, 184, 0.9);
}

.plan-card-tag {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: rgba(99, 102, 241, 0.9);
  text-transform: uppercase;
}

.subscription-plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.subscription-plan-card ul li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.95rem;
}

.subscription-plan-card ul li::before {
  content: "•";
  color: var(--color-primary);
}

.subscription-help {
  padding: 0.95rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid rgba(59, 72, 99, 0.3);
  background: rgba(8, 15, 32, 0.65);
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.9rem;
}

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

.notification-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(59, 72, 99, 0.25);
}

.notification-hint {
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.9rem;
}

.notification-hint p {
  margin: 0;
}

.toggle-title {
  display: block;
  font-weight: 600;
  color: var(--color-text-primary);
}

.toggle-description {
  display: block;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.page-title {
  margin: 0;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff 0%, rgba(148, 163, 184, 0.9) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-subtitle {
  margin: 0.5rem 0 0;
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

.pill-button {
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(30, 41, 59, 0.45);
  color: var(--color-text-primary);
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.add-item-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.35), rgba(88, 28, 135, 0.25));
  border: 1px solid rgba(59, 72, 99, 0.35);
  box-shadow: var(--shadow-soft);
}

.quick-add-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.input-with-help {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
}

.input-with-help input {
  flex: 1;
  padding: 0.85rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: var(--color-text-primary);
  font-size: 1rem;
  letter-spacing: 0.01em;
  min-width: 0;
}

.add-item-card input {
  flex: 1;
  padding: 0.85rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: var(--color-text-primary);
  font-size: 1rem;
  letter-spacing: 0.01em;
  width: 100%;
}

.input-with-help input::placeholder,
.add-item-card input::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

.input-with-help input:disabled,
.add-item-card input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(239, 68, 68, 0.3);
}

.input-with-help input:focus,
.add-item-card input:focus {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.25);
  outline: none;
}

.input-with-help input,
.add-item-card input {
  min-height: 44px; /* Mobile touch target */
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, rgba(17, 25, 45, 0.98), rgba(10, 15, 28, 0.98));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(59, 72, 99, 0.5);
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6), 0 0 0 1px rgba(148, 163, 184, 0.1) inset;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  padding: 0.5rem;
}

.autocomplete-dropdown.is-visible {
  display: block;
}

.autocomplete-item {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--color-text-primary);
  font-size: 0.9rem;
}

.autocomplete-item:hover,
.autocomplete-item.is-selected {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.autocomplete-name {
  display: block;
  color: var(--color-text-primary);
  font-weight: 500;
}

.autocomplete-item:hover .autocomplete-name,
.autocomplete-item.is-selected .autocomplete-name {
  color: rgba(196, 181, 253, 0.95);
}

.autocomplete-item.autocomplete-limit-message {
  cursor: default;
  background: rgba(239, 68, 68, 0.1);
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.autocomplete-item.autocomplete-limit-message:hover {
  background: rgba(239, 68, 68, 0.12);
}

.limit-message {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.5rem;
  color: #fca5a5;
  font-size: 0.875rem;
  line-height: 1.5;
}

.limit-message a {
  color: #fca5a5;
  text-decoration: underline;
  font-weight: 600;
}

.limit-message a:hover {
  color: #f87171;
}

/* Mobile adjustments for autocomplete */
@media (max-width: 768px) {
  .autocomplete-dropdown {
    max-height: 180px;
    padding: 0.375rem;
  }
  
  .autocomplete-item {
    padding: 0.875rem 0.875rem;
    font-size: 0.95rem;
  }
}

.task-add-hint {
  margin-top: 1rem;
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.25), rgba(88, 28, 135, 0.2));
  border: 1px solid rgba(59, 72, 99, 0.35);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: all 0.3s ease;
}

.task-add-hint-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  gap: 1rem;
}

.task-add-hint-header:hover {
  background: rgba(59, 72, 99, 0.15);
}

.task-add-hint-header-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.task-add-hint-icon {
  width: 20px;
  height: 20px;
  color: rgba(139, 92, 246, 0.7);
  flex-shrink: 0;
}

.task-add-hint-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.9);
  letter-spacing: -0.01em;
}

.task-add-hint-chevron {
  color: rgba(148, 163, 184, 0.6);
  transition: transform 0.3s ease, color 0.2s ease;
  flex-shrink: 0;
}

.task-add-hint-header:hover .task-add-hint-chevron {
  color: rgba(203, 213, 225, 0.8);
}

.task-add-hint-header[aria-expanded="true"] .task-add-hint-chevron {
  transform: rotate(180deg);
}

.task-add-hint-content {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: slideDown 0.3s ease;
}

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

.task-add-hint.collapsed .task-add-hint-content {
  display: none;
}

.task-add-hint-intro {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.8);
  line-height: 1.5;
  padding-top: 0.25rem;
}

.task-add-hint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.625rem;
}

.task-add-hint-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(59, 72, 99, 0.3);
  transition: all 0.2s ease;
}

.task-add-hint-item:hover {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(139, 92, 246, 0.35);
}

.task-add-hint-item-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.4rem;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: rgba(196, 181, 253, 0.85);
  flex-shrink: 0;
}

.task-add-hint-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.task-add-hint-item-content code {
  font-size: 0.7rem;
  font-weight: 600;
  font-family: 'Inter', system-ui, -apple-system, monospace;
  color: rgba(196, 181, 253, 0.9);
  background: rgba(139, 92, 246, 0.18);
  padding: 0.15rem 0.35rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: inline-block;
  width: fit-content;
}

.task-add-hint-item-content span {
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.75);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .task-add-hint {
    margin-bottom: 1.5rem;
  }

  .task-add-hint-header {
    padding: 0.875rem 1.25rem;
  }

  .task-add-hint-content {
    padding: 0 1.25rem 1.25rem;
  }

  .task-add-hint-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .task-add-hint-item {
    padding: 0.625rem;
  }

  .task-add-hint-item-icon {
    width: 26px;
    height: 26px;
  }

  .task-add-hint-item-icon svg {
    width: 14px;
    height: 14px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Help button in quick add form */
.task-help-button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: rgba(148, 163, 184, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.task-help-button:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(139, 92, 246, 0.45);
  color: rgba(196, 181, 253, 0.9);
}

.task-help-button:active {
  transform: scale(0.95);
}

.task-help-button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
}

/* Help Modal */
.task-help-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  z-index: 100;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.task-help-modal.is-visible {
  display: block;
}

.task-help-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(4px);
}

.task-help-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, calc(100% - 2rem));
  max-width: 100%;
  background: linear-gradient(135deg, rgba(17, 25, 45, 1), rgba(10, 15, 28, 1));
  backdrop-filter: none;
  border-radius: var(--radius-md);
  border: 1px solid rgba(59, 72, 99, 0.45);
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.8), 0 0 0 1px rgba(148, 163, 184, 0.15) inset;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 101;
  max-height: calc(90vh - 2rem);
  max-height: calc(90dvh - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.task-help-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.7);
  display: grid;
  place-items: center;
  color: rgba(148, 163, 184, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
}

.task-help-modal-close:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(139, 92, 246, 0.45);
  color: rgba(196, 181, 253, 0.9);
}

.task-help-modal-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
}

.task-help-modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.task-help-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.task-help-intro {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(148, 163, 184, 0.9);
  line-height: 1.6;
}

.task-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.task-help-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(59, 72, 99, 0.35);
  transition: all 0.2s ease;
}

.task-help-item:hover {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(139, 92, 246, 0.4);
}

.task-help-item-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: rgba(196, 181, 253, 0.9);
  flex-shrink: 0;
}

.task-help-item-icon svg {
  width: 18px;
  height: 18px;
}

.task-help-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.task-help-item-content code {
  display: inline;
  margin-right: 0.25rem;
}

.task-help-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.task-help-item-content code {
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Inter', system-ui, -apple-system, monospace;
  color: rgba(196, 181, 253, 0.95);
  background: rgba(139, 92, 246, 0.2);
  padding: 0.2rem 0.4rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: inline-block;
  white-space: nowrap;
}

.task-help-item-content span {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.8);
  line-height: 1.4;
}

.task-help-examples {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(59, 72, 99, 0.3);
}

.task-help-examples-title {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.9);
}

.task-help-examples-list {
  margin: 0;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.task-help-examples-list li {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.8);
  line-height: 1.5;
}

.task-help-examples-list code {
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'Inter', system-ui, -apple-system, monospace;
  color: rgba(196, 181, 253, 0.9);
  background: rgba(139, 92, 246, 0.15);
  padding: 0.15rem 0.35rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.task-help-options {
  padding-top: 1rem;
  border-top: 1px solid rgba(59, 72, 99, 0.3);
  margin-top: 0.5rem;
}

.task-help-options-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.75rem;
}

.task-help-option-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.task-help-option-group strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.95);
  margin-bottom: 0.25rem;
}

.task-help-option-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.task-help-option-values code {
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Inter', system-ui, -apple-system, monospace;
  color: rgba(196, 181, 253, 0.95);
  background: rgba(139, 92, 246, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(139, 92, 246, 0.3);
  white-space: nowrap;
}

.task-help-option-note {
  margin: 0.5rem 0 0 0;
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.65);
  line-height: 1.4;
  font-style: italic;
}

/* Mobile: Bottom sheet style */
@media (max-width: 768px) {
  .task-help-modal-content {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    max-height: 85vh;
    max-height: 85dvh;
    padding: 1.5rem;
    padding-top: 2rem;
    animation: slideUpFromBottom 0.3s ease-out forwards;
  }
  
  .task-help-modal.is-visible .task-help-modal-content {
    transform: translateY(0);
  }
  
  .task-help-modal-close {
    top: 0.75rem;
    right: 0.75rem;
  }
  
  .task-help-grid {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }
  
  .task-help-item {
    padding: 0.75rem;
  }
  
  .task-help-item-icon {
    width: 28px;
    height: 28px;
  }
  
  .task-help-item-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .task-help-options-list {
    gap: 0.875rem;
  }
  
  .task-help-option-values {
    gap: 0.375rem;
  }
  
  .task-help-option-values code {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }
}

@keyframes slideUpFromBottom {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
}

.primary-button {
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, var(--color-primary), #6366f1);
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(79, 70, 229, 0.4);
  text-transform: uppercase;
}

.primary-button span:first-child {
  font-size: 1.2rem;
  line-height: 1;
}

.primary-button:disabled {
  opacity: 0.75;
  cursor: default;
}

.list-section {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid rgba(59, 72, 99, 0.35);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.list-section-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.list-section-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.list-section-icon {
  width: 38px;
  height: 38px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);
}

.need-icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(236, 72, 153, 0.3));
}

.cart-icon {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.35), rgba(56, 189, 248, 0.3));
}

.list-items {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--color-surface-elevated);
  border: 1px solid rgba(59, 72, 99, 0.35);
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.item-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
}

.item-card.in-cart {
  background: linear-gradient(135deg, rgba(6, 95, 70, 0.4), rgba(34, 197, 94, 0.2));
  border-color: rgba(34, 197, 94, 0.45);
}

.item-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.item-card.in-cart .item-name {
  text-decoration: line-through;
  color: rgba(236, 252, 203, 0.9);
}

.item-meta {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.item-card.in-cart .item-meta {
  color: rgba(226, 232, 240, 0.75);
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.65);
  display: grid;
  place-items: center;
  color: rgba(148, 163, 184, 0.9);
}

.icon-button.success {
  border-color: rgba(34, 197, 94, 0.45);
  color: rgba(74, 222, 128, 0.95);
  background: rgba(22, 101, 52, 0.35);
}

.icon-button.primary {
  border-color: rgba(59, 130, 246, 0.5);
  color: rgba(96, 165, 250, 0.95);
  background: rgba(30, 64, 175, 0.35);
}

.icon-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.icon-button:disabled {
  cursor: default;
}

.icon-form {
  display: flex;
  margin: 0;
}

.empty-state {
  margin: 0;
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.5);
  color: var(--color-text-secondary);
  text-align: center;
  font-size: 0.95rem;
}

.task-grid .empty-state.full-row,
.rewards-grid .empty-state.full-row {
  grid-column: 1 / -1;
}

.accent-icon {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.35), rgba(192, 132, 252, 0.3));
}

.task-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.task-modal label,
.task-modal-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.task-modal-form input,
.task-modal-form select,
.task-modal-form textarea {
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(11, 19, 35, 0.85);
  color: var(--color-text-primary);
  font-size: 0.95rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.task-modal-form input:focus,
.task-modal-form select:focus,
.task-modal-form textarea:focus {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.25);
  outline: none;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.task-section {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.task-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.task-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(59, 72, 99, 0.35);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.task-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid transparent;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.task-card:hover::after {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 18px 35px rgba(10, 12, 33, 0.5);
}

.task-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.task-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.task-status-icon {
  flex-shrink: 0;
  stroke-width: 2.5;
}

.task-status-icon.in-progress-icon {
  color: rgba(6, 182, 212, 0.9);
}

.task-status-icon.completed-icon {
  color: rgba(34, 197, 94, 0.9);
}

.task-status-icon.approved-icon {
  color: rgba(139, 92, 246, 0.9);
}

.task-status-icon.recurring-icon {
  color: rgba(6, 182, 212, 0.9);
}

.task-description {
  margin: 0.5rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.task-assigned {
  margin: 0.75rem 0 0;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.points-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  padding: 0.75rem;
  border-radius: 50%;
  text-align: center;
  font-weight: 700;
  color: #f9f7ff;
  gap: 0.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.points-chip .points-value {
  font-size: 1.15rem;
  letter-spacing: 0;
  line-height: 1;
}

.points-chip .points-label {
  font-size: 0.65rem;
  opacity: 0.75;
}

.task-points {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.88), rgba(79, 70, 229, 0.92));
  box-shadow: 0 18px 35px rgba(79, 70, 229, 0.35);
  min-width: 64px;
  height: 64px;
  align-self: flex-start;
}

.task-card.awaiting .task-points {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(20, 184, 166, 0.75));
  box-shadow: 0 18px 35px rgba(59, 130, 246, 0.28);
}

.task-card.approved .task-points {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.88), rgba(16, 185, 129, 0.9));
  box-shadow: 0 18px 35px rgba(16, 185, 129, 0.32);
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(59, 72, 99, 0.2);
}

.task-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.task-meta-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.task-meta-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.task-card.priority-0 .task-meta-item:first-child .task-meta-icon {
  color: rgba(139, 92, 246, 0.8);
  fill: rgba(139, 92, 246, 0.2);
}

.task-card.priority-1 .task-meta-item:first-child .task-meta-icon {
  color: rgba(6, 182, 212, 0.8);
  fill: rgba(6, 182, 212, 0.2);
}

.task-card.priority-2 .task-meta-item:first-child .task-meta-icon {
  color: rgba(244, 114, 182, 0.8);
  fill: rgba(244, 114, 182, 0.2);
}

.task-meta-item:last-child .task-meta-icon {
  color: rgba(6, 182, 212, 0.8);
  stroke-width: 2;
  fill: none;
}

.task-card.awaiting .task-meta-item:nth-child(2) .task-meta-icon,
.task-card.approved .task-meta-item:nth-child(2) .task-meta-icon {
  color: rgba(34, 197, 94, 0.8);
}

.task-card.awaiting .task-meta-item:nth-child(2) .task-meta-icon circle,
.task-card.approved .task-meta-item:nth-child(2) .task-meta-icon circle {
  stroke: rgba(34, 197, 94, 0.8);
  fill: none;
}

.task-badge {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(59, 72, 99, 0.4);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  color: var(--color-text-secondary);
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.task-card.priority-1::after {
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.2);
}

.task-card.priority-2::after {
  box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.25);
}

.task-card.awaiting {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(25, 118, 210, 0.08));
  border-color: rgba(34, 197, 94, 0.35);
}

.task-card.approved {
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.2), rgba(34, 197, 94, 0.25));
  border-color: rgba(34, 197, 94, 0.45);
}

.task-card.in-progress {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border-color: rgba(59, 130, 246, 0.5);
}

.task-card.in-progress::after {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.task-card.in-progress:hover::after {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 18px 35px rgba(59, 130, 246, 0.4);
}

.task-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  z-index: 50;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.task-modal.is-visible {
  display: block;
}

.task-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(4px);
}

.task-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 2rem));
  max-width: 100%;
  background: linear-gradient(135deg, rgba(17, 25, 45, 1), rgba(10, 15, 28, 1));
  backdrop-filter: none;
  border-radius: var(--radius-md);
  border: 1px solid rgba(59, 72, 99, 0.45);
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.8), 0 0 0 1px rgba(148, 163, 184, 0.15) inset;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 51;
  max-height: calc(90vh - 2rem);
  max-height: calc(90dvh - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .task-modal-content {
    width: calc(100% - 2rem);
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
  }
}

.task-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.7);
  display: grid;
  place-items: center;
  color: rgba(148, 163, 184, 0.9);
}

.task-modal-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.task-modal-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.task-modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.task-modal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.task-modal-recurring {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(59, 72, 99, 0.3);
  margin-top: 0.5rem;
}

.task-modal-recurring-note {
  margin: -0.5rem 0 0 0;
  padding: 0.5rem 0.75rem;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 0.5rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.task-modal-recurring-note small {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.8);
  line-height: 1.5;
}

.task-modal-recurring-note strong {
  color: rgba(196, 181, 253, 0.95);
  font-weight: 600;
}

.task-modal-form textarea {
  resize: vertical;
}

body.modal-open {
  overflow: hidden;
}

/* Confirmation Modal */
.confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  z-index: 10001;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.confirm-modal.is-visible {
  display: block;
}

.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(4px);
  z-index: 10001;
}

.confirm-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 2rem));
  max-width: 100%;
  background: linear-gradient(135deg, rgba(17, 25, 45, 1), rgba(10, 15, 28, 1));
  backdrop-filter: none;
  border-radius: var(--radius-md);
  border: 1px solid rgba(59, 72, 99, 0.5);
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.8), 0 0 0 1px rgba(148, 163, 184, 0.15) inset;
  padding: 2rem;
  display: flex;
  z-index: 10002;
  flex-direction: column;
  gap: 1.5rem;
  animation: confirmModalSlideIn 0.2s ease-out;
  flex-shrink: 0;
  max-height: calc(90vh - 2rem);
  max-height: calc(90dvh - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .confirm-modal-content {
    width: calc(100% - 2rem);
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
  }
}

/* Generic modal-overlay and modal-content (used in onboarding, subscriptions, etc.) */
.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: none;
  z-index: 1000;
  background: rgba(4, 8, 24, 0.85);
  backdrop-filter: blur(4px);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.modal-overlay[style*="display: flex"],
.modal-overlay[style*="display:flex"],
.modal-overlay[style*="display: block"],
.modal-overlay[style*="display:block"] {
  display: block !important;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, calc(100% - 2rem));
  max-width: 100%;
  background: var(--color-surface);
  backdrop-filter: none;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(59, 72, 99, 0.4);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  max-height: calc(90vh - 2rem);
  max-height: calc(90dvh - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Ensure generic modals are centered on mobile when scrolled */
@media (max-width: 768px) {
  .modal-content {
    width: calc(100% - 2rem);
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
  }
}

@keyframes confirmModalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) scale(1);
  }
}

.confirm-modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.confirm-modal-message {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.confirm-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.confirm-modal-cancel,
.confirm-modal-confirm {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.confirm-modal-cancel {
  background: rgba(30, 41, 59, 0.6);
  color: var(--color-text-secondary);
  border-color: rgba(59, 72, 99, 0.4);
}

.confirm-modal-cancel:hover {
  background: rgba(30, 41, 59, 0.8);
  color: var(--color-text-primary);
  border-color: rgba(59, 72, 99, 0.6);
  transform: translateY(-1px);
}

.confirm-modal-confirm {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
  color: #fff;
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.confirm-modal-confirm:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 1), rgba(220, 38, 38, 1));
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.confirm-modal-confirm:active {
  transform: translateY(0);
}

.points-overview-card {
  background: linear-gradient(135deg, rgba(21, 30, 52, 0.95), rgba(18, 24, 46, 0.85));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(59, 72, 99, 0.4);
  padding: 2rem;
  box-shadow: 0 25px 45px rgba(2, 6, 23, 0.45);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.points-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.points-card-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.75);
}

.points-card-value {
  margin: 0.35rem 0 0;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}

.points-card-icon {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(59, 130, 246, 0.25));
  display: grid;
  place-items: center;
  color: var(--color-primary);
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.35);
}

.points-card-icon svg {
  width: 34px;
  height: 34px;
  stroke: none;
  fill: currentColor;
}

.points-card-subtext {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.rewards-section {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rewards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

.reward-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(59, 72, 99, 0.4);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border 0.2s ease;
}

.reward-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.35);
}

.reward-card.claimed {
  background: linear-gradient(135deg, rgba(18, 46, 37, 0.6), rgba(16, 185, 129, 0.2));
  border-color: rgba(16, 185, 129, 0.45);
}

.reward-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.reward-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.reward-description {
  margin: 0.4rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.reward-points {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.88), rgba(249, 168, 37, 0.7));
  box-shadow: 0 18px 35px rgba(249, 115, 22, 0.28);
  color: #fff8ed;
  align-self: flex-start;
}

.reward-card.claimed .reward-points {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.88), rgba(34, 197, 94, 0.82));
  box-shadow: 0 18px 35px rgba(34, 197, 94, 0.3);
}

.reward-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.reward-button {
  padding: 0.8rem 1.8rem;
  text-transform: none;
  font-size: 0.95rem;
}

.reward-button[disabled] {
  opacity: 0.65;
  cursor: default;
}

.reward-manage {
  display: flex;
  gap: 0.6rem;
}

.reward-note {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

.rewards-section .empty-state {
  border-style: dashed;
}

.dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .dashboard-page {
  gap: 2.5rem;
  }
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  }
}

.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(59, 72, 99, 0.35);
  background: linear-gradient(135deg, rgba(12, 18, 35, 0.95), rgba(16, 24, 46, 0.9));
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 140px;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(139, 92, 246, 0.1);
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.07), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover::after {
  opacity: 1;
}

.stat-card-link {
  text-decoration: none;
  color: inherit;
}

.stat-card-link article.stat-card {
  height: 100%;
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  align-self: flex-start;
}

.stat-card-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.icon-purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(59, 130, 246, 0.35));
}

.icon-green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(56, 189, 248, 0.3));
}

.icon-orange {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(249, 168, 37, 0.3));
}

.icon-teal {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.28), rgba(74, 222, 128, 0.32));
}

.stat-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--color-text-secondary);
  text-transform: uppercase;
}

.status-chip.success {
  border-color: rgba(34, 197, 94, 0.45);
  color: rgba(134, 239, 172, 0.95);
}

.status-chip.danger {
  border-color: rgba(248, 113, 113, 0.5);
  color: rgba(248, 113, 113, 0.95);
}

.delete-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.delete-steps li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.delete-steps strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.delete-steps p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.child-delete-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(10, 16, 30, 0.65);
}

.child-delete-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-primary);
}

.child-delete-options input[type="radio"] {
  accent-color: rgba(239, 68, 68, 0.85);
}

.destructive-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: nowrap;
}

.destructive-card > div:first-child {
  flex: 1;
  min-width: 0;
}

.btn-danger-outline {
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: rgba(248, 113, 113, 0.95);
  background: rgba(239, 68, 68, 0.12);
}

.btn-danger-outline:hover {
  border-color: rgba(239, 68, 68, 0.8);
  background: rgba(239, 68, 68, 0.2);
}

.btn-danger {
  border: 1px solid rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.2);
  color: rgba(248, 113, 113, 0.95);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

.destructive-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  z-index: 3000;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.destructive-modal[aria-hidden="false"] {
  display: block;
}

.destructive-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 24, 0.8);
  backdrop-filter: blur(4px);
  z-index: 3000;
}

.destructive-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(6, 11, 26, 0.98);
  border: 1px solid rgba(59, 72, 99, 0.4);
  border-radius: 1.25rem;
  padding: 2rem;
  width: min(640px, calc(100% - 2rem));
  max-width: 100%;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.65);
  z-index: 3001;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: calc(90vh - 2rem);
  max-height: calc(90dvh - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.destructive-modal-content h3 {
  margin: 0;
  font-size: 1.5rem;
}

.destructive-modal-subtitle {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.destructive-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.destructive-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .destructive-modal-content {
    width: calc(100% - 2rem);
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
  }
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.stat-change {
  font-size: 0.85rem;
  color: rgba(94, 234, 212, 0.9);
}

.dashboard-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2rem;
  }
  
  .child-dashboard-main {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
  
  .child-dashboard-secondary {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
}

@media (min-width: 1400px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  }
  
  .child-dashboard-main {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
  
  .child-dashboard-secondary {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  }
}

.members-card,
.recent-card {
  background: rgba(12, 18, 35, 0.92);
  border: 1px solid rgba(59, 72, 99, 0.35);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.members-card:hover,
.recent-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.4);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  background: rgba(139, 92, 246, 0.85);
}

.card-icon.icon-purple {
  background: rgba(139, 92, 246, 0.85);
}

.card-icon.icon-green {
  background: rgba(56, 189, 248, 0.85);
}

.card-icon.icon-orange {
  background: rgba(249, 115, 22, 0.85);
}

.card-icon.icon-teal {
  background: rgba(45, 212, 191, 0.85);
}

.card-link {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.85);
}

.members-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .members-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.member-card {
  background: rgba(10, 16, 30, 0.9);
  border: 1px solid rgba(59, 72, 99, 0.3);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.member-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.member-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-height: 44px;
}

.member-info h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.member-info p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.3;
}

.member-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.45), rgba(139, 92, 246, 0.55));
  display: grid;
  place-items: center;
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.95rem;
}

.member-stats {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.member-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.6);
  overflow: hidden;
}

.member-progress-fill {
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.85), rgba(147, 197, 253, 0.85));
  width: calc(var(--progress, 0) * 1%);
}

.member-progress-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.recent-task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.recent-task {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(10, 15, 28, 0.75);
  border: 1px solid rgba(59, 72, 99, 0.25);
}

.recent-task h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-primary);
}

.recent-task p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.recent-task-points {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(94, 234, 212, 0.9);
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quick-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.quick-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(59, 72, 99, 0.35);
  background: rgba(12, 18, 35, 0.92);
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-decoration: none;
  transition: border 0.2s ease, transform 0.2s ease;
}

.quick-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.quick-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.quick-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  display: block;
  background: rgba(248, 250, 252, 0.9);
  border-radius: 6px;
}

.quick-tasks {
  background: rgba(79, 70, 229, 0.35);
}

.quick-trophy {
  background: rgba(249, 115, 22, 0.35);
}

.quick-cart {
  background: rgba(45, 212, 191, 0.35);
}

.quick-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.quick-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.quick-actions-inline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quick-action-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(59, 72, 99, 0.3);
  background: rgba(10, 16, 30, 0.6);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.quick-action-inline:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(10, 16, 30, 0.8);
  transform: translateX(4px);
}

.quick-action-inline .quick-icon {
  flex-shrink: 0;
}

.quick-action-inline h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.quick-action-inline p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Auth Pages */

.auth-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(circle at 85% 10%, rgba(236, 72, 153, 0.18), transparent 65%),
    radial-gradient(circle at 60% 80%, rgba(45, 212, 191, 0.15), transparent 70%),
    #040814;
  color: #f8fafc;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  padding: clamp(2rem, 5vw, 4rem) 1.5rem;
}

.auth-background {
  display: none;
}

.auth-shell {
  width: min(1080px, 95%);
  margin: auto;
}

.auth-card {
  position: relative;
  border-radius: 2.4rem;
  background: rgba(7, 12, 28, 0.82);
  border: 1px solid rgba(79, 70, 229, 0.25);
  box-shadow: 0 55px 110px rgba(5, 10, 28, 0.55);
  overflow: hidden;
}

.auth-card-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  padding: clamp(2.8rem, 6vw, 3.6rem);
}

.auth-visual {
  position: relative;
  background: linear-gradient(135deg, rgba(58, 70, 160, 0.95), rgba(36, 20, 74, 0.9));
  border-radius: 1.8rem 0 0 1.8rem;
  padding: clamp(2.5rem, 6vw, 3.3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.auth-visual-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.65;
  animation: floatGlow 14s ease-in-out infinite;
}

.glow-one {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at center, rgba(104, 116, 255, 0.5), transparent 70%);
  top: -140px;
  right: -120px;
}

.glow-two {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.4), transparent 70%);
  bottom: -150px;
  left: -130px;
  animation-delay: -6s;
}

@keyframes floatGlow {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(20px, -15px, 0) scale(1.08);
  }
}

.auth-visual-header,
.auth-visual-body,
.auth-visual-cards {
  position: relative;
  z-index: 1;
}

.auth-visual-header {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.auth-brand-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.auth-brand-tagline {
  font-size: 0.8rem;
  color: rgba(215, 222, 255, 0.75);
}

.auth-visual-body {
  margin: clamp(1.8rem, 4vw, 2.6rem) 0;
  max-width: 320px;
}

.auth-visual-body h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.9rem, 3.8vw, 2.4rem);
  line-height: 1.2;
}

.auth-visual-body p {
  margin: 0;
  color: rgba(226, 231, 255, 0.82);
  font-size: 1rem;
  line-height: 1.6;
}

.auth-visual-cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.auth-visual-card {
  padding: 1rem 1.3rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(226, 231, 255, 0.25);
  background: rgba(12, 18, 42, 0.65);
  min-width: 160px;
}

.auth-visual-card .card-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(226, 231, 255, 0.65);
  margin-bottom: 0.35rem;
}

.auth-visual-card .card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.auth-form-wrapper {
  background: rgba(6, 12, 28, 0.75);
  border-radius: 0 1.8rem 1.8rem 0;
  border: 1px solid rgba(79, 70, 229, 0.18);
  padding: clamp(2.5rem, 6vw, 3.3rem);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  box-shadow: inset 0 0 0 1px rgba(45, 55, 95, 0.3);
}

.auth-card-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: #f8fafc;
}

.auth-logo {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6a5cff, #ec48af);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.auth-form-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.4rem);
}

.auth-form-header p {
  margin: 0.35rem 0 0;
  color: rgba(205, 214, 244, 0.8);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(226, 231, 255, 0.92);
}

.auth-field input,
.auth-field select {
  width: 100%;
  padding: 0.9rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(3, 8, 22, 0.9);
  font-size: 0.95rem;
  color: #f8fafc;
  box-shadow: inset 0 1px 2px rgba(2, 6, 23, 0.35);
}

.auth-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1.5L6 5.5 11 1.5' stroke='%239aa0c6' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
}

.auth-field select option {
  color: #0f172a;
}

.auth-field input:focus,
.auth-field select:focus {
  border-color: rgba(106, 92, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(106, 92, 255, 0.25);
  outline: none;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
}

.auth-link {
  text-decoration: none;
  color: rgba(148, 163, 184, 0.85);
  font-weight: 600;
  text-align: center;
}

.auth-submit {
  padding: 0.95rem 1.3rem;
  border-radius: 1.05rem;
  border: none;
  background: linear-gradient(90deg, #6a5cff 0%, #a855f7 100%);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 18px 30px rgba(106, 92, 255, 0.3);
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(106, 92, 255, 0.4);
}

.auth-switch {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(205, 214, 244, 0.78);
  text-align: center;
}

.auth-switch a {
  color: #6a5cff;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .auth-card-inner {
    grid-template-columns: 1fr;
  }

  .auth-form-wrapper {
    padding-top: clamp(2rem, 5vw, 2.5rem);
  }
}

/* Modern Minimalist Auth Pages */
.auth-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 4vw, 2rem);
}

.auth-container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.auth-card-minimal {
  background: rgba(7, 12, 28, 0.6);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 1.8rem;
  padding: clamp(3rem, 6vw, 4rem);
  box-shadow: 0 30px 60px rgba(4, 8, 24, 0.4);
}

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

.auth-header-minimal h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.auth-header-minimal p {
  margin: 0;
  color: rgba(148, 163, 184, 0.85);
  font-size: 1rem;
  line-height: 1.5;
}

.auth-form-minimal {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-field-minimal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.auth-field-minimal:first-child {
  margin-top: 0;
}

.auth-field-minimal:last-child {
  margin-bottom: 0;
}

.auth-field-minimal label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: rgba(226, 231, 255, 0.9);
  letter-spacing: 0.01em;
  margin-bottom: 0.25rem;
}

.auth-field-minimal input,
.auth-field-minimal select {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(3, 8, 22, 0.6);
  font-size: 0.9375rem;
  color: #f8fafc;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(2, 6, 23, 0.3);
}


.auth-field-minimal input::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

.auth-field-minimal select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1.5L6 5.5 11 1.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.auth-field-minimal select option {
  color: #0f172a;
  background: #fff;
}

.auth-field-minimal input:focus,
.auth-field-minimal select:focus {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), inset 0 1px 2px rgba(2, 6, 23, 0.3);
  outline: none;
  background: rgba(3, 8, 22, 0.8);
}

.auth-field-minimal.has-error input,
.auth-field-minimal.has-error select {
  border-color: rgba(239, 68, 68, 0.6);
}

.auth-field-minimal.has-error input:focus,
.auth-field-minimal.has-error select:focus {
  border-color: rgba(239, 68, 68, 0.8);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15), inset 0 1px 2px rgba(2, 6, 23, 0.3);
}

.auth-field-error-minimal {
  display: block;
  font-size: 0.8125rem;
  color: #f87171;
  margin-top: 0.25rem;
}

.auth-error-minimal {
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 0.875rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-actions-minimal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.auth-actions-minimal .landing-button {
  width: 100%;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
}

.auth-link-minimal {
  text-align: center;
  text-decoration: none;
  color: rgba(148, 163, 184, 0.85);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.auth-link-minimal:hover {
  color: rgba(148, 163, 184, 1);
}

.auth-switch-minimal {
  margin: 2rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(148, 163, 184, 0.75);
}

.auth-switch-minimal a {
  color: rgba(148, 163, 184, 0.95);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-switch-minimal a:hover {
  color: #f8fafc;
}

.auth-content-minimal {
  margin: 1.5rem 0;
}

.auth-content-minimal p {
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.auth-content-minimal strong {
  color: #f8fafc;
  font-weight: 600;
}

.auth-info-box {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 0.875rem;
}

@media (max-width: 640px) {
  .auth-card-minimal {
    padding: 2rem 1.5rem;
  }

  .auth-header-minimal {
    margin-bottom: 2rem;
  }

  .auth-form-minimal {
    gap: 1.25rem;
  }
}

/* Landing Page */

.glass {
  backdrop-filter: blur(24px);
  background: rgba(7, 12, 28, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 30px 55px rgba(4, 8, 24, 0.45);
}

.landing-body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.08), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(6, 182, 212, 0.08), transparent 55%),
    var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

.landing-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 15% 85%, rgba(34, 211, 238, 0.15), transparent 60%),
    radial-gradient(circle at 85% 25%, rgba(139, 92, 246, 0.12), transparent 50%);
  z-index: 0;
}

.landing-nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem clamp(1.5rem, 6vw, 4rem);
  backdrop-filter: blur(24px);
  background: rgba(4, 8, 24, 0.2);
  border: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  margin: 0;
  border-radius: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.landing-nav.glass {
  background: rgba(4, 8, 24, 0.2) !important;
  border: none !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.landing-nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-nav-toggle:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(79, 70, 229, 0.4);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.landing-nav-toggle:active {
  transform: scale(0.98);
}

.mobile-menu-overlay {
  display: none;
}

.landing-nav-toggle::before,
.landing-nav-toggle::after,
.landing-nav-toggle span {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2.5px;
  background: #e2e8f0;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.landing-nav-toggle::before {
  top: 17px;
}

.landing-nav-toggle::after {
  bottom: 17px;
}

.landing-nav-toggle span {
  top: 50%;
  transform: translateY(-50%);
}

.landing-nav-toggle:hover::before,
.landing-nav-toggle:hover::after,
.landing-nav-toggle:hover span {
  background: #f8fafc;
}

.landing-nav-toggle.open {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(79, 70, 229, 0.5);
}

.landing-nav-toggle.open::before {
  transform: translateY(6.75px) rotate(45deg);
  background: #f8fafc;
}

.landing-nav-toggle.open::after {
  transform: translateY(-6.75px) rotate(-45deg);
  background: #f8fafc;
}

.landing-nav-toggle.open span {
  opacity: 0;
  transform: scale(0);
}

.landing-nav-links.open,
.landing-nav-actions.open {
  display: flex;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.landing-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent !important;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(236, 72, 153, 0.85));
  font-weight: 700;
  letter-spacing: 0.02em;
}

.landing-brand-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.landing-brand-tagline {
  display: block;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.75);
}

.landing-nav-links {
  display: flex;
  gap: 1.5rem;
}

.landing-nav-links a.active {
  color: #f8fafc;
}

.landing-nav-links a.active::after {
  transform: scaleX(1);
}

.landing-nav-links a {
  color: rgba(148, 163, 184, 0.85);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
}

.landing-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(236, 72, 153, 0.8));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.landing-nav-links a:hover::after {
  transform: scaleX(1);
}

.landing-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.landing-link {
  color: rgba(148, 163, 184, 0.9);
  text-decoration: none;
  font-weight: 500;
}

.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 0.9rem;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.landing-button.primary {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(236, 72, 153, 0.9));
  color: #fbfbff;
  box-shadow: 0 18px 32px rgba(99, 102, 241, 0.35);
}

.landing-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 40px rgba(99, 102, 241, 0.45);
}

.landing-button.secondary {
  background: rgba(24, 31, 56, 0.9);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.landing-button.secondary:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(148, 163, 184, 0.4);
}

.landing-button.ghost {
  background: transparent;
  color: rgba(148, 163, 184, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.landing-button.ghost:hover {
  background: rgba(59, 72, 99, 0.2);
  border-color: rgba(148, 163, 184, 0.3);
}

.landing-main {
  position: relative;
  z-index: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}


.landing-hero-content {
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 3vw, 1.8rem);
}

.landing-hero-content h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1.07;
  letter-spacing: -0.01em;
}

.landing-hero-content p {
  margin: 0;
  max-width: 520px;
  color: rgba(203, 213, 225, 0.85);
  font-size: 1.05rem;
}

.landing-hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

/* New Minimal Hero Section */
.hero-full {
  min-height: min(70vh, 640px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(1.75rem, 6vw, 4rem);
  align-items: center;
  padding: clamp(3.5rem, 10vw, 6.5rem) clamp(2rem, 7vw, 4.5rem);
  width: 94%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  max-width: 540px;
  text-align: left;
  align-items: flex-start;
}

.hero-headline-split {
  margin: 0 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-headline-line {
  display: block;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #f8fafc;
}

.hero-headline-accent {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(236, 72, 153, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  margin: 0 0 1.2rem;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.65;
  color: rgba(203, 213, 225, 0.85);
  max-width: 520px;
}


.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgba(148, 163, 184, 0.8);
  font-weight: 500;
}

.hero-trust-item svg {
  width: 18px;
  height: 18px;
  stroke: rgba(148, 163, 184, 0.7);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: flex-start;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem 0;
}

.hero-visual-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.35), transparent 65%),
    radial-gradient(circle at 70% 70%, rgba(14, 165, 233, 0.3), transparent 60%);
  filter: blur(8px);
  opacity: 0.85;
  z-index: 0;
}

.hero-pill-card {
  position: absolute;
  top: 1.5rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1.15rem;
  border-radius: 1rem;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 15px 30px rgba(5, 10, 25, 0.5);
  z-index: 2;
}

.hero-pill-value {
  font-weight: 700;
  color: rgba(74, 222, 128, 0.95);
  font-size: 1.1rem;
}

.hero-pill-label {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-progress-card {
  position: absolute;
  bottom: 1rem;
  left: 0;
  width: 190px;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(8, 15, 36, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 15px 35px rgba(5, 9, 25, 0.45);
  z-index: 2;
}

.hero-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.85);
  margin-bottom: 0.35rem;
}

.hero-progress-header strong {
  color: #f8fafc;
  font-size: 0.9rem;
}

.hero-progress-bar {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(59, 72, 99, 0.6);
  overflow: hidden;
}

.hero-progress-bar span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.9), rgba(236, 72, 153, 0.9));
}

.hero-dashboard-preview {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(59, 72, 99, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.12);
  z-index: 1;
}

.hero-dashboard-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.hero-dashboard-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Child Account Management Modal Styles */
.member-card-clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.child-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 10000;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.child-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-surface);
  backdrop-filter: none;
  border-radius: var(--radius-md);
  border: 1px solid rgba(59, 72, 99, 0.4);
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.5);
  max-width: 600px;
  width: calc(100% - 4rem);
  max-height: calc(90vh - 2rem);
  max-height: calc(90dvh - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.child-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid rgba(59, 72, 99, 0.4);
}

.child-modal-header h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f8fafc;
}

.child-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.child-modal-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: rgba(248, 113, 113, 0.95);
}

.child-modal-close svg {
  width: 20px;
  height: 20px;
}

.child-modal-body {
  padding: 2rem;
}

.child-modal-body .form-grid {
  margin-bottom: 1.5rem;
}

.child-modal-body .form-field {
  margin-bottom: 0;
}

/* Child modal input styles - match settings card inputs */
.child-modal-body input[type="text"],
.child-modal-body input[type="email"],
.child-modal-body input[type="password"],
.child-modal-body input[type="date"],
.child-modal-body input[type="number"],
.child-modal-body select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: #f8fafc;
  font-size: 0.98rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.child-modal-body input[type="text"]::placeholder,
.child-modal-body input[type="email"]::placeholder,
.child-modal-body input[type="password"]::placeholder,
.child-modal-body input[type="date"]::placeholder {
  color: rgba(148, 163, 184, 0.65);
}

.child-modal-body input[type="text"]:focus,
.child-modal-body input[type="email"]:focus,
.child-modal-body input[type="password"]:focus,
.child-modal-body input[type="date"]:focus,
.child-modal-body input[type="number"]:focus,
.child-modal-body select:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
  background: rgba(15, 23, 42, 0.85);
}

.child-modal-body input[disabled],
.child-modal-body select[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.child-modal-body .field-label {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.child-modal-body .field-hint {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.85);
  margin-top: 0.25rem;
}

.child-modal-body .form-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Email Verification Banner */
.email-verification-banner {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.15));
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.1);
}

.email-verification-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.email-verification-content svg {
  color: rgba(251, 191, 36, 0.95);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.email-verification-content strong {
  display: block;
  color: rgba(251, 191, 36, 0.95);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.email-verification-content p {
  margin: 0;
  color: rgba(251, 191, 36, 0.85);
  font-size: 0.9rem;
  line-height: 1.5;
}

.email-verification-content .btn {
  white-space: nowrap;
}

.hero-dashboard-icon-wrapper {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  color: rgba(99, 102, 241, 0.9);
}

.hero-dashboard-icon-wrapper svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.hero-dashboard-title strong {
  display: block;
  font-size: 1rem;
  color: #f8fafc;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.hero-dashboard-title span {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.8);
}

.hero-dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-dashboard-main-stats {
  display: none !important;
}

.hero-stat-card {
  display: none !important;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero-section-header svg {
  width: 16px;
  height: 16px;
  stroke: rgba(99, 102, 241, 0.8);
}

.hero-section-header h4 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-task-list,
.hero-reward-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-task-item-new,
.hero-reward-item-new {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.8rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(59, 72, 99, 0.3);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.hero-task-item-new:hover,
.hero-reward-item-new:hover {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(139, 92, 246, 0.4);
}

.hero-task-check-new {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 72, 99, 0.4);
  border: 2px solid rgba(148, 163, 184, 0.3);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  color: transparent;
  transition: all 0.2s ease;
}

.hero-task-check-new.completed {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
  color: #22c55e;
}

.hero-task-content,
.hero-reward-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-task-content strong,
.hero-reward-content strong {
  font-size: 0.9rem;
  color: #f8fafc;
  font-weight: 600;
}

.hero-task-content span,
.hero-reward-content span {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.75);
}

.hero-task-points-new {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(34, 197, 94, 0.9);
}

/* Hero Task Demo Animation */
.hero-task-demo-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(59, 72, 99, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 1;
}

.hero-task-input-wrapper {
  position: relative;
}

.hero-task-input-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.35), rgba(88, 28, 135, 0.25));
  border: 1px solid rgba(59, 72, 99, 0.35);
  box-shadow: var(--shadow-soft);
}

.hero-task-input {
  flex: 1;
  padding: 0.85rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: var(--color-text-primary);
  font-size: 1rem;
  letter-spacing: 0.01em;
  width: 100%;
  min-height: 44px;
  font-family: inherit;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  direction: ltr;
  text-align: left;
}

.hero-task-input::-webkit-scrollbar {
  display: none;
}

.hero-task-input {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hero-task-input:focus {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.25);
  outline: none;
}

.hero-task-submit {
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, var(--color-primary), #6366f1);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: inherit;
  font-size: 0.95rem;
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.hero-task-submit.active {
  opacity: 1;
  transform: scale(0.95);
  box-shadow: 0 1px 4px rgba(139, 92, 246, 0.4);
  transition: all 0.1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-task-submit.clicked {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-task-submit span:first-child {
  font-size: 1.2rem;
  line-height: 1;
}

.hero-task-cards-container {
  position: relative;
  height: 400px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, 
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0.3) 85%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(to bottom, 
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0.3) 85%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero-task-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  padding-bottom: 0;
}

/* Use actual task-card styles from the app */
.hero-task-cards-wrapper .task-card {
  opacity: 0;
  transform: translateY(0) scale(1);
  transition: opacity 0.8s ease-in-out;
  flex-shrink: 0;
  background: var(--color-surface) !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid rgba(59, 72, 99, 0.35) !important;
  padding: 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  box-shadow: var(--shadow-soft) !important;
  position: relative;
  z-index: 1;
}

/* Override any priority-specific backgrounds */
.hero-task-cards-wrapper .task-card.priority-0,
.hero-task-cards-wrapper .task-card.priority-1,
.hero-task-cards-wrapper .task-card.priority-2 {
  background: var(--color-surface) !important;
}

.hero-task-cards-wrapper .task-card.visible {
  opacity: 1;
}

.hero-task-cards-wrapper .task-card.faded {
  opacity: 0.4;
  transform: translateY(0) scale(0.98);
  transition: opacity 0.4s ease-out, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animate existing cards moving down when new one is added */
.hero-task-cards-wrapper .task-card.moving-down {
  transform: translateY(calc(100% + 1rem)) scale(0.98);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Make the last (bottom) task half-visible - handled by JS */
.hero-task-cards-wrapper .task-card[style*="position: absolute"] {
  opacity: 0.3;
  pointer-events: none;
}

.hero-task-cards-wrapper .task-card.fading-out {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-task-demo-card {
    padding: 1.25rem;
    gap: 1.25rem;
  }
  
  .hero-task-input-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    gap: 0.75rem;
  }
  
  .hero-task-input {
    width: 100%;
    font-size: 16px;
    padding: 1rem 1.1rem;
  }
  
  .hero-task-submit {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
  
  .hero-task-cards-container {
    height: 300px;
  }
}

.hero-task-status-new {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
  background: rgba(148, 163, 184, 0.15);
  color: rgba(148, 163, 184, 0.9);
}

.hero-reward-icon-new {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hero-reward-badge-new {
  padding: 0.35rem 0.7rem;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 6px;
  font-size: 0.7rem;
  color: rgba(99, 102, 241, 0.95);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}


.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.dashboard-label {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.2);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(199, 210, 254, 0.9);
}

.dashboard-status {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.8);
}

.dashboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dashboard-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(8, 15, 36, 0.5);
}

.dashboard-list li strong {
  display: block;
  font-size: 0.9rem;
  color: #f8fafc;
  margin-bottom: 0.2rem;
}

.dashboard-list li span {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.8);
}

.dashboard-points,
.dashboard-status-text,
.dashboard-reward {
  font-weight: 600;
  font-size: 0.85rem;
}

.dashboard-points {
  color: rgba(74, 222, 128, 0.9);
}

.dashboard-status-text {
  color: rgba(148, 163, 184, 0.9);
}

.dashboard-reward {
  color: rgba(255, 255, 255, 0.9);
}

/* Minimal Sections */
.section-minimal {
  padding: clamp(2rem, 6vw, 4rem) clamp(2rem, 8vw, 6rem);
  width: 90%;
  max-width: 1800px;
  margin: 0 auto;
}

/* Modern Sections */
.section-modern {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
}

/* Flowing Sections */
.section-flowing {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
}

.section-flowing + .section-flowing {
  padding-top: clamp(2rem, 5vw, 4rem);
  margin-top: -2rem;
}

.section-pricing-flowing {
  background: rgba(10, 18, 40, 0.3);
  border-top: 1px solid rgba(59, 72, 99, 0.2);
  border-bottom: 1px solid rgba(59, 72, 99, 0.2);
}

.section-about-flowing {
  background: rgba(8, 15, 32, 0.2);
  border-top: 1px solid rgba(59, 72, 99, 0.15);
}

.section-cta-flowing {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(236, 72, 153, 0.08));
  border-top: 1px solid rgba(59, 72, 99, 0.2);
  border-bottom: 1px solid rgba(59, 72, 99, 0.2);
  margin-bottom: 0;
}

/* Seamless Sections - No backgrounds, continuous flow */
.section-seamless {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
}

.section-seamless + .section-seamless {
  padding-top: clamp(2rem, 5vw, 4rem);
  margin-top: -2rem;
}

.section-cta-seamless {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.container-modern {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.section-header-modern {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-eyebrow-modern {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(99, 102, 241, 0.8);
  margin-bottom: 0.75rem;
}

.section-header-modern h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin: 0 0 1rem;
}

.section-description-modern {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(203, 213, 225, 0.8);
  margin: 0;
}

/* Features Flowing Layout */
.features-layout-flowing {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.feature-large-left {
  position: sticky;
  top: 2rem;
}

.feature-large-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  color: rgba(99, 102, 241, 0.9);
  margin-bottom: 1.5rem;
}

.feature-large-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
}

.feature-large-left h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin: 0 0 1rem;
}

.feature-large-left p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(148, 163, 184, 0.8);
  margin: 0;
}

.features-compact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature-compact-card {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 72, 99, 0.3);
  border-radius: 0.75rem;
  display: flex;
  gap: 1rem;
  transition: all 0.3s ease;
}

.feature-compact-card:hover {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateX(4px);
}

.feature-compact-card .feature-icon-modern {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.feature-compact-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0 0 0.5rem;
}

.feature-compact-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.8);
  margin: 0;
}

/* Features Product Grid - 2x3 layout like image */
.features-grid-product {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card-product {
  padding: 2rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 72, 99, 0.3);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-card-product:hover {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.feature-icon-product {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 10px;
  color: rgba(139, 92, 246, 0.9);
  transition: all 0.3s ease;
}

.feature-card-product:hover .feature-icon-product {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(6, 182, 212, 0.5);
  color: rgba(6, 182, 212, 0.9);
  transform: scale(1.05);
}

.feature-icon-product svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.feature-card-product h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0;
  transition: color 0.3s ease;
}

.feature-card-product:hover h3 {
  color: rgba(139, 92, 246, 0.9);
}

.feature-card-product p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.8);
  margin: 0;
}

/* Features Modern */
.features-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  position: relative;
}

.feature-card-modern {
  padding: 1.75rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 72, 99, 0.3);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), rgba(236, 72, 153, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card-modern:hover {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.feature-card-modern:hover::before {
  opacity: 1;
}

.feature-icon-modern {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 10px;
  color: rgba(99, 102, 241, 0.9);
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.feature-card-modern:hover .feature-icon-modern {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(236, 72, 153, 0.5);
  color: rgba(236, 72, 153, 0.9);
  transform: scale(1.05);
}

.feature-icon-modern svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.feature-card-modern h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0 0 0.75rem;
  transition: color 0.3s ease;
}

.feature-card-modern:hover h3 {
  color: rgba(99, 102, 241, 0.9);
}

.feature-card-modern p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.8);
  margin: 0;
}


/* Pricing Flowing */
.pricing-header-inline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
}

.pricing-header-inline h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin: 0 0 0.5rem;
}

.pricing-subtitle-inline {
  font-size: 0.95rem;
  color: rgba(148, 163, 184, 0.7);
  margin: 0;
}

.pricing-toggle-wrapper-modern {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0;
}

.pricing-toggle-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 72, 99, 0.4);
  border-radius: 12px;
}

.pricing-toggle-label {
  font-size: 0.9rem;
  color: rgba(203, 213, 225, 0.8);
  font-weight: 500;
}

.pricing-toggle-switch-modern {
  position: relative;
  width: 52px;
  height: 28px;
  background: rgba(59, 72, 99, 0.5);
  border: 1px solid rgba(59, 72, 99, 0.6);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.pricing-toggle-switch-modern[aria-checked="true"] {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.7), rgba(139, 92, 246, 0.7));
  border-color: rgba(99, 102, 241, 0.8);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.pricing-toggle-slider-modern {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: rgba(203, 213, 225, 0.9);
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease;
}

.pricing-toggle-switch-modern[aria-checked="true"] .pricing-toggle-slider-modern {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pricing-save-badge-modern {
  margin-left: 0.5rem;
  padding: 0.125rem 0.5rem;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 6px;
  font-size: 0.75rem;
  color: rgba(34, 197, 94, 0.9);
  font-weight: 600;
}

.plans-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.plan-card-modern {
  position: relative;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 72, 99, 0.3);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.plan-card-modern:hover {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.plan-featured-modern {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.08);
}

.plan-popular-badge-modern {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.375rem 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(236, 72, 153, 0.9));
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-header-modern h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.75rem;
}

.plan-price-modern {
  margin: 0 0 1.5rem;
  position: relative;
  min-height: 2.5rem;
}

.plan-price-modern span {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #f8fafc;
  display: inline-block;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-price-monthly,
.plan-price-yearly {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

.plan-price-monthly.active,
.plan-price-yearly.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  position: relative;
}

.plan-price-modern span span {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.8);
}

.plan-features-modern {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.plan-features-modern li {
  font-size: 0.875rem;
  color: rgba(203, 213, 225, 0.8);
  padding-left: 1.25rem;
  position: relative;
}

.plan-features-modern li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: rgba(34, 197, 94, 0.9);
  font-weight: 700;
}

.plan-features-modern li.no-access {
  opacity: 0.5;
}

.plan-features-modern li.no-access:before {
  content: "✗";
  color: rgba(148, 163, 184, 0.6);
}

.plan-button-modern {
  width: 100%;
  display: block;
  text-align: center;
}

/* Testimonials Supabase Style */
.testimonials-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
  padding-bottom: 1rem;
  margin: 0 -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.testimonials-scroll-wrapper::-webkit-scrollbar {
  height: 8px;
}

.testimonials-scroll-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.testimonials-scroll-wrapper::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 4px;
}

.testimonials-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}

.testimonials-grid-supabase {
  display: grid;
  grid-template-columns: repeat(3, minmax(320px, 1fr));
  gap: 1.25rem;
  width: max-content;
}

@media (min-width: 1200px) {
  .testimonials-grid-supabase {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
}

.testimonial-card-supabase {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 72, 99, 0.3);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  min-width: 320px;
}

.testimonial-card-supabase:hover {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}

.testimonial-quote-supabase {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(203, 213, 225, 0.9);
  margin: 0 0 1.25rem;
}

.testimonial-author-supabase {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(59, 72, 99, 0.3);
}

.testimonial-avatar-supabase {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(236, 72, 153, 0.3));
  border: 1px solid rgba(99, 102, 241, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(99, 102, 241, 0.9);
  flex-shrink: 0;
}

.testimonial-author-info {
  flex: 1;
}

.testimonial-author-name-supabase {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 0.125rem;
}

.testimonial-author-location-supabase {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.7);
}

/* About Flowing */
.about-intro-text {
  max-width: 600px;
  margin: 0 0 3rem;
}

.about-intro-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin: 0 0 1rem;
}

.about-intro-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(148, 163, 184, 0.8);
  margin: 0;
}

/* About Modern */
.about-layout-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-main-card {
  padding: 2rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 72, 99, 0.3);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about-main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), rgba(236, 72, 153, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-main-card:hover {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.about-main-card:hover::before {
  opacity: 1;
}

.about-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 10px;
  color: rgba(99, 102, 241, 0.9);
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.about-main-card:hover .about-card-icon {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(236, 72, 153, 0.5);
  color: rgba(236, 72, 153, 0.9);
  transform: scale(1.05);
}

.about-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.about-main-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.75rem;
}

.about-main-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.8);
  margin: 0;
}

.about-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.about-card-small {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 72, 99, 0.3);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.about-card-small:hover {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}

.about-card-small-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  color: rgba(99, 102, 241, 0.9);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.about-card-small:hover .about-card-small-icon {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(236, 72, 153, 0.5);
  color: rgba(236, 72, 153, 0.9);
  transform: scale(1.05);
}

.about-card-small-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.about-card-small h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0 0 0.5rem;
}

.about-card-small p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.8);
  margin: 0;
}

/* Transition Section */
.section-transition {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.transition-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.transition-headline {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin: 0 0 1rem;
}

.transition-description {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(148, 163, 184, 0.85);
  margin: 0;
}

/* CTA Flowing */
.cta-content-flowing {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-headline-flowing {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin: 0 0 1rem;
}

.cta-description-flowing {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(203, 213, 225, 0.8);
  margin: 0 0 2rem;
}

.cta-actions-modern {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.cta-button-large {
  padding: 0.875rem 1.75rem !important;
  font-size: 1rem !important;
}

/* Scroll Animations */
.scroll-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.scroll-slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-delay-1 {
  transition-delay: 0.1s;
}

.scroll-delay-2 {
  transition-delay: 0.2s;
}

.scroll-delay-3 {
  transition-delay: 0.3s;
}

.scroll-delay-4 {
  transition-delay: 0.4s;
}

.scroll-delay-5 {
  transition-delay: 0.5s;
}

.scroll-delay-6 {
  transition-delay: 0.6s;
}

.section-header-minimal {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow-minimal {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(129, 140, 248, 0.8);
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-header-minimal h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #f8fafc;
}

.section-header-minimal p {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.6;
  color: rgba(203, 213, 225, 0.8);
}

/* Features Grid */
.features-grid-minimal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card-minimal {
  padding: 2rem;
  border-radius: 1.25rem;
  background: rgba(7, 12, 28, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease;
  text-align: center;
}

.feature-card-minimal:hover {
  transform: translateY(-4px);
  border-color: rgba(148, 163, 184, 0.2);
}

.feature-icon-minimal {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  color: rgba(199, 210, 254, 0.9);
}

.feature-card-minimal h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #f8fafc;
}

.feature-card-minimal p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(203, 213, 225, 0.75);
}

/* Stats Section */
.section-stats {
  background: rgba(7, 12, 28, 0.3);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.stats-grid-minimal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item-minimal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number-minimal {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #f8fafc;
  line-height: 1;
}

.stat-label-minimal {
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Testimonials */
.testimonials-grid-minimal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card-minimal {
  padding: 2.5rem;
  border-radius: 1.25rem;
  background: rgba(7, 12, 28, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.testimonial-card-minimal p {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(203, 213, 225, 0.85);
  font-style: italic;
}

.testimonial-author {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.9);
}

/* CTA Section */
.section-cta {
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem);
}

.section-cta-full {
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-container {
  width: 90%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 clamp(2rem, 8vw, 6rem);
}

.cta-content-minimal {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 4vw, 3rem);
  border-radius: 1.6rem;
  border: 1px solid rgba(79, 70, 229, 0.22);
  background: rgba(8, 15, 32, 0.7);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cta-content-minimal h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #f8fafc;
}

.cta-content-minimal p {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.6;
  color: rgba(203, 213, 225, 0.8);
}

.cta-actions-minimal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.landing-hero-stage {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(0px);
  animation: floatGlow 16s ease-in-out infinite;
}

.orb-one {
  width: 340px;
  height: 340px;
  top: -80px;
  right: -120px;
  background: radial-gradient(circle at center, rgba(103, 138, 255, 0.45), transparent 70%);
}

.orb-two {
  width: 280px;
  height: 280px;
  bottom: -120px;
  left: -110px;
  background: radial-gradient(circle at center, rgba(33, 197, 243, 0.35), transparent 70%);
  animation-delay: -7s;
}

.hero-dashboard {
  position: relative;
  width: min(360px, 90%);
  background: rgba(5, 12, 32, 0.85);
  border-radius: 1.8rem;
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: 0 32px 60px rgba(9, 13, 30, 0.45);
}

.hero-dashboard header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-pill {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.2);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-status {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.85);
}

.hero-dashboard ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-dashboard li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 1.2rem;
  background: rgba(8, 15, 36, 0.8);
}

.hero-dashboard strong {
  display: block;
  font-size: 0.9rem;
  color: #f8fafc;
}

.hero-dashboard span {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.85);
}

.hero-points {
  font-weight: 600;
  color: rgba(74, 222, 128, 0.85);
}

.hero-reward {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.landing-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.landing-section {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(2.5rem, 6vw, 3.5rem);
  border-radius: 2rem;
}

.landing-section-header {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 640px;
}

.landing-section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
}

.landing-section p {
  margin: 0;
  color: rgba(203, 213, 225, 0.82);
}

.landing-section h2,
.landing-section h3 {
  color: #f8fafc;
}

.section-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(129, 140, 248, 0.8);
}

.feature-details {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 6vw, 3rem);
}

.preview-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(59, 72, 99, 0.4);
  background: rgba(8, 15, 30, 0.65);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 24px 45px rgba(5, 9, 25, 0.45);
  transition: transform 0.3s ease, border 0.3s ease;
}

.preview-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.4);
}

.preview-card-visual {
  height: 180px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.45), rgba(236, 72, 153, 0.35));
}

.preview-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.preview-link {
  font-size: 0.85rem;
  color: rgba(129, 140, 248, 0.9);
  font-weight: 600;
}

.landing-preview,
.landing-testimonials,
.landing-cta {
  border-radius: 2rem;
  background: rgba(7, 12, 28, 0.75);
  border: 1px solid rgba(79, 70, 229, 0.2);
  box-shadow: 0 35px 60px rgba(4, 8, 24, 0.5);
}

.landing-testimonials .testimonial-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.testimonial-grid article {
  padding: 1.6rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(79, 70, 229, 0.2);
  background: rgba(8, 15, 32, 0.7);
}

.testimonial-grid p {
  margin: 0 0 1rem;
  color: rgba(203, 213, 225, 0.88);
}

.testimonial-grid .author {
  font-weight: 600;
  color: rgba(148, 163, 184, 0.85);
}

.landing-marquee {
  padding: 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 4rem;
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 700;
  color: rgba(99, 102, 241, 0.35);
  animation: marquee 20s linear infinite;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.hero-narrow {
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
}

.feature-details .feature-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.8rem, 5vw, 2.5rem);
  align-items: center;
  padding: clamp(1.8rem, 4vw, 2.5rem);
}

.feature-detail.reverse {
  direction: rtl;
  text-align: right;
}

.feature-detail.reverse .feature-copy {
  direction: ltr;
  text-align: left;
}

.feature-visual {
  height: 240px;
  border-radius: 1.6rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #040814;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.25), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.2), transparent 60%),
    radial-gradient(circle at 60% 80%, rgba(16, 185, 129, 0.15), transparent 65%),
    #040814;
}

.feature-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.6rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.3), rgba(236, 72, 153, 0.2));
  box-shadow: inset 0 0 0 1px rgba(59, 72, 99, 0.35);
  z-index: 1;
}

.feature-visual::after {
  content: attr(data-text);
  position: relative;
  z-index: 2;
  font-size: 4rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.feature-visual-dynamics::after {
  content: 'task boards';
}

.feature-visual-motivational::after {
  content: 'rewards';
}

.feature-visual-shopping::after {
  content: 'shopping list';
  font-size: 3.2rem;
}

.feature-copy ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: rgba(203, 213, 225, 0.85);
}

.feature-copy ul li::marker {
  color: rgba(129, 140, 248, 0.85);
}

.values {
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.values-grid > div,
.about-grid article {
  padding: clamp(1.4rem, 3vw, 1.9rem);
  border-radius: 1.4rem;
  border: 1px solid rgba(59, 72, 99, 0.35);
  background: rgba(8, 15, 32, 0.65);
  box-shadow: inset 0 0 0 1px rgba(59, 72, 99, 0.2);
}

.about-grid,
.values-grid,
.plans-grid,
.faq-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.plans-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1.5rem;
}

.plans-layout.plans-three-column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 1.5rem 0;
}

.plans-top-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.pricing-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin: 2rem 0 3rem;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  background: rgba(8, 15, 32, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 999px;
}

.pricing-toggle-label {
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.8);
  font-weight: 500;
  padding: 0 0.5rem;
}

.pricing-save-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 999px;
  font-size: 0.7rem;
  color: rgba(34, 197, 94, 0.9);
  font-weight: 600;
}

.pricing-toggle-switch {
  position: relative;
  width: 56px;
  height: 32px;
  background: rgba(148, 163, 184, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.pricing-toggle-switch:hover {
  background: rgba(148, 163, 184, 0.3);
  border-color: rgba(139, 92, 246, 0.4);
}

.pricing-toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: rgba(139, 92, 246, 0.8);
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pricing-toggle-switch[aria-checked="true"] {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
}

.plan-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 1rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(236, 72, 153, 0.9));
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 999px;
  font-size: 0.75rem;
  color: #f8fafc;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.plan-free-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-free-visual {
  width: 100%;
  height: 120px;
  border-radius: 1.6rem;
  overflow: hidden;
  position: relative;
}

.plan-illustration {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.3), rgba(236, 72, 153, 0.2));
  background-image: 
    radial-gradient(circle at 30% 30%, rgba(79, 70, 229, 0.4), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.3), transparent 50%);
  border: 1px solid rgba(148, 163, 184, 0.1);
  position: relative;
}

.plan-free {
  width: 100%;
  max-width: 100%;
  padding: clamp(1.2rem, 2.5vw, 1.5rem);
}

@media (max-width: 960px) {
  .section-minimal {
    padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
    width: 95%;
  }

  .features-grid-product {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .section-seamless {
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 2.5rem);
  }

  .section-seamless + .section-seamless {
    padding-top: clamp(2rem, 4vw, 3rem);
    margin-top: -1.5rem;
  }

  .feature-details .feature-detail {
    grid-template-columns: 1fr;
  }

  .feature-detail.reverse {
    direction: ltr;
    text-align: left;
  }

  .feature-visual {
    height: 200px;
  }

  .plans-layout {
    padding: 1rem;
  }

  .plans-layout.plans-three-column {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .plans-top-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .comparison-table {
    gap: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-row {
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: rgba(7, 12, 28, 0.95);
    border: 1px solid rgba(79, 70, 229, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-radius: 0.75rem;
    min-width: 600px;
  }

  .comparison-row.header {
    display: grid;
    background: rgba(7, 12, 28, 1);
    border-color: rgba(99, 102, 241, 0.4);
    padding: 1.25rem 0.75rem;
    position: sticky;
    left: 0;
    z-index: 10;
  }

  .comparison-row.header span {
    font-weight: 700;
    font-size: 0.95rem;
    color: rgba(129, 140, 248, 1);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
  }

  .comparison-row.header span:first-child {
    text-align: left;
    color: rgba(148, 163, 184, 0.9);
  }

  .comparison-row span:first-child {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(203, 213, 225, 0.9);
    text-align: left;
    display: flex;
    align-items: center;
  }

  .comparison-row span:not(:first-child) {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: #f8fafc;
    padding: 0.5rem;
  }

  .comparison-row span[data-plan="FREE"]:not(:first-child),
  .comparison-row span[data-plan="STARTER"]:not(:first-child),
  .comparison-row span[data-plan="PRO"]:not(:first-child) {
    font-weight: 700;
    font-size: 1.05rem;
  }

  .comparison-row span.no-access {
    color: #ef4444;
    font-size: 1.4rem;
  }

  .comparison-row span.has-access {
    color: #22c55e;
    font-size: 1.4rem;
  }

  .about-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .timeline-list li {
    flex-direction: column;
    gap: 0.5rem;
  }

  .timeline-year {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 768px) {
  .plans-top-row {
    grid-template-columns: 1fr;
  }
  
  .plan-free-visual {
    height: 100px;
  }

  .plan-card {
    padding: clamp(1.5rem, 3vw, 2rem);
  }

  .feature-card-minimal {
    padding: 1.5rem;
  }

  .section-header-minimal h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .section-header-minimal h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
}

@media (max-width: 640px) {
  .section-minimal {
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem);
    width: 100%;
  }

  .plans-layout {
    padding: 0.75rem;
  }

  .plan-card ul {
    font-size: 0.9rem;
  }

  .plan-price {
    font-size: 1.75rem;
  }

  .comparison-table {
    gap: 0.625rem;
  }

  .comparison-row {
    padding: 0.875rem 0.625rem;
    gap: 0.4rem;
    min-width: 550px;
  }

  .comparison-row.header {
    padding: 1.125rem 0.625rem;
  }

  .comparison-row.header span {
    font-size: 0.875rem;
  }

  .comparison-row span:first-child {
    font-size: 0.9rem;
  }

  .comparison-row span:not(:first-child) {
    font-size: 0.95rem;
    padding: 0.4rem;
  }

  .comparison-row span[data-plan="FREE"]:not(:first-child),
  .comparison-row span[data-plan="STARTER"]:not(:first-child),
  .comparison-row span[data-plan="PRO"]:not(:first-child) {
    font-size: 1rem;
  }

  .comparison-row span.no-access,
  .comparison-row span.has-access {
    font-size: 1.3rem;
  }

  .feature-visual {
    height: 160px;
  }

  .feature-visual-dynamics::after,
  .feature-visual-motivational::after {
    font-size: 3rem;
  }

  .feature-visual-shopping::after {
    font-size: 2.5rem;
  }

  .hero-dashboard-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }

  .hero-dashboard-icon-wrapper {
    width: 40px;
    height: 40px;
  }

  .hero-dashboard-icon-wrapper svg {
    width: 20px;
    height: 20px;
  }

  .hero-dashboard-title strong {
    font-size: 1rem;
  }

  .hero-dashboard-title span {
    font-size: 0.8rem;
  }

  .hero-dashboard-content {
    gap: 1.25rem;
  }
  }

  .hero-stat-number {
    font-size: 1.75rem;
  }

  .hero-stat-label {
    font-size: 0.7rem;
  }

  .hero-section-header {
    margin-bottom: 0.875rem;
  }

  .hero-section-header svg {
    width: 14px;
    height: 14px;
  }

  .hero-section-header h4 {
    font-size: 0.8rem;
  }

  .hero-task-list,
  .hero-reward-list {
    gap: 0.625rem;
  }

  .hero-task-item-new,
  .hero-reward-item-new {
    padding: 0.875rem;
    gap: 0.75rem;
  }

  .hero-task-check-new {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }

  .hero-task-content strong,
  .hero-reward-content strong {
    font-size: 0.85rem;
  }

  .hero-task-content span,
  .hero-reward-content span {
    font-size: 0.75rem;
  }

  .hero-task-points-new {
    font-size: 0.8rem;
  }

  .hero-task-status-new {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .hero-reward-icon-new {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .hero-reward-badge-new {
    padding: 0.3rem 0.6rem;
    font-size: 0.65rem;
  }

  .hero-content {
    align-items: flex-start;
    margin: 0;
    text-align: left;
  }

  .hero-visual {
    padding: 1.5rem 0;
  }

  .hero-pill-card,
  .hero-progress-card {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    margin: 0.5rem auto;
  }

  .hero-progress-card {
    width: 100%;
    max-width: 260px;
  }

  .testimonials-grid-minimal {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stats-grid-minimal {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .cta-content-minimal {
    max-width: 100%;
    padding: clamp(2rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2rem);
  }

  .cta-actions-minimal {
    flex-direction: column;
  }

  .cta-actions-minimal .landing-button {
    width: 100%;
  }

  .landing-preview-grid {
    grid-template-columns: 1fr;
  }

  .preview-card {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .landing-nav {
    padding: 1rem;
  }

  .landing-brand-title {
    font-size: 1rem;
  }

  .landing-brand-tagline {
    font-size: 0.65rem;
  }

  .hero-headline-line {
    font-size: clamp(2.25rem, 9vw, 3rem);
  }

  .section-header-minimal h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .section-header-minimal h2 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  .plan-card {
    padding: 1.25rem;
  }

  .feature-card-minimal {
    padding: 1.25rem;
  }

  .comparison-row {
    padding: 0.75rem 0.5rem;
    gap: 0.35rem;
    min-width: 500px;
  }

  .comparison-row.header {
    padding: 1rem 0.5rem;
  }

  .comparison-row.header span {
    font-size: 0.8rem;
  }

  .comparison-row span:first-child {
    font-size: 0.85rem;
  }

  .comparison-row span:not(:first-child) {
    font-size: 0.9rem;
    padding: 0.35rem;
  }

  .comparison-row span[data-plan="FREE"]:not(:first-child),
  .comparison-row span[data-plan="STARTER"]:not(:first-child),
  .comparison-row span[data-plan="PRO"]:not(:first-child) {
    font-size: 0.95rem;
  }

  .comparison-row span.no-access,
  .comparison-row span.has-access {
    font-size: 1.25rem;
  }
}

.timeline {
  background: rgba(7, 12, 28, 0.75);
  border-radius: 2rem;
  border: 1px solid rgba(79, 70, 229, 0.2);
  box-shadow: 0 35px 60px rgba(4, 8, 24, 0.5);
  padding: clamp(2rem, 5vw, 3rem);
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.3rem;
}

.timeline-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.timeline-list li p {
  margin: 0;
  color: rgba(203, 213, 225, 0.85);
}

.timeline-year {
  font-weight: 700;
  color: rgba(129, 140, 248, 0.9);
  margin-right: 0.8rem;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.9rem, 4vw, 2.4rem);
  border-radius: 1.6rem;
  border: 1px solid rgba(79, 70, 229, 0.22);
  background: rgba(8, 15, 32, 0.7);
  box-shadow: 0 24px 50px rgba(5, 9, 25, 0.45);
}

.plan-card.plan-featured {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(8, 15, 32, 0.8);
  box-shadow: 0 24px 50px rgba(139, 92, 246, 0.2);
}

.plan-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: rgba(203, 213, 225, 0.85);
}

.plan-card ul li {
  position: relative;
  padding-left: 1.75rem;
}

.plan-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: rgba(34, 197, 94, 0.9);
  font-weight: 700;
  font-size: 1.1rem;
}

.plan-card ul li.no-access::before {
  content: '✗';
  color: #ef4444;
}

.plan-price {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #f8fafc;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.85);
}

.plan-featured {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.55), rgba(236, 72, 153, 0.45));
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 35px 70px rgba(79, 70, 229, 0.35);
}

.plan-badge {
  align-self: flex-start;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 244, 255, 0.9);
}

.plan-card .landing-button {
  margin-top: auto;
}

.comparison-table {
  display: grid;
  gap: 0.6rem;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: center;
  padding: 0.9rem 1.2rem;
  border-radius: 1rem;
  background: rgba(7, 12, 28, 0.8);
  border: 1px solid rgba(79, 70, 229, 0.18);
}

.comparison-row.header {
  background: rgba(7, 12, 28, 0.95);
  border-color: rgba(99, 102, 241, 0.35);
  font-weight: 600;
}

.plan-comparison .comparison-table span {
  text-align: center;
}

.plan-comparison .comparison-table span:first-child {
  text-align: left;
}

.plan-comparison .comparison-row span {
  font-weight: 500;
}

.plan-comparison .comparison-row span:first-child {
  font-weight: 600;
}

.faq-grid details {
  background: rgba(8, 15, 32, 0.7);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 1.2rem;
  padding: 1.3rem 1.5rem;
}

.faq-grid summary {
  font-weight: 600;
  cursor: pointer;
}

.faq-grid p {
  margin: 0.8rem 0 0;
  color: rgba(203, 213, 225, 0.8);
}

.landing-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  flex-wrap: wrap;
}

.landing-cta-inner > div:first-child {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.landing-footer {
  margin-top: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(7, 12, 28, 0.3);
  backdrop-filter: blur(10px);
}

.landing-footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.landing-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.landing-footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.5rem;
}

.landing-footer-logo:hover {
  opacity: 0.9;
}

.landing-footer-description {
  color: rgba(148, 163, 184, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  max-width: 280px;
}

.landing-footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.landing-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(59, 72, 99, 0.3);
  border: 1px solid rgba(59, 72, 99, 0.4);
  color: rgba(203, 213, 225, 0.9);
  text-decoration: none;
  transition: all 0.2s ease;
}

.landing-footer-social a:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: rgba(99, 102, 241, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.landing-footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.landing-footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f8fafc;
  margin: 0 0 0.5rem;
}

.landing-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.landing-footer-links a {
  color: rgba(203, 213, 225, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.landing-footer-links a:hover {
  color: rgba(99, 102, 241, 0.9);
  transform: translateX(4px);
}

.landing-footer-links a svg {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.landing-footer-links a:hover svg {
  opacity: 1;
}

.landing-footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.landing-footer-bottom p {
  margin: 0;
  color: rgba(148, 163, 184, 0.7);
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .landing-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .landing-nav-links,
  .landing-nav-actions {
    display: none;
  }

  .landing-nav-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  /* Mobile Menu Overlay */
  .mobile-menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: linear-gradient(180deg, rgba(7, 12, 28, 0.98) 0%, rgba(8, 15, 32, 0.98) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  .mobile-menu-overlay.active .mobile-menu-sidebar {
    transform: translateX(0);
  }

  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  }

  .mobile-menu-header .landing-brand {
    flex: 1;
  }

  .mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 1rem;
  }

  .mobile-menu-close:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(79, 70, 229, 0.4);
    transform: scale(1.05);
  }

  .mobile-menu-close svg {
    width: 20px;
    height: 20px;
  }

  .mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
  }

  .mobile-menu-links a {
    color: rgba(203, 213, 225, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    display: block;
  }

  .mobile-menu-links a:hover {
    background: rgba(79, 70, 229, 0.15);
    color: #f8fafc;
    transform: translateX(4px);
  }

  .mobile-menu-links a.active {
    background: rgba(79, 70, 229, 0.2);
    color: #f8fafc;
    font-weight: 600;
  }

  .mobile-menu-separator {
    height: 1px;
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.5) 0%, rgba(236, 72, 153, 0.5) 100%);
    margin: 0.5rem 1.5rem;
  }

  .mobile-menu-actions {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.875rem;
  }

  .mobile-menu-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(148, 163, 184, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.4rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(24, 31, 56, 0.6);
    transition: all 0.2s ease;
    text-align: center;
  }

  .mobile-menu-login:hover {
    background: rgba(24, 31, 56, 0.9);
    border-color: rgba(148, 163, 184, 0.35);
    color: #f8fafc;
    transform: translateY(-1px);
  }

  .mobile-menu-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 0.9rem;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(236, 72, 153, 0.9));
    color: #fbfbff;
    box-shadow: 0 18px 32px rgba(99, 102, 241, 0.35);
    transition: all 0.2s ease;
  }

  .mobile-menu-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 40px rgba(99, 102, 241, 0.45);
  }

  .landing-nav-links.open,
  .landing-nav-actions.open {
    display: none;
  }

  .hero-full {
    padding-top: clamp(5rem, 11vw, 7rem);
    padding-bottom: clamp(2.5rem, 7vw, 4.5rem);
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .hero-description {
    margin-left: 0;
    margin-right: auto;
  }

  .hero-trust-badges {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-visual {
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
  }

  .hero-pill-card,
  .hero-progress-card {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    margin: 0.5rem auto;
  }

  .features-grid-minimal {
    grid-template-columns: 1fr;
  }

  .testimonials-grid-minimal {
    grid-template-columns: 1fr;
  }

  .stats-grid-minimal {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
  }

  .settings-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .settings-family-chip {
    width: 100%;
    justify-content: space-between;
  }

  .landing-footer-container {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: clamp(2rem, 3vw, 2.5rem);
  }
}

@media (max-width: 640px) {
  .landing-nav-actions {
    width: 100%;
    justify-content: center;
  }

  .landing-button,
  .landing-link {
    width: 100%;
    justify-content: center;
  }

  .landing-footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .landing-footer-brand {
    grid-column: 1;
  }

  .landing-footer-description {
    max-width: 100%;
  }

  .landing-footer-section {
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding-bottom: 1.5rem;
  }

  .landing-footer-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
  }

  .landing-footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}


.message-toast {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  padding: 1rem 1.25rem !important;
  border-radius: 1rem !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 0, 0, 0.2) !important;
  border: 1px solid !important;
  pointer-events: auto !important;
  animation: slideDown 0.3s ease-out !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
  min-width: 300px !important;
}

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

.message-toast-content {
  flex: 1;
  display: flex;
  align-items: center;
}

.message-toast-text {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
}

.message-toast-dismiss {
  background: none;
  border: none;
  color: currentColor;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  opacity: 0.7;
  transition: opacity 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.message-toast-dismiss:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.message-toast-dismiss svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.message-toast-success {
  background: rgba(34, 197, 94, 0.15) !important;
  border-color: rgba(34, 197, 94, 0.4) !important;
  color: #22c55e !important;
}

.message-toast-error {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #ef4444 !important;
}

.message-toast-warning {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: #f59e0b !important;
}

.message-toast-info {
  background: rgba(59, 130, 246, 0.15) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
  color: #3b82f6 !important;
}

.message-toast-debug {
  background: rgba(148, 163, 184, 0.15) !important;
  border-color: rgba(148, 163, 184, 0.4) !important;
  color: #94a3b8 !important;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .messages-container {
    top: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
  
  .message-toast {
    padding: 0.875rem 1rem;
  }
  
  .message-toast-text {
    font-size: 0.875rem;
  }
}

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

@media (max-width: 1200px) {
  .main-content {
    padding: 3rem 2.25rem;
  }
}

/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 10001;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(7, 12, 28, 0.9);
  backdrop-filter: blur(12px);
  color: #f8fafc;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-nav-toggle:hover {
  background: rgba(7, 12, 28, 0.95);
  border-color: rgba(139, 92, 246, 0.4);
  transform: scale(1.05);
}

.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1024px) {
  .mobile-nav-toggle {
    display: flex;
  }
  
  .mobile-menu-overlay {
    display: block;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    border-right: 1px solid rgba(59, 72, 99, 0.3);
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-nav {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }
  
  .nav-link {
    width: 100%;
    justify-content: flex-start;
  }

  .sidebar-footer {
    margin-top: auto;
    display: block;
  }

  .main-content {
    margin-left: 0;
    padding-top: 5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .page-container {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .add-item-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    gap: 0.75rem;
  }
  
  .quick-add-input-wrapper {
    width: 100%;
  }
  
  .input-with-help {
    width: 100%;
    gap: 0.5rem;
  }

  .input-with-help input,
  .add-item-card input {
    width: 100%;
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 1rem 1.1rem;
  }
  
  .task-help-button {
    width: 44px;
    min-width: 44px;
    flex-shrink: 0;
  }

  .primary-button {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .sidebar-nav {
    justify-content: space-between;
    width: 100%;
  }

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

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

  .form-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .mobile-nav-toggle {
    top: 1rem;
    left: 1rem;
    width: 44px;
    height: 44px;
  }

  .sidebar {
    width: 90%;
    max-width: 280px;
    padding: 1.5rem 1.25rem;
  }

  .main-content {
    padding: 2rem 1.25rem;
  }

  .page-title {
    font-size: 2rem;
  }

  /* Modern Sections Responsive */
  .section-modern {
    padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem);
  }

  .section-flowing {
    padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem);
  }

  .section-flowing + .section-flowing {
    padding-top: clamp(2rem, 5vw, 3rem);
    margin-top: -1rem;
  }

  .section-header-modern {
    margin-bottom: 3rem;
  }

  .features-layout-flowing {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-large-left {
    position: relative;
    top: 0;
  }

  .features-compact-grid {
    gap: 1rem;
  }

  .pricing-header-inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 1.25rem;
  }

  .pricing-header-inline h2 {
    margin-bottom: 0.5rem;
  }

  .pricing-toggle-wrapper-modern {
    justify-content: flex-start;
    width: 100%;
  }

  .features-grid-modern {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .features-grid-product {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .plans-grid-modern {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .plan-card-modern.plan-featured-modern {
    padding-top: 2.75rem;
  }

  .plan-card-modern.plan-featured-modern .plan-header-modern {
    margin-top: 0.75rem;
  }

  .plan-card-modern.plan-featured-modern .plan-header-modern h3 {
    margin-top: 0.75rem;
  }

  .testimonials-scroll-wrapper {
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1rem;
    scroll-padding-right: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .testimonials-scroll-wrapper::-webkit-scrollbar {
    display: none;
  }

  .testimonials-grid-supabase {
    display: flex;
    gap: 1rem;
    width: max-content;
  }

  .testimonial-card-supabase {
    flex: 0 0 calc(100vw - 3rem);
    max-width: calc(100vw - 3rem);
    min-width: calc(100vw - 3rem);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 2rem 1.5rem;
  }

  .about-layout-modern {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .cta-actions-modern {
    flex-direction: column;
  }

  .cta-button-large {
    width: 100%;
  }

  /* Hero section mobile fixes */
  .hero-full {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 4vw, 2.5rem);
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
    text-align: left;
    align-items: flex-start;
    order: 1; /* Content first on mobile */
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-visual {
    padding: 1.5rem 0;
    order: 2; /* Visual after content on mobile */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-visual-glow {
    width: 280px;
    height: 280px;
  }

  .hero-visual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    padding: 0;
  }

  .hero-dashboard-preview {
    max-width: 100%;
    width: 100%;
    padding: 1.5rem 1.25rem;
    margin: 1.5rem auto;
    position: relative;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(59, 72, 99, 0.3);
    border-radius: 1rem;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  }

  .hero-dashboard-header {
    margin-bottom: 1.5rem;
    padding-right: 5.5rem; /* Space for pill card to avoid overlap */
    position: relative;
    z-index: 2;
  }

  .hero-pill-card {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 4;
    max-width: 140px;
  }

  .hero-progress-card {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    max-width: 180px;
    width: auto;
    z-index: 4;
  }

  .hero-visual-glow {
    display: none; /* Hide glow on mobile for cleaner look */
  }

  .hero-dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-dashboard-main-stats {
    display: none !important;
  }

  .hero-stat-card {
    display: none !important;
  }

  .hero-section-header {
    margin-bottom: 0.875rem;
  }

  .hero-section-header svg {
    width: 14px;
    height: 14px;
  }

  .hero-section-header h4 {
    font-size: 0.8rem;
  }

  .hero-task-list,
  .hero-reward-list {
    gap: 0.625rem;
  }

  .hero-task-check-new {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }

  .hero-task-points-new {
    font-size: 0.8rem;
  }

  .hero-task-item-new,
  .hero-reward-item-new {
    padding: 0.7rem;
    gap: 0.75rem;
  }

  .hero-task-content strong,
  .hero-reward-content strong {
    font-size: 0.85rem;
  }

  .hero-task-content span,
  .hero-reward-content span {
    font-size: 0.75rem;
  }
}


