:root {
  --blue: #0b55e9;
  --blue-dark: #0644c2;
  --blue-soft: #eaf2ff;
  --red: #e8465a;
  --green: #25c26e;
  --text: #111827;
  --muted: #8b96a8;
  --line: #edf0f5;
  --bg: #f4f6fb;
  --card: #ffffff;
  --cream: #fffdf2;
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg) !important;
}
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.mobile-app {
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: 78px;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background:
    radial-gradient(circle at 35% 0%, rgba(255,255,255,.16), transparent 22%),
    linear-gradient(180deg, #0b55e9 0%, #0644c2 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(6, 68, 194, .18);
}
.app-topbar-row {
  height: 86px;
  display: grid;
  grid-template-columns: minmax(118px, 1fr) auto minmax(86px, 1fr);
  align-items: center;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}
.app-logo {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 950;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.app-logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(255,255,255,.22),
    0 0 18px rgba(255,255,255,.46);
  flex: 0 0 auto;
}
.app-logo-text {
  color: #fff !important;
  letter-spacing: -.2px;
}
.app-title {
  text-align: center;
  justify-self: center;
  font-weight: 950;
  letter-spacing: .8px;
  font-size: 27px;
  color: #fff;
}
.app-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-size: 23px;
  font-weight: 900;
}

.sport-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 14px;
  scrollbar-width: none;
}
.sport-tabs::-webkit-scrollbar { display: none; }
.sport-chip {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .10);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
}
.sport-chip strong {
  color: var(--red);
  font-weight: 900;
}
.sport-chip.active {
  color: var(--blue);
  outline: 2px solid rgba(11,85,233,.28);
  box-shadow: 0 8px 18px rgba(11,85,233,.16);
}

.app-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 12px 0;
}
.quick-filter-card,
.live-flow-card,
.favorites-panel,
.score-section,
.search-sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.quick-filter-card { overflow: hidden; }
.quick-filter-row {
  width: 100%;
  min-height: 64px;
  border: 0;
  background: #fff;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-size: 20px;
  font-weight: 900;
}

.date-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}
.date-strip::-webkit-scrollbar { display: none; }
.date-strip button,
.sort-row button,
.mini-action,
.section-refresh {
  flex: 0 0 auto;
  border: 1px solid #dfe6f2;
  background: #fff;
  color: #4b5563;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 900;
}
.date-strip button.active,
.date-strip button:hover,
.sort-row button.active,
.mini-action.active,
.section-refresh:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.search-sheet {
  padding: 12px;
  display: block;
}
.search-row {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 10px;
  margin-bottom: 10px;
}
.search-input,
.league-select {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid #dfe6f2;
  background: #f8fafc;
  color: #111827;
  padding: 0 12px;
  outline: none;
}
.search-input:focus,
.league-select:focus {
  border-color: rgba(11,85,233,.44);
  box-shadow: 0 0 0 4px rgba(11,85,233,.08);
}
.sort-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sort-row::-webkit-scrollbar { display: none; }

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
}
.card-title-row strong {
  color: #111827;
  font-size: 17px;
  font-weight: 900;
}
.card-title-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.card-title-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mini-badge {
  border-radius: 999px;
  background: #fff7d6;
  color: #a46a00;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 900;
}
.mini-action {
  padding: 7px 9px;
  font-size: 12px;
}
.mini-action.danger {
  border-color: #ffe1e6;
  color: var(--red);
  background: #fff4f6;
}
.live-goals-list,
.favorite-matches-list {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}
.live-goal-item,
.favorite-mini-card {
  text-decoration: none;
  color: #111827;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 4px;
}
.live-goal-item strong,
.favorite-mini-card strong { font-size: 13px; }
.live-goal-item small,
.favorite-mini-card small,
.muted { color: var(--muted); font-size: 12px; }
.goal-minute { color: var(--red); font-weight: 900; font-size: 12px; }

.score-section {
  overflow: hidden;
}
.score-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 8px;
}
.score-section-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #111827;
}
.statusbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 0 18px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.summary-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}
.summary-card-btn {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  color: #111827;
  padding: 9px 6px;
  display: grid;
  gap: 2px;
  text-align: center;
}
.summary-card-btn span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.summary-card-btn strong {
  color: #111827;
  font-size: 19px;
  font-weight: 900;
}

