/* =====================================================================
   GalopX — Altılı tahmin: kupon kartları (site) + toplu giriş ekranı (panel)
   ===================================================================== */

[hidden] { display: none !important; }

/* ---------------------------------------------------------------------
   Ortak: kupon tipi rozeti
   --------------------------------------------------------------------- */
.ax-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 8px;
  background: var(--tier, #0A7CFF); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; line-height: 1;
}
.ax-badge svg { width: 13px; height: 13px; flex: none; }

/* ---------------------------------------------------------------------
   Kupon kartları (tahmin detayı, başarılı tahmin detayı)
   --------------------------------------------------------------------- */
.axc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 22px;
  align-items: stretch;
}
.axc {
  --tier: #0A7CFF;
  position: relative;
  display: flex; flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid #E8ECF1;
  border-radius: 22px;
  padding: 22px 20px 20px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.axc:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(16, 24, 40, .11); }
.axc--won { border-color: color-mix(in srgb, var(--tier) 45%, #fff); }

.axc__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.axc__av { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0,0,0,.15); }
.axc__av img, .axc__av svg { width: 100% !important; height: 100% !important; border-radius: 50% !important; object-fit: cover; display: block; border: 0 !important; }

.axc__title { font-size: 1.32rem; font-weight: 900; letter-spacing: -.01em; text-transform: uppercase; color: #12161C; line-height: 1.15; }
.axc__desc { font-size: .8rem; color: #626C7A; margin-top: 4px; min-height: 2.4em; }

.axc__meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .8rem; color: #2C333D; margin: 16px 0 10px; }
.axc__meta b { color: #12161C; font-weight: 800; }

.axc__status { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); }

.axc__tbl { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.axc__tbl th {
  background: var(--tier); color: #fff;
  font-size: .68rem; font-weight: 800; padding: 9px 2px; text-align: center; white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.28);
}
.axc__tbl th:last-child { border-right: 0; }
.axc__tbl td {
  vertical-align: top; text-align: center;
  border: 1px solid #DCE3EC; border-top: 0;
  padding: 12px 2px 14px; height: 248px;
}
.axc__tbl td span { display: block; font-weight: 800; font-size: .92rem; color: #12161C; line-height: 1.45; }
.axc__tbl td span.is-win {
  display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 4px;
  border-radius: 999px; background: #10B981; color: #fff; margin: 0 auto 1px;
}
.axc__tbl td.is-miss { background: #FEF3F2; }
.axc__tbl td.is-hit  { background: #ECFDF3; }
.axc__tbl td small { display: block; font-size: .62rem; color: #8B95A3; font-weight: 600; margin-top: 6px; }

.axc__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 22px; }
.axc__cost small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #2C333D; }
.axc__cost b { display: block; font-size: 1.55rem; font-weight: 900; color: var(--tier); line-height: 1.15; margin-top: 3px; white-space: nowrap; }
.axc__cost em { display: block; font-style: normal; font-size: .72rem; color: #8B95A3; margin-top: 2px; }
.axc__prize {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-radius: 12px;
  background: #ECFDF3; border: 1px solid #ABEFC6; color: #067647;
  font-weight: 800; font-size: .84rem; white-space: nowrap;
}
.axc__prize svg { width: 15px; height: 15px; }
.axc__prize--lost { background: #FEF3F2; border-color: #FECDCA; color: #B42318; }
.axc__prize--wait { background: #F1F3F6; border-color: #E3E7ED; color: #626C7A; }

.axc-lock {
  border: 1px dashed #CBD2DB; border-radius: 14px; padding: 26px 14px; text-align: center;
  color: #626C7A; font-size: .86rem; height: 248px; display: grid; place-content: center; gap: 10px;
}
.axc-lock svg { width: 28px; height: 28px; margin: 0 auto; color: #B26A00; }

@media (max-width: 420px) {
  .axc { padding: 18px 14px 16px; border-radius: 18px; }
  .axc__tbl th { font-size: .6rem; }
  .axc__tbl td span { font-size: .84rem; }
  .axc__cost b { font-size: 1.3rem; }
}

/* ---------------------------------------------------------------------
   Tahmin listesi kartı (tahminler.php, ana sayfa, yorumcu profili)
   --------------------------------------------------------------------- */
.axl {
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 18px; box-shadow: var(--shadow-1, 0 4px 14px rgba(16,24,40,.05)); min-width: 0;
}
.axl__top { display: flex; align-items: center; gap: 11px; min-width: 0; }
.axl__top .silk { border-radius: 50% !important; }
.axl__who { min-width: 0; flex: 1; }
.axl__who b { display: block; font-weight: 800; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.axl__who span { display: block; font-size: .78rem; color: var(--mist-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.axl__title { font-size: 1.12rem; font-weight: 900; color: var(--paper); line-height: 1.25; }
.axl__sub { font-size: .82rem; color: var(--mist); margin-top: 3px; }
.axl__tiers { display: flex; flex-wrap: wrap; gap: 8px; }
.axl__tier {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0;
  padding: 7px 10px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--tier) 30%, #fff);
  background: color-mix(in srgb, var(--tier) 7%, #fff); font-size: .76rem; color: var(--paper-2);
}
.axl__tier i { width: 8px; height: 8px; border-radius: 50%; background: var(--tier); flex: none; }
.axl__tier b { color: var(--tier); font-weight: 800; white-space: nowrap; }
.axl__foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: auto; }
.axl__foot .spacer { flex: 1; }
.axl__stat { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--mist); white-space: nowrap; }
.axl__stat svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------------
   Başarılı tahminler
   --------------------------------------------------------------------- */
.bt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 14px; }
.bt-stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.bt-stat small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mist-2); }
.bt-stat b { display: block; font-size: 1.6rem; font-weight: 900; color: var(--paper); margin-top: 6px; }
.bt-stat b.is-money { color: #067647; }

.bt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bt-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--paper-2); font-size: .84rem; font-weight: 600;
  white-space: nowrap; text-decoration: none;
}
.bt-chip:hover { border-color: var(--line-2); }
.bt-chip.is-on { background: var(--paper); color: #fff; border-color: var(--paper); }
.bt-chip img, .bt-chip svg.silk { width: 22px !important; height: 22px !important; border-radius: 50% !important; }

.bt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.bt-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px;
  box-shadow: 0 8px 24px rgba(16,24,40,.06);
}
.bt-card__badge {
  position: absolute; top: 16px; right: 16px;
  padding: 5px 11px; border-radius: 999px; background: #10B981; color: #fff;
  font-size: .7rem; font-weight: 900; letter-spacing: .08em;
}
.bt-card__who { display: flex; align-items: center; gap: 11px; padding-right: 70px; min-width: 0; }
.bt-card__who img, .bt-card__who svg.silk { border-radius: 50% !important; }
.bt-card__who b { display: block; font-weight: 800; color: var(--paper); }
.bt-card__who span { font-size: .76rem; color: var(--gold); font-weight: 700; }
.bt-card__win { background: #ECFDF3; border: 1px solid #ABEFC6; border-radius: 14px; padding: 12px 14px; }
.bt-card__win small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #067647; }
.bt-card__win b { display: block; font-size: 1.6rem; font-weight: 900; color: #067647; line-height: 1.2; }
.bt-card h3 { font-size: 1.08rem; font-weight: 900; color: var(--paper); }
.bt-card__kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: .82rem; }
.bt-card__kv small { display: block; color: var(--mist-2); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.bt-card__kv b { color: var(--paper); font-weight: 700; }
.bt-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: auto; }
.bt-card__ok { display: inline-flex; align-items: center; gap: 6px; color: #067647; font-size: .8rem; font-weight: 700; }
.bt-card__ok svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------------
   Tahmin detayı başlığı
   --------------------------------------------------------------------- */
.td-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.td-head__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.td-head__who img, .td-head__who svg.silk { border-radius: 50% !important; }
.td-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--mist); }
.td-meta span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.td-meta svg { width: 15px; height: 15px; }
.td-meta b { color: var(--paper); }
.td-legs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.td-leg { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; font-size: .8rem; color: var(--mist); min-width: 0; }
.td-leg b { display: block; color: var(--paper); font-size: .88rem; }
.td-leg .win { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--paper-2); }
.prose--rich h2, .prose--rich h3, .prose--rich h4 { margin: 1.2em 0 .5em; }
.prose--rich ul, .prose--rich ol { padding-left: 1.3em; margin: .6em 0; }
.prose--rich table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.prose--rich td, .prose--rich th { border: 1px solid var(--line); padding: 6px 9px; }

/* ---------------------------------------------------------------------
   Panel: toplu giriş ekranı
   --------------------------------------------------------------------- */
.panel__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.ax-hips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.ax-hip {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--ink-800); color: var(--paper-2); text-decoration: none;
}
.ax-hip svg { width: 15px; height: 15px; color: var(--mist-2); }
.ax-hip span { font-size: .78rem; color: var(--mist-2); }
.ax-hip.is-on { border-color: var(--turf); box-shadow: 0 0 0 3px color-mix(in srgb, var(--turf) 15%, transparent); }
.ax-hip.is-on svg { color: var(--turf); }

.ax-quick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.ax-quick .field { flex: 1 1 260px; min-width: 0; margin: 0; }

.ax-tabs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 14px 18px 0; border-bottom: 1px solid var(--line);
}
.ax-tab { --tier: var(--turf); display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--ink-750); max-width: 100%; }
.ax-tab.is-active { background: #fff; border-color: var(--tier); box-shadow: inset 0 3px 0 var(--tier); margin-bottom: -1px; }
.ax-tab__btn { display: inline-flex; align-items: center; gap: 7px; padding: 11px 12px 11px 14px; font-weight: 700; font-size: .88rem; color: var(--paper-2); min-width: 0; }
.ax-tab__btn svg { width: 15px; height: 15px; color: var(--tier); flex: none; }
.ax-tab__sum { font-size: .72rem; color: var(--mist-2); font-weight: 600; white-space: nowrap; }
.ax-tab__x { padding: 0 10px; color: var(--mist-2); display: grid; place-items: center; }
.ax-tab__x svg { width: 14px; height: 14px; }
.ax-tab__x:hover { color: var(--bad); }
.ax-tab--new { --tier: var(--mist); border-style: dashed; }
.ax-tabs__add { margin-bottom: 8px; margin-left: 4px; }

.ax-new__lead { color: var(--mist); font-size: .92rem; margin-bottom: 14px; }
.ax-new { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.ax-new__opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left;
  padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
}
.ax-new__opt:hover { border-color: var(--tier); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tier) 15%, transparent); }
.ax-new__opt small { color: var(--mist); font-size: .82rem; }

.ax-panel__bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 16px; }
.ax-panel__bar .spacer { flex: 1; }
.ax-panel__desc { font-size: .84rem; min-width: 0; }
.ax-copy { display: inline-flex; flex-wrap: wrap; gap: 8px; }

.ax-legs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1280px) { .ax-legs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .ax-legs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px)  { .ax-legs { grid-template-columns: minmax(0, 1fr); } }

