/* ============================================
   InfluenceHub – Gimtadienio sveikinimo užsakymas
   - Modalo stilius (brand-600/violetinė paletė)
   - Formos laukai su validacijos klaidomis
   - Kainos suvestinė
   - Ženkleliai (badge) užklausų sąrašuose
   - Tamsioji tema (.dark)
   - 44px lietimo zonos, prefers-reduced-motion
   ============================================ */

/* ---------- Modalo konteineris ---------- */
.birthday-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.birthday-modal.hidden {
  display: none;
}

.birthday-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  animation: birthday-fade-in 0.15s ease-out;
}

.birthday-modal-panel {
  position: relative;
  width: 100%;
  max-width: 34rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  animation: birthday-pop-in 0.18s ease-out;
  -webkit-overflow-scrolling: touch;
}

.dark .birthday-modal-panel {
  background: #0f172a;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* ---------- Modalo antraštė ---------- */
.birthday-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.dark .birthday-modal-header {
  border-bottom-color: #1e293b;
}

.birthday-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px -6px rgba(124, 58, 237, 0.55);
}

.birthday-modal-icon i {
  width: 1.375rem;
  height: 1.375rem;
}

.dark .birthday-modal-icon {
  background: linear-gradient(135deg, #8b5cf6 0%, #c084fc 100%);
  box-shadow: 0 6px 16px -6px rgba(139, 92, 246, 0.6);
}

.birthday-modal-heading {
  flex: 1;
  min-width: 0;
}

.birthday-modal-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.dark .birthday-modal-title {
  color: #f1f5f9;
}

.birthday-modal-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.4;
}

.dark .birthday-modal-subtitle {
  color: #94a3b8;
}

.birthday-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 0.75rem;
  background: transparent;
  color: #64748b;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.birthday-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.birthday-modal-close:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
}

.dark .birthday-modal-close {
  color: #94a3b8;
}

.dark .birthday-modal-close:hover {
  background: #1e293b;
  color: #f1f5f9;
}

.dark .birthday-modal-close:focus-visible {
  outline-color: #c4b5fd;
  box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.35);
}

/* ---------- Modalo turinys ---------- */
.birthday-modal-body {
  padding: 1.25rem;
}

/* ---------- Formos laukai ---------- */
.birthday-field {
  margin-bottom: 1rem;
}

.birthday-field:last-of-type {
  margin-bottom: 0;
}

.birthday-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.dark .birthday-label {
  color: #cbd5e1;
}

.birthday-label-required {
  color: #dc2626;
  margin-left: 0.125rem;
}

.dark .birthday-label-required {
  color: #f87171;
}

.birthday-input,
.birthday-textarea {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.birthday-input::placeholder,
.birthday-textarea::placeholder {
  color: #94a3b8;
}

.birthday-input:focus,
.birthday-textarea:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.birthday-input[aria-invalid="true"],
.birthday-textarea[aria-invalid="true"] {
  border-color: #dc2626;
  background: #fef2f2;
}

.birthday-input[aria-invalid="true"]:focus,
.birthday-textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
}

.dark .birthday-input,
.dark .birthday-textarea {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

.dark .birthday-input::placeholder,
.dark .birthday-textarea::placeholder {
  color: #64748b;
}

.dark .birthday-input:focus,
.dark .birthday-textarea:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.2);
}

.dark .birthday-input[aria-invalid="true"],
.dark .birthday-textarea[aria-invalid="true"] {
  border-color: #f87171;
  background: rgba(127, 29, 29, 0.25);
}

.dark .birthday-input[aria-invalid="true"]:focus,
.dark .birthday-textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.2);
}

.birthday-textarea {
  resize: vertical;
  min-height: 5.5rem;
  max-height: 12rem;
}

/* ---------- Klaidos pranešimas po lauku ---------- */
.birthday-error {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #dc2626;
  min-height: 1rem;
  line-height: 1.3;
}

.dark .birthday-error {
  color: #f87171;
}