.matches {
  display: grid;
  gap: 0;
  padding: 0 0 8px;
}
.league-card {
  border-top: 8px solid #f4f6fb;
  background: #fff;
}
.league-card:first-child { border-top: 0; }
.league-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 8px 14px;
  background: var(--cream);
  border-bottom: 1px solid #f0ead7;
}
.league-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.league-title img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 999px;
  background: #fff;
}
.league-title strong {
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.league-title span { color: #8a94a6; }
.league-count {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}
.league-matches { display: grid; }
.score-match-row {
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.score-match-row:last-child { border-bottom: 0; }
.score-match-row.is-live .match-time-box strong,
.score-match-row.is-live .match-score-box span {
  color: var(--red);
}
.match-main-link {
  min-width: 0;
  text-decoration: none;
  color: #111827;
  display: grid;
  grid-template-columns: 58px 1fr 34px;
  align-items: center;
  gap: 10px;
  padding: 10px 0 10px 12px;
}
.match-time-box {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: #9aa3b2;
  font-size: 12px;
}
.match-time-box strong {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}
.match-teams-box {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.match-team-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.match-team-line img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 999px;
  flex: 0 0 auto;
}
.match-team-line span {
  min-width: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-score-box {
  display: grid;
  gap: 5px;
  justify-items: center;
  color: var(--red);
  font-size: 16px;
  font-weight: 900;
}
.favorite-toggle {
  border: 0;
  border-left: 1px solid var(--line);
  background: #fff;
  color: #c6ccd6;
  font-size: 26px;
  font-weight: 900;
}
.favorite-toggle.is-favorite {
  color: #f7b500;
  text-shadow: 0 0 10px rgba(247,181,0,.28);
}
.empty {
  margin: 12px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  background: #f8fafc;
  border: 1px dashed #dfe6f2;
  border-radius: 16px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 45;
  width: min(760px, 100%);
  height: 66px;
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 20px rgba(15, 23, 42, .08);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.bottom-nav-item {
  border: 0;
  background: transparent;
  text-decoration: none;
  color: #9aa3b2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  font-weight: 800;
}
.bottom-nav-item span { font-size: 22px; line-height: 1; }
.bottom-nav-item small { font-size: 11px; }
.bottom-nav-item.active,
.bottom-nav-item:hover { color: var(--blue); }

@media (min-width: 900px) {
  body {
    background: #e9eef7 !important;
  }
  .mobile-app {
    max-width: 760px;
    margin: 0 auto;
    box-shadow: 0 0 0 1px #dbe3ef, 0 24px 80px rgba(15,23,42,.16);
  }
  .app-topbar { border-radius: 0 0 22px 22px; }
}

@media (max-width: 560px) {
  .app-topbar-row {
    height: 78px;
    grid-template-columns: minmax(92px, 1fr) auto minmax(82px, 1fr);
    padding: 0 12px;
  }
  .app-logo { font-size: 17px; }
  .app-logo-dot { width: 12px; height: 12px; }
  .app-title { font-size: 23px; }
  .sport-chip { padding: 9px 14px; font-size: 14px; }
  .app-content { padding: 10px 8px 0; }
  .quick-filter-row { min-height: 58px; font-size: 18px; }
  .search-sheet { display: none; }
  .search-sheet.is-open { display: block; }
  .search-row { grid-template-columns: 1fr; }
  .summary-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .summary-card-btn { padding: 8px 4px; }
  .summary-card-btn strong { font-size: 17px; }
  .match-main-link { grid-template-columns: 52px 1fr 30px; gap: 8px; padding-left: 8px; }
  .match-team-line span { font-size: 14px; }
  .match-team-line img { width: 20px; height: 20px; }
  .favorite-toggle { font-size: 24px; }
  .bottom-nav { height: 64px; }
}


/* Skorizm mobile header fixes */
.icon-btn:active {
  transform: scale(.94);
}
.icon-btn.is-loading {
  animation: skorizmSpin .7s linear infinite;
}
@keyframes skorizmSpin {
  to { transform: rotate(360deg); }
}

/* Search area: desktop open, mobile controlled by search icon */
.search-sheet.is-open {
  display: block !important;
}

/* Make the top search/refresh buttons clearly clickable */
#mobileRefreshBtn,
#mobileSearchBtn {
  touch-action: manipulation;
}

/* Keep app light even if browser cache carries old colors */
.mobile-app,
.app-content,
.score-section,
.quick-filter-card,
.live-flow-card,
.favorites-panel,
.search-sheet {
  color-scheme: light;
}

/* LIG AÇ/KAPAT SISTEMI */
.score-section-head > div:first-child {
  display: grid;
  gap: 6px;
}

.league-master-toggle {
  width: fit-content;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid #d9e1ee;
  background: #ffffff;
  color: #0b55e9;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}

.league-master-toggle:hover {
  background: #eef4ff;
  border-color: rgba(11, 85, 233, .24);
}

.league-master-toggle:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.league-toggle-btn {
  width: 100%;
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-bottom: 1px solid #f0ead7;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.league-toggle-btn:hover {
  background: #fff8df;
}

.league-toggle-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  color: #0b55e9;
  font-size: 15px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 0 0 1px #dbe5f3 inset;
  flex: 0 0 auto;
}

.league-card.is-collapsed .league-matches {
  display: none;
}

.league-card.is-collapsed .league-toggle-btn {
  border-bottom: 0;
}

.league-card.is-collapsed {
  border-bottom: 1px solid var(--line);
}

@media (max-width: 760px) {
  .score-section-head {
    align-items: flex-start;
  }

  .league-master-toggle {
    min-height: 28px;
    padding: 5px 10px;
    font-size: 11px;
  }

  .league-toggle-btn {
    min-height: 36px;
    padding: 8px 12px;
  }

  .league-toggle-arrow {
    width: 19px;
    height: 19px;
    font-size: 14px;
  }
}

/* TAHMINCI VE YAPAY ZEKA PANELLERI */
.prediction-panel {
  margin: 12px 12px 0;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e5eaf3;
  box-shadow: 0 8px 24px rgba(15, 35, 70, .08);
}

.prediction-panel .card-title-row p {
  margin: 4px 0 0;
  color: #7a889c;
  font-size: 12px;
}

.prediction-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.prediction-item {
  display: block;
  padding: 12px;
  border-radius: 14px;
  text-decoration: none;
  color: #07142b;
  background: #f7f9fc;
  border: 1px solid #e8edf5;
}

.prediction-item.comment {
  background: #fffaf0;
  border-color: #ffedc2;
}

.prediction-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.prediction-top strong {
  color: #061632;
  font-size: 13px;
  line-height: 1.25;
}

.prediction-top span {
  flex: 0 0 auto;
  color: #155de8;
  font-size: 12px;
  font-weight: 900;
}

.prediction-meta {
  color: #8492a7;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
}

.prediction-pick {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e9f1ff;
  color: #155de8;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
}

.prediction-item p {
  margin: 0;
  color: #617089;
  font-size: 12px;
  line-height: 1.45;
}

.mini-badge.blue {
  background: #e8f1ff;
  color: #155de8;
}

.small-empty {
  padding: 14px !important;
  font-size: 12px;
}

/* V4: ust alan daha kompakt, yatay kaydirma yerine sigdirma */
.sport-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  overflow: visible !important;
}
.sport-chip {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: 38px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  white-space: nowrap !important;
}
.app-topbar { padding-bottom: 12px !important; }
.app-topbar-row { margin-bottom: 10px !important; }
.account-panel {
  margin: 12px 0;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e3e9f2;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.account-form {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e6edf5;
}
.account-form input,
.account-form textarea {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #dbe5f0;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: #0f172a;
}
.account-status { margin-top: 8px; }
.is-hidden { display: none !important; }
.prediction-panel.is-collapsible .prediction-list.is-hidden { display: none !important; }
@media (max-width: 760px) {
  .app-topbar { padding: 14px 16px 12px !important; }
  .app-logo-text { font-size: 18px !important; }
  .app-title { font-size: 24px !important; }
  .icon-btn { width: 38px !important; height: 38px !important; }
  .sport-tabs { gap: 7px !important; }
  .sport-chip {
    flex: 1 1 calc(50% - 8px) !important;
    padding: 8px 9px !important;
    font-size: 13px !important;
  }
  .sport-chip span { font-size: 14px !important; }
  .account-grid { grid-template-columns: 1fr; }
}


/* V6: ust alan daraltma ve ac/kapat butonlari */
.app-topbar {
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
}

.sport-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px !important;
  overflow: visible !important;
  max-width: 760px;
  padding: 0 16px 14px !important;
}

.sport-chip {
  width: 100%;
  min-width: 0;
  justify-content: center;
  padding: 8px 10px !important;
  font-size: 13px !important;
  white-space: nowrap;
}

.sport-chip span {
  flex: 0 0 auto;
}

.sport-chip strong {
  flex: 0 0 auto;
}

.card-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.panel-toggle {
  min-width: 78px;
}

.prediction-list.is-hidden {
  display: none !important;
}

.prediction-panel.is-collapsible {
  transition: box-shadow .18s ease, border-color .18s ease;
}

.prediction-panel.is-collapsible:has(.prediction-list.is-hidden) {
  box-shadow: none;
}

@media (max-width: 760px) {
  .app-topbar-row {
    height: 56px !important;
    grid-template-columns: 1fr auto 1fr !important;
    padding: 0 0 !important;
  }

  .app-title {
    font-size: 22px !important;
  }

  .app-actions {
    gap: 6px !important;
  }

  .icon-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 18px !important;
  }

  .sport-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 0 12px 12px !important;
    gap: 7px !important;
  }

  .sport-chip {
    flex: none !important;
    font-size: 12px !important;
    padding: 7px 7px !important;
    min-height: 38px;
  }

  .sport-chip span {
    display: inline-flex;
    width: 18px;
    justify-content: center;
  }

  .card-title-row {
    align-items: flex-start;
  }

  .card-title-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 390px) {
  .sport-chip {
    font-size: 11px !important;
    gap: 5px !important;
  }

  .app-logo-text {
    font-size: 16px !important;
  }
}

/* v7: ana sayfa bölüm görünümü ve giriş alanları */
.is-hidden { display: none !important; }
.home-focus-section.standalone-panel {
  display: block !important;
  margin-top: 14px;
  min-height: 55vh;
}
.member-greeting {
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.account-form input,
.account-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d8e1ef;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: #111827;
  font: inherit;
}
.account-form textarea { resize: vertical; }
@media (max-width: 720px) {
  .app-topbar-row { gap: 8px; }
  .member-greeting {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
    text-align: center;
    margin-top: 6px;
  }
  .account-grid { grid-template-columns: 1fr; }
  .home-focus-section.standalone-panel { min-height: 58vh; }
}

/* Ana sayfadaki Yapay Zeka Seçimleri bölümünü gizle */
.ai-picks-section,
.ai-picks-panel,
.ai-picks-card,
.ai-selection-section,
.ai-selection-panel,
#aiPicksSection,
#aiPicksPanel,
#aiPicksList,
[data-panel="ai-picks"],
[data-section="ai-picks"] {
  display: none !important;
}

/* Üst menüde Yapay Zeka Seçimleri butonunu gizlemek için yaygın class/id ihtimalleri */
.ai-picks-btn,
.ai-selection-btn,
#aiPicksButton,
#aiSelectionButton,
button[data-action="ai-picks"],
button[data-section="ai-picks"],
a[data-section="ai-picks"] {
  display: none !important;
}

/* V12: Akıllı favori ve bildirim ana sayfa görünümü */
.home-toast {
  position: fixed;
  left: 50%;
  bottom: 82px;
  z-index: 80;
  width: min(92vw, 430px);
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  padding: 13px 15px;
  border-radius: 16px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 850;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .24);
  transition: opacity .18s ease, transform .18s ease;
}

