/* =========================================================
   CYBORG SUPER TOTO CSS
   Dosya: assets/css/supertoto.css
   ========================================================= */

body {
  margin: 0;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(111, 210, 255, .09), transparent 34%),
    radial-gradient(circle at bottom left, rgba(138, 43, 226, .10), transparent 32%),
    #0c0f16;
}

/* Sidebar / layout uyumu */
#sidebar.collapsed { width: 80px !important; }
#sidebar.collapsed .menu-text { display: none !important; }

#sidebar.collapsed ~ .main-content,
body.sidebar-collapsed .main-content {
  margin-left: 80px !important;
  max-width: calc(100% - 80px) !important;
}

#sidebar.collapsed ~ .topbar,
body.sidebar-collapsed .topbar {
  left: 80px !important;
  width: calc(100% - 80px) !important;
}

@media (min-width: 993px) {
  .main-content {
    margin-left: 240px;
    max-width: calc(100% - 240px);
  }
}

@media (max-width: 992px) {
  #sidebar {
    left: -100% !important;
    width: 270px;
    max-width: 86vw;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 2500;
    transition: left .3s ease;
  }

  #sidebar.active,
  body.sidebar-open #sidebar {
    left: 0 !important;
  }

  .main-content,
  body.sidebar-collapsed .main-content,
  #sidebar.collapsed ~ .main-content {
    margin-left: 0 !important;
    max-width: 100% !important;
  }

  .topbar,
  body.sidebar-collapsed .topbar,
  #sidebar.collapsed ~ .topbar {
    left: 0 !important;
    width: 100% !important;
  }
}

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .68);
  visibility: hidden;
  opacity: 0;
  z-index: 2400;
  transition: opacity .25s ease, visibility .25s ease;
}

#overlay.active,
body.sidebar-open #overlay {
  visibility: visible;
  opacity: 1;
}

.main-content {
  position: relative;
  min-height: 100vh;
  padding: 105px 32px 45px;
  background: transparent;
  transition: margin-left .3s ease, max-width .3s ease;
}

.st-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

/* Üst kompakt başlık */
.st-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(111,210,255,.14), transparent 36%),
    linear-gradient(135deg, rgba(18,24,42,.92), rgba(10,13,20,.98));
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
}

.st-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #dff5ff;
  background: rgba(111,210,255,.10);
  border: 1px solid rgba(111,210,255,.18);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.st-eyebrow i {
  color: #6fd2ff;
}

.st-page-head h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
  font-weight: 950;
}

.st-page-head p {
  margin: 8px 0 0;
  color: #aeb8c8;
  font-size: .92rem;
}

.st-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 10px;
  flex: 0 0 auto;
}

.st-mini-stats div {
  min-height: 70px;
  padding: 12px;
  border-radius: 17px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.075);
}

.st-mini-stats span {
  display: block;
  color: #8f9aaa;
  font-size: .72rem;
  font-weight: 800;
}

.st-mini-stats strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 950;
}

/* Tabs */
.st-tabs {
  position: relative;
  z-index: 999 !important;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin: 0 0 20px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.075);
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
}

.st-tab-btn {
  position: relative;
  z-index: 1000 !important;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 16px;
  color: #d8dee9;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.065);
  cursor: pointer !important;
  font-weight: 900;
  transition: .25s ease;
  user-select: none;
  pointer-events: auto !important;
}

.st-tab-btn.active,
.st-tab-btn:hover {
  color: #fff;
  background: linear-gradient(135deg,#8a2be2,#3b82f6);
  border-color: rgba(255,255,255,.13);
  box-shadow: 0 10px 24px rgba(138,43,226,.15);
}

.st-tab-content {
  display: none;
  position: relative;
  z-index: 1;
}

.st-tab-content.active {
  display: block;
  animation: stFadeIn .28s ease;
}

@keyframes stFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Etkinlik başlığı */
.st-event-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 17px;
  border-radius: 20px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.075);
}

.st-event-head h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 950;
}

.st-event-head p {
  margin: 0;
  color: #9aa6b8;
  font-size: .86rem;
}

.st-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 10px 13px;
  border-radius: 999px;
  color: #eafff2;
  background: rgba(24,175,95,.12);
  border: 1px solid rgba(24,175,95,.20);
  font-weight: 900;
  font-size: .8rem;
}

.st-status.closed {
  color: #ffdede;
  background: rgba(255,59,59,.11);
  border-color: rgba(255,59,59,.18);
}

