/* ==========================================================================
   Regipass tasarım dili — ORTAK BİLEŞENLER (İP-T1)
   --------------------------------------------------------------------------
   Öğrenci ve kulüp sayfalarında paylaşılan parçalar: etkinlik kartları,
   durum rozetleri, etkinlik detay penceresi, bildirim kutusu, kulüp takip,
   hesap güvenliği, telefon alanı, kayıt sonrası pencere, cüzdan, takvime ekle,
   değerlendirme. css/ds.css'ten SONRA yüklenir; yalnızca görünümü değiştirir.

   GERİ ALMA: sayfalardaki <link ... ds-components.css data-ds> satırını silmek
   ya da bu dosyayı boşaltmak eski görünüme döndürür.
   ========================================================================== */

:root {
  /* Durum tonları (yumuşak zemin + koyu metin, AA kontrast) */
  --ds-green-bg: #ecfdf3;
  --ds-green-fg: #15803d;
  --ds-green-bd: #bbf7d0;
  --ds-amber-bg: #fffbeb;
  --ds-amber-fg: #b45309;
  --ds-amber-bd: #fde68a;
  /* Bekleme listesi: kayıttan (yeşil) ve kapalıdan (amber) ayrı */
  --ds-blue-bg: #eff6ff;
  --ds-blue-fg: #1d4ed8;
  --ds-blue-bd: #bfdbfe;
  --ds-blue-bg: #eff6ff;
  --ds-blue-fg: #1d4ed8;
  --ds-blue-bd: #bfdbfe;
  --ds-red-bg: #fef2f2;
  --ds-red-fg: #b91c1c;
  --ds-red-bd: #fecaca;
  --ds-slate-bg: #f8fafc;
  --ds-slate-fg: #475569;
  --ds-slate-bd: #e2e8f0;

  --ds-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Maske simgeleri (renk currentColor ile verilir) */
  --ds-ic-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  --ds-ic-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  --ds-ic-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
  --ds-ic-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* Düğmeler sayfa yazı tipini kullansın (bazı sayfalarda sistem yazısına düşüyordu). */
.register-event-btn,
.unregister-event-btn,
.modal-action,
.consent-modal-cancel-btn,
.consent-modal-approve-btn,
.close-event-modal,
.close-appointment-modal,
.close-qr-overlay,
.club-follow-btn,
.discover-filter-btn,
.post-reg-btn,
.post-reg-close,
.wallet-btn,
.feedback-submit,
.feedback-edit-btn,
.add-to-calendar-btn,
.add-to-calendar-option,
.security-button,
.phone-modal-primary,
.phone-modal-resend,
.phone-cc-toggle {
  font-family: var(--rp-font);
}

/* ══════════════════════════════════════════════════════════════════════════
   1) ETKİNLİK KARTLARI
   İki yapı var:
   a) Keşfet / kulüp paneli: .events-section .event-card — öğeler doğrudan
      kartın içinde (görsel, tarih, başlık, meta satırları).
   b) Etkinliklerim / Biletim / kulüp Etkinliklerim: görsel + .card-body /
      .event-body.
   ══════════════════════════════════════════════════════════════════════════ */

.event-card,
.appointment-card {
  position: relative;
  isolation: isolate;
  background: #fff;
  border: 1px solid var(--rp-line);
  border-radius: 20px;
  box-shadow: var(--rp-shadow);
  overflow: hidden;
  transition: transform 0.28s var(--ds-ease), box-shadow 0.28s var(--ds-ease), border-color 0.28s ease;
}

.event-card:hover,
.appointment-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: var(--rp-shadow-lg);
}

.event-card:focus-visible,
.appointment-card:focus-visible {
  outline: none;
  border-color: rgba(229, 56, 59, 0.5);
  box-shadow: var(--rp-ring), var(--rp-shadow);
}

.event-card .event-image,
.appointment-card .event-image {
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--rp-line-soft);
  transition: transform 0.6s var(--ds-ease);
}

.event-card:hover .event-image,
.appointment-card:hover .event-image {
  transform: scale(1.045);
}

/* (a) Doğrudan içerikli kart */
.events-section .event-card {
  padding: 20px;
  gap: 0;
}

.events-section .event-card > .event-image {
  width: calc(100% + 40px);
  max-width: none;
  margin: -20px -20px 18px;
}

.events-section .event-card h3 {
  font: 700 18px/1.35 var(--rp-font-head);
  color: var(--rp-ink);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.events-section .event-card .event-meta {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--rp-muted);
  margin: 0;
}

.events-section .event-card .event-meta + .event-meta { margin-top: 6px; }

.events-section .event-card .event-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--rp-muted);
}

/* Tarih: temiz bir hap. Görselli kartta görselin üstüne oturur. */
.event-card .event-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  width: fit-content;
  margin: 0 0 12px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--rp-pill);
  border: 1px solid rgba(229, 56, 59, 0.16);
  background: var(--rp-red-50);
  color: var(--rp-red-700);
  font: 700 12.5px/1.2 var(--rp-font);
  letter-spacing: 0;
}

.event-card .event-date::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: var(--ds-ic-clock) center / contain no-repeat;
  mask: var(--ds-ic-clock) center / contain no-repeat;
}

.events-section .event-card:has(> .event-image) > .event-date {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  margin: 0;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--rp-ink);
  box-shadow: 0 6px 16px -6px rgba(15, 23, 42, 0.35);
}