.home-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.smart-live-flow-card {
  overflow: hidden;
  border-color: rgba(11, 85, 233, .14);
  background:
    radial-gradient(circle at 92% 10%, rgba(11, 85, 233, .10), transparent 30%),
    #ffffff;
}

.smart-notification-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 12px 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e6edf5;
}

.smart-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 950;
}

.smart-status-pill.is-active {
  background: #ecfdf5;
  color: #047857;
}

.smart-status-pill.is-blocked {
  background: #fff1f2;
  color: #be123c;
}

.smart-notification-row small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 750;
  text-align: right;
}

.smart-favorites-card {
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.smart-favorite-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.smart-favorite-metrics button {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
  padding: 11px 8px;
  display: grid;
  gap: 3px;
  text-align: center;
}

.smart-favorite-metrics span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.smart-favorite-metrics strong {
  color: #0b55e9;
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
}

.smart-favorite-matches {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.smart-empty-state {
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

.smart-empty-state strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.smart-empty-state p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 750;
}

.smart-favorite-match {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5ebf3;
  color: #111827;
  text-decoration: none;
}

.smart-favorite-match.live {
  background: #fff7f7;
  border-color: rgba(232, 70, 90, .20);
}

.smart-fav-star {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff7d6;
  color: #f7b500;
  font-size: 18px;
  font-weight: 950;
}

.smart-favorite-match strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 950;
}

.smart-favorite-match small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 750;
}