/* ---------- Simbolių skaitiklis ---------- */
.birthday-counter {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.birthday-counter.is-near-limit {
  color: #d97706;
}

.birthday-counter.is-at-limit {
  color: #dc2626;
}

.dark .birthday-counter {
  color: #64748b;
}

.dark .birthday-counter.is-near-limit {
  color: #fbbf24;
}

.dark .birthday-counter.is-at-limit {
  color: #f87171;
}

/* ---------- Radio grupė (formatas) ---------- */
.birthday-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.birthday-radio {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.75rem;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.birthday-radio:hover {
  border-color: #c4b5fd;
}

.birthday-radio:focus-within {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.birthday-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.birthday-radio-visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.birthday-radio-visual::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #7c3aed;
  transform: scale(0);
  transition: transform 0.15s ease;
}

.birthday-radio input[type="radio"]:checked ~ .birthday-radio-visual {
  border-color: #7c3aed;
}

.birthday-radio input[type="radio"]:checked ~ .birthday-radio-visual::after {
  transform: scale(1);
}

.birthday-radio:has(input[type="radio"]:checked) {
  border-color: #7c3aed;
  background: #f5f3ff;
}

.birthday-radio-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.birthday-radio-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.2;
}

.birthday-radio-desc {
  font-size: 0.6875rem;
  color: #64748b;
  line-height: 1.2;
}

.dark .birthday-radio {
  background: #1e293b;
  border-color: #334155;
}

.dark .birthday-radio:hover {
  border-color: #a78bfa;
}

.dark .birthday-radio:focus-within {
  outline-color: #c4b5fd;
  box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.25);
}

.dark .birthday-radio-visual {
  border-color: #475569;
  background: #0f172a;
}

.dark .birthday-radio-visual::after {
  background: #a78bfa;
}

.dark .birthday-radio input[type="radio"]:checked ~ .birthday-radio-visual {
  border-color: #a78bfa;
}

.dark .birthday-radio:has(input[type="radio"]:checked) {
  border-color: #a78bfa;
  background: rgba(76, 29, 149, 0.35);
}

.dark .birthday-radio-title {
  color: #f1f5f9;
}

.dark .birthday-radio-desc {
  color: #94a3b8;
}

/* ---------- Kainos suvestinė ---------- */
.birthday-summary {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%);
  border: 1px solid #ddd6fe;
}

.dark .birthday-summary {
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.25) 0%, rgba(88, 28, 135, 0.15) 100%);
  border-color: rgba(139, 92, 246, 0.35);
}

.birthday-summary-title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0 0 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6d28d9;
}

.dark .birthday-summary-title {
  color: #c4b5fd;
}

.birthday-summary-title i {
  width: 0.875rem;
  height: 0.875rem;
}

.birthday-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.8125rem;
  color: #475569;
}

.dark .birthday-summary-row {
  color: #cbd5e1;
}

.birthday-summary-row-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.birthday-summary-row-value {
  font-weight: 600;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.dark .birthday-summary-row-value {
  color: #f1f5f9;
}

.birthday-summary-row-surcharge .birthday-summary-row-value {
  color: #7c3aed;
}

.dark .birthday-summary-row-surcharge .birthday-summary-row-value {
  color: #c4b5fd;
}

.birthday-summary-divider {
  height: 1px;
  margin: 0.5rem 0;
  background: #ddd6fe;
}

.dark .birthday-summary-divider {
  background: rgba(139, 92, 246, 0.35);
}

.birthday-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
}

.dark .birthday-summary-total {
  color: #f1f5f9;
}

.birthday-summary-total-value {
  font-size: 1.125rem;
  color: #6d28d9;
  font-variant-numeric: tabular-nums;
}

.dark .birthday-summary-total-value {
  color: #c4b5fd;
}

/* ---------- Formos pranešimas (bendra klaida) ---------- */
.birthday-form-message {
  margin-top: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.625rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}

.birthday-form-message.hidden {
  display: none;
}

.dark .birthday-form-message {
  background: rgba(127, 29, 29, 0.3);
  border-color: rgba(220, 38, 38, 0.4);
  color: #fca5a5;
}

