@layer components {
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
  }
  
  .btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, var(--accent), #ff7d57);
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 91, 46, 0.25);
  }
  
  .btn-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
  }
  
  /* Primary CTA in hero */
  .btn-today-stats,
  .btn-last-races {
    position: relative;
    width: auto;
    min-width: 260px;
    min-height: 104px;
    padding: 18px 20px;
    border-radius: 20px;
    align-self: flex-start;
    text-align: center;
    font-size: 0.98rem;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: 0.01em;
    color: var(--text);
    border: 1px solid rgba(255, 184, 77, 0.26);
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.14), rgba(255, 91, 46, 0.10));
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.05) inset,
      0 12px 28px rgba(255, 91, 46, 0.16);
  }
  
  .btn-today-stats:hover,
  .btn-last-races:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.18), rgba(255, 91, 46, 0.14));
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08) inset,
      0 16px 34px rgba(255, 91, 46, 0.22);
  }
  
  /* Secondary hero CTA with highlighted accent border */
  .btn-driver-day {
    position: relative;
    width: auto;
    min-width: 260px;
    min-height: 104px;
    padding: 18px 20px;
    border-radius: 20px;
    align-self: flex-start;
    text-align: center;
    font-size: 0.98rem;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: 0.01em;
    color: var(--text);
    border: 1px solid rgba(255, 184, 77, 0.26);
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.14), rgba(255, 91, 46, 0.10));
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.05) inset,
      0 12px 28px rgba(255, 91, 46, 0.16);
  }
  
  .btn-driver-day:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.18), rgba(255, 91, 46, 0.14));
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08) inset,
      0 16px 34px rgba(255, 91, 46, 0.22);
  }
  
  .hero-actions-stacked-mobile .btn-today-stats,
  .hero-actions-stacked-mobile .btn-last-races,
  .hero-actions-stacked-mobile .btn-driver-day {
    min-width: 0;
    min-height: 54px;
    padding: 8px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    line-height: 1.08;
    letter-spacing: 0;
    border-color: rgba(255, 255, 255, 0.1);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
      rgba(31, 37, 47, 0.72);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 12px 26px rgba(0, 0, 0, 0.16);
  }
  
  .hero-actions-stacked-mobile .btn-today-stats {
    color: #fff6e8;
    border-color: rgba(255, 186, 92, 0.36);
    background:
      radial-gradient(circle at top left, rgba(255, 209, 102, 0.3), transparent 42%),
      linear-gradient(135deg, rgba(255, 145, 48, 0.32), rgba(255, 91, 46, 0.16)),
      rgba(40, 32, 28, 0.84);
  }
  
  .hero-actions-stacked-mobile .btn-last-races,
  .hero-actions-stacked-mobile .btn-driver-day {
    color: rgba(255, 255, 255, 0.9);
  }
  
  .hero-actions-stacked-mobile .btn-driver-day {
    display: grid;
    gap: 2px;
    align-content: center;
    justify-items: center;
    font-size: 0.78rem;
    overflow: hidden;
  }
  
  .driver-day-btn-label,
  .driver-day-btn-name {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .driver-day-btn-label {
    font-size: 0.66rem;
    line-height: 1.05;
    opacity: 0.82;
  }
  
  .driver-day-btn-name {
    font-size: 0.78rem;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }
  
  .hero-actions-stacked-mobile .btn:hover,
  .hero-actions-stacked-mobile .btn:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 209, 102, 0.4);
    background:
      radial-gradient(circle at top left, rgba(255, 209, 102, 0.22), transparent 40%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
      rgba(36, 40, 50, 0.86);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 16px 32px rgba(0, 0, 0, 0.22);
  }
  
  /* Pulsing attention ring for primary CTA */
  .pulse-attention {
    animation: pulseAttention 2.1s infinite;
  }
  
  @keyframes pulseAttention {
    0% {
      box-shadow:
        0 0 0 0 rgba(255, 184, 77, 0.34),
        0 10px 30px rgba(255, 140, 0, 0.16);
    }
    70% {
      box-shadow:
        0 0 0 12px rgba(255, 184, 77, 0),
        0 10px 30px rgba(255, 140, 0, 0.16);
    }
    100% {
      box-shadow:
        0 0 0 0 rgba(255, 184, 77, 0),
        0 10px 30px rgba(255, 140, 0, 0.16);
    }
  }
}