.smart-favorite-match em {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: #0b55e9;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.smart-favorite-match em b {
  color: #e8465a;
  font-size: 12px;
}

.score-match-row {
  position: relative;
}

.score-match-row.is-favorite-match {
  background:
    linear-gradient(90deg, rgba(247, 181, 0, .10), transparent 42%),
    #fff;
}

.score-match-row.is-favorite-match::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: #f7b500;
}

.match-row-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 1px;
}

.match-status-pill,
.match-notify-pill {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.match-status-pill.live {
  background: #fff1f2;
  color: #be123c;
}

.match-status-pill.finished {
  background: #f1f5f9;
  color: #475569;
}

.match-status-pill.upcoming {
  background: #eff6ff;
  color: #0b55e9;
}

.match-status-pill.default {
  background: #f8fafc;
  color: #64748b;
}

.match-notify-pill {
  background: #ecfdf5;
  color: #047857;
}

.favorite-toggle {
  transition: transform .16s ease, background .16s ease, color .16s ease;
}

.favorite-toggle:active {
  transform: scale(.92);
}

.favorite-toggle.is-favorite {
  background: #fffaf0;
}

.live-goal-item.important-event-item {
  grid-template-columns: 34px 1fr;
  align-items: center;
}

.live-goal-item.important-event-item .goal-minute {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e5ebf3;
  font-size: 17px;
}

.live-goal-item.important-event-item small {
  grid-column: 2 / 3;
}

@media (max-width: 560px) {
  .smart-notification-row {
    display: grid;
    gap: 7px;
  }

  .smart-notification-row small {
    text-align: left;
  }

  .smart-favorite-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .smart-favorite-metrics button {
    padding: 10px 5px;
  }

  .smart-favorite-metrics span {
    font-size: 10px;
  }

  .smart-favorite-metrics strong {
    font-size: 19px;
  }

  .smart-favorite-match {
    grid-template-columns: 28px 1fr;
  }

  .smart-fav-star {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .smart-favorite-match em {
    grid-column: 2 / 3;
    justify-items: start;
    grid-auto-flow: column;
    gap: 7px;
  }

  .match-row-meta {
    gap: 4px;
  }

  .match-status-pill,
  .match-notify-pill {
    font-size: 10px;
    padding: 2px 6px;
  }

  .home-toast {
    bottom: 76px;
  }
}
/* v20260429: Popüler SEO sayfaları iç link alanı */
.popular-pages-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}

.popular-pages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.popular-page-link {
  min-width: 0;
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid #e2eaf5;
  color: #111827;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.popular-page-link:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 85, 233, .32);
  box-shadow: 0 10px 22px rgba(11, 85, 233, .10);
  text-decoration: none;
}

.popular-page-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  background: #eaf2ff;
  font-size: 18px;
}

