/* ==================================================
   SlotMagie – Page-specific chart & layout styles
   ================================================== */

/* ===== HOMEPAGE RADAR CHART (SVG polygon) ===== */
.radar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.radar-svg {
  overflow: visible;
}

.radar-grid-line {
  fill: none;
  stroke: #252D38;
  stroke-width: 1;
}

.radar-axis {
  stroke: #303C4A;
  stroke-width: 1;
}

.radar-area {
  transition: d 1s ease;
}

.radar-label {
  font-size: 11px;
  fill: #7A8899;
  font-family: inherit;
}

/* ===== SPIDER/RADAR LEGEND ===== */
.radar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: center;
}

.radar-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #7A8899;
}

.radar-legend-color {
  width: 12px;
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ===== COMPARISON COLUMN CHART ===== */
.col-chart-wrap {
  overflow-x: auto;
}

.col-chart {
  display: flex;
  gap: 1.25rem;
  align-items: flex-end;
  min-height: 220px;
  padding: 1rem 0.5rem 2.5rem;
  border-bottom: 1px solid #252D38;
  border-left: 1px solid #252D38;
  min-width: 360px;
}

.col-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
}

.col-bar {
  width: 100%;
  border-radius: 5px 5px 0 0;
  min-height: 6px;
  transition: height 1.2s cubic-bezier(.4, 0, .2, 1);
}

.col-label {
  font-size: 0.68rem;
  color: #7A8899;
  text-align: center;
  max-width: 60px;
  line-height: 1.3;
}

.col-val {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}

/* ===== TIMELINE CHART ===== */
.timeline-chart {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline-chart::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: #252D38;
}

.timeline-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 2px solid;
  position: relative;
  z-index: 1;
}

.timeline-dot.red {
  background: rgba(204, 0, 0, 0.15);
  border-color: rgba(204, 0, 0, 0.5);
}

.timeline-dot.gold {
  background: rgba(247, 168, 0, 0.12);
  border-color: rgba(247, 168, 0, 0.4);
}

.timeline-dot.green {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}

.timeline-dot.blue {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.35);
}

.timeline-content h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.timeline-content p {
  font-size: 0.82rem;
  color: #7A8899;
  margin: 0;
}

/* ===== FEATURE COMPARISON GRID ===== */
.feature-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.feature-compare-table th {
  background: #181F28;
  padding: 0.85rem 1rem;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid #252D38;
  text-align: center;
}

.feature-compare-table th:first-child {
  text-align: left;
}

.feature-compare-table td {
  padding: 0.78rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid #252D38;
  text-align: center;
  color: #D8E0EA;
}

.feature-compare-table td:first-child {
  text-align: left;
}

.feature-compare-table tr:last-child td {
  border-bottom: none;
}

.feature-compare-table .best {
  color: #4ADE80;
  font-weight: 700;
}

.feature-compare-table tr.highlight-row td {
  background: rgba(247, 168, 0, 0.04);
}

/* ===== PAYMENT METHODS GRID ===== */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.payment-card {
  background: #10151C;
  border: 1px solid #252D38;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  transition: 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.payment-card:hover {
  border-color: rgba(247, 168, 0, 0.3);
  transform: translateY(-2px);
}

.payment-icon {
  font-size: 2rem;
  display: block;
}

.payment-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

.payment-time {
  font-size: 0.72rem;
  color: #4ADE80;
}

.payment-min {
  font-size: 0.72rem;
  color: #7A8899;
}

/* ===== MOBILE STEPS ===== */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: #10151C;
  border: 1px solid #252D38;
  border-radius: 12px;
  padding: 1.25rem;
}

.step-num {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8B0000, #CC0000);
  color: #fff;
}

.step-content h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.step-content p {
  font-size: 0.82rem;
  color: #7A8899;
  margin: 0;
}

/* ===== GAME CARD ===== */
.game-card {
  background: #10151C;
  border: 1px solid #252D38;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.25s ease;
}

.game-card:hover {
  border-color: rgba(204, 0, 0, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.game-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #181F28;
  display: block;
}

.game-info {
  padding: 0.875rem;
}

.game-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
}

.game-provider {
  font-size: 0.72rem;
  color: #7A8899;
}

.game-rtp {
  font-size: 0.72rem;
  color: #4ADE80;
  font-weight: 600;
}

/* ===== PROVIDER LOGOS STRIP ===== */
.providers-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.provider-badge {
  padding: 0.5rem 1rem;
  background: #181F28;
  border: 1px solid #252D38;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #D8E0EA;
  transition: 0.25s ease;
}

.provider-badge:hover {
  border-color: rgba(247, 168, 0, 0.3);
  color: #F7A800;
}

/* ===== SCORE ROW ===== */
.score-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}

.score-category {
  font-size: 0.84rem;
  color: #D8E0EA;
  min-width: 140px;
  flex-shrink: 0;
}

.score-track {
  flex: 1;
  height: 8px;
  background: #181F28;
  border-radius: 4px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #8B0000, #CC0000, #F7A800);
  transition: width 1s ease;
}

.score-num {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  min-width: 32px;
  text-align: right;
}

/* ===== LOGIN / REGISTER FORM ===== */
.auth-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #10151C;
  border: 1px solid #252D38;
  border-radius: 22px;
  padding: 2.5rem;
}

.auth-card h1 {
  font-size: 1.65rem;
  margin-bottom: 0.35rem;
}

.auth-card p {
  color: #7A8899;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #D8E0EA;
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #181F28;
  border: 1px solid #252D38;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  transition: border-color 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: #CC0000;
}

.form-input::placeholder {
  color: #4A5566;
}

.form-hint {
  font-size: 0.72rem;
  color: #7A8899;
  margin-top: 0.35rem;
}

.form-error {
  font-size: 0.72rem;
  color: #F87171;
  margin-top: 0.35rem;
  display: none;
}

.auth-divider {
  text-align: center;
  position: relative;
  margin: 1.5rem 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #252D38;
}

.auth-divider span {
  position: relative;
  background: #10151C;
  padding: 0 0.875rem;
  font-size: 0.78rem;
  color: #7A8899;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.form-check input {
  width: 16px;
  height: 16px;
  accent-color: #CC0000;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.form-check label {
  font-size: 0.8rem;
  color: #7A8899;
  cursor: pointer;
}

.form-check label a {
  color: #F7A800;
}

.password-wrap {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #7A8899;
  cursor: pointer;
  padding: 0.25rem;
}

/* ===== RESPONSIVE PAGES ===== */
@media (max-width: 768px) {
  .payment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .col-chart {
    gap: 0.5rem;
  }

  .col-chart-wrap {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .score-category {
    min-width: 100px;
    font-size: 0.78rem;
  }

  .auth-card {
    padding: 1.75rem;
  }
}

@media (max-width: 480px) {
  .payment-grid {
    grid-template-columns: 1fr;
  }

  .timeline-chart::before {
    left: 18px;
  }

  .table-wrap {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .col-chart-wrap,
  .vbar-wrap,
  .radar-wrap {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}