/* VALU Recognition - Design System CSS */
/* Based on VALU Recognition App design tokens */

/* ===== CSS Custom Properties (Design Tokens) ===== */
/* Based on VALU Recognition App Design System */
:root {
  /* Primary Colors - VALU Green (from user_scheme.dart) */
  --color-primary: #3EC086;
  --color-primary-light: #6FFCBC;
  --color-primary-dark: #2A9B67;
  --color-primary-bg: rgba(62, 192, 134, 0.1);

  /* Secondary & Tertiary (from VALU app) */
  --color-secondary: #A3A891;
  --color-tertiary: #406072;

  /* Extended Colors (from VALU app) */
  --color-badge: #4361EE;
  --color-golden: #FFE02D;
  --color-hot: #E12279;
  --color-midnight: #3A0CA3;

  /* Value Accent Colors - Enhanced palette */
  --color-integrity: #4361EE;
  --color-collaboration: #9334EA;
  --color-innovation: #F57C00;
  --color-excellence: #E12279;
  --color-respect: #406072;
  --color-growth: #3EC086;

  /* Neutrals (from VALU app) */
  --color-white: #FFFFFF;
  --color-gray-50: #F4F4F4;
  --color-gray-100: #E6E6E6;
  --color-gray-200: #C8C8C8;
  --color-gray-300: #AAAAAA;
  --color-gray-400: #8C8C8C;
  --color-gray-500: #6E6E6E;
  --color-gray-600: #505050;
  --color-gray-700: #323232;
  --color-gray-800: #1E1E1E;
  --color-gray-900: #141414;

  /* Semantic Colors */
  --color-success: #3EC086;
  --color-error: #D34141;
  --color-warning: #F57C00;
  --color-info: #4361EE;

  /* Popup/Surface Colors */
  --color-popup: #EBF1F8;
  --color-surface: #F4F4F4;

  /* Typography - VALU uses Work Sans for headlines, Lato for body */
  --font-family-heading: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows - More refined */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.16);
  --shadow-primary: 0 4px 14px rgba(62, 192, 134, 0.4);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Container - wider for better use of space */
  --container-max: 1000px;
  --container-padding: var(--space-4);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-gray-800);
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-gray-900);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--space-4);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

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

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-8) 0;
  position: relative;
  z-index: 1;
}

.page-centered {
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ===== Header ===== */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header__inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--font-size-xl);
  color: var(--color-primary);
  text-decoration: none;
}

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

.logo__img {
  height: 40px;
  width: auto;
  transition: transform var(--transition-fast);
}

.logo:hover .logo__img {
  transform: scale(1.05);
}

.logo__text {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: var(--font-size-xl);
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

/* Fallback icon for pages using the old markup */
.logo__icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 700;
  font-size: var(--font-size-lg);
  box-shadow: 0 4px 12px rgba(62, 192, 134, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.logo:hover .logo__icon {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(62, 192, 134, 0.4);
}

.header__logo-img {
  height: 32px;
  width: auto;
  transition: transform var(--transition-fast);
}

.logo:hover .header__logo-img {
  transform: scale(1.02);
}

/* ===== Footer ===== */
.footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-200);
  padding: var(--space-6) 0;
  margin-top: auto;
}

.footer__inner {
  text-align: center;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.footer__links a {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
}

.footer__brand {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
}

.footer__copyright {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  margin-top: var(--space-2);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: inherit;
  font-size: var(--font-size-base);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  min-height: 48px;
  position: relative;
  overflow: hidden;
}

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

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

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  box-shadow:
    0 6px 20px rgba(46, 125, 50, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #1a5e20 100%);
  color: var(--color-white);
  box-shadow:
    0 10px 32px rgba(46, 125, 50, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.btn--primary:active {
  transform: translateY(-1px);
  box-shadow:
    0 4px 16px rgba(46, 125, 50, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Subtle pulse animation for CTA buttons */
.btn--large.btn--primary {
  animation: subtlePulse 3s ease-in-out infinite;
}

.btn--large.btn--primary:hover {
  animation: none;
}

@keyframes subtlePulse {
  0%, 100% {
    box-shadow:
      0 6px 20px rgba(46, 125, 50, 0.4),
      0 2px 8px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0 8px 28px rgba(46, 125, 50, 0.5),
      0 4px 12px rgba(0, 0, 0, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 0 20px rgba(62, 192, 134, 0.3);
  }
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn--secondary:hover {
  background: var(--color-primary-bg);
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
}

.btn--ghost {
  background: transparent;
  color: var(--color-gray-600);
}

.btn--ghost:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-gray-800);
  transform: translateY(0);
}

.btn--full {
  width: 100%;
}

.btn--large {
  padding: var(--space-5) var(--space-12);
  font-size: calc(var(--font-size-xl) * 1.2);
  min-height: 68px;
  border-radius: var(--radius-full);
}

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

/* ===== Cards ===== */
.card {
  background: linear-gradient(180deg, var(--color-white) 0%, #fafafa 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card--recognition {
  border-left: 4px solid var(--color-primary);
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-gray-700);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: inherit;
  font-size: var(--font-size-base);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  background: var(--color-white);
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow:
    0 0 0 4px rgba(62, 192, 134, 0.15),
    inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-gray-400);
}

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

.form-hint {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
  margin-top: var(--space-1);
}

.form-error {
  font-size: var(--font-size-sm);
  color: var(--color-error);
  margin-top: var(--space-1);
}

/* Content Warning */
.content-warning {
  margin-top: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: #FEF2F2;
  border: 1px solid #FECACA;
}

.content-warning__message {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: #991B1B;
  margin: 0;
}

.content-warning__message + .content-warning__message {
  margin-top: var(--space-2);
}

.content-warning--personal_data {
  color: #92400E;
}

.content-warning--personal_data:only-child {
  background: #FFFBEB;
  border-color: #FDE68A;
}

.char-counter {
  text-align: right;
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
  margin-top: var(--space-1);
}

.char-counter--warning {
  color: var(--color-warning);
}

.char-counter--error {
  color: var(--color-error);
}

/* ===== Value Search ===== */
.value-search {
  position: relative;
  margin-bottom: var(--space-5);
}

.value-search__input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-10);
  font-family: inherit;
  font-size: var(--font-size-base);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.value-search__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-bg);
}

.value-search__input::placeholder {
  color: var(--color-gray-400);
}

.value-search__icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--font-size-lg);
  color: var(--color-gray-400);
  pointer-events: none;
}