/* ---------- Modalo veiksmų juosta ---------- */
.birthday-modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid #f1f5f9;
}

.dark .birthday-modal-actions {
  border-top-color: #1e293b;
}

.birthday-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.625rem 1.125rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.birthday-btn:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
}

.birthday-btn:active {
  transform: scale(0.98);
}

.birthday-btn-cancel {
  background: #ffffff;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.birthday-btn-cancel:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.dark .birthday-btn-cancel {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}

.dark .birthday-btn-cancel:hover {
  background: #334155;
}

.birthday-btn-submit {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 6px 16px -6px rgba(124, 58, 237, 0.55);
  flex: 1;
  min-width: 10rem;
}

.birthday-btn-submit:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%);
}

.birthday-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.dark .birthday-btn-submit {
  background: linear-gradient(135deg, #8b5cf6 0%, #c084fc 100%);
  box-shadow: 0 6px 16px -6px rgba(139, 92, 246, 0.6);
}

.dark .birthday-btn-submit:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.dark .birthday-btn:focus-visible {
  outline-color: #c4b5fd;
  box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.35);
}

/* ---------- Kortelės mygtukas „Užsakyti gimtadienio sveikinimą“ ---------- */
[data-birthday-order] {
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.card-birthday-btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%);
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.card-birthday-btn:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #5b21b6;
}

.card-birthday-btn:active {
  transform: scale(0.98);
}

.card-birthday-btn:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
}

.card-birthday-btn i {
  width: 0.875rem;
  height: 0.875rem;
}

.dark .card-birthday-btn {
  background: rgba(76, 29, 149, 0.35);
  color: #ddd6fe;
  border-color: rgba(139, 92, 246, 0.4);
}

.dark .card-birthday-btn:hover {
  background: rgba(76, 29, 149, 0.55);
  border-color: rgba(167, 139, 250, 0.6);
  color: #f5f3ff;
}

.dark .card-birthday-btn:focus-visible {
  outline-color: #c4b5fd;
  box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.35);
}

/* ---------- Card birthday button: WCAG AA contrast (light mode) ---------- */
/* Base: #6d28d9 on #f5f3ff → 6.9:1 (AA) – already fine, keep */
/* Hover: #5b21b6 on #ede9fe → 8.1:1 (AAA) – already fine, keep */

/* ---------- Card birthday button: WCAG AA contrast (dark mode) ---------- */
/* Base: #ddd6fe on rgba(76,29,149,.35) over #0f172a → 9.4:1 (AAA) */
/* Hover: #f5f3ff on rgba(76,29,149,.55) over #0f172a → 12.1:1 (AAA) */

/* ---------- Card birthday button: focus-visible ring ---------- */
.card-birthday-btn:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
}

.dark .card-birthday-btn:focus-visible {
  outline-color: #c4b5fd;
  box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.35);
}

/* ---------- Card birthday button: disabled state ---------- */
.card-birthday-btn-disabled,
.card-birthday-btn[disabled],
.card-birthday-btn[aria-disabled="true"] {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.75;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: none;
}

.card-birthday-btn-disabled i,
.card-birthday-btn[disabled] i,
.card-birthday-btn[aria-disabled="true"] i {
  width: 0.875rem;
  height: 0.875rem;
}

.card-birthday-btn-disabled:focus-visible,
.card-birthday-btn[disabled]:focus-visible,
.card-birthday-btn[aria-disabled="true"]:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
}

.dark .card-birthday-btn-disabled,
.dark .card-birthday-btn[disabled],
.dark .card-birthday-btn[aria-disabled="true"] {
  background: rgba(30, 41, 59, 0.6);
  color: #64748b;
  border-color: #334155;
}

.dark .card-birthday-btn-disabled:focus-visible,
.dark .card-birthday-btn[disabled]:focus-visible,
.dark .card-birthday-btn[aria-disabled="true"]:focus-visible {
  outline-color: #c4b5fd;
  box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.35);
}

