#age-gate {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;

  /* Градиентный фон — тренд 2026 */
  background:
    radial-gradient(ellipse at 30% 20%, rgba(132,11,85,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(168,23,110,0.08) 0%, transparent 50%),
    linear-gradient(135deg, #F5F0EB 0%, #FAF8F5 50%, #F0E8E0 100%);

  /* Blur для контента за заглушкой */
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);

  opacity: 1;
  transition: opacity 0.5s ease, backdrop-filter 0.5s ease;
}

#age-gate.hidden {
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

/* ————— CARD ————— */
.ag-card {
  background: rgba(255, 253, 250, 0.88);
  border: 1px solid rgba(132, 11, 85, 0.08);
  border-radius: 20px;
  padding: 48px 44px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 8px 24px rgba(132,11,85,0.08);
  position: relative;
  overflow: hidden;

  /* Entrance animation */
  animation: cardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Декоративная линия сверху */
.ag-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 0 0 4px 4px;
}

/* ————— LOGO ————— */
.ag-logo {
  margin-bottom: 24px;
}
.ag-logo img {
  height: 32px;
  width: auto;
  opacity: 0.9;
}
.ag-logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--brand);
  text-transform: uppercase;
}

/* ————— BADGE 18+ ————— */
.ag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 24px;
  position: relative;

  /* Gradient border */
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 4px 20px var(--brand-glow);
}
.ag-badge::after {
  content: '18+';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FAF8F5;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--brand);
  letter-spacing: -0.5px;
}

/* Pulse animation */
.ag-badge {
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px var(--brand-glow); }
  50%      { box-shadow: 0 4px 32px rgba(132,11,85,0.35); }
}

/* ————— TEXT ————— */
.ag-title {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-top: 5px;
}
.ag-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6B6560;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* ————— BUTTONS ————— */
.ag-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.ag-btn {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

/* Focus state — accessibility */
.ag-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* Primary — gradient */
.ag-btn-yes {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff;
  box-shadow: 0 4px 16px var(--brand-glow);
  flex: 1;
  max-width: 220px;
}
.ag-btn-yes:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(132,11,85,0.35);
  filter: brightness(1.08);
}
.ag-btn-yes:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px var(--brand-glow);
}

/* Ripple effect */
.ag-btn-yes::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.ag-btn-yes:hover::after { opacity: 1; }

/* Secondary */
.ag-btn-no {
  background: transparent;
  color: #9E9890;
  border: 1.5px solid #F0ECE6;
  flex: 1;
  max-width: 180px;
}
.ag-btn-no:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(132,11,85,0.03);
  transform: translateY(-1px);
}

/* ————— TRUST SIGNALS (тренд — trust повышает CR на 10-20%) ————— */
.ag-trust {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.04);
  margin-bottom: 20px;
}
.ag-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #9E9890;
  letter-spacing: 0.2px;
}
.ag-trust-icon {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

/* ————— FOOTER ————— */
.ag-footer {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #9E9890;
  line-height: 1.6;
}
.ag-footer a {
  color: var(--brand);
  text-decoration: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ag-footer a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* ————— DENIED STATE ————— */
.ag-denied { display: none; }
.ag-denied.visible { display: block; }
.ag-main.hide { display: none; }

.ag-denied-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #6B6560;
  line-height: 1.7;
  margin: 16px 0 24px;
}
.ag-btn-back {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  background: transparent;
  border: 1.5px solid var(--brand);
  border-radius: 12px;
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ag-btn-back:hover {
  background: var(--brand);
  color: #fff;
}

/* ————— MOBILE-FIRST (тренд — 68% трафика с мобильных) ————— */
@media (max-width: 520px) {
  .ag-card {
    padding: 36px 24px 30px;
    border-radius: 16px;
  }
  .ag-badge {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }
  .ag-badge::after {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }
  .ag-title { font-size: 19px; }
  .ag-text { font-size: 13px; margin-bottom: 24px; }

  .ag-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .ag-btn {
    width: 100%;
    max-width: none;
    padding: 16px 24px;
  }
  .ag-trust {
    flex-wrap: wrap;
    gap: 12px 16px;
  }
}

/* Small phones */
@media (max-width: 360px) {
  .ag-card { padding: 28px 20px 24px; }
  .ag-title { font-size: 17px; }
  .ag-logo-text { font-size: 16px; letter-spacing: 2px; }
}

/* ————— ACCESSIBILITY ————— */
@media (prefers-reduced-motion: reduce) {
  .ag-card { animation: none; }
  .ag-badge { animation: none; }
  .ag-btn, .ag-btn-back, #age-gate { transition: none; }
}

/* High contrast */
@media (prefers-contrast: high) {
  .ag-btn-yes { background: var(--brand); }
  .ag-btn-no { border-width: 2px; }
  .ag-badge { box-shadow: none; }
}