/* =========================================================================
   Marktprognoze – Custom CSS with Tailwind Layers
   Consolidated from custom-combined.css, components.css, responsive.css
   Organized with @layer for better maintainability
   ========================================================================= */

@layer base {
  /* CSS Variables */
  :root {
    /* Colors */
    --primary-500: #00cc99;
    --primary-600: #00b386;
    --primary-700: #009973;
    --accent-500: #ffdf00;
    --accent-600: #e6c900;
    --danger-500: #e53935;
    --surface-glass: rgba(255, 255, 255, 0.05);
    --surface-glass-hover: rgba(255, 255, 255, 0.08);
    --surface-dark: rgba(26, 37, 49, 0.9);
    --text-dark: #1a2531;
    --text-muted: #94a3b8;
    --text-light: #ffffff;
    --text-light-dim: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(255, 255, 255, 0.15);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-s: 1rem;
    --space-m: 1.5rem;
    --space-l: 2rem;
    --space-xl: 3rem;

    /* Radius */
    --radius-s: 12px;
    --radius-m: 16px;
    --radius-l: 24px;

    /* Shadows */
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --shadow-glow: 0 0 20px rgba(0, 204, 153, 0.3);
    --shadow-text: 0 2px 4px rgba(0, 0, 0, 0.8);

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* High contrast mode support */
  @media (prefers-contrast: high) {
    :root {
      --border-glass: rgba(255, 255, 255, 0.3);
      --text-light-dim: rgba(255, 255, 255, 1);
    }
  }

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

  /* Smooth scroll behavior */
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
  }
}