.popular-page-link strong {
  min-width: 0;
  color: #07142b;
  font-size: 13.5px;
  font-weight: 950;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popular-page-link small {
  min-width: 0;
  color: #7a889c;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.25;
}

@media (max-width: 620px) {
  .popular-pages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 12px 12px;
  }

  .popular-page-link {
    min-height: 88px;
    padding: 12px 10px;
    border-radius: 16px;
  }

  .popular-page-icon {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    font-size: 16px;
  }

  .popular-page-link strong {
    font-size: 12.5px;
  }

  .popular-page-link small {
    font-size: 10.8px;
  }
}

@media (max-width: 360px) {
  .popular-pages-grid {
    grid-template-columns: 1fr;
  }
}
/* V20260501: Ana sayfa tahminci istatistikleri ve kazandı/kaybetti takibi */
.tipster-source-info {
  margin: 0 12px 12px;
  padding: 12px 13px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef4ff, #ffffff);
  border: 1px solid #dbe7ff;
}

.tipster-source-info strong {
  display: block;
  color: #0b55e9;
  font-size: 13px;
  font-weight: 950;
  margin-bottom: 4px;
}

.tipster-source-info p {
  margin: 0;
  color: #526174;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 750;
}

.tipster-stats-box {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0 12px 12px;
}