.events-section .event-card:has(> .event-image) > .event-date::before { color: var(--rp-red); }

/* Kayıtlı olunan etkinlik: kart beyaz kalır, yeşil kenar ve alt rozet. */
.event-card.is-registered {
  background: #fff;
  border-color: var(--ds-green-bd);
}

.event-card.is-registered:hover { border-color: #86efac; }

.event-card.is-registered .event-date {
  border-color: var(--ds-green-bd);
  background: var(--ds-green-bg);
  color: var(--ds-green-fg);
}

.events-section .event-card.is-registered:has(> .event-image) > .event-date {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.92);
  color: var(--rp-ink);
}

.events-section .event-card.is-registered:has(> .event-image) > .event-date::before { color: var(--ds-green-fg); }

.event-card.is-waitlisted {
  background: #fff;
  border-color: var(--ds-blue-bd);
}

.event-card.is-waitlisted:hover { border-color: #93c5fd; }

.events-section .event-card.is-waitlisted:has(> .event-image) > .event-date::before { color: var(--ds-blue-fg); }

.event-card .event-joined {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: auto;
  padding: 6px 12px;
  border-radius: var(--rp-pill);
  background: var(--ds-green-bg);
  border: 1px solid var(--ds-green-bd);
  color: var(--ds-green-fg);
  font: 700 12.5px/1.2 var(--rp-font);
}

.events-section .event-card .event-joined { margin-top: 16px; }

/* Kart içeriği metninde "✓" zaten var; ek simge koymuyoruz. */

/* (b) Gövdeli kart */
.appointment-card .card-body,
.event-card .event-body {
  padding: 18px 20px 20px;
  gap: 6px;
  background: #fff;
  position: relative;
  z-index: 1;
}

.appointment-card .card-title,
.event-card .event-title {
  font: 700 18px/1.35 var(--rp-font-head);
  color: var(--rp-ink);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.appointment-card .meta,
.event-card .event-body > .meta {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--rp-muted);
}

.appointment-card .status-pill { margin-top: 10px; }

.event-card .event-top { align-items: flex-start; gap: 10px; }

/* ══════════════════════════════════════════════════════════════════════════
   2) DURUM ROZETLERİ — tutarlı yumuşak tonlar
   yeşil = kayıtlı/açık, amber = ödeme/bekleme, mavi = bilgi,
   kırmızı = süresi geçti/iptal, gri = nötr.
   ══════════════════════════════════════════════════════════════════════════ */

.status-pill,
.event-pill,
.event-status-badge,
.security-chip,
.scope-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 11px;
  border-radius: var(--rp-pill);
  border: 1px solid var(--ds-slate-bd);
  background: var(--ds-slate-bg);
  color: var(--ds-slate-fg);
  font: 600 12.5px/1.3 var(--rp-font);
  letter-spacing: 0;
  white-space: nowrap;
}

/* Durum rozetlerinde küçük renkli nokta */
.status-pill::before,
.event-pill[class*="tone-"]::before,
.event-status-badge[class*="tone-"]::before,
.security-chip.ok::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.status-pill.active,
.event-pill.tone-open,
.event-status-badge.tone-open,
.security-chip.ok,
.event-chip.tone-open {
  background: var(--ds-green-bg);
  border-color: var(--ds-green-bd);
  color: var(--ds-green-fg);
}

.status-pill.pending,
.event-pill.tone-closed,
.event-status-badge.tone-closed,
.event-chip.tone-closed {
  background: var(--ds-amber-bg);
  border-color: var(--ds-amber-bd);
  color: var(--ds-amber-fg);
}

.event-pill.tone-waitlist,
.event-status-badge.tone-waitlist,
.event-chip.tone-waitlist {
  background: var(--ds-blue-bg);
  border-color: var(--ds-blue-bd);
  color: var(--ds-blue-fg);
}

.status-pill.expired,
.event-pill.tone-past,
.event-status-badge.tone-past {
  background: var(--ds-red-bg);
  border-color: var(--ds-red-bd);
  color: var(--ds-red-fg);
}

.event-chip.tone-past {
  background: var(--ds-slate-bg);
  border-color: var(--ds-slate-bd);
  color: var(--ds-slate-fg);
}

.status-pill.feedback-pill {
  background: var(--ds-amber-bg);
  border-color: var(--ds-amber-bd);
  color: var(--ds-amber-fg);
}

.status-pill.feedback-pill::before { display: none; }

.scope-pill {
  background: var(--rp-red-50);
  border-color: rgba(229, 56, 59, 0.16);
  color: var(--rp-red-700);
}

.feedback-pill-rated {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 13px;
}

/* Sayaç hapı (bölüm başlıkları yanında) */
.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--rp-pill);
  background: var(--rp-red-50);
  border: 1px solid rgba(229, 56, 59, 0.16);
  color: var(--rp-red-700);
  font: 700 13px/1 var(--rp-font);
}

.count-pill.muted {
  background: var(--ds-slate-bg);
  border-color: var(--ds-slate-bd);
  color: var(--ds-slate-fg);
}

/* Eski "baloncuk" chip'leri (bazı pencerelerde hâlâ var) */
.event-chip {
  border-color: var(--ds-slate-bd);
  background: var(--ds-slate-bg);
  color: var(--rp-ink);
  font-family: var(--rp-font);
  padding: 6px 12px;
}

.event-chip-label { color: var(--rp-muted); }