@layer components {
  /* ===============================
     BACKGROUND VIDEO
     =============================== */
  .video-bg-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #0a0a0a;
  }

  .video-bg-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.7) 100%
    );
    pointer-events: none;
  }

  .video-bg,
  #bgImageFallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
  }

  #bgImageFallback {
    display: none;
    background-color: #0a0a0a;
  }

  /* Mobile optimization */
  @media (max-width: 768px) {
    .video-bg {
      display: none !important;
    }
    #bgImageFallback {
      display: block !important;
    }
  }

  /* ===============================
     TYPOGRAPHY ENHANCEMENTS
     =============================== */
  .hero-subtitle,
  section p,
  section h2 {
    text-shadow: var(--shadow-text);
  }

  /* Enhanced Trust Seal */
  img[alt='Vertrauenssiegel'] {
    width: auto;
    height: 80px;
    max-width: 250px;
    margin: var(--space-m) auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transition: transform var(--transition);
  }

  img[alt='Vertrauenssiegel']:hover {
    transform: translateY(-2px);
  }

  /* ===============================
     FORM STYLES
     =============================== */
  .form-container {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-l);
    padding: var(--space-l);
    box-shadow: var(--shadow-glass);
    max-width: 600px;
    margin-inline: auto;
    border: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
  }

  .form-container > * {
    position: relative;
    z-index: 1;
  }

  /* Hero form styling */
  .hero .form-container {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    backdrop-filter: none;
  }

  .hero form {
    display: flex;
    gap: var(--space-m);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .form-group {
    margin-block-end: var(--space-m);
  }

  .form-group label {
    display: block;
    font-weight: 500;
    margin-block-end: var(--space-xs);
    color: var(--text-light-dim);
  }

  input[type='text'],
  input[type='email'],
  input[type='tel'],
  textarea,
  select {
    width: 100%;
    padding: var(--space-s);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-m);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-light);
    transition: all var(--transition);
  }

  input::placeholder,
  textarea::placeholder {
    color: var(--text-muted);
  }

  input:focus,
  textarea:focus,
  select:focus {
    outline: none;
    border-color: var(--primary-500);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 204, 153, 0.2);
  }

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

  select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    appearance: none;
  }

  .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-s);
    margin-block-end: var(--space-m);
  }

  .checkbox-group input[type='checkbox'] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-500);
  }

  .checkbox-group label {
    color: var(--text-light-dim);
    cursor: pointer;
  }

  /* ===============================
     BUTTON STYLES
     =============================== */
  .cta-button {
    background: linear-gradient(
      135deg,
      var(--primary-500) 0%,
      var(--primary-600) 100%
    );
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-m);
    padding: var(--space-s) var(--space-l);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 204, 153, 0.3);
    white-space: nowrap;
    text-align: center;
  }

  /* Yellow CTA buttons */
  .cta-button[style*='background: var(--accent-500)'],
  .cta-button[style*='background: #ffdf00'] {
    background: var(--accent-500) !important;
    color: var(--text-dark) !important;
    box-shadow: 0 4px 15px rgba(255, 223, 0, 0.3);
  }

  /* Danger CTA buttons */
  .cta-button[style*='background: var(--danger-500)'] {
    background: var(--danger-500) !important;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
  }

  .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent
    );
    transition: left 0.5s;
  }

  .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 204, 153, 0.4);
    text-decoration: none;
  }

  .cta-button:hover::before {
    left: 100%;
  }

  .cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 204, 153, 0.5);
  }

  .cta-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }

  /* ===============================
     PROGRESS BAR
     =============================== */
  .progress-bar-container {
    text-align: center;
    margin-block: var(--space-l);
  }

  .progress-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
  }

  .progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid var(--border-glass);
    transition: all var(--transition);
  }

  .progress-step.completed {
    background: var(--primary-500);
    color: var(--text-light);
    border-color: var(--primary-500);
    box-shadow: 0 0 10px rgba(0, 204, 153, 0.5);
  }

  .progress-step.active {
    border-color: var(--accent-500);
    color: var(--text-light);
    background: rgba(255, 223, 0, 0.2);
    box-shadow: 0 0 10px rgba(255, 223, 0, 0.5);
  }

  .progress-line {
    flex: 1;
    height: 4px;
    background: var(--border-glass);
    border-radius: 2px;
    max-width: 60px;
    position: relative;
    overflow: hidden;
  }

  .progress-line.completed {
    background: var(--primary-500);
  }

  .progress-line.completed::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.5),
      transparent
    );
    animation: shimmer 2s infinite;
  }

  @keyframes shimmer {
    0% {
      left: -100%;
    }
    100% {
      left: 100%;
    }
  }

  .progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-block-start: var(--space-xs);
    max-width: 300px;
    margin-inline: auto;
  }

  /* ===============================
     CARDS & ARTICLES
     =============================== */
  .card,
  article {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-m);
    padding: var(--space-m);
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--border-glass);
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
  }

  .card:hover,
  article:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.45);
    border-color: rgba(0, 204, 153, 0.3);
  }

  .card::before,
  article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
    transform: scaleX(0);
    transition: transform var(--transition);
  }

  .card:hover::before,
  article:hover::before {
    transform: scaleX(1);
  }

  .card img,
  article img {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-s);
    filter: none;
    opacity: 1;
  }

  /* Avatar images */
  img[src*='avatar'] {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    filter: none;
  }

  /* Icon SVGs */
  img[src*='icons/'] {
    width: 32px;
    height: 32px;
    filter: none;
  }

  /* Testimonial Cards */
  figure.card blockquote {
    font-style: italic;
    color: var(--text-light-dim);
    margin: var(--space-s) 0;
  }

  figure.card figcaption {
    color: var(--primary-500);
    font-weight: 500;
  }

  /* ===============================
     FOOTER
     =============================== */
  footer {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-xl) var(--space-m);
    font-size: 0.875rem;
    color: var(--text-light-dim);
    border-top: 1px solid var(--border-glass);
    position: relative;
    z-index: 10;
    margin-top: var(--space-xl);
  }

  /* Smooth transition to footer */
  footer::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
    pointer-events: none;
  }

  .footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-m);
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin-inline: auto;
  }

  .footer-logo img {
    height: 36px;
    width: auto;
    opacity: 0.8;
    transition: opacity var(--transition);
  }

  .footer-logo img:hover {
    opacity: 1;
  }

  .footer-links {
    display: flex;
    gap: var(--space-m);
    flex-wrap: wrap;
  }

  .footer-links a {
    color: var(--text-light-dim);
    padding: var(--space-xs) var(--space-s);
    border-radius: var(--radius-s);
    transition: all var(--transition);
  }

  .footer-links a:hover,
  .footer-links a:focus {
    color: var(--primary-500);
    background: rgba(0, 204, 153, 0.1);
    text-decoration: none;
  }

  .footer-copy {
    text-align: right;
    flex: 1;
    min-width: 200px;
  }

  .footer-copy small {
    display: block;
    margin-top: var(--space-xs);
    opacity: 0.7;
  }

  @media (max-width: 600px) {
    .footer-container {
      flex-direction: column;
      text-align: center;
    }
    .footer-copy {
      text-align: center;
    }
    .footer-links {
      justify-content: center;
    }
  }

  /* ===============================
     FLASH MESSAGES
     =============================== */
  .flash-messages {
    max-width: 600px;
    margin: var(--space-m) auto;
    list-style: none;
    padding: 0;
  }

  .flash-messages li {
    padding: var(--space-s);
    margin-block-end: var(--space-s);
    border-radius: var(--radius-m);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slideDown 0.3s ease-out;
  }

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

  .flash-messages li.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
  }

  .flash-messages li.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
  }

  .flash-messages li.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
  }

  /* ===============================
     ERROR PAGES
     =============================== */
  .error-page .hero h1 {
    background: linear-gradient(135deg, var(--danger-500) 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* ===============================
     ACCESSIBILITY
     =============================== */
  .skip-link {
    position: absolute;
    left: -1000px;
    top: var(--space-s);
    background: var(--accent-500);
    color: var(--text-dark);
    padding: var(--space-s);
    border-radius: var(--radius-s);
    z-index: 1000;
  }

  .skip-link:focus {
    left: var(--space-m);
  }

  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  /* ===============================
     ANIMATIONS
     =============================== */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero,
  .form-container,
  .card {
    animation: fadeIn 0.6s ease-out;
  }

  /* Stagger animations for cards */
  .card:nth-child(1) {
    animation-delay: 0.1s;
  }
  .card:nth-child(2) {
    animation-delay: 0.2s;
  }
  .card:nth-child(3) {
    animation-delay: 0.3s;
  }

  /* ===============================
     MEDIA QUERIES (basic)
     =============================== */
  @media (max-width: 600px) {
    h1 {
      font-size: clamp(1.75rem, 4vw, 2.5rem);
    }
    h2 {
      font-size: clamp(1.25rem, 3vw, 1.75rem);
    }
    .form-container {
      padding: var(--space-m);
    }
    .cta-button {
      font-size: 1rem;
      padding: var(--space-s) var(--space-m);
    }
    img[alt='Vertrauenssiegel'] {
      height: 60px;
    }
  }

  /* ===============================
     ULTRA-PREMIUM GLASSMORPHISM & EFFECTS
     =============================== */
  .card.glass-premium {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.02)
    );
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .card.glass-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent
    );
    transition: left 0.7s ease;
  }

  .card.glass-premium:hover::before {
    left: 100%;
  }

  .card.glass-premium:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
      0 30px 60px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.15),
      0 0 30px rgba(0, 204, 153, 0.3);
    border-color: rgba(0, 204, 153, 0.4);
  }

  /* Neon Glow Effects */
  .neon-glow {
    text-shadow:
      0 0 10px var(--primary-500),
      0 0 20px var(--primary-500),
      0 0 30px var(--primary-500);
    animation: neon-pulse 2s infinite alternate;
  }

  @keyframes neon-pulse {
    from {
      text-shadow:
        0 0 10px var(--primary-500),
        0 0 20px var(--primary-500),
        0 0 30px var(--primary-500);
    }
    to {
      text-shadow:
        0 0 15px var(--primary-500),
        0 0 25px var(--primary-500),
        0 0 35px var(--primary-500),
        0 0 45px var(--primary-500);
    }
  }

  /* Gradient Border Elements */
  .gradient-border {
    position: relative;
    background: var(--surface-glass);
    border-radius: var(--radius-l);
    padding: 1px;
  }

  .gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(
      45deg,
      var(--primary-500),
      var(--accent-500),
      #ff6b6b,
      var(--primary-500)
    );
    border-radius: calc(var(--radius-l) + 2px);
    z-index: -1;
    animation: gradient-rotate 3s linear infinite;
    background-size: 400% 400%;
  }

  @keyframes gradient-rotate {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

  .gradient-border .content {
    background: var(--surface-dark);
    border-radius: var(--radius-l);
    padding: var(--space-l);
    position: relative;
    z-index: 1;
  }

  /* Premium Button Styles */
  .btn-premium {
    background: linear-gradient(
      135deg,
      var(--primary-500) 0%,
      var(--accent-500) 100%
    );
    color: var(--text-dark);
    font-weight: 700;
    padding: var(--space-s) var(--space-xl);
    border-radius: 50px;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow:
      0 10px 30px rgba(0, 204, 153, 0.4),
      0 0 20px rgba(0, 204, 153, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .btn-premium:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
      0 15px 40px rgba(0, 204, 153, 0.6),
      0 0 30px rgba(0, 204, 153, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
    animation: btn-shake 0.5s ease;
  }

  @keyframes btn-shake {
    0%,
    100% {
      transform: translateY(-3px) scale(1.05);
    }
    25% {
      transform: translateY(-3px) scale(1.05) rotate(1deg);
    }
    75% {
      transform: translateY(-3px) scale(1.05) rotate(-1deg);
    }
  }

  /* Donation Elements */
  .donation-card {
    background: linear-gradient(
      135deg,
      rgba(255, 215, 0, 0.1),
      rgba(255, 140, 0, 0.1)
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-l);
    padding: var(--space-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .donation-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
      circle,
      rgba(255, 215, 0, 0.1) 0%,
      transparent 70%
    );
    animation: donation-glow 4s linear infinite;
  }

  @keyframes donation-glow {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  .donation-btn {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: var(--text-dark);
    font-weight: 800;
    padding: var(--space-m) var(--space-xl);
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow:
      0 10px 30px rgba(255, 215, 0, 0.4),
      0 0 20px rgba(255, 215, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-s);
    font-size: 1.2rem;
  }

  .donation-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
      0 15px 40px rgba(255, 215, 0, 0.6),
      0 0 30px rgba(255, 215, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: pulse-gold 1s infinite alternate;
  }

  @keyframes pulse-gold {
    from {
      box-shadow:
        0 15px 40px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.5);
    }
    to {
      box-shadow:
        0 15px 50px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.7);
    }
  }

  /* Live Indicators */
  .live-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #ef4444;
    padding: var(--space-xs) var(--space-s);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    animation: live-pulse 2s infinite;
  }

  .live-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: live-dot 1.5s infinite;
  }

  @keyframes live-pulse {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0.7;
    }
  }

  @keyframes live-dot {
    0%,
    100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.3);
    }
  }

  /* Premium Text Effects */
  .text-gradient {
    background: linear-gradient(
      135deg,
      var(--primary-500),
      var(--accent-500),
      #ff6b6b
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
  }

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

  /* Reduced Motion Support */
  @media (prefers-reduced-motion: reduce) {
    .card.glass-premium,
    .btn-premium,
    .donation-btn,
    .live-indicator,
    .neon-glow,
    .gradient-border::before {
      animation: none !important;
      transition: none !important;
    }
  }

  /* Exit-intent Modal */
  .exit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
  }

  .exit-modal.active {
    opacity: 1;
    visibility: visible;
  }

  .exit-modal-content {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-l);
    padding: var(--space-xl);
    max-width: 500px;
    width: 90%;
    box-shadow:
      var(--shadow-glass),
      0 25px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.4s ease;
  }

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

  .exit-modal-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-m);
    color: var(--text-light);
  }

  .exit-modal-text {
    color: var(--text-light-dim);
    margin-bottom: var(--space-l);
  }

  .exit-modal-close {
    position: absolute;
    top: var(--space-m);
    right: var(--space-m);
    background: transparent;
    border: none;
    color: var(--text-light-dim);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
  }

  .exit-modal-close:hover {
    color: var(--text-light);
  }

  /* Cookie Consent Banner */
  .cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: var(--space-m);
    display: none;
  }

  .cookie-consent.active {
    display: block;
  }

  .cookie-consent-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-l);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
  }

  .cookie-consent-title {
    margin-top: 0;
    margin-bottom: var(--space-s);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
  }

  .cookie-consent-message {
    margin-bottom: var(--space-m);
    color: var(--text-light-dim);
    line-height: 1.5;
  }

  .cookie-consent-ccpa {
    margin-bottom: var(--space-m);
    font-size: 0.875rem;
    color: var(--text-muted);
    border-left: 3px solid var(--accent);
    padding-left: var(--space-s);
  }

  .cookie-consent-actions {
    display: flex;
    gap: var(--space-m);
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .cookie-consent-actions .btn {
    min-width: 120px;
  }

  /* ===============================
     COMPONENTS FROM components.css
     =============================== */

  /* COUNTDOWN TIMER */
  .countdown {
    display: flex;
    justify-content: center;
    gap: var(--space-m);
    margin: var(--space-l) 0;
  }

  .countdown-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-m);
    padding: var(--space-s) var(--space-m);
    min-width: 70px;
  }

  .countdown-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1;
  }

  .countdown-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-xs);
  }

  .countdown-separator {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
  }

  /* MARKET TICKER */
  .market-ticker {
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-s) 0;
    overflow: hidden;
  }

  .ticker-track {
    display: flex;
    animation: ticker-scroll 40s linear infinite;
    width: max-content;
  }

  .ticker-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0 var(--space-l);
    white-space: nowrap;
  }

  .ticker-symbol {
    font-weight: 700;
    color: var(--text-light);
  }

  .ticker-price {
    font-family: 'Space Mono', monospace;
    color: rgba(255, 255, 255, 0.9);
  }

  .ticker-change {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-s);
  }

  .ticker-change.up {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
  }

  .ticker-change.down {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
  }

  @keyframes ticker-scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  /* SUBSCRIBE FORM */
  .subscribe-form {
    display: flex;
    gap: var(--space-s);
    max-width: 500px;
    margin: 0 auto var(--space-l);
    background-color: rgba(255, 255, 255, 0.1);
    padding: var(--space-xs);
    border-radius: var(--radius-l);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .subscribe-form input[type='email'] {
    flex: 1;
    padding: var(--space-s) var(--space-m);
    border: none;
    border-radius: var(--radius-m);
    background-color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
  }

  .subscribe-form input[type='email']:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
  }

  .subscribe-form .btn {
    white-space: nowrap;
  }

  @media (max-width: 479px) {
    .subscribe-form {
      flex-direction: column;
      background: none;
      border: none;
      padding: 0;
    }

    .subscribe-form input[type='email'] {
      background-color: var(--text-light);
    }

    .subscribe-form .btn {
      width: 100%;
    }
  }

  /* BREADCRUMB */
  .breadcrumb,
  .page-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: var(--space-m) 0;
  }

  .breadcrumb a,
  .page-breadcrumb a {
    color: var(--primary-500);
    transition: color var(--transition);
  }

  .breadcrumb a:hover,
  .page-breadcrumb a:hover {
    color: var(--primary-600);
  }

  .breadcrumb span,
  .page-breadcrumb span {
    color: var(--text-light);
  }

  /* PAGINATION */
  .pagination,
  .blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-l);
  }

  .pagination-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-s);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    background-color: var(--surface-glass);
    border: 1px solid var(--border-glass);
    transition: all var(--transition);
  }

  .pagination-item:hover {
    border-color: var(--primary-500);
    color: var(--primary-500);
  }

  .pagination-item.active {
    background-color: var(--primary-500);
    border-color: var(--primary-500);
    color: var(--text-light);
  }

  .pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  /* SHARE BUTTONS */
  .share-buttons,
  .blog-share-buttons {
    display: flex;
    gap: var(--space-xs);
  }

  .share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--surface-glass);
    color: var(--text-muted);
    transition: all var(--transition);
  }

  .share-btn:hover {
    background-color: var(--primary-500);
    color: var(--text-light);
  }

  .share-btn svg {
    width: 18px;
    height: 18px;
  }

  /* STEPS GRID */
  .steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-l);
    position: relative;
  }

  .step-card {
    text-align: center;
    position: relative;
  }

  .step-number {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
      135deg,
      var(--primary-500) 0%,
      var(--primary-600) 100%
    );
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    margin: 0 auto var(--space-m);
    box-shadow: var(--shadow-glass);
  }

  .step-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
  }

  .step-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
  }

  .step-connector {
    display: none;
  }

  @media (min-width: 768px) {
    .step-connector {
      display: block;
      position: absolute;
      top: 32px;
      left: calc(50% + 50px);
      width: calc(100% - 100px);
      height: 2px;
      background: linear-gradient(
        90deg,
        var(--primary-500) 0%,
        var(--accent-500) 100%
      );
      z-index: 0;
    }
  }

  /* TABS */
  .markets-tabs .tabs {
    display: flex;
    flex-direction: column;
    gap: var(--space-l);
  }

  .tab-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xs);
  }

  .tab-panel {
    display: none;
  }

  .tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
  }

  /* FEATURE CARD */
  .feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .feature-card .card-text {
    flex-grow: 1;
    margin-bottom: var(--space-l);
  }

  .feature-card .btn-outline {
    margin-top: auto;
  }

  /* BLOG GRID */
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-l);
    align-items: stretch;
  }

  .blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .blog-card-content--home {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .blog-card-excerpt {
    flex-grow: 1;
  }

  .blog-card-image-link {
    aspect-ratio: 16/9;
    display: block;
    overflow: hidden;
  }

  .blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* TIMER */
  .timer {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-500);
    text-shadow: 0 0 10px rgba(255, 223, 0, 0.5);
    margin: var(--space-m) 0;
    padding: var(--space-s);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-m);
    display: inline-block;
  }

  /* AI TRUST BADGE */
  .ai-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 168, 107, 0.1);
    border: 1px solid rgba(0, 168, 107, 0.3);
    color: #00ffa3;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
  }

  /* SPINNER */
  .spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-glass);
    border-top-color: var(--primary-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  /* SCROLL TO TOP */
  .scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-500);
    color: var(--text-light);
    border-radius: 50%;
    box-shadow: var(--shadow-glass);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 50;
  }

  .scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .scroll-top:hover {
    background-color: var(--primary-600);
    transform: translateY(-2px);
  }
}