.tipster-stats-box div {
  min-width: 0;
  padding: 10px 8px;
  border-radius: 15px;
  background: #f8fafc;
  border: 1px solid #e5ebf3;
  text-align: center;
}

.tipster-stats-box span {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.15;
  text-transform: uppercase;
}

.tipster-stats-box strong {
  display: block;
  margin-top: 5px;
  color: #07142b;
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
}

.tipster-result-card {
  position: relative;
  overflow: hidden;
}

.tipster-result-card.won {
  border-color: #bbf7d0;
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.tipster-result-card.lost {
  border-color: #fecaca;
  background: linear-gradient(135deg, #fff1f2, #ffffff);
}

.tipster-result-card.pending,
.tipster-result-card.unknown {
  border-color: #ffedc2;
  background: #fffaf0;
}

.tipster-card-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 7px;
}

.tipster-result-badge,
.tipster-source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.tipster-result-badge.won {
  background: #dcfce7;
  color: #047857;
}

.tipster-result-badge.lost {
  background: #fee2e2;
  color: #b91c1c;
}

.tipster-result-badge.pending,
.tipster-result-badge.unknown {
  background: #eaf2ff;
  color: #155de8;
}

.tipster-source-badge {
  background: #f1f5f9;
  color: #64748b;
}

@media (max-width: 680px) {
  .tipster-stats-box {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .tipster-stats-box div {
    padding: 9px 6px;
  }

  .tipster-stats-box strong {
    font-size: 14px;
  }
}

@media (max-width: 390px) {
  .tipster-stats-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* V20260501: Tahminci yorumları v2 - filtre, form ve sonuç sebebi */
.tipster-extra-stats-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 12px 12px;
}

.tipster-extra-stats-box div {
  min-width: 0;
  padding: 11px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
  border: 1px solid #dbe7ff;
}

.tipster-extra-stats-box span {
  display: block;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 950;
  text-transform: uppercase;
}

.tipster-extra-stats-box strong {
  display: block;
  margin-top: 6px;
  color: #0b55e9;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 950;
}

.tipster-filter-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 12px 12px;
  padding-bottom: 2px;
}

.tipster-filter-row::-webkit-scrollbar {
  display: none;
}

.tipster-filter-row button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid #dfe6f2;
  border-radius: 999px;
  padding: 0 11px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 950;
}

.tipster-filter-row button.active {
  background: #0b55e9;
  border-color: #0b55e9;
  color: #fff;
}

.tipster-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.tipster-final-score {
  margin: 0 0 7px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5ebf3;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.tipster-result-reason {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.7);
  border: 1px dashed #dbe4f0;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 800;
}

.tipster-result-card.won .tipster-result-reason {
  border-color: #bbf7d0;
  color: #047857;
}

.tipster-result-card.lost .tipster-result-reason {
  border-color: #fecaca;
  color: #b91c1c;
}

@media (max-width: 560px) {
  .tipster-extra-stats-box {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .tipster-extra-stats-box div {
    padding: 10px;
  }
}

/* v20260505: Ana sayfa takım yanında kırmızı kart rozeti */
.match-red-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 24px;
  height: 18px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
}

.match-red-card::before {
  content: "";
  width: 8px;
  height: 11px;
  border-radius: 2px;
  background: #ef233c;
  box-shadow: 0 1px 3px rgba(185, 28, 28, .25);
  transform: rotate(-2deg);
  flex: 0 0 auto;
}

.match-team-line .match-team-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .match-red-card {
    min-width: 21px;
    height: 17px;
    margin-left: 5px;
    padding: 0 5px;
    font-size: 10px;
  }

  .match-red-card::before {
    width: 7px;
    height: 10px;
  }
}