/* ══════════════════════════════════════════════════════════════════════════
   3) ETKİNLİK DETAY PENCERESİ
   .event-modal (Keşfet, kulüp paneli, kulüp Etkinliklerim) ve
   .appointment-modal (Etkinliklerim, Biletim) aynı iskeleti paylaşır.
   ══════════════════════════════════════════════════════════════════════════ */

.event-modal-backdrop,
.appointment-modal-backdrop {
  background: rgba(15, 23, 42, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.event-modal,
.appointment-modal {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--rp-radius-xl);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06), 0 40px 80px -24px rgba(15, 23, 42, 0.4);
  padding: 24px 28px 0;
  max-height: min(92vh, 900px);
  overscroll-behavior: contain;
  scroll-padding-bottom: 96px;
  color: var(--rp-text);
}

/* Pencerenin altında nefes payı (yapışkan eylem çubuğu kenara otursun diye
   alt dolgu ::after ile verilir). */
.event-modal::after,
.appointment-modal::after {
  content: "";
  display: block;
  height: 24px;
}

/* Kapat düğmesi: görselin köşesinde yuvarlak, kaydırınca üstte kalır. */
.close-event-modal,
.close-appointment-modal {
  position: sticky;
  top: 12px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 12px 12px -52px auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px -6px rgba(15, 23, 42, 0.4);
  color: var(--rp-ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.close-event-modal:hover,
.close-appointment-modal:hover {
  background: #fff;
  color: var(--rp-red);
  transform: rotate(90deg);
}

.modal-event-image,
.modal-appointment-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 20px;
  margin: 0 0 22px;
  background: var(--rp-line-soft);
  box-shadow: 0 12px 30px -18px rgba(15, 23, 42, 0.45);
}

.event-modal h2,
.appointment-modal h2 {
  font: 800 clamp(22px, 2.6vw, 28px)/1.22 var(--rp-font-head);
  color: var(--rp-ink);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.event-modal .modal-meta,
.appointment-modal .modal-meta {
  color: var(--rp-text);
  font-size: 14px;
  margin-bottom: 4px;
}

/* ── Kulüp kimlik satırı ── */
.event-club-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  background: var(--rp-surface-2);
}

.event-club-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--rp-grad);
  color: #fff;
}

.event-club-badge-photo {
  background: #fff;
  border: 1px solid var(--rp-line);
}

.event-club-body { gap: 6px; }

.event-club-name {
  font: 700 15px/1.3 var(--rp-font-head);
  color: var(--rp-ink);
}

.event-bubble {
  padding: 3px 9px;
  border-radius: var(--rp-pill);
  background: #fff;
  border: 1px solid var(--rp-line);
  color: var(--rp-muted);
  font: 600 11.5px/1.35 var(--rp-font);
}

/* ── Durum/kapsam/öncelik rozet satırı ── */
.event-pills {
  gap: 8px;
  margin: 0 0 24px;
}

/* ── Bölüm başlığı ── */
.event-section-title {
  gap: 10px;
  margin: 24px 0 12px;
  font: 700 15px/1.3 var(--rp-font-head);
  color: var(--rp-ink);
  letter-spacing: -0.005em;
}

.event-pills + .event-section-title,
.event-detail > .event-section-title:first-child { margin-top: 0; }

.event-section-bar {
  width: 4px;
  height: 16px;
  border-radius: 4px;
  background: var(--rp-grad);
}

/* ── Bilgi tablosu: ferah satırlar, solda simge kutusu ── */
.event-info-table,
.modal-meta > .event-info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  overflow: hidden;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rp-ink);
}

.event-info-table tr + tr th,
.event-info-table tr + tr td {
  border-top: 1px solid var(--rp-line-soft);
}

.event-info-table th,
.event-info-table td {
  padding: 12px 16px;
  vertical-align: middle;
}

.event-info-table th {
  width: 40%;
  font-weight: 500;
  color: var(--rp-muted);
}

.event-info-table th > span:last-child { vertical-align: middle; }

.event-info-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 9px;
  background: var(--rp-surface-2);
  border: 1px solid var(--rp-line-soft);
  font-size: 13px;
  line-height: 1;
  vertical-align: middle;
  filter: saturate(0.6);
}

.event-info-table td {
  font-weight: 600;
  color: var(--rp-ink);
  text-align: right;
}

/* Kopyalama düğmeli hücre: tablo hücresi olarak kalsın (flex satır
   çizgilerini kaydırıyordu). */
.event-info-table td.has-copy {
  display: table-cell;
  white-space: normal;
}

.event-info-table td.has-copy > * { vertical-align: middle; }

.event-info-copy {
  display: inline-grid;
  width: 32px;
  height: 32px;
  margin-left: 8px;
  border: 1px solid var(--rp-line);
  border-radius: 10px;
  background: #fff;
  color: var(--rp-muted);
}

.event-info-copy:hover {
  background: var(--rp-red-50);
  border-color: rgba(229, 56, 59, 0.35);
  color: var(--rp-red-700);
}

.event-contact-link {
  color: var(--rp-red-700);
  font-weight: 600;
}

/* Ücretli etkinlik ödeme notu: uyarı niteliğinde, amber ton. */
.event-fee-note {
  margin: 0 0 12px;
  padding: 12px 16px;
  border: 1px solid var(--ds-amber-bd);
  border-left: 4px solid #f59e0b;
  border-radius: 14px;
  background: var(--ds-amber-bg);
  color: #92400e;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

/* Açıklama / amaç metni */
.event-modal .modal-desc,
.event-modal .modal-purpose,
.appointment-modal .modal-desc,
.appointment-modal .modal-purpose {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--rp-text);
}