/* ---------- Card birthday button: 44px minimum touch target ---------- */
.card-birthday-btn,
.card-birthday-btn-disabled,
.card-birthday-btn[disabled],
.card-birthday-btn[aria-disabled="true"] {
  min-height: 44px;
  min-width: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ---------- Card birthday button: prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .card-birthday-btn,
  .card-birthday-btn:hover,
  .card-birthday-btn:active,
  .card-birthday-btn:focus-visible,
  .card-birthday-btn-disabled,
  .card-birthday-btn[disabled],
  .card-birthday-btn[aria-disabled="true"] {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }

  .card-birthday-btn i,
  .card-birthday-btn-disabled i,
  .card-birthday-btn[disabled] i,
  .card-birthday-btn[aria-disabled="true"] i {
    transition: none !important;
    transform: none !important;
  }
}

/* ---------- Modalo mygtukas „Užsakyti gimtadienio sveikinimą“ ---------- */
.profile-modal-btn-birthday {
  background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%);
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  flex: 1;
  min-width: 10rem;
}

.profile-modal-btn-birthday:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #5b21b6;
}

.profile-modal-btn-birthday:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
}

.dark .profile-modal-btn-birthday {
  background: rgba(76, 29, 149, 0.35);
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.4);
}

.dark .profile-modal-btn-birthday:hover {
  background: rgba(76, 29, 149, 0.55);
  border-color: rgba(167, 139, 250, 0.6);
  color: #ddd6fe;
}

.dark .profile-modal-btn-birthday:focus-visible {
  outline-color: #c4b5fd;
  box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.35);
}

/* ---------- Ženkleliai užklausų sąrašuose ---------- */
.birthday-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1875rem 0.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%);
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.birthday-badge i {
  width: 0.75rem;
  height: 0.75rem;
}

.dark .birthday-badge {
  background: rgba(76, 29, 149, 0.4);
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.45);
}

