/* ============================================
   ALL PAGES PREMIUM UPGRADES
   ============================================ */

/* === RATING PAGE === */
.rating-table {
  position: relative;
  overflow: hidden;
}
.rating-table thead th {
  background: rgba(74, 123, 196, 0.08);
  border-bottom: 2px solid rgba(74, 123, 196, 0.3) !important;
}
.rating-table tbody tr {
  transition: background 0.2s, transform 0.2s;
}
.rating-table tbody tr:hover {
  background: rgba(74, 123, 196, 0.06);
  transform: scale(1.005);
}

/* Top 3 medals */
.rating-table tbody tr:nth-child(1) td:first-child {
  position: relative;
}
.rating-table tbody tr:nth-child(1) td:first-child::before {
  content: '🥇';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
}
.rating-table tbody tr:nth-child(2) td:first-child::before {
  content: '🥈';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
}
.rating-table tbody tr:nth-child(3) td:first-child::before {
  content: '🥉';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
}
.rating-table tbody tr:nth-child(-n+3) {
  background: rgba(74, 123, 196, 0.04);
}
.rating-table tbody tr:nth-child(-n+3) td:first-child {
  color: #f0c040;
  font-weight: 700;
}

/* Row entrance animation */
.rating-table tbody tr {
  opacity: 0;
  animation: ratingRowIn 0.3s ease forwards;
}
.rating-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.rating-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.rating-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.rating-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.rating-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.rating-table tbody tr:nth-child(n+6) { animation-delay: 0.3s; }
@keyframes ratingRowIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Empty state */
.empty-row {
  text-align: center;
  padding: 40px 20px !important;
  color: var(--muted) !important;
  font-style: italic;
}

/* Section titles */
.section-title {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #e0e8ff, #7ba9e8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === RULES PAGE — ACCORDION === */
.rule-group {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  transition: box-shadow 0.3s;
}
.rule-group:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.rule-group h2 {
  cursor: pointer;
  padding: 18px 24px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s;
  user-select: none;
}
.rule-group h2::after {
  content: '▸';
  font-size: 14px;
  color: var(--gold-light);
  transition: transform 0.3s;
}
.rule-group.open h2::after {
  transform: rotate(90deg);
}
.rule-group h2:hover {
  background: rgba(74, 123, 196, 0.06);
}
.rule-card {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
}
.rule-group.open .rule-card {
  max-height: 1000px;
  padding: 0 24px 20px;
}
.rule-card p {
  padding: 10px 0;
  border-bottom: 1px solid rgba(74, 123, 196, 0.08);
  line-height: 1.7;
  color: var(--text);
}
.rule-card p:last-child {
  border-bottom: none;
}

/* === REGISTRATION — FLOAT LABELS === */
.auth-card {
  position: relative;
  animation: fadeInUp 0.5s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-form .form-group {
  position: relative;
  margin-bottom: 20px;
}
.auth-form label {
  position: absolute;
  left: 14px;
  top: 14px;
  color: var(--muted);
  font-size: 13px;
  transition: all 0.25s ease;
  pointer-events: none;
  background: transparent;
  padding: 0 4px;
}
.auth-form input:focus + label,
.auth-form input:not(:placeholder-shown) + label {
  top: -8px;
  left: 10px;
  font-size: 10px;
  color: var(--gold-light);
  background: var(--bg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-form input {
  width: 100%;
  padding: 16px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(5, 13, 32, 0.8);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.auth-form input:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(74, 123, 196, 0.15);
  outline: none;
}
.auth-form small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

/* Password strength indicator */
.password-strength {
  height: 3px;
  border-radius: 2px;
  margin-top: 8px;
  background: rgba(74, 123, 196, 0.1);
  overflow: hidden;
}
.password-strength-bar {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}
.password-strength[data-strength="weak"] .password-strength-bar { width: 33%; background: #e85a5a; }
.password-strength[data-strength="medium"] .password-strength-bar { width: 66%; background: #e8b85a; }
.password-strength[data-strength="strong"] .password-strength-bar { width: 100%; background: #5ae88a; }

/* Submit button animation */
.auth-form button[type="submit"] {
  position: relative;
  overflow: hidden;
  width: 100%;
  transition: all 0.3s;
}
.auth-form button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}
.auth-form button[type="submit"]:hover::before {
  width: 300px;
  height: 300px;
}

/* Auth alerts */
.auth-error {
  padding: 12px 16px;
  border: 1px solid rgba(227, 123, 138, 0.4);
  background: rgba(130, 44, 57, 0.15);
  color: #f0a8b2;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
}
.auth-success {
  padding: 12px 16px;
  border: 1px solid rgba(63, 212, 154, 0.4);
  background: rgba(27, 120, 84, 0.14);
  color: #8ce5bf;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
}

/* === FILES PAGE — DOWNLOAD CARDS === */
.download-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity 0.3s;
}
.download-card:hover::before {
  opacity: 1;
}
.download-info span {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(74, 123, 196, 0.08);
  border: 1px solid rgba(74, 123, 196, 0.15);
  border-radius: 4px;
  font-size: 11px;
  color: var(--gold-light);
  margin-right: 6px;
}

/* Setup list */
.setup-list {
  counter-reset: setup;
  list-style: none;
  padding: 0;
}
.setup-list li {
  counter-increment: setup;
  position: relative;
  padding: 14px 0 14px 50px;
  border-bottom: 1px solid rgba(74, 123, 196, 0.1);
  line-height: 1.6;
}
.setup-list li::before {
  content: counter(setup);
  position: absolute;
  left: 0;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(74, 123, 196, 0.15), rgba(74, 123, 196, 0.05));
  border: 1px solid rgba(74, 123, 196, 0.3);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
}

/* Text list */
.text-list li {
  padding: 8px 0;
  color: var(--text);
  line-height: 1.6;
}

/* === ONLINE HEADER COUNTER === */
.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(62, 232, 148, 0.08);
  border: 1px solid rgba(62, 232, 148, 0.2);
  font-size: 11px;
  color: #3ee894;
  margin-right: 12px;
  animation: onlinePulse 3s ease-in-out infinite;
}
.online-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ee894;
  box-shadow: 0 0 6px #3ee894;
}
@keyframes onlinePulse {
  0%, 100% { border-color: rgba(62, 232, 148, 0.2); }
  50% { border-color: rgba(62, 232, 148, 0.5); }
}

/* === SUPPORT PAGE FORM === */
.support-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(5, 13, 32, 0.8);
  color: var(--text);
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.support-form textarea:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(74, 123, 196, 0.15);
  outline: none;
}

/* === CTA SECTION === */
.cta-section {
  text-align: center;
  padding: 50px 0;
}
.cta-section h2 {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #e0e8ff, #7ba9e8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-section p {
  color: var(--muted);
  margin-bottom: 28px;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  .rating-table tbody tr,
  .rule-card,
  .auth-card,
  .download-card {
    animation: none !important;
    transition: none !important;
  }
}