/* ── Eylemler: pencerenin altına yapışan çubuk ── */
.event-modal-actions,
.appointment-modal #appointmentModalActions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 20px -28px 0;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--rp-line);
}

.appointment-modal #appointmentModalActions[hidden] { display: none; }

.appointment-modal #appointmentModalActions { justify-content: flex-start; }

.register-event-btn,
.modal-action.primary,
.unregister-event-btn,
.modal-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--rp-pill);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  transition: transform 0.2s var(--ds-ease), box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.register-event-btn,
.modal-action.primary {
  border: 0;
  background: var(--rp-grad);
  color: #fff;
  box-shadow: var(--rp-shadow-red);
}

.register-event-btn:hover:not(:disabled),
.modal-action.primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px rgba(229, 56, 59, 0.75);
}

.register-event-btn:focus-visible,
.unregister-event-btn:focus-visible,
.modal-action:focus-visible {
  outline: none;
  box-shadow: var(--rp-ring);
}

/* Kayıtlı: dolu yeşil yerine sakin yeşil hap (bekleme listesi mavi, aşağıda) */
.register-event-btn.is-registered {
  background: var(--ds-green-bg);
  color: var(--ds-green-fg);
  border: 1px solid var(--ds-green-bd);
  box-shadow: none;
  opacity: 1;
}

.register-event-btn.is-registered::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--ds-ic-check) center / contain no-repeat;
  mask: var(--ds-ic-check) center / contain no-repeat;
}

.register-event-btn.is-waitlisted {
  background: var(--ds-blue-bg);
  color: var(--ds-blue-fg);
  border: 1px solid var(--ds-blue-bd);
  box-shadow: none;
  opacity: 1;
}

.register-event-btn.is-waitlisted::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--ds-ic-clock) center / contain no-repeat;
  mask: var(--ds-ic-clock) center / contain no-repeat;
}

.register-event-btn.is-expired {
  background: var(--ds-slate-bg);
  color: var(--rp-muted);
  border: 1px solid var(--ds-slate-bd);
  box-shadow: none;
  opacity: 1;
}

.register-event-btn:disabled { cursor: default; }

.register-event-btn.is-open:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Kaydı sil: tehlikeli ama ikincil — çerçeveli */
.unregister-event-btn,
.modal-action.danger {
  background: #fff;
  color: var(--ds-red-fg);
  border: 1px solid var(--ds-red-bd);
  box-shadow: none;
}

.unregister-event-btn:hover:not(:disabled),
.modal-action.danger:hover:not(:disabled) {
  background: var(--ds-red-bg);
  border-color: #fca5a5;
  color: #991b1b;
}

.modal-action:disabled,
.unregister-event-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.modal-joined-note {
  margin: 12px 0 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ds-green-fg);
}

/* Kayıt silme satırı (Etkinliklerim) */
.appointment-modal .cancel-registration-row {
  margin: 12px 0 0;
  gap: 12px;
}

.cancel-registration-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--rp-muted);
}

/* Oturum ilerlemesi */
.session-progress-section {
  margin: 20px 0 4px;
  padding: 16px 18px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  background: var(--rp-surface-2);
}

.session-progress-section h3 {
  font: 700 15px/1.3 var(--rp-font-head);
  color: var(--rp-ink);
  margin: 0 0 12px;
}

.session-progress-bar {
  height: 8px;
  background: #e2e8f0;
}

.session-progress-bar span { background: var(--rp-grad); }

.session-progress-text {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--rp-muted);
}

.session-progress-section.success-full .session-progress-bar span { background: linear-gradient(90deg, #16a34a, #22c55e); }
.session-progress-section.success-full .session-progress-text { color: var(--ds-green-fg); }

/* Ödeme onay penceresi (Keşfet) */
.consent-modal {
  background: rgba(15, 23, 42, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.consent-modal-inner {
  border-radius: var(--rp-radius-lg);
  padding: 28px;
  box-shadow: var(--rp-shadow-lg);
}

.consent-modal-inner h2 {
  font: 800 20px/1.3 var(--rp-font-head);
  color: var(--rp-ink);
  margin: 0 0 12px;
}

.consent-modal-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--rp-text);
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--ds-amber-bg);
  border: 1px solid var(--ds-amber-bd);
}

.consent-modal-checkbox {
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--rp-ink);
  min-height: 44px;
}

.consent-modal-checkbox input { width: 18px; height: 18px; margin: 0; }

.consent-modal-actions { gap: 10px; flex-wrap: wrap; }

.consent-modal-cancel-btn,
.consent-modal-approve-btn {
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--rp-pill);
  font-size: 14.5px;
  font-weight: 700;
}

.consent-modal-cancel-btn {
  background: #fff;
  border: 1px solid var(--rp-line);
  color: var(--rp-ink);
}

.consent-modal-cancel-btn:hover { background: var(--rp-surface-2); }

.consent-modal-approve-btn {
  background: var(--rp-grad);
  box-shadow: var(--rp-shadow-red);
}

.consent-modal-approve-btn:disabled { box-shadow: none; }

/* ══════════════════════════════════════════════════════════════════════════
   4) TAKVİME EKLE
   ══════════════════════════════════════════════════════════════════════════ */

.modal-calendar-actions { margin: 14px 0 0; }