@layer utilities {
  /* Additional utility classes */
  .text-shadow {
    text-shadow: var(--shadow-text);
  }

  .backdrop-blur-glass {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .glass-bg {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
  }
}

/* ===============================
   RESPONSIVE MEDIA QUERIES (from responsive.css)
   =============================== */
@media (max-width: 479px) {
  /* Typography */
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }

  /* Hero */
  .hero {
    padding: var(--space-xl) 0;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-subtitle {
    font-size: 0.9375rem;
  }

  /* Buttons */
  .btn {
    padding: var(--space-xs) var(--space-m);
  }
  .btn-lg {
    padding: var(--space-s) var(--space-l);
    font-size: 1rem;
  }

  /* Grid */
  .grid-cols-1 {
    grid-template-columns: 1fr;
  }
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-s);
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-l);
  }
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  /* Trust bar */
  .trust-items {
    gap: var(--space-s);
  }
  .trust-item {
    font-size: 0.75rem;
  }

  /* Cards */
  .card-body {
    padding: var(--space-s);
  }

  /* CTA */
  .cta-section {
    padding: var(--space-xl) 0;
  }

  /* Forms */
  .form-checkbox {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Modal */
  .modal {
    margin: var(--space-s);
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 480px) and (max-width: 639px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }

  .hero-title {
    font-size: 2rem;
  }

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

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

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

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

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

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

@media (min-width: 640px) and (max-width: 1023px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.5rem;
  }

  .hero {
    padding: var(--space-2xl) 0;
  }
  .hero-title {
    font-size: 2.5rem;
  }

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

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

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

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

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

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

@media (min-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.25rem;
  }

  .hero {
    padding: var(--space-3xl) 0;
  }
  .hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
  }

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

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

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

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

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

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

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn {
    min-height: 44px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    min-height: 44px;
  }

  /* Disable hover effects on touch */
  .card-hover:hover {
    transform: none;
  }
  .feature-card:hover {
    transform: none;
  }
  .blog-card:hover {
    transform: none;
  }
}

/* Glass card styles */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Text gradient */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    font-size: 12pt;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .hero {
    padding: 0;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
  }

  .footer {
    padding-top: var(--space-s);
  }
}