.birthday-badge-date {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1875rem 0.5rem;
  border-radius: 9999px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.birthday-badge-date i {
  width: 0.75rem;
  height: 0.75rem;
}

.dark .birthday-badge-date {
  background: rgba(120, 53, 15, 0.4);
  color: #fcd34d;
  border-color: rgba(217, 119, 6, 0.45);
}

/* ---------- Animacijos ---------- */
@keyframes birthday-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes birthday-pop-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- Mobilusis ---------- */
@media (max-width: 480px) {
  .birthday-modal {
    padding: 0.5rem;
    align-items: flex-end;
  }

  .birthday-modal-panel {
    max-height: calc(100vh - 1rem);
    border-radius: 1.25rem 1.25rem 0.75rem 0.75rem;
  }

  .birthday-modal-actions {
    flex-direction: column-reverse;
  }

  .birthday-btn {
    width: 100%;
  }

  .birthday-btn-submit {
    min-width: 0;
  }

  .birthday-radio-group {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Mobile-friendly stacked layout
   - Full-width fields
   - 44px touch targets
   - Sticky price summary
   ============================================ */

/* ---------- Stacked form layout (mobile-first) ---------- */
.birthday-form-stacked {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.birthday-form-stacked .birthday-field {
  margin-bottom: 0;
  width: 100%;
}

.birthday-form-stacked .birthday-input,
.birthday-form-stacked .birthday-textarea {
  width: 100%;
  min-height: 44px;
  font-size: 16px; /* prevents iOS zoom on focus */
}

.birthday-form-stacked .birthday-textarea {
  min-height: 6rem;
}

.birthday-form-stacked .birthday-radio-group {
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.birthday-form-stacked .birthday-radio {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.875rem;
}

/* ---------- Sticky price summary ---------- */
.birthday-summary-sticky {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin-top: 0.75rem;
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  margin-bottom: -1.25rem;
  padding: 0.875rem 1.25rem calc(0.875rem + env(safe-area-inset-bottom, 0px));
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  background: linear-gradient(180deg, rgba(245, 243, 255, 0.95) 0%, #f5f3ff 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 -8px 20px -12px rgba(76, 29, 149, 0.25);
}

.dark .birthday-summary-sticky {
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.95) 0%, rgba(30, 27, 75, 1) 100%);
  box-shadow: 0 -8px 20px -12px rgba(0, 0, 0, 0.5);
}

.birthday-summary-sticky .birthday-summary-title {
  margin-bottom: 0.5rem;
}

.birthday-summary-sticky .birthday-summary-row {
  padding: 0.1875rem 0;
  font-size: 0.8125rem;
}

.birthday-summary-sticky .birthday-summary-total {
  padding-top: 0.375rem;
  margin-top: 0.375rem;
  border-top: 1px solid #ddd6fe;
}

.dark .birthday-summary-sticky .birthday-summary-total {
  border-top-color: rgba(139, 92, 246, 0.35);
}

/* ---------- Sticky actions bar (mobile) ---------- */
.birthday-actions-sticky {
  position: sticky;
  bottom: 0;
  z-index: 6;
  margin: 0 -1.25rem -1.25rem;
  padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  box-shadow: 0 -8px 20px -12px rgba(15, 23, 42, 0.15);
}

.dark .birthday-actions-sticky {
  background: #0f172a;
  border-top-color: #1e293b;
  box-shadow: 0 -8px 20px -12px rgba(0, 0, 0, 0.5);
}

.birthday-actions-sticky .birthday-btn {
  width: 100%;
  min-height: 48px;
}

/* ---------- Mobile breakpoint (<= 640px) ---------- */
@media (max-width: 640px) {
  .birthday-modal {
    padding: 0;
    align-items: stretch;
  }

  .birthday-modal-panel {
    max-width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  .birthday-modal-header {
    padding: 1rem 1rem 0.75rem;
    flex-shrink: 0;
  }

  .birthday-modal-title {
    font-size: 1rem;
  }

  .birthday-modal-subtitle {
    font-size: 0.75rem;
  }

  .birthday-modal-body {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .birthday-modal-actions {
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    flex-direction: column-reverse;
    gap: 0.5rem;
    flex-shrink: 0;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
  }

  .dark .birthday-modal-actions {
    background: #0f172a;
    border-top-color: #1e293b;
  }

  .birthday-btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.9375rem;
  }

  .birthday-btn-submit {
    min-width: 0;
  }

  .birthday-input,
  .birthday-textarea {
    font-size: 16px; /* prevents iOS zoom */
    min-height: 48px;
    padding: 0.75rem 0.875rem;
  }

  .birthday-textarea {
    min-height: 6.5rem;
  }

  .birthday-radio {
    min-height: 52px;
    padding: 0.875rem;
  }

  .birthday-radio-title {
    font-size: 0.9375rem;
  }

  .birthday-radio-desc {
    font-size: 0.75rem;
  }

  .birthday-label {
    font-size: 0.875rem;
  }

  .birthday-summary {
    padding: 0.875rem;
  }

  .birthday-summary-total-value {
    font-size: 1.25rem;
  }

  .birthday-modal-close {
    width: 44px;
    height: 44px;
  }
}

/* ---------- Very small screens (<= 360px) ---------- */
@media (max-width: 360px) {
  .birthday-modal-body {
    padding: 0.75rem;
  }

  .birthday-modal-header {
    padding: 0.75rem;
  }

  .birthday-modal-actions {
    padding: 0.625rem 0.75rem calc(0.625rem + env(safe-area-inset-bottom, 0px));
  }

  .birthday-modal-icon {
    width: 2.25rem;
    height: 2.25rem;
  }

  .birthday-modal-icon i {
    width: 1.125rem;
    height: 1.125rem;
  }

  .birthday-modal-title {
    font-size: 0.9375rem;
  }
}

/* ---------- Landscape mobile ---------- */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .birthday-modal {
    align-items: stretch;
    padding: 0;
  }

  .birthday-modal-panel {
    max-width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .birthday-modal-header {
    padding: 0.75rem 1rem;
  }

  .birthday-modal-body {
    padding: 0.75rem 1rem;
  }

  .birthday-modal-actions {
    padding: 0.5rem 1rem;
    flex-direction: row;
  }

  .birthday-btn {
    width: auto;
    flex: 1;
  }
}

/* ============================================
   WCAG AA contrast fixes
   - Price summary (light + dark)
   - Radio buttons (light + dark)
   - Error text (light + dark)
   - Counter (light + dark)
   ============================================ */

/* ---------- Price summary: light mode ---------- */
/* Base row text: #475569 on #f5f3ff → 7.4:1 (AA/AAA) */
.birthday-summary-row {
  color: #334155; /* was #475569 – darker for stronger contrast */
}

/* Summary title: #6d28d9 on #f5f3ff → 6.9:1 (AA) */
.birthday-summary-title {
  color: #5b21b6; /* was #6d28d9 – slightly darker */
}

/* Surcharge value: #7c3aed on #f5f3ff → 5.2:1 (AA) */
.birthday-summary-row-surcharge .birthday-summary-row-value {
  color: #6d28d9; /* was #7c3aed */
}

/* Total value: #6d28d9 on #f5f3ff → 6.9:1 (AA) */
.birthday-summary-total-value {
  color: #5b21b6; /* was #6d28d9 */
}

/* ---------- Price summary: dark mode ---------- */
/* Base row text: #cbd5e1 on rgba(76,29,149,.25) over #0f172a → 9.1:1 */
.dark .birthday-summary-row {
  color: #e2e8f0; /* was #cbd5e1 – brighter */
}

/* Summary title: #c4b5fd on dark violet → 8.4:1 */
.dark .birthday-summary-title {
  color: #ddd6fe; /* was #c4b5fd – brighter */
}

/* Surcharge value: #c4b5fd on dark violet → 8.4:1 */
.dark .birthday-summary-row-surcharge .birthday-summary-row-value {
  color: #ddd6fe; /* was #c4b5fd */
}

/* Total value: #c4b5fd on dark violet → 8.4:1 */
.dark .birthday-summary-total-value {
  color: #ddd6fe; /* was #c4b5fd */
}

/* ---------- Radio buttons: light mode ---------- */
/* Title: #0f172a on #ffffff → 17.8:1 (AAA) – already fine */
/* Desc: #64748b on #ffffff → 4.6:1 (AA) – already fine */
/* Selected state: #0f172a on #f5f3ff → 16.9:1 – fine */

/* Unselected radio border: #cbd5e1 on #ffffff → 1.5:1 (decorative, ok) */
/* Selected radio border: #7c3aed on #f5f3ff → 5.2:1 (AA) – fine */

/* ---------- Radio buttons: dark mode ---------- */
/* Title: #f1f5f9 on #1e293b → 12.6:1 (AAA) – fine */
/* Desc: #94a3b8 on #1e293b → 5.9:1 (AA) – fine */
/* Selected state: #f1f5f9 on rgba(76,29,149,.35) over #1e293b → 10.2:1 – fine */

/* Unselected radio border: #475569 on #1e293b → 2.1:1 (decorative, ok) */
/* Selected radio border: #a78bfa on dark violet → 6.8:1 (AA) – fine */

/* ---------- Error text: light mode ---------- */
/* #dc2626 on #ffffff → 4.5:1 (AA) – borderline, darken slightly */
.birthday-error {
  color: #b91c1c; /* was #dc2626 – 5.9:1 on white (AA) */
}

/* Required asterisk: #dc2626 on #ffffff → 4.5:1 – darken */
.birthday-label-required {
  color: #b91c1c; /* was #dc2626 */
}

/* Invalid input border: #dc2626 on #fef2f2 → 4.4:1 – darken */
.birthday-input[aria-invalid="true"],
.birthday-textarea[aria-invalid="true"] {
  border-color: #b91c1c; /* was #dc2626 */
}

/* Form message: #b91c1c on #fef2f2 → 5.9:1 (AA) – fine */

/* ---------- Error text: dark mode ---------- */
/* #f87171 on #0f172a → 6.4:1 (AA) – fine */
/* #fca5a5 on rgba(127,29,29,.3) over #0f172a → 7.2:1 (AA) – fine */
/* #fb7185 on #0f172a → 5.9:1 (AA) – fine */

/* Invalid input border in dark: #f87171 on rgba(127,29,29,.25) → 5.1:1 – fine */

/* ---------- Counter: light mode ---------- */
/* #94a3b8 on #ffffff → 2.8:1 (FAIL) – darken */
.birthday-counter {
  color: #64748b; /* was #94a3b8 – 4.6:1 on white (AA) */
}

/* Near limit: #d97706 on #ffffff → 3.9:1 (FAIL) – darken */
.birthday-counter.is-near-limit {
  color: #b45309; /* was #d97706 – 5.1:1 on white (AA) */
}

/* At limit: #dc2626 on #ffffff → 4.5:1 – darken */
.birthday-counter.is-at-limit {
  color: #b91c1c; /* was #dc2626 – 5.9:1 on white (AA) */
}

/* ---------- Counter: dark mode ---------- */
/* #64748b on #0f172a → 3.4:1 (FAIL) – brighten */
.dark .birthday-counter {
  color: #94a3b8; /* was #64748b – 5.9:1 on #0f172a (AA) */
}

/* Near limit: #fbbf24 on #0f172a → 10.4:1 (AAA) – fine */
/* At limit: #f87171 on #0f172a → 6.4:1 (AA) – fine */

/* ---------- Placeholder contrast ---------- */
/* Light: #94a3b8 on #ffffff → 2.8:1 (FAIL) – darken */
.birthday-input::placeholder,
.birthday-textarea::placeholder {
  color: #64748b; /* was #94a3b8 – 4.6:1 on white (AA) */
}

/* Dark: #64748b on #1e293b → 3.4:1 (FAIL) – brighten */
.dark .birthday-input::placeholder,
.dark .birthday-textarea::placeholder {
  color: #94a3b8; /* was #64748b – 5.9:1 on #1e293b (AA) */
}

/* ---------- Label contrast ---------- */
/* Light: #334155 on #ffffff → 10.4:1 (AAA) – fine */
/* Dark: #cbd5e1 on #0f172a → 10.9:1 (AAA) – fine */

/* ---------- Summary divider (decorative) ---------- */
/* Light: #ddd6fe on #f5f3ff → 1.2:1 (decorative, ok) */
/* Dark: rgba(139,92,246,.35) on dark violet → visible, ok */

/* ============================================
   prefers-reduced-motion – comprehensive
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  /* Sticky elements – no transitions, no backdrop blur animation */
  .birthday-summary-sticky,
  .birthday-actions-sticky {
    transition: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Modal entrance animations */
  .birthday-modal-backdrop,
  .birthday-modal-panel {
    animation: none !important;
  }

  /* All interactive elements – no transitions, no transforms */
  .birthday-btn,
  .birthday-btn:active,
  .card-birthday-btn,
  .card-birthday-btn:active,
  .profile-modal-btn-birthday,
  .profile-modal-btn-birthday:active,
  .birthday-radio,
  .birthday-radio-visual,
  .birthday-radio-visual::after,
  .birthday-input,
  .birthday-textarea,
  .birthday-modal-close,
  .birthday-summary,
  .birthday-summary-row,
  .birthday-summary-total,
  .birthday-counter,
  .birthday-error {
    transition: none !important;
    transform: none !important;
  }

  /* Radio visual – no scale animation */
  .birthday-radio-visual::after {
    transition: none !important;
  }

  /* Disable hover lift on radio */
  .birthday-radio:hover {
    transform: none !important;
  }

  /* Disable active scale on buttons */
  .birthday-btn:active,
  .card-birthday-btn:active,
  .profile-modal-btn-birthday:active {
    transform: none !important;
  }

  /* Disable smooth scroll inside modal */
  .birthday-modal-panel {
    scroll-behavior: auto !important;
  }

  /* Disable focus ring animation */
  .birthday-btn:focus-visible,
  .card-birthday-btn:focus-visible,
  .profile-modal-btn-birthday:focus-visible,
  .birthday-radio:focus-within,
  .birthday-modal-close:focus-visible {
    transition: none !important;
  }
}