.add-to-calendar-btn {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-pill);
  background: #fff;
  box-shadow: var(--rp-shadow-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--rp-ink);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.add-to-calendar-btn:hover,
.add-to-calendar[open] .add-to-calendar-btn {
  border-color: rgba(229, 56, 59, 0.35);
  color: var(--rp-red-700);
  background: var(--rp-red-50);
}

.add-to-calendar-menu {
  min-width: 240px;
  padding: 6px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow-lg);
  z-index: 30;
}

.add-to-calendar-option {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rp-ink);
}

.add-to-calendar-option:hover { background: var(--rp-surface-2); color: var(--rp-red-700); }

/* ══════════════════════════════════════════════════════════════════════════
   5) DEĞERLENDİRME (etkinlik sonrası)
   ══════════════════════════════════════════════════════════════════════════ */

.feedback-section {
  margin: 20px 0 4px;
  padding: 18px 20px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  background: var(--rp-surface-2);
}

.feedback-title {
  font: 700 16px/1.3 var(--rp-font-head);
  color: var(--rp-ink);
}

.feedback-subtitle { color: var(--rp-ink); }

.feedback-hint { color: var(--rp-muted); font-size: 13.5px; line-height: 1.55; }

.feedback-stars { gap: 8px; }

.feedback-star {
  border: 1px solid var(--rp-line);
  border-radius: 14px;
  background: #fff;
  color: #cbd5e1;
}

.feedback-star.is-on { color: #f59e0b; border-color: #fcd34d; background: var(--ds-amber-bg); }

.feedback-comment {
  border: 1px solid var(--rp-line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  line-height: 1.55;
}

.feedback-comment:focus {
  outline: none;
  border-color: rgba(229, 56, 59, 0.55);
  box-shadow: var(--rp-ring);
}

.feedback-submit,
.feedback-edit-btn {
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--rp-pill);
}

.feedback-submit {
  background: var(--rp-grad);
  box-shadow: var(--rp-shadow-red);
}

.feedback-submit:disabled { box-shadow: none; }

.feedback-edit-btn {
  background: #fff;
  border: 1px solid var(--rp-line);
  color: var(--rp-ink);
}

.feedback-club-comment {
  border-color: var(--rp-line);
  background: var(--rp-surface-2);
  border-radius: 12px;
}

.feedback-dist-bar { background: #e2e8f0; }

/* ══════════════════════════════════════════════════════════════════════════
   6) BİLET (QR penceresi), KAYIT SONRASI PENCERE, CÜZDAN
   ══════════════════════════════════════════════════════════════════════════ */

.qr-overlay {
  background: rgba(15, 23, 42, 0.5);
}

.qr-overlay-card {
  width: min(92vw, 380px);
  gap: 14px;
  padding: 30px 26px 24px;
  border-radius: var(--rp-radius-xl);
  box-shadow: var(--rp-shadow-lg);
}

.qr-overlay-card h3 {
  font: 800 20px/1.3 var(--rp-font-head);
  color: var(--rp-ink);
  padding: 0 32px;
}

.close-qr-overlay {
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  background: var(--rp-surface-2);
  border: 1px solid var(--rp-line);
  color: var(--rp-ink);
}

.close-qr-overlay:hover { background: var(--rp-line-soft); color: var(--rp-red); }

.appointment-qr-image {
  border: 1px solid var(--rp-line);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 16px 36px -20px rgba(15, 23, 42, 0.4);
}

.qr-overlay-hint { font-size: 13.5px; line-height: 1.5; color: var(--rp-muted); }

.post-reg-backdrop {
  background: rgba(15, 23, 42, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.post-reg {
  border-radius: var(--rp-radius-xl);
  padding: 32px 26px 22px;
  box-shadow: var(--rp-shadow-lg);
  color: var(--rp-ink);
  font-family: var(--rp-font);
}

.post-reg-check {
  width: 60px;
  height: 60px;
  margin-bottom: 14px;
  background: var(--ds-green-bg);
  border: 1px solid var(--ds-green-bd);
  color: var(--ds-green-fg);
  box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.06);
}

.post-reg h2 {
  font: 800 22px/1.25 var(--rp-font-head);
  color: var(--rp-ink);
  margin-bottom: 6px;
}

.post-reg-event { color: var(--rp-ink); font-weight: 600; }

.post-reg-msg { color: var(--rp-muted); font-size: 14px; line-height: 1.6; }

.post-reg-group {
  border-top: 1px solid var(--rp-line-soft);
  padding: 16px 0 6px;
  gap: 10px;
}

.post-reg-label { font-size: 14px; font-weight: 700; color: var(--rp-ink); }

.post-reg-actions { gap: 8px; }

.post-reg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-pill);
  background: #fff;
  box-shadow: var(--rp-shadow-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--rp-ink);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.post-reg-btn:hover {
  border-color: rgba(229, 56, 59, 0.35);
  color: var(--rp-red-700);
  background: var(--rp-red-50);
}

.post-reg-hint { color: var(--rp-muted); font-size: 12.5px; line-height: 1.5; }

.post-reg-feedback { color: var(--ds-green-fg); }

.post-reg-skip { min-height: 40px; color: var(--rp-muted); }

.post-reg-foot { margin-top: 14px; }

.post-reg-close {
  min-height: 50px;
  border-radius: var(--rp-pill);
  background: var(--rp-grad);
  box-shadow: var(--rp-shadow-red);
  font-size: 15px;
  font-weight: 700;
}

.qr-save-ticket { margin-top: 4px; }

/* Cüzdan düğmeleri: marka gereği koyu kalır; biçim hap. */
.wallet-buttons { gap: 10px; margin-top: 4px; }

.wallet-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--rp-pill);
  background: #0b0b0c;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s var(--ds-ease), box-shadow 0.2s ease;
}