/* Kompakt maç listesi */
.st-match-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.st-match-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  padding: 12px 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(111,210,255,.08), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.028));
  border: 1px solid rgba(255,255,255,.085);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.st-match-card:hover {
  transform: translateY(-2px);
  border-color: rgba(111,210,255,.25);
}

.st-match-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.st-match-no {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg,#8a2be2,#3b82f6);
  font-weight: 950;
  font-size: .9rem;
  box-shadow: 0 10px 22px rgba(59,130,246,.18);
}

.st-match-info {
  min-width: 0;
}

.st-match-info strong {
  display: block;
  color: #fff;
  font-size: .98rem;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-match-info strong span {
  display: inline-block;
  margin: 0 8px;
  color: #6fd2ff;
  font-size: .78rem;
  font-weight: 950;
}

.st-match-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  color: #8f9aaa;
  font-size: .74rem;
  font-weight: 800;
}

.st-match-date i {
  color: #6fd2ff;
}

.st-picks {
  display: grid;
  grid-template-columns: repeat(3, 52px);
  justify-content: end;
  gap: 8px;
}

.st-pick-btn {
  min-height: 42px;
  border: 0;
  border-radius: 13px;
  padding: 0;
  cursor: pointer;
  color: #d8dee9;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  transition: .2s ease;
}

.st-pick-btn strong {
  display: block;
  font-size: 1rem;
  font-weight: 950;
}

.st-pick-btn:hover,
.st-pick-btn.selected {
  color: #fff;
  transform: translateY(-2px);
  background: linear-gradient(135deg,#8a2be2,#3b82f6);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 10px 24px rgba(138,43,226,.18);
}

.st-pick-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.st-save-btn {
  min-height: 52px;
  width: 100%;
  margin-top: 18px;
  border: none;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg,#8a2be2,#3b82f6);
  font-weight: 950;
  cursor: pointer;
  transition: .25s ease;
}

.st-save-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

/* Yeşil ödül listesi */
.st-reward-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.st-reward-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(34,197,94,.12), rgba(255,255,255,.035));
  border: 1px solid rgba(34,197,94,.22);
  box-shadow: 0 12px 30px rgba(0,0,0,.20);
}

.st-reward-left {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.st-reward-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 999px;
  color: #dcfce7;
  background: rgba(34,197,94,.18);
  border: 1px solid rgba(34,197,94,.35);
  font-weight: 950;
  font-size: .82rem;
}

.st-reward-badge i {
  color: #4ade80;
}

.st-reward-info {
  min-width: 0;
}

.st-reward-info strong {
  display: block;
  color: #fff;
  font-size: .95rem;
  font-weight: 950;
}

.st-reward-info span {
  display: block;
  margin-top: 4px;
  color: #a7f3d0;
  font-size: .8rem;
  font-weight: 800;
}

.st-reward-amount {
  flex: 0 0 auto;
  min-width: 160px;
  text-align: right;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(34,197,94,.14);
  border: 1px solid rgba(34,197,94,.26);
}

.st-reward-amount small {
  display: block;
  color: #bbf7d0;
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.st-reward-amount b {
  display: block;
  margin-top: 3px;
  color: #4ade80;
  font-size: 1.05rem;
  font-weight: 950;
}

/* Geçmiş */
.st-history-list {
  display: grid;
  gap: 12px;
}

.st-history-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.075);
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: .25s ease;
}

.st-history-row:hover {
  transform: translateY(-2px);
  border-color: rgba(111,210,255,.25);
  background: rgba(255,255,255,.065);
}

.st-history-row strong {
  display: block;
  color: #fff;
  font-weight: 950;
}

.st-history-row span {
  display: block;
  margin-top: 4px;
  color: #8f9aaa;
  font-size: .78rem;
}

.st-history-result {
  color: #dff5ff;
  font-weight: 950;
}

.st-history-status {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 950;
  background: rgba(255,255,255,.06);
  color: #d8dee9;
}

.st-history-status.kazandi,
.st-history-status.odendi {
  color: #eafff2;
  background: rgba(24,175,95,.14);
  border: 1px solid rgba(24,175,95,.22);
}

.st-history-status.kazanamadi {
  color: #ffdede;
  background: rgba(255,59,59,.11);
  border: 1px solid rgba(255,59,59,.16);
}

/* Durum alanları */
.st-alert {
  margin: 14px 0 12px;
  padding: 12px;
  border-radius: 15px;
  font-weight: 900;
}

.st-alert-danger {
  color: #ffdede;
  background: rgba(255,59,59,.11);
  border: 1px solid rgba(255,59,59,.18);
}

.st-empty {
  grid-column: 1 / -1;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #9aa6b8;
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  text-align: center;
}