.value-hint {
  text-align: center;
  color: var(--color-gray-500);
  font-size: var(--font-size-sm);
  padding: var(--space-4);
}

/* ===== Value Sections ===== */
.value-section {
  margin-bottom: var(--space-5);
}

.value-section__title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-gray-200);
}

/* Value Selection Counter */
.value-selection-counter {
  display: inline-block;
  margin: 0;
  padding: var(--space-1) var(--space-3);
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-gray-500);
  transition: all var(--transition-fast);
}

.value-selection-counter.has-selection {
  background: var(--color-primary-bg);
  color: var(--color-primary-dark);
}

/* Max Values Hint */
.value-max-hint {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  padding: var(--space-3) var(--space-5);
  background: var(--color-gray-800);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 1000;
  box-shadow: var(--shadow-xl);
}

.value-max-hint.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* ===== Value Badges ===== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

@media (min-width: 500px) {
  .value-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-2);
  }
}

@media (min-width: 700px) {
  .value-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: var(--space-3);
  }
}

.value-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-3) var(--space-2);
  background: var(--color-white);
  border: 2px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.value-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: currentColor;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.value-badge:hover {
  transform: translateY(-6px);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.value-badge:hover::before {
  opacity: 0.6;
}

.value-badge:hover .value-badge__icon {
  animation: bounce 0.4s ease;
}

.value-badge.selected {
  border-color: var(--color-primary);
  background: linear-gradient(165deg, var(--color-white) 0%, var(--color-primary-bg) 100%);
  box-shadow:
    0 8px 24px rgba(62, 192, 134, 0.3),
    0 2px 8px rgba(62, 192, 134, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@keyframes bounce {
  0%, 100% { transform: scale(1.1) translateY(0); }
  50% { transform: scale(1.1) translateY(-4px); }
}

.value-badge.selected::before {
  opacity: 1;
  background: var(--color-primary);
}

.value-badge.hidden {
  display: none;
}

.value-badge__icon {
  width: 47px;
  height: 47px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  font-size: 1.4rem;
  transition: transform var(--transition-fast);
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 500px) {
  .value-badge__icon {
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }
}

.value-badge:hover .value-badge__icon {
  transform: scale(1.1);
}

.value-badge__name {
  font-family: var(--font-family-heading);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--color-gray-800);
  line-height: 1.2;
}

@media (min-width: 400px) {
  .value-badge__name {
    font-size: 0.875rem;
  }
}

.value-badge__desc {
  display: none;
}

/* Value-specific colors */
.value-badge--integrity { color: #4361EE; }
.value-badge--integrity .value-badge__icon { background: linear-gradient(145deg, #E8EEFF 0%, #C7D2FE 100%); color: #4361EE; }

.value-badge--collaboration { color: #9334EA; }
.value-badge--collaboration .value-badge__icon { background: linear-gradient(145deg, #F5E6FF 0%, #E9D5FF 100%); color: #9334EA; }

.value-badge--innovation { color: #F57C00; }
.value-badge--innovation .value-badge__icon { background: linear-gradient(145deg, #FFF4E6 0%, #FFE4C4 100%); color: #F57C00; }

.value-badge--excellence { color: #E12279; }
.value-badge--excellence .value-badge__icon { background: linear-gradient(145deg, #FFE4EF 0%, #FFCCE0 100%); color: #E12279; }

.value-badge--respect { color: #6366F1; }
.value-badge--respect .value-badge__icon { background: linear-gradient(145deg, #EEF2FF 0%, #E0E7FF 100%); color: #6366F1; }

.value-badge--growth { color: #10B981; }
.value-badge--growth .value-badge__icon { background: linear-gradient(145deg, #ECFDF5 0%, #D1FAE5 100%); color: #10B981; }

.value-badge--leadership { color: #0EA5E9; }
.value-badge--leadership .value-badge__icon { background: linear-gradient(145deg, #E0F7FF 0%, #BAE6FD 100%); color: #0EA5E9; }

.value-badge--resilience { color: #DC2626; }
.value-badge--resilience .value-badge__icon { background: linear-gradient(145deg, #FEF2F2 0%, #FECACA 100%); color: #DC2626; }

.value-badge--customer { color: #EC4899; }
.value-badge--customer .value-badge__icon { background: linear-gradient(145deg, #FDF2F8 0%, #FCE7F3 100%); color: #EC4899; }

.value-badge--accountability { color: #059669; }
.value-badge--accountability .value-badge__icon { background: linear-gradient(145deg, #ECFDF5 0%, #A7F3D0 100%); color: #059669; }

.value-badge--positivity { color: #FBBF24; }
.value-badge--positivity .value-badge__icon { background: linear-gradient(145deg, #FFFBEB 0%, #FEF3C7 100%); color: #D97706; }

.value-badge--compassion { color: #8B5CF6; }
.value-badge--compassion .value-badge__icon { background: linear-gradient(145deg, #F5F3FF 0%, #EDE9FE 100%); color: #8B5CF6; }

/* ===== Template Cards ===== */
.template-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

@media (min-width: 500px) {
  .template-list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }
}

@media (min-width: 700px) {
  .template-list {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
  }
}

.template-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-gray-50) 100%);
  border: 2px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.template-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.template-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-gray-200);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.template-card:hover::before {
  opacity: 0.5;
}

.template-card:hover .template-card__emoji {
  animation: bounce 0.4s ease;
}

.template-card.selected {
  border-color: var(--color-primary);
  background: linear-gradient(165deg, var(--color-white) 0%, var(--color-primary-bg) 100%);
  box-shadow:
    0 8px 24px rgba(62, 192, 134, 0.25),
    0 2px 8px rgba(62, 192, 134, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.template-card.selected::before {
  opacity: 1;
}

.template-card__emoji {
  font-size: 2rem;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--color-white) 0%, var(--color-gray-100) 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 -2px 4px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.template-card:hover .template-card__emoji {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 -2px 4px rgba(0, 0, 0, 0.04);
}

.template-card.selected .template-card__emoji {
  background: linear-gradient(145deg, var(--color-primary-bg) 0%, rgba(62, 192, 134, 0.2) 100%);
  box-shadow: 0 2px 8px rgba(62, 192, 134, 0.2), inset 0 -2px 4px rgba(62, 192, 134, 0.1);
}

.template-card__content {
  flex: 1;
  min-width: 0;
}

.template-card__text {
  display: block;
  font-family: var(--font-family-heading);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-gray-800);
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.template-card.selected .template-card__text {
  color: var(--color-primary-dark);
}

.template-card__hint {
  display: inline-block;
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
  background: var(--color-gray-100);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
}

.template-card.selected .template-card__hint {
  background: rgba(62, 192, 134, 0.15);
  color: var(--color-primary-dark);
}

.template-write-own {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 100%);
  border: 2px dashed var(--color-gray-300);
  border-radius: var(--radius-xl);
  color: var(--color-gray-600);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
}

.template-write-own:hover {
  border-color: var(--color-primary);
  border-style: dashed;
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary-bg) 0%, var(--color-white) 100%);
  box-shadow: 0 4px 16px rgba(62, 192, 134, 0.15);
  transform: translateY(-6px);
}

.template-write-own__icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 -2px 4px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.template-write-own:hover .template-write-own__icon {
  transform: scale(1.15);
  background: var(--color-primary-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 -2px 4px rgba(0, 0, 0, 0.04);
}

/* ===== Preview Card ===== */
.preview-card {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 7 / 3;
  margin: 0 auto var(--space-4);
  background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.08),
    0 12px 48px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(62, 192, 134, 0.2);
}

.preview-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 2px;
  background: linear-gradient(135deg, rgba(62, 192, 134, 0.3), rgba(67, 97, 238, 0.2), rgba(247, 37, 133, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.preview-card__header {
  padding: var(--space-3) var(--space-5);
}

/* Container for multiple badges */
.preview-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.preview-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: #3EC086;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(62, 192, 134, 0.3);
}

.preview-card__badge:nth-child(2) {
  background: #4361EE;
}

.preview-card__badge:nth-child(3) {
  background: #F72585;
}

.preview-card__badge-icon {
  font-size: 1.3rem;
}

.preview-card__badge-name {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: #fff;
}

.preview-card__body {
  padding: var(--space-4) var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.preview-card__recipient-type {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #6B9B8F;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.message-recipient-label {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-primary-light);
}

.preview-card__message {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: var(--color-gray-800);
  line-height: 1.4;
  margin-bottom: var(--space-3);
}

.preview-card__personal {
  font-size: var(--font-size-base);
  color: var(--color-gray-600);
  font-style: italic;
  padding-left: var(--space-4);
  border-left: 3px solid #6B9B8F;
}

.preview-card__personal:empty {
  display: none;
}

.preview-card__footer {
  display: flex;
  justify-content: center;
  padding: var(--space-3) var(--space-5);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-gray-500);
  border-top: 1px solid var(--color-gray-100);
}

.preview-card__footer strong {
  color: var(--color-gray-700);
  font-weight: 600;
}

.preview-reassurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.preview-reassurance__icon {
  font-size: var(--font-size-base);
}

.preview-reassurance__text {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
}

/* ===== Success Screen ===== */
.success-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.success-header__confetti {
  font-size: 3rem;
  margin-bottom: var(--space-3);
  animation: bounce 0.6s ease-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.success-header__title {
  font-size: var(--font-size-3xl);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.success-header__subtitle {
  font-size: var(--font-size-base);
  color: var(--color-gray-600);
}

.success-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-align: center;
  margin-bottom: var(--space-6);
  border-left: 4px solid var(--color-primary);
}

.success-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-bg);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.success-card__message {
  font-size: var(--font-size-base);
  color: var(--color-gray-700);
  margin-bottom: var(--space-3);
}

.success-card__from {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
}

.success-share {
  margin-bottom: var(--space-6);
}

.success-share__label {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
  text-align: center;
  margin-bottom: var(--space-3);
}

.success-share__buttons {
  display: flex;
  gap: var(--space-3);
}

.btn--share {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-lg);
  min-height: 44px;
}

.btn--linkedin {
  background: #0A66C2;
  color: var(--color-white);
  border: none;
}

.btn--linkedin:hover {
  background: #004182;
  color: var(--color-white);
}

.btn--copy {
  background: var(--color-white);
  color: var(--color-gray-700);
  border: 2px solid var(--color-gray-200);
}

.btn--copy:hover {
  border-color: var(--color-gray-400);
  background: var(--color-gray-50);
}

.success-actions {
  max-width: 700px;
  margin: 0 auto var(--space-4);
}

.template-card__text {
  font-size: var(--font-size-base);
  color: var(--color-gray-800);
}

/* ===== Recognition Preview Card ===== */
.recognition-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--color-primary);
}

.recognition-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.recognition-card__avatar {
  width: 48px;
  height: 48px;
  background: var(--color-primary-bg);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  color: var(--color-primary);
}

.recognition-card__recipient {
  font-weight: 600;
  color: var(--color-gray-900);
}

.recognition-card__value {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-primary-bg);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.recognition-card__message {
  font-size: var(--font-size-base);
  color: var(--color-gray-700);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.recognition-card__sender {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
}

/* ===== Progress Indicator ===== */
.progress {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.progress__step {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-gray-300);
  transition: all var(--transition-fast);
}

.progress__step--active {
  background: var(--color-primary);
  width: 24px;
}

.progress__step--completed {
  background: var(--color-primary);
}

/* ===== Success State ===== */
.success-panel {
  background: var(--color-primary-bg);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
}

.success-panel__icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--color-white);
  font-size: var(--font-size-3xl);
}

.success-panel__title {
  color: var(--color-primary-dark);
  margin-bottom: var(--space-2);
}

.success-panel__message {
  color: var(--color-gray-700);
}

/* ===== Verification Screen ===== */
.verification-box {
  background: var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
}

.verification-box__icon {
  width: 64px;
  height: 64px;
  background: var(--color-info);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--color-white);
  font-size: var(--font-size-2xl);
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-sm { font-size: var(--font-size-sm); }
.text-lg { font-size: var(--font-size-lg); }

.text-muted { color: var(--color-gray-500); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.hidden { display: none !important; }

/* ===== Screen-specific ===== */
.screen {
  animation: fadeIn var(--transition-normal);
}

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

/* ===== Landing Page Hero ===== */
.hero {
  text-align: center;
  padding: var(--space-4) var(--space-4);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Spacer to push content toward center when viewport is tall enough */
.hero::before {
  content: '';
  flex: 1 1 auto;
}
.hero::after {
  content: '';
  flex: 1 1 auto;
}

/* Background Video */
.hero__video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
}

.hero__video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100vw;
  min-height: 100vh;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
  z-index: 1;
}

.hero__logo {
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 10;
}

.hero__subtitle,
.hero__title,
.hero__cta,
.hero__tagline,
.spotlight-carousel {
  position: relative;
  z-index: 10;
}

.hero__logo-img {
  width: 350px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

@media (min-width: 480px) {
  .hero__logo-img {
    width: 450px;
  }
}

.hero__title {
  font-size: calc(var(--font-size-4xl) * 1.2);
  margin-bottom: var(--space-4);
  color: var(--color-gray-900);
  line-height: 1.2;
  height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__title-dynamic {
  display: block;
  font-size: 120%;
  background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.3s ease-in-out;
  text-align: center;
}

.hero__title-dynamic.fade-out {
  opacity: 0;
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-gray-800);
  font-weight: 600;
  margin-bottom: var(--space-2);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.hero__cta {
  margin-bottom: var(--space-6);
}

.hero__cta .btn {
  box-shadow: var(--shadow-primary);
}

.hero__cta .btn:hover {
  box-shadow: 0 8px 24px rgba(62, 192, 134, 0.5);
}

.hero__tagline {
  font-size: var(--font-size-base);
  color: var(--color-gray-800);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.hero__tagline::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(62, 192, 134, 0.6);
}

/* ===== Spotlight Carousel ===== */
.spotlight-carousel {
  width: 100%;
  max-width: 600px;
  margin: 0 auto var(--space-6);
  overflow: hidden;
  position: relative;
  padding: var(--space-4) 0;
}

.spotlight-carousel__track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  will-change: transform;
  padding: var(--space-4) 0;
}

.spotlight-carousel__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: default;
  flex-shrink: 0;
  width: 85px;
  height: 85px;
  will-change: transform, opacity;
}

.spotlight-carousel__item--highlighted {
  background: rgba(255, 255, 255, 0.45);
  border: 2px solid rgba(62, 192, 134, 0.6);
  box-shadow:
    0 8px 32px rgba(62, 192, 134, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(62, 192, 134, 0.2);
}

.spotlight-carousel__emoji {
  font-size: 1.8rem;
  line-height: 1;
  transition: font-size 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.spotlight-carousel__item--active .spotlight-carousel__emoji {
  font-size: 2.4rem;
}

.spotlight-carousel__label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-gray-700);
  text-align: center;
  white-space: nowrap;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.spotlight-carousel__item--highlighted .spotlight-carousel__label {
  font-size: 0.75rem;
  color: var(--color-primary-dark);
  font-weight: 700;
}

/* Navigation dots */
.spotlight-carousel__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.spotlight-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gray-300);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.spotlight-carousel__dot--active {
  background: var(--color-primary);
  transform: scale(1.3);
}

/* Responsive */
@media (max-width: 500px) {
  .spotlight-carousel {
    max-width: 100%;
    padding: var(--space-2) 0;
  }

  .spotlight-carousel__item {
    width: 65px;
    height: 65px;
    padding: var(--space-2);
  }

  .spotlight-carousel__item--active {
    width: 90px;
    height: 90px;
  }

  .spotlight-carousel__emoji {
    font-size: 1.4rem;
  }

  .spotlight-carousel__item--active .spotlight-carousel__emoji {
    font-size: 1.8rem;
  }

  .spotlight-carousel__label {
    font-size: 0.55rem;
  }

  .spotlight-carousel__item--active .spotlight-carousel__label {
    font-size: 0.7rem;
  }
}

/* ===== Recipient Type Cards ===== */
.recipient-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

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

.recipient-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-4);
  background: var(--color-white);
  border: 2px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.recipient-type-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-6px);
  box-shadow:
    0 12px 32px rgba(62, 192, 134, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.recipient-type-card:hover .recipient-type-card__emoji {
  transform: scale(1.15);
  animation: wiggle 0.5s ease-in-out;
}

.recipient-type-card.selected {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary-bg) 0%, #fff 100%);
  box-shadow:
    0 8px 24px rgba(62, 192, 134, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@keyframes wiggle {
  0%, 100% { transform: scale(1.15) rotate(0deg); }
  25% { transform: scale(1.15) rotate(-5deg); }
  75% { transform: scale(1.15) rotate(5deg); }
}

.recipient-type-card__emoji {
  font-size: 2.5rem;
  margin-bottom: var(--space-2);
  transition: transform 0.3s ease;
}

.recipient-type-card__title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-gray-800);
}

.recipient-type-card.selected .recipient-type-card__title {
  color: var(--color-primary-dark);
}

.recipient-type-card__desc {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
  line-height: 1.4;
}

/* ===== Share Section ===== */
.share-section {
  max-width: 700px;
  margin: 0 auto var(--space-6);
  text-align: center;
}

.share-section__heading {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-gray-800);
  margin-bottom: var(--space-2);
}

.share-section__description {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
  margin-bottom: var(--space-5);
}

.share-section__title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-gray-600);
  margin-bottom: var(--space-4);
}

/* Primary share buttons - large, prominent */
.share-section__primary {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.share-btn-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  font-size: var(--font-size-base);
  font-weight: 700;
  font-family: inherit;
  transition: all var(--transition-fast);
  min-height: 56px;
}

.share-btn-large:hover {
  transform: translateY(-2px);
}

.share-btn-large__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.share-btn-large--whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.share-btn-large--whatsapp:hover {
  background: #1EB854;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.share-btn-large--linkedin {
  background: #0077B5;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 119, 181, 0.35);
}

.share-btn-large--linkedin:hover {
  background: #006097;
  box-shadow: 0 6px 24px rgba(0, 119, 181, 0.45);
}

.share-btn-large--whatsapp .share-btn-large__icon,
.share-btn-large--linkedin .share-btn-large__icon {
  fill: #fff;
}

/* Secondary share actions - smaller row */
.share-section__secondary {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.share-section__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 70px;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-btn__icon {
  width: 24px;
  height: 24px;
}

.share-btn span {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-gray-600);
}

.share-btn--native {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.share-btn--native .share-btn__icon {
  stroke: #fff;
}

.share-btn--native span {
  color: #fff;
}

.share-btn--native:hover {
  background: var(--color-primary-dark);
}

.share-btn--linkedin:hover {
  background: #0077B5;
  border-color: #0077B5;
}

.share-btn--linkedin:hover .share-btn__icon,
.share-btn--linkedin:hover span {
  color: #fff;
}

.share-btn--twitter:hover {
  background: #000;
  border-color: #000;
}

.share-btn--twitter:hover .share-btn__icon,
.share-btn--twitter:hover span {
  color: #fff;
}

.share-btn--whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
}

.share-btn--whatsapp:hover .share-btn__icon,
.share-btn--whatsapp:hover span {
  color: #fff;
}

.share-btn--copy:hover {
  background: var(--color-gray-100);
}

.share-btn--download {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: #fff;
}

.share-btn--download .share-btn__icon {
  stroke: #fff;
}

.share-btn--download span {
  color: #fff;
}

.share-btn--download:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-2px);
}

.share-section__copied {
  margin-top: var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
  animation: fadeInUp 0.3s ease-out;
}

/* Hide native share button if not supported (JS will handle) */
.share-btn--native.hidden {
  display: none;
}

/* ===== Wellbeing Check-In ===== */
.wellbeing-checkin {
  background: #6B9B8F;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin: 0 auto var(--space-6);
  max-width: 700px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.wellbeing-checkin__close {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.wellbeing-checkin__close:hover {
  color: #fff;
}

.wellbeing-checkin__title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-2);
}

.wellbeing-checkin__question {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-5);
}

.wellbeing-checkin__options {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.wellbeing-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast);
  color: #fff;
}

.wellbeing-option:hover {
  transform: scale(1.15);
}

.wellbeing-option.selected {
  transform: scale(1.25);
}

.wellbeing-option__face {
  width: 100%;
  height: 100%;
}

.wellbeing-checkin__thanks {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: #fff;
  animation: fadeInUp 0.4s ease-out;
}

.wellbeing-checkin__footer {
  margin-top: var(--space-4);
}

.wellbeing-checkin__data-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wellbeing-checkin__data-link:hover {
  background: #fff;
}

/* Legacy mood-survey styles for backwards compatibility */
.mood-survey {
  background: transparent;
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  text-align: center;
  border: none;
}

.mood-survey__question {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-gray-800);
  margin-bottom: var(--space-4);
}

.mood-survey__options {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.mood-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3);
  background: var(--color-white);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 70px;
}

.mood-option:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(62, 192, 134, 0.2);
}

.mood-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-bg);
  transform: scale(1.1);
}

.mood-option__emoji {
  font-size: 2rem;
  transition: transform var(--transition-fast);
}

.mood-option:hover .mood-option__emoji {
  transform: scale(1.2);
}

.mood-option__label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mood-option.selected .mood-option__label {
  color: var(--color-primary-dark);
}

.mood-survey__thanks {
  margin-top: var(--space-4);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-primary-dark);
  animation: fadeInUp 0.4s ease-out;
}

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

/* ===== Message Counter ===== */
.message-counter {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 10;
  width: 320px;
  text-align: center;
}

.message-counter__number {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.message-counter__label {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
  margin-top: var(--space-1);
}

/* Hide counter on smaller screens */
@media (max-width: 900px) {
  .message-counter {
    display: none;
  }
}

/* ===== Floating Background Messages ===== */
.floating-messages {
  position: fixed;
  top: 80px;
  right: var(--space-4);
  bottom: 120px;
  width: 320px;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  justify-content: flex-start;
  padding-top: var(--space-4);
}

@media (max-width: 768px) {
  .floating-messages {
    width: 260px;
    right: var(--space-2);
  }
}

.floating-message {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  font-size: var(--font-size-base);
  color: var(--color-gray-700);
  opacity: 0;
  animation: fadeInSlide 0.5s ease-out forwards;
  flex-shrink: 0;
  border-left: 3px solid var(--color-primary);
}

/* Conversation thread group (parent recognition + reply) */
.floating-thread {
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  animation: fadeInSlide 0.5s ease-out forwards;
  flex-shrink: 0;
}

/* Parent message within a thread (slightly compact) */
.floating-message--parent {
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-sm) var(--radius-xl);
}

/* Reply messages - indented like a conversation thread */
.floating-message--reply {
  margin-left: 36px;
  margin-top: 4px;
  border-left-color: var(--color-gray-200);
  background: rgba(244, 244, 244, 0.95);
  font-size: var(--font-size-sm);
  padding: var(--space-2) var(--space-3);
  position: relative;
  border-radius: var(--radius-sm) var(--radius-xl) var(--radius-xl) var(--radius-xl);
}

.floating-message__connector {
  position: absolute;
  top: -6px;
  left: -18px;
  width: 18px;
  height: 16px;
  border-left: 2px solid var(--color-gray-200);
  border-bottom: 2px solid var(--color-gray-200);
  border-bottom-left-radius: 8px;
}

.floating-message--reply .floating-message__emoji {
  font-size: 1.1rem;
}

.floating-message--reply .floating-message__text {
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--color-gray-500);
}

.floating-message__emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.floating-message__text {
  font-size: var(--font-size-base);
  line-height: 1.5;
  font-weight: 500;
  overflow: hidden;
}

/* Typewriter cursor effect */
.floating-message__text::after {
  content: '|';
  animation: blink 0.7s infinite;
  color: var(--color-primary);
  font-weight: 400;
}

.floating-message__text.typing-done::after {
  display: none;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes fadeInSlide {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(30px);
  }
}

/* ===== Screen Headers ===== */
.screen__header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.screen__title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-2);
}

.screen__subtitle {
  color: var(--color-gray-600);
}

/* ===== Navigation Buttons ===== */
.screen__nav {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

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

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

.screen__back-nav {
  margin-bottom: var(--space-4);
}

.screen__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.screen__top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: var(--space-4);
}

.value-search--compact {
  max-width: 400px;
  flex: 1;
  margin-bottom: 0;
}

.btn--small {
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-sm);
}

.btn--centered-nav {
  max-width: 200px;
  width: 100%;
}

/* ===== Skip to Content ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  z-index: 1000;
  transition: top var(--transition-fast);
}

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

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .hero__title {
    font-size: calc(var(--font-size-4xl) * 1.2);
    height: 2.6em;
  }
}

/* ===== Mobile Fixes (phones) ===== */
@media (max-width: 480px) {
  /* Reduce logo size by 25% (350px -> 262px) */
  .hero__logo-img {
    width: 262px;
  }

  /* Reduce rotating prompt text by 30% */
  .hero__title {
    font-size: calc(var(--font-size-4xl) * 0.84);
    height: 2.2em;
  }

  .hero__title-dynamic {
    font-size: 100%;
  }

  /* Reduce page padding on small screens */
  .page {
    padding: var(--space-4) 0;
  }

  /* Hide floating messages on phones - they overlap content */
  .floating-messages {
    display: none;
  }

  /* Reduce button size on mobile */
  .btn--large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
    min-height: 56px;
  }

  /* Value grid: 3 columns on very small screens */
  .value-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
  }

  /* Preview card: remove fixed aspect ratio on mobile */
  .preview-card {
    aspect-ratio: auto;
    padding: var(--space-4);
  }

  .preview-card__header {
    padding: var(--space-2) var(--space-3);
  }

  .preview-card__body {
    padding: var(--space-3);
  }

  .preview-card__message {
    font-size: var(--font-size-base);
  }

  .preview-card__footer {
    padding: var(--space-2) var(--space-3);
  }

  /* Tighten success screen spacing */
  .success-header {
    margin-bottom: var(--space-4);
  }

  .success-header__confetti {
    font-size: 2rem;
    margin-bottom: var(--space-2);
  }

  .success-header__title {
    font-size: var(--font-size-2xl);
  }

  /* Large share buttons: tighter on mobile */
  .share-btn-large {
    padding: var(--space-3) var(--space-5);
    font-size: var(--font-size-sm);
    min-height: 48px;
  }

  /* Share buttons: smaller on mobile */
  .share-btn {
    padding: var(--space-2) var(--space-3);
    min-width: 60px;
  }

  /* Wellbeing section: tighter padding */
  .wellbeing-checkin {
    padding: var(--space-4);
  }

  /* Screen header spacing */
  .screen__header {
    margin-bottom: var(--space-4);
  }

  .screen__nav {
    margin-top: var(--space-4);
  }

  /* Card padding */
  .card {
    padding: var(--space-4);
  }

  /* Template cards: tighter on mobile */
  .template-card {
    padding: var(--space-3);
  }

  /* Recipient type grid: 2 columns */
  .recipient-type-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .recipient-type-card {
    padding: var(--space-3);
  }

  .recipient-type-card__emoji {
    font-size: 2rem;
  }
}

/* Extra small phones (320px) */
@media (max-width: 360px) {
  .hero__logo-img {
    width: 220px;
  }

  .hero__title {
    font-size: calc(var(--font-size-4xl) * 0.7);
    height: 2em;
  }

  .container {
    padding: 0 var(--space-3);
  }

  .value-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-1);
  }

  .value-badge {
    padding: var(--space-2) var(--space-1);
  }

  .value-badge__icon {
    width: 40px;
    height: 40px;
  }

  .btn--large {
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-base);
    min-height: 48px;
  }

  .share-section__buttons {
    gap: var(--space-2);
  }

  .share-btn {
    min-width: 52px;
    padding: var(--space-2);
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===== Focus Visible ===== */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-100);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 10px;
  border: 2px solid var(--color-gray-100);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, #1a5e20 100%);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-gray-100);
}

/* ===== Loading Shimmer ===== */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-gray-100) 25%,
    var(--color-gray-50) 50%,
    var(--color-gray-100) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton--text {
  height: 1em;
  margin-bottom: var(--space-2);
}

.skeleton--text:last-child {
  width: 70%;
}

.skeleton--avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.skeleton--card {
  height: 120px;
  border-radius: var(--radius-xl);
}

.skeleton--badge {
  width: 80px;
  height: 32px;
  border-radius: var(--radius-full);
  display: inline-block;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ===== Success Confetti ===== */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0;
}

.confetti--circle {
  border-radius: 50%;
}

.confetti--square {
  border-radius: 2px;
}

.confetti--ribbon {
  width: 6px;
  height: 16px;
  border-radius: 2px;
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translateY(-100px) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg) scale(0.5);
  }
}

/* ===== Typography Enhancements ===== */
.hero__title,
.hero__title-dynamic {
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 4px 8px rgba(0, 0, 0, 0.05);
}

.hero__subtitle {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.hero__tagline {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Smooth font weight transitions */
.recipient-type-card__title,
.value-badge__name,
.template-card__text {
  transition: font-weight 0.3s ease, color 0.3s ease;
}

.recipient-type-card:hover .recipient-type-card__title {
  font-weight: 700;
}

.value-badge:hover .value-badge__name {
  font-weight: 700;
}

/* ===== Screen Transitions ===== */
.screen {
  animation: screenFadeIn 0.4s ease-out;
}

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

/* Staggered animations for grid items */
.recipient-type-grid .recipient-type-card,
.value-grid .value-badge,
.template-list .template-card {
  opacity: 0;
  animation: staggerFadeIn 0.4s ease-out forwards;
}

.recipient-type-grid .recipient-type-card:nth-child(1) { animation-delay: 0.05s; }
.recipient-type-grid .recipient-type-card:nth-child(2) { animation-delay: 0.1s; }
.recipient-type-grid .recipient-type-card:nth-child(3) { animation-delay: 0.15s; }
.recipient-type-grid .recipient-type-card:nth-child(4) { animation-delay: 0.2s; }
.recipient-type-grid .recipient-type-card:nth-child(5) { animation-delay: 0.25s; }
.recipient-type-grid .recipient-type-card:nth-child(6) { animation-delay: 0.3s; }
.recipient-type-grid .recipient-type-card:nth-child(7) { animation-delay: 0.35s; }
.recipient-type-grid .recipient-type-card:nth-child(8) { animation-delay: 0.4s; }
.recipient-type-grid .recipient-type-card:nth-child(9) { animation-delay: 0.45s; }
.recipient-type-grid .recipient-type-card:nth-child(10) { animation-delay: 0.5s; }
.recipient-type-grid .recipient-type-card:nth-child(11) { animation-delay: 0.55s; }

.value-grid .value-badge:nth-child(1) { animation-delay: 0.05s; }
.value-grid .value-badge:nth-child(2) { animation-delay: 0.08s; }
.value-grid .value-badge:nth-child(3) { animation-delay: 0.11s; }
.value-grid .value-badge:nth-child(4) { animation-delay: 0.14s; }
.value-grid .value-badge:nth-child(5) { animation-delay: 0.17s; }
.value-grid .value-badge:nth-child(6) { animation-delay: 0.2s; }
.value-grid .value-badge:nth-child(7) { animation-delay: 0.23s; }
.value-grid .value-badge:nth-child(8) { animation-delay: 0.26s; }
.value-grid .value-badge:nth-child(9) { animation-delay: 0.29s; }
.value-grid .value-badge:nth-child(10) { animation-delay: 0.32s; }

.template-list .template-card:nth-child(1) { animation-delay: 0.05s; }
.template-list .template-card:nth-child(2) { animation-delay: 0.1s; }
.template-list .template-card:nth-child(3) { animation-delay: 0.15s; }
.template-list .template-card:nth-child(4) { animation-delay: 0.2s; }
.template-list .template-card:nth-child(5) { animation-delay: 0.25s; }
.template-list .template-card:nth-child(6) { animation-delay: 0.3s; }
.template-list .template-card:nth-child(7) { animation-delay: 0.35s; }
.template-list .template-card:nth-child(8) { animation-delay: 0.4s; }
.template-list .template-card:nth-child(9) { animation-delay: 0.45s; }
.template-list .template-card:nth-child(10) { animation-delay: 0.5s; }
.template-list .template-card:nth-child(11) { animation-delay: 0.55s; }
.template-list .template-card:nth-child(12) { animation-delay: 0.6s; }
.template-list .template-card:nth-child(13) { animation-delay: 0.65s; }
.template-list .template-card:nth-child(14) { animation-delay: 0.7s; }

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

/* ===== Print Styles ===== */
@media print {
  .header,
  .footer,
  .btn,
  .progress {
    display: none;
  }

  body {
    background: white;
  }

  .card,
  .recognition-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ===== Employee Appreciation Day Banner ===== */
.event-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, #1a1a2e 0%, #2A9B67 50%, #1a1a2e 100%);
  background-size: 200% 100%;
  animation: bannerShimmer 8s ease-in-out infinite;
  color: #ffffff;
  text-align: center;
  padding: 14px 56px 14px 20px;
  font-family: 'Work Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

@keyframes bannerShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.event-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.event-banner__icon {
  font-size: 24px;
}

.event-banner__text {
  display: inline;
}

.event-banner__date {
  color: #6FFCBC;
  font-weight: 700;
}

.event-banner__cta {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-left: 4px;
}

.event-banner__cta:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.event-banner__close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s ease;
}

.event-banner__close:hover {
  color: #ffffff;
}

/* Push hero content down when banner is visible */
.has-event-banner .hero {
  padding-top: calc(var(--space-8) + 56px);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .event-banner {
    font-size: 12px;
    padding: 8px 40px 8px 12px;
  }

  .event-banner__cta {
    display: none;
  }

  .has-event-banner .hero {
    padding-top: calc(var(--space-8) + 42px);
  }

}

/* ===== Delivery Method Cards ===== */
.delivery-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.delivery-method-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4) var(--space-5);
  background: var(--color-white);
  border: 2px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
}

.delivery-method-card:hover:not(:disabled) {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(62, 192, 134, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.delivery-method-card.selected {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary-bg) 0%, #fff 100%);
  box-shadow: 0 8px 24px rgba(62, 192, 134, 0.2);
}

.delivery-method-card__check {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.delivery-method-card.selected .delivery-method-card__check {
  display: block;
}

.delivery-method-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-primary-bg);
  color: var(--color-primary-dark);
  transition: all 0.3s ease;
}

.delivery-method-card.selected .delivery-method-card__icon {
  background: var(--color-primary);
  color: var(--color-white);
}

.delivery-method-card__title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-gray-800);
  margin-top: var(--space-1);
}

.delivery-method-card.selected .delivery-method-card__title {
  color: var(--color-primary-dark);
}

.delivery-method-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
  line-height: 1.4;
}