.wallet-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(0, 0, 0, 0.6); }

.wallet-btn-google { background: #1f1f1f; }

/* ══════════════════════════════════════════════════════════════════════════
   7) KULÜP TAKİP + KEŞFET FİLTRESİ + TAKİP ETTİĞİM KULÜPLER
   ══════════════════════════════════════════════════════════════════════════ */

.club-follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(229, 56, 59, 0.4);
  border-radius: var(--rp-pill);
  background: #fff;
  color: var(--rp-red-700);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--rp-shadow-sm);
}

.club-follow-btn:hover {
  background: var(--rp-red-50);
  border-color: var(--rp-red);
}

.club-follow-btn.is-following {
  background: #fff;
  border-color: var(--rp-line);
  color: var(--rp-text);
}

.club-follow-btn.is-following:hover {
  background: var(--rp-surface-2);
  border-color: #cbd5e1;
}

.club-follow-btn:focus-visible { outline: none; box-shadow: var(--rp-ring); }

/* Segment kontrol: Tümü / Takip ettiklerim */
.discover-filter {
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-pill);
  background: rgba(241, 245, 249, 0.85);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.discover-filter-btn {
  min-height: 40px;
  padding: 0 20px;
  border-radius: var(--rp-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--rp-muted);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.discover-filter-btn:hover { color: var(--rp-ink); }

.discover-filter-btn.is-active {
  background: #fff;
  color: var(--rp-ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px -4px rgba(15, 23, 42, 0.14);
}

.discover-filter-btn:focus-visible { outline: none; box-shadow: var(--rp-ring); }

/* Profilim > Takip ettiğim kulüpler */
.followed-clubs-title {
  font: 700 18px/1.3 var(--rp-font-head);
  color: var(--rp-ink);
  margin-bottom: 6px;
}

.followed-clubs-help,
.followed-clubs-empty {
  font-size: 14px;
  line-height: 1.6;
  color: var(--rp-muted);
  margin-bottom: 14px;
}

.followed-clubs-list { gap: 10px; }

.followed-club-item {
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.followed-club-item:hover { border-color: #cbd5e1; box-shadow: var(--rp-shadow); }

.followed-club-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--rp-surface-2);
  border: 1px solid var(--rp-line);
  color: var(--rp-red-700);
}

.followed-club-main strong {
  font: 700 15px/1.35 var(--rp-font-head);
  color: var(--rp-ink);
}

.followed-club-meta { font-size: 13px; color: var(--rp-muted); }

.followed-club-unavailable { color: var(--ds-red-fg); }

/* "Takibi bırak" gibi satır düğmeleri */
.followed-club-item button {
  flex-shrink: 0;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-pill);
  background: #fff;
  color: var(--rp-text);
  font: 600 13.5px/1 var(--rp-font);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.followed-club-item button:hover {
  border-color: var(--ds-red-bd);
  background: var(--ds-red-bg);
  color: var(--ds-red-fg);
}

.club-follower-stat {
  padding: 6px 14px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-pill);
  background: #fff;
  box-shadow: var(--rp-shadow-sm);
  color: var(--rp-muted);
}

.club-follower-stat strong { font-family: var(--rp-font-head); color: var(--rp-ink); }

/* ══════════════════════════════════════════════════════════════════════════
   8) BİLDİRİM ZİLİ VE KUTUSU
   ══════════════════════════════════════════════════════════════════════════ */

.app-navbar .notification-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--rp-line);
  background: #fff;
  color: var(--rp-ink);
  box-shadow: var(--rp-shadow-sm);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.app-navbar .notification-toggle:hover {
  color: var(--rp-red);
  border-color: rgba(229, 56, 59, 0.3);
  background: var(--rp-red-50);
  transform: translateY(-1px);
}

.app-navbar .notification-toggle svg { width: 20px; height: 20px; }

.notification-badge {
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  line-height: 18px;
  border: 2px solid #fff;
  background: var(--rp-red);
  font: 700 10.5px/16px var(--rp-font);
  box-shadow: 0 4px 10px -2px rgba(229, 56, 59, 0.55);
}

.notification-backdrop {
  background: rgba(15, 23, 42, 0.22);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.notification-panel {
  width: min(400px, calc(100vw - 24px));
  max-height: min(72vh, 600px);
  padding: 0 0 8px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius-lg);
  box-shadow: var(--rp-shadow-lg);
  overscroll-behavior: contain;
}

.notif-panel-title {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 18px 20px 14px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rp-line-soft);
  font: 800 17px/1.3 var(--rp-font-head);
  color: var(--rp-ink);
}

.notif-list {
  gap: 0;
  padding: 6px 8px 0;
}

.notif-empty {
  padding: 28px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rp-muted);
}

.notif-item {
  position: relative;
  padding: 12px 14px 12px 28px;
  border: 0;
  border-radius: 14px;
  background: transparent;
}

.notif-item + .notif-item { margin-top: 2px; }

.notif-item.is-unread {
  border: 0;
  background: transparent;
}

/* Okunmamış: solda kırmızı nokta */
.notif-item.is-unread::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rp-red);
  box-shadow: 0 0 0 3px rgba(229, 56, 59, 0.14);
}