.st-empty i {
  color: #6fd2ff;
}

/* Sosyal */
.st-social-section {
  margin: 50px 0 0;
  padding-bottom: 70px;
}

.st-social-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.st-section-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 13px;
  background: linear-gradient(180deg, rgba(111,210,255,.15), rgba(111,210,255,.04));
  border: 1px solid rgba(111,210,255,.16);
}

.st-section-icon i {
  color: #6fd2ff;
  font-size: 18px;
}

.st-section-text h2 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 950;
}

.st-section-text p {
  margin: 4px 0 0;
  color: #8f9aaa;
  font-size: .86rem;
}

.st-social-boxes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}

.st-social-box {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 86px;
  padding: 16px;
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.075);
  box-shadow: 0 12px 30px rgba(0,0,0,.20);
  transition: .25s ease;
}

.st-social-box:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.07);
  border-color: rgba(111,210,255,.18);
}

.st-social-left {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:rgba(255,255,255,.06);
}

.st-social-left img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
}

.st-social-right {
  min-width: 0;
  text-align: left;
}

.st-social-right h3 {
  margin: 0 0 3px;
  color: #fff;
  font-size: .95rem;
  font-weight: 950;
}

.st-social-right p {
  margin: 0;
  color: #9aa6b8;
  font-size: .8rem;
  line-height: 1.35;
}

/* Genel popup */
#stMessagePopup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.62);
  z-index: 21000;
  padding: 18px;
}

#stMessagePopup .st-popup-box {
  max-width: 440px;
  width: 100%;
  padding: 24px 28px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg,#8a2be2,#3b82f6);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  text-align: center;
  font-size: .95rem;
  font-weight: 900;
}

/* Geçmiş tahmin popup */
#stHistoryModal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.72);
  z-index: 20000 !important;
}

#stHistoryModal.active {
  display: flex !important;
  pointer-events: auto !important;
}

.st-history-modal-box {
  width: min(760px, 100%);
  max-height: 86vh;
  overflow: auto;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(111,210,255,.14), transparent 38%),
    linear-gradient(180deg, rgba(20,25,38,.98), rgba(9,12,19,.99));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}

.st-history-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.st-history-modal-head h3 {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 950;
}

.st-history-modal-head p {
  margin: 5px 0 0;
  color: #9aa6b8;
  font-size: .86rem;
}

.st-history-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  cursor: pointer;
  background: rgba(255,255,255,.09);
  font-size: 1.1rem;
}

.st-history-detail-list {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.st-history-detail-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.075);
}

.st-history-detail-item.correct {
  border-color: rgba(74,222,128,.28);
  background: rgba(74,222,128,.08);
}

.st-history-detail-no {
  width: 34px;
  height: 34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  background: linear-gradient(135deg,#8a2be2,#3b82f6);
  font-weight: 950;
}

.st-history-detail-match strong {
  display:block;
  color:#fff;
  font-size:.92rem;
}

.st-history-detail-match span {
  display:block;
  margin-top:3px;
  color:#8f9aaa;
  font-size:.76rem;
}

.st-history-detail-pick {
  min-width: 46px;
  min-height: 42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 14px;
  color:#fff;
  background: linear-gradient(135deg,#8a2be2,#3b82f6);
  font-weight:950;
  font-size:1.08rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .st-social-boxes {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 992px) {
  body {
    padding-bottom: 100px !important;
  }

  .main-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 76px 14px 20px !important;
    transform: none !important;
    overflow: visible !important;
  }

  .st-page {
    max-width: 100%;
  }

  .st-tabs {
    grid-template-columns: 1fr;
  }

  .st-event-head,
  .st-page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .st-mini-stats {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .st-match-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    min-height: auto;
    padding: 13px;
  }

  .st-match-left {
    align-items: flex-start;
  }

  .st-match-info strong {
    white-space: normal;
    line-height: 1.35;
  }

  .st-picks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    width: 100%;
  }

  .st-pick-btn {
    min-height: 44px;
  }

  .st-reward-row {
    align-items: stretch;
    flex-direction: column;
  }

  .st-reward-left {
    align-items: flex-start;
  }

  .st-reward-amount {
    min-width: 0;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .main-content {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .st-page-head {
    padding: 18px;
  }

  .st-page-head h1 {
    font-size: 1.45rem;
  }

  .st-mini-stats {
    grid-template-columns: 1fr;
  }

  .st-history-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .st-history-detail-item {
    grid-template-columns: 34px 1fr 42px;
    gap: 8px;
  }

  .st-social-boxes {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