/* Disabled / Coming Soon */
.delivery-method-card--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--color-gray-50);
}

.delivery-method-card--disabled:hover {
  border-color: var(--color-gray-100);
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
}

.delivery-method-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--color-gray-400);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Share Link Box (success screen) */
.share-link-box {
  max-width: 500px;
  margin: var(--space-5) auto;
  padding: var(--space-5);
  background: linear-gradient(135deg, var(--color-primary-bg) 0%, #fff 100%);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-xl);
  text-align: center;
}

.share-link-box__title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-gray-800);
  margin-bottom: var(--space-1);
}

.share-link-box__subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
  margin-bottom: var(--space-4);
}

.share-link-box__url-row {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.share-link-box__input {
  flex: 1;
  padding: var(--space-3);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--color-gray-700);
  background: var(--color-white);
  text-overflow: ellipsis;
}

.share-link-box__copied {
  font-size: var(--font-size-sm);
  color: var(--color-primary-dark);
  font-weight: 600;
  margin-top: var(--space-2);
}

/* Stagger animations */
.delivery-method-grid .delivery-method-card {
  animation: screenFadeIn 0.4s ease both;
}
.delivery-method-grid .delivery-method-card:nth-child(1) { animation-delay: 0.05s; }
.delivery-method-grid .delivery-method-card:nth-child(2) { animation-delay: 0.1s; }
.delivery-method-grid .delivery-method-card:nth-child(3) { animation-delay: 0.15s; }

@media (max-width: 768px) {
  .delivery-method-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a1a2e;
  color: #ffffff;
  padding: var(--space-4) 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 240px;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-banner__text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cookie-banner__actions {
    justify-content: center;
  }
}