a.notif-item:hover,
a.notif-item:focus-visible {
  border: 0;
  background: var(--rp-surface-2);
  transform: none;
  outline: none;
}

a.notif-item:focus-visible { box-shadow: var(--rp-ring); }

.notif-item-title {
  font: 600 14.5px/1.4 var(--rp-font);
  color: var(--rp-ink);
}

.notif-item-message {
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--rp-muted);
}

.notif-item-date {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--rp-subtle);
}

.notif-item-tag {
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: var(--rp-pill);
  background: var(--ds-slate-bg);
  border: 1px solid var(--ds-slate-bd);
  color: var(--ds-slate-fg);
  font: 600 11px/1.4 var(--rp-font);
  letter-spacing: 0.01em;
}

.notif-item-tag--personal {
  background: var(--rp-red-50);
  border-color: rgba(229, 56, 59, 0.16);
  color: var(--rp-red-700);
}

.notif-item-tag--announcement {
  background: var(--ds-blue-bg);
  border-color: var(--ds-blue-bd);
  color: var(--ds-blue-fg);
}

@media (max-width: 480px) {
  .app-navbar .notification-toggle { width: 42px; height: 42px; }
  .notification-panel { left: 12px; right: 12px; width: auto; }
}

/* ══════════════════════════════════════════════════════════════════════════
   9) HESAP GÜVENLİĞİ / HESAP AYARLARI PENCERESİ
   ══════════════════════════════════════════════════════════════════════════ */

.security-head h2 {
  font: 800 20px/1.3 var(--rp-font-head);
  color: var(--rp-ink);
}

.security-head p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--rp-muted);
}

.security-row {
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  background: #fff;
}

.security-row.danger {
  border-color: var(--ds-red-bd);
  background: #fffafa;
}

.security-row-label {
  color: var(--rp-muted);
  letter-spacing: 0.06em;
}

.security-row-value { color: var(--rp-ink); }

.security-row-note { color: var(--rp-muted); line-height: 1.55; }

.security-button {
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--rp-pill);
  background: var(--rp-grad);
  box-shadow: var(--rp-shadow-red);
}

.security-button:focus-visible { outline: none; box-shadow: var(--rp-ring); }

.security-button.ghost {
  background: #fff;
  color: var(--rp-red-700);
  border: 1px solid rgba(229, 56, 59, 0.35);
  box-shadow: var(--rp-shadow-sm);
}

.security-button.danger {
  background: #fff;
  color: var(--ds-red-fg);
  border: 1px solid var(--ds-red-bd);
  box-shadow: none;
}

.security-button.danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

.settings-icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--rp-line);
  border-radius: 50%;
  background: #fff;
  color: var(--rp-text);
  box-shadow: var(--rp-shadow-sm);
}

.settings-icon-button:hover {
  background: var(--rp-red-50);
  border-color: rgba(229, 56, 59, 0.35);
  color: var(--rp-red-700);
}

.settings-icon-button:focus-visible { outline: none; box-shadow: var(--rp-ring); }

.settings-lang-option {
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  background: #fff;
  min-height: 56px;
}

.settings-lang-option.active {
  border-color: rgba(229, 56, 59, 0.5);
  background: var(--rp-red-50);
  box-shadow: var(--rp-ring);
}

.consent-info-card h2 {
  font: 800 20px/1.3 var(--rp-font-head);
  color: var(--rp-ink);
}

/* ══════════════════════════════════════════════════════════════════════════
   10) TELEFON ALANI + TELEFON / ŞİFRE PENCERELERİ
   ══════════════════════════════════════════════════════════════════════════ */