.ax-leg { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; min-width: 0; }
.ax-leg.is-empty { border-color: color-mix(in srgb, var(--bad) 45%, #fff); }
.ax-leg__head { background: var(--tier); color: #fff; padding: 9px 11px; }
.ax-leg__head b { display: block; font-size: .9rem; font-weight: 800; }
.ax-leg__head span { display: block; font-size: .76rem; opacity: .95; }
.ax-leg__head small { display: block; font-size: .68rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-leg__tools { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 9px; border-bottom: 1px solid var(--line); font-size: .76rem; color: var(--mist); }
.ax-leg__count b { color: var(--tier); font-size: .9rem; }
.ax-mini { font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--paper-2); background: var(--ink-750); }
.ax-mini:hover { border-color: var(--tier); color: var(--tier); }
.ax-leg__horses { padding: 6px; display: flex; flex-direction: column; gap: 4px; max-height: 470px; overflow-y: auto; }

.ax-horse { display: block; cursor: pointer; }
.ax-horse input { position: absolute; opacity: 0; pointer-events: none; }
.ax-horse__in {
  display: flex; align-items: center; gap: 7px; padding: 5px 7px; border-radius: 9px;
  border: 1px solid transparent; min-width: 0; transition: background .12s, border-color .12s;
}
.ax-horse:hover .ax-horse__in { background: var(--ink-750); }
.ax-horse__name { font-size: .78rem; color: var(--paper-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.ax-horse em { font-style: normal; font-size: .62rem; font-weight: 800; color: var(--bad); text-transform: uppercase; }
.ax-horse input:checked + .ax-horse__in { background: color-mix(in srgb, var(--tier) 12%, #fff); border-color: var(--tier); }
.ax-horse input:checked + .ax-horse__in .ax-horse__name { color: var(--paper); font-weight: 700; }
.ax-horse input:focus-visible + .ax-horse__in { outline: 2px solid var(--tier); outline-offset: 1px; }
.ax-horse.is-off { opacity: .5; cursor: not-allowed; }

.ax-total {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 1px;
  margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line);
}
.ax-total > div { background: var(--ink-750); padding: 12px 14px; min-width: 0; }
.ax-total small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mist-2); }
.ax-total b { display: block; font-size: 1.05rem; font-weight: 800; color: var(--paper); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-total__cost b { color: var(--tier); font-size: 1.3rem; }

/* TinyMCE kenarlığı panel diline uysun */
.tox.tox-tinymce { border-radius: 12px; border-color: var(--line); }