.phone-cc-toggle {
  min-height: 48px;
  border: 1px solid var(--rp-line);
  border-radius: 12px;
  background: #fff;
  color: var(--rp-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-cc-toggle:hover { border-color: #cbd5e1; }

.phone-cc-toggle:focus-visible,
.phone-cc.open .phone-cc-toggle {
  outline: none;
  border-color: rgba(229, 56, 59, 0.55);
  box-shadow: var(--rp-ring);
}

.phone-cc-dial { color: var(--rp-text); }
.phone-cc-caret { color: var(--rp-subtle); }

.phone-cc-menu {
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow-lg);
}

.phone-cc-search {
  border: 1px solid var(--rp-line);
  border-radius: 10px;
}

.phone-cc-search:focus {
  outline: none;
  border-color: rgba(229, 56, 59, 0.55);
  box-shadow: var(--rp-ring);
}

.phone-cc-option { border-radius: 10px; min-height: 40px; }
.phone-cc-option:hover { background: var(--rp-surface-2); }
.phone-cc-option.selected { background: var(--rp-red-50); }
.phone-cc-opt-dial { color: var(--rp-muted); }

.otp-input {
  border: 1px solid var(--rp-line);
  border-radius: 12px;
}

.otp-input:focus {
  outline: none;
  border-color: rgba(229, 56, 59, 0.55);
  box-shadow: var(--rp-ring);
}

.phone-modal-overlay {
  background: rgba(15, 23, 42, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.phone-modal {
  border-radius: var(--rp-radius-xl);
  box-shadow: var(--rp-shadow-lg);
  color: var(--rp-text);
}

.phone-modal-close {
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  background: var(--rp-surface-2);
  border: 1px solid var(--rp-line);
  color: var(--rp-ink);
  font-size: 22px;
  z-index: 2;
  transition: color 0.2s ease, background 0.2s ease;
}

.phone-modal-close:hover { color: var(--rp-red); background: #fff; }

.phone-modal-badge {
  border-radius: 18px;
  background: var(--rp-red-50);
  border: 1px solid rgba(229, 56, 59, 0.16);
  color: var(--rp-red);
}

.phone-modal h2 {
  font-family: var(--rp-font-head);
  font-weight: 800;
  color: var(--rp-ink);
}

.phone-modal-subtitle { color: var(--rp-muted); }

.phone-modal-phone {
  border: 1px solid var(--rp-line);
  border-radius: 14px;
  background: var(--rp-surface-2);
  color: var(--rp-ink);
}

.phone-modal-label { color: var(--rp-text); font-weight: 600; }

.phone-modal input[type=tel],
.phone-modal input[type=email],
.phone-modal input[type=password] {
  min-height: 48px;
  border: 1px solid var(--rp-line);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-modal input[type=tel]:focus,
.phone-modal input[type=email]:focus,
.phone-modal input[type=password]:focus {
  outline: none;
  border-color: rgba(229, 56, 59, 0.55);
  box-shadow: var(--rp-ring);
}

.phone-modal-primary {
  min-height: 50px;
  border-radius: var(--rp-pill);
  background: var(--rp-grad);
  box-shadow: var(--rp-shadow-red);
}

.phone-modal-primary.danger { background: linear-gradient(135deg, #dc2626, #991b1b); }

.phone-modal-primary:disabled { box-shadow: none; }

.phone-modal-resend {
  min-height: 46px;
  border-radius: var(--rp-pill);
  background: #fff;
  border: 1px solid var(--rp-line);
  color: var(--rp-text);
}

.phone-modal-resend:hover:not(:disabled) { background: var(--rp-surface-2); }

.phone-modal-feedback { border-radius: 12px; }
.phone-modal-feedback.error { background: var(--ds-red-bg); color: #991b1b; border: 1px solid var(--ds-red-bd); }
.phone-modal-feedback.success { background: var(--ds-green-bg); color: #166534; border: 1px solid var(--ds-green-bd); }

.account-modal-note { border-radius: 12px; }

/* ══════════════════════════════════════════════════════════════════════════
   11) MOBİL
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 620px) {
  .events-section .event-card { padding: 18px; }

  .events-section .event-card > .event-image {
    width: calc(100% + 36px);
    margin: -18px -18px 16px;
  }

  .events-section .event-card h3,
  .appointment-card .card-title,
  .event-card .event-title { font-size: 17px; }

  /* Detay penceresi alttan açılan sayfa olur */
  .event-modal,
  .appointment-modal {
    inset: auto 0 0 0;
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 26px 26px 0 0;
    border-bottom: 0;
    padding: 16px 18px 0;
    transform: translateY(40px);
  }

  .event-modal.open,
  .appointment-modal.open { transform: none; }

  .event-modal::after,
  .appointment-modal::after { height: max(16px, env(safe-area-inset-bottom)); }

  .modal-event-image,
  .modal-appointment-image {
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    margin-bottom: 18px;
  }

  .close-event-modal,
  .close-appointment-modal { margin: 10px 10px -50px auto; }

  .event-modal h2,
  .appointment-modal h2 { font-size: 22px; }

  .event-club-header {
    flex-wrap: wrap;
    padding: 12px;
  }

  .event-club-header .event-club-body { flex: 1 1 0; min-width: 0; }

  .event-club-header .club-follow-btn {
    flex: 1 1 100%;
    order: 3;
  }

  .event-info-table th,
  .event-info-table td { padding: 11px 12px; }

  .event-info-table th { width: 44%; white-space: normal; }

  .event-info-icon { width: 26px; height: 26px; margin-right: 8px; }

  .event-modal-actions,
  .appointment-modal #appointmentModalActions {
    margin: 18px -18px 0;
    padding: 12px 18px;
  }

  .event-modal-actions .register-event-btn,
  .event-modal-actions .unregister-event-btn { flex: 1 1 140px; padding: 0 16px; }

  .appointment-modal #appointmentModalActions .modal-action { flex: 1 1 140px; }

  .appointment-modal .cancel-registration-row .modal-action { flex: 0 0 auto; }

  .consent-modal-inner { padding: 22px 18px; }
  .consent-modal-actions > button { flex: 1 1 140px; }

  .post-reg { padding: 26px 18px 18px; }
}

/* ── JS'in [hidden] ile gizlediği öğeler: yukarıdaki display kuralları
   gizlemeyi ezmesin. ── */
.register-event-btn[hidden],
.unregister-event-btn[hidden],
.modal-action[hidden],
.club-follow-btn[hidden],
.post-reg-btn[hidden],
.event-card .event-joined[hidden],
.phone-modal-close[hidden],
.discover-filter[hidden],
.add-to-calendar-btn[hidden] { display: none; }

/* Kartta etkinlik tarihi (takvim simgesi) ile son kayıt (saat simgesi) ayrı */
.event-card .event-date::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16' rx='2.5'/%3E%3Cpath d='M16 3v3M8 3v3M3 9.5h18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16' rx='2.5'/%3E%3Cpath d='M16 3v3M8 3v3M3 9.5h18'/%3E%3C/svg%3E");
}

/* Metin sadeleştirme (İP-M6): boş bırakılan açıklama yer kaplamasın. */
.subtitle:empty,
[data-i18n]:empty { display: none; }
