:root {
  --primary: #ff6338;
  --primary-dark: #e04d2e;
  --secondary: #fa7070;
  --secondary-dark: #d85c5c;
  --accent: #4dabf7;
  --bg-dark-1: #0a1929;
  --bg-dark-2: #112240;
  --bg-dark-3: #1a365d;
  --text-light: #ffffff;
  --text-muted: #94a3b8;
  --text-dark: #1e293b;
  --card-bg: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --glow: rgba(255, 99, 56, 0.3);
  --gradient: linear-gradient(135deg, #ff6338 0%, #fa7070 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "bc-barell", sans-serif;
  background: linear-gradient(180deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 50%, var(--bg-dark-1) 100%);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  padding: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== LEGAL PAGES COMMON STYLES ===== */
.legal-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 3rem;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.6s ease-out;
}

.legal-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.logo-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.logo-back:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  transform: translateY(-2px);
}

.legal-title {
  font-family: "strenuous", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(255, 99, 56, 0.2);
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.legal-content h2 {
  font-family: "strenuous", sans-serif;
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--text-light);
  position: relative;
  padding-left: 1rem;
}

.legal-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--gradient);
  border-radius: 2px;
}

.legal-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  text-align: justify;
  hyphens: auto;
}

.legal-content strong {
  color: var(--text-light);
  font-weight: 600;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-content li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
  position: relative;
}

.legal-content li::marker {
  color: var(--primary);
}

.legal-highlight-box {
  background: rgba(255, 99, 56, 0.1);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.legal-highlight-box p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.legal-content a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.legal-content a:hover {
  color: var(--secondary);
}

.legal-content a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.legal-content a:hover::after {
  width: 100%;
}

.legal-footer-note {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-footer-note p {
  margin-bottom: 0.5rem;
}

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

/* ===== ACCOUNT DELETION GUIDE SPECIFIC STYLES ===== */
.step {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.step:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  transform: translateX(5px);
}

.step strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.step .muted {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cta-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  background: var(--gradient);
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 99, 56, 0.3);
}

/* ===== IMPRINT SPECIFIC STYLES ===== */
.imprint-info {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 2rem 0;
}

.imprint-info p {
  margin-bottom: 1rem;
}

.imprint-info a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.imprint-info a:hover {
  color: var(--secondary);
}

/* ===== PRIVACY POLICY STYLES ===== */
.privacy-policy-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 3rem;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.6s ease-out;
}

.privacy-policy-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
}

.privacy-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.privacy-title {
  font-family: "strenuous", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(255, 99, 56, 0.2);
}

.privacy-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.privacy-content h2 {
  font-family: "strenuous", sans-serif;
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--text-light);
  position: relative;
  padding-left: 1rem;
  counter-increment: section;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.privacy-content h2::before {
  content: counter(section) ".";
  position: static;
  font-family: "strenuous", sans-serif;
  color: var(--primary);
  font-size: 1.5rem;
  padding-right: 0.5rem;
}

.privacy-content h2::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--gradient);
  border-radius: 2px;
}

.privacy-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  text-align: justify;
  hyphens: auto;
}

.privacy-content strong {
  color: var(--text-light);
  font-weight: 600;
}

.privacy-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.privacy-content li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
  position: relative;
}

.privacy-content li::marker {
  color: var(--primary);
}

.privacy-highlight-box {
  background: rgba(255, 99, 56, 0.1);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.privacy-highlight-box p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.privacy-content a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.privacy-content a:hover {
  color: var(--secondary);
}

.privacy-content a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.privacy-content a:hover::after {
  width: 100%;
}

.privacy-footer-note {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.privacy-footer-note p {
  margin-bottom: 0.5rem;
}

/* ===== RANKING PAGE STYLES ===== */

/* Container & Layout */
.ranking-container {
  max-width: 100%;
  margin: 1rem auto;
  background: none;
  backdrop-filter: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
  overflow: visible;
  position: relative;
}

/* Kein ::before für .ranking-container */
.ranking-container::before {
  display: none;
}

/* Header */
.ranking-header {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
}

.ranking-badge {
  display: inline-block;
  background: var(--gradient);
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.ranking-title {
  font-family: "strenuous", sans-serif;
  font-size: 2rem;
  margin-bottom: 0.4rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 99, 56, 0.2);
  line-height: 1.2;
}

.ranking-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.ranking-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

/* Controls */
.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.sort-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.sort-select {
  background: var(--bg-dark-3);
  color: var(--text-light);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-family: "bc-barell", sans-serif;
  cursor: pointer;
  min-width: 180px;
  font-size: 0.85rem;
}

/* Export Controls */
.export-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-right: 1rem;
}

.export-btn {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-family: "bc-barell", sans-serif;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  height: 32px;
}

.export-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(255, 99, 56, 0.3);
}

.export-btn:active {
  transform: translateY(0);
}

.export-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Export Overlay */
.export-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 41, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  flex-direction: column;
  gap: 1.5rem;
}

.export-overlay.active {
  display: flex;
}

.export-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.export-message {
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  max-width: 300px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Export Preview */
.export-preview {
  position: absolute;
  left: -9999px;
  top: -9999px;
  background: var(--bg-dark-2);
  padding: 2rem;
  border-radius: 24px;
  width: 1000px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  z-index: -1;
}

.export-preview-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary);
}

.export-preview-title {
  font-family: "strenuous", sans-serif;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 99, 56, 0.3);
}

.export-preview-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.export-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.9rem;
  border: 1px solid var(--border);
}

.export-table th {
  background: linear-gradient(90deg, var(--bg-dark-3) 0%, rgba(77, 171, 247, 0.1) 100%);
  color: var(--text-light);
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
}

.export-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
}

.export-table tr:last-child td {
  border-bottom: none;
}

.export-combo-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.export-blade-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.export-footer {
  margin-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Table */
/* Table-Wrapper als Hauptcontainer mit EINEM Rand */
.table-wrapper {
  overflow-x: auto;
  padding: 0;
  margin: 0;
  -webkit-overflow-scrolling: touch;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* KEIN zusätzlicher ::before Rand oben */
.table-wrapper::before {
  display: none; /* Entfernt den orangenen Akzent oben */
}


.table-wrapper::-webkit-scrollbar {
  height: 6px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: var(--bg-dark-2);
  border-radius: 3px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.ranking-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(17, 34, 64, 0.7);
  border-radius: 12px;
  overflow: hidden;
  min-width: 900px;
}

/* Stattdessen: Fügen Sie dem Header selbst einen Farbverlauf hinzu */
.ranking-table thead {
  background: linear-gradient(90deg, var(--bg-dark-3) 0%, rgba(77, 171, 247, 0.1) 100%);
  position: relative;
  overflow: hidden;
}

.ranking-table th {
  padding: 0.75rem 0.6rem;
  text-align: left;
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: background-color 0.2s ease;
}

.ranking-table th:hover {
  background-color: rgba(255, 99, 56, 0.1);
}

.ranking-table th:first-child {
  border-radius: 12px 0 0 0;
}

.ranking-table th:last-child {
  border-radius: 0 12px 0 0;
}

.ranking-table td {
  padding: 0.9rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
  transition: background-color 0.2s ease;
  font-size: 0.9rem;
}

.ranking-table tbody tr:hover td {
  background-color: rgba(255, 99, 56, 0.05);
}

.ranking-table tbody tr:last-child td {
  border-bottom: none;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
  .table-wrapper {
    border-radius: 12px;
    margin: 0 -0.5rem;
    border-left: none;
    border-right: none;
  }
  
  .ranking-table thead {
    border-radius: 12px 12px 0 0;
  }
}

/* Table Cells */
.rank-cell {
  font-family: "strenuous", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  min-width: 60px;
}

.combo-cell {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 200px;
}

.blade-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.combo-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.2;
}

.primary-kpi {
  background: linear-gradient(135deg, rgba(255, 99, 56, 0.15) 0%, rgba(255, 99, 56, 0.05) 100%);
  border-left: 2px solid var(--primary);
  position: relative;
}

.score-cell {
  font-family: "bc-barell", monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  text-align: center;
  min-width: 100px;
  padding-left: 1rem !important;
}

.score-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.win-rate-cell {
  text-align: center;
  min-width: 100px;
}

.win-rate-value {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-light);
}

.win-rate-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 0.4rem;
  overflow: hidden;
}

.win-rate-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
}

.stats-cell {
  text-align: center;
  min-width: 80px;
}

.stat-value {
  font-weight: 600;
  color: var(--text-light);
  display: block;
  font-size: 0.95rem;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.confidence-cell {
  text-align: center;
  min-width: 100px;
}

.confidence-value {
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
}

.confidence-visual {
  height: 4px;
  background: linear-gradient(90deg, 
    #f56565 0%, #f6ad55 50%, #48bb78 100%);
  border-radius: 2px;
  margin-top: 0.4rem;
  position: relative;
}

.confidence-marker {
  position: absolute;
  top: -2px;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Header Controls */
.sortable-header {
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
}

.header-title {
  font-weight: 700;
  white-space: nowrap;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sort-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  font-size: 0.75rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  padding: 0;
  line-height: 1;
  transition: all 0.2s ease;
}

.sort-btn:hover {
  background: rgba(255, 99, 56, 0.2);
  border-color: var(--primary);
  color: var(--primary);
}

.sort-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.tooltip-btn {
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
}

.tooltip-btn:hover {
  background: var(--text-muted);
  color: var(--bg-dark-2);
}

.tooltip-container {
  position: relative;
}

.tooltip-content h4 {
  color: #ff6338 !important;  /* Primary color for headings */
  font-family: "strenuous", sans-serif;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 99, 56, 0.2);
  text-transform: none;
  letter-spacing: 0.5px;
}

.tooltip-content p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
}

.tooltip-content ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
  text-align: left;
}

.tooltip-content li {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 0.4rem;
  list-style-type: disc;
}

.tooltip-content li:last-child {
  margin-bottom: 0;
}

.tooltip-content strong {
  color: var(--text-light);
  font-weight: 600;
}


.tooltip-content {
  display: none;
  position: absolute;
  background: linear-gradient(135deg, rgba(17, 34, 64, 0.95) 0%, rgba(10, 25, 41, 0.95) 100%);
  border: 1px solid rgba(255, 99, 56, 0.3);
  backdrop-filter: blur(10px);  border-radius: 8px;
  padding: 1rem;
  width: 280px;
  z-index: 1000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: left;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  margin-top: 0.5rem;
  white-space: normal;
}

.tooltip-container:hover .tooltip-content {
  display: block;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}

.pagination-info {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  min-width: 40px;
  text-align: center;
}

.page-btn:hover:not(:disabled) {
  background: rgba(255, 99, 56, 0.1);
  border-color: var(--primary);
}

.page-btn.active {
  background: var(--gradient);
  color: white;
  border-color: var(--primary);
  font-weight: 600;
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-dots {
  color: var(--text-muted);
  padding: 0 0.25rem;
}

.pagination-right-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.rows-per-page {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rows-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.rows-select {
  background: var(--bg-dark-3);
  color: var(--text-light);
  border: 1px solid var(--border);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  height: 32px;
}

.ranking-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.last-updated {
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.footer-note {
  font-size: 0.8rem;
  opacity: 0.7;
  line-height: 1.3;
}

/* ===== DESIGN ANPASSUNGEN FÜR RANKING ===== */

/* Hero-Stil für Ranking-Header */
.ranking-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
}

.ranking-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 99, 56, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(250, 112, 112, 0.1) 0%, transparent 50%);
  z-index: 0;
}

/* Download-Section Stil */
.download-section-ranking {
  background: var(--bg-dark-3);
  border-radius: 24px;
  padding: 4rem 2rem;
  margin: 4rem auto;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.download-section-ranking::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
}

/* Beta-Badge wie in index.html */
.beta-badge-ranking {
  display: inline-block;
  background: var(--gradient);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Download-Buttons Container */
.download-buttons-ranking {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.store-badge-ranking {
  display: block;
  transition: transform 0.3s ease;
  height: 60px;
}

.store-badge-ranking:hover {
  transform: scale(1.05);
}

.store-badge-ranking img {
  height: 100%;
  width: auto;
  border-radius: 12px;
}

/* Stats für Ranking */
.ranking-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.ranking-stat {
  text-align: center;
}

.ranking-stat-number {
  display: block;
  font-family: "strenuous", sans-serif;
  font-size: 2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.ranking-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== MAIN PAGE STYLES ===== */

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 99, 56, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(250, 112, 112, 0.1) 0%, transparent 50%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.logo {
  width: 100px;
  height: 100px;
  margin-bottom: 1.5rem;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-titles {
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-block;
  background: var(--gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-title {
  font-family: "strenuous", sans-serif;
  font-size: 4.5rem;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px var(--glow);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 8px 32px rgba(255, 99, 56, 0.3);
}

.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 99, 56, 0.4);
}

.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}

.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: "strenuous", sans-serif;
  font-size: 2.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Sections */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section.dark {
  background: rgba(10, 25, 41, 0.7);
  border-radius: 32px;
  margin: 4rem auto;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.section.dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-title {
  font-family: "strenuous", sans-serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text .text {
  text-align: left;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.floating-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: float 6s ease-in-out infinite 2s;
}

.card-badge {
  display: inline-block;
  background: var(--gradient);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(255, 99, 56, 0.1);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.feature-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.feature-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.85rem;
}

/* Screenshots */
.screenshots-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.screenshot-frame {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.screenshot-frame:hover {
  transform: translateY(-10px);
}

.screenshot-frame img {
  width: 100%;
  border-radius: 12px;
  display: block;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.frame-label {
  text-align: center;
  margin-top: 1rem;
  font-weight: 700;
  color: white;
}

/* Download Section */
.download-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 3rem;
}

.download-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: white;
}

.benefits-list {
  list-style: none;
}

.benefits-list li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.benefits-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.store-badge {
  display: block;
  transition: transform 0.3s ease;
}

.store-badge:hover {
  transform: scale(1.05);
}

.store-badge img {
  width: 100%;
  height: auto;
}

.beta-notice {
  background: rgba(255, 99, 56, 0.1);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--primary);
  margin-top: 3rem;
}

.beta-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Community Section */
.community-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.community-text .section-title {
  text-align: left;
  margin-bottom: 2rem;
}

.community-highlights {
  margin: 2rem 0;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.highlight-icon {
  font-size: 2rem;
}

.highlight h4 {
  color: white;
  margin-bottom: 0.25rem;
}

.highlight p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.discord-btn {
  background: #5865f2;
  color: white;
  width: 100%;
  justify-content: center;
}

.discord-btn:hover {
  background: #4752c4;
}

/* Discord Widget Styles */
.discord-widget {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.discord-loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--text-light);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

/* Discord Server Card */
.discord-server-card {
  background: var(--card-bg, #2f3136);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color, #40444b);
}

.discord-header {
  background: var(--discord-header, #202225);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color, #40444b);
}

.discord-server-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.discord-server-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-color, #5865f2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.discord-server-details h3 {
  margin: 0 0 0.25rem;
  color: white;
  font-size: 1.1rem;
}

.discord-online-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.discord-online-indicator {
  width: 8px;
  height: 8px;
  background: #3ba55d;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.discord-join-btn {
  background: var(--accent-color, #5865f2);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.discord-join-btn:hover {
  background: #4752c4;
}

/* Members Section */
.discord-members-section {
  padding: 1.5rem;
}

.discord-members-title {
  color: var(--text-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

.discord-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
}

.discord-member {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.discord-member:hover {
  background: rgba(255, 255, 255, 0.05);
}

.discord-member-avatar {
  position: relative;
  width: 36px;
  height: 36px;
}

.discord-member-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.discord-member-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--card-bg, #2f3136);
}

.discord-member-status.discord-status-online { background: #3ba55d; }
.discord-member-status.discord-status-idle { background: #faa81a; }
.discord-member-status.discord-status-dnd { background: #ed4245; }
.discord-member-status.discord-status-offline { background: #747f8d; }

.discord-member-name {
  color: white;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discord-more-members {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

/* Footer */
.discord-footer {
  border-top: 1px solid var(--border-color, #40444b);
  padding: 1rem 1.5rem;
}

.discord-full-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--accent-color, #5865f2);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.discord-full-link:hover {
  color: #4752c4;
}

.discord-full-link svg {
  transition: transform 0.2s;
}

.discord-full-link:hover svg {
  transform: translateX(2px);
}

/* Error State */
.discord-error {
  text-align: center;
  padding: 2rem;
  background: var(--card-bg, #2f3136);
  border-radius: 12px;
  border: 1px solid var(--border-color, #40444b);
}

.discord-error svg {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.discord-error h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.discord-error p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ===== SUPPORT SECTION STYLES ===== */
.support-section {
  background: linear-gradient(135deg, rgba(255, 99, 56, 0.1) 0%, rgba(250, 112, 112, 0.1) 100%);
  border-radius: 32px;
  margin: 4rem auto;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.support-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
}

.support-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.support-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.support-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 15px 30px rgba(255, 99, 56, 0.1);
}

.support-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.support-card:hover::before {
  opacity: 1;
}

.support-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.support-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.support-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

.kofi-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  border: 1px solid var(--border);
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.kofi-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 99, 56, 0.05) 0%, rgba(250, 112, 112, 0.05) 100%);
  z-index: 0;
}

.kofi-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.kofi-content h3 {
  font-family: "strenuous", sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
}

.kofi-content p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
  font-size: 1.1rem;
}

.kofi-btn {
  background: linear-gradient(135deg, #ff5e5e 0%, #ff8e8e 100%);
  color: white;
  border: none;
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.kofi-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 94, 94, 0.3);
}

.kofi-btn svg {
  width: 24px;
  height: 24px;
}

.kofi-note {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.kofi-note p {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.95rem;
}

/* ===== FOOTER AUS INDEX.HTML ===== */
.footer-centered {
  background: var(--bg-dark-3);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  width: 100%;
  margin-top: 4rem;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
  width: 100%;
}

.footer-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  display: block;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 1rem;
  width: 100%;
  flex-wrap: wrap;
}

.link-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 150px;
}

.link-column a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.25rem 0;
}

.link-column a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 800px;
  margin: 0 auto;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* ===== RESPONSIVE STYLES ===== */

@media (max-width: 768px) {
  /* Legal Pages */
  .legal-container {
    padding: 2rem 1.5rem;
    margin: 1.5rem auto;
    border-radius: 20px;
  }
  
  .legal-title {
    font-size: 2rem;
  }
  
  .legal-content h2 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
  }
  
  .legal-content p, .legal-content li {
    font-size: 1rem;
  }
  
  .legal-highlight-box, .step, .imprint-info {
    padding: 1.25rem;
  }
  
  /* Ranking Page */
  .ranking-hero {
    min-height: 50vh;
    padding: 2rem 1rem;
  }
  
  .export-preview-title {
    font-size: 1.8rem;
  }
  
  .download-buttons-ranking {
    flex-direction: column;
    align-items: center;
  }
  
  .store-badge-ranking {
    height: 50px;
  }
  
  .ranking-stats {
    gap: 2rem;
  }
  
  .ranking-table {
    min-width: 850px;
  }
  
  .header-controls {
    gap: 0.1rem;
  }
  
  .sort-btn {
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
  }
  
  .tooltip-btn {
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
  }
  
  .tooltip-content {
    width: 250px;
    font-size: 0.75rem;
    padding: 0.8rem;
  }
  
  .export-controls {
    margin-right: 0.5rem;
  }
  
  .export-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .pagination-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .pagination-right-section {
    margin-left: 0;
    order: -1;
    width: 100%;
    justify-content: space-between;
  }
  
  .page-btn {
    padding: 0.4rem 0.8rem;
    min-width: 36px;
  }
  
  /* Main Page */
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 2rem;
  }
  
  .about-content,
  .download-content,
  .community-layout,
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 4rem 1.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
  }
  
  .link-column {
    align-items: center;
    text-align: center;
  }
  
  .link-column a {
    font-size: 1rem;
  }
  
  .footer-brand {
    margin-bottom: 2rem;
  }
  
  .footer-logo {
    width: 70px;
    height: 70px;
  }
  
  .footer-tagline {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  /* Support Section */
  .support-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .support-card {
    padding: 1.5rem;
  }
  
  .kofi-container {
    padding: 2rem 1.5rem;
  }
  
  .kofi-content h3 {
    font-size: 1.8rem;
  }
  
  .kofi-content p {
    font-size: 1rem;
  }
  
  .kofi-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.5rem;
  }
  
  .ranking-header {
    padding: 1.5rem 0.8rem 1rem;
  }
  
  .ranking-title {
    font-size: 1.4rem;
  }
  
  .ranking-badge {
    font-size: 0.75rem;
    padding: 0.3rem 1rem;
  }
  
  .ranking-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .sort-select {
    min-width: 140px;
    font-size: 0.8rem;
  }
  
  .ranking-table {
    min-width: 800px;
  }
  
  .rank-cell {
    font-size: 1.1rem;
    min-width: 50px;
  }
  
  .score-cell {
    font-size: 0.9rem;
    min-width: 90px;
  }
  
  .tooltip-content {
    width: 220px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100vw - 40px);
  }
  
  .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .export-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
  }
  
  .export-btn span {
    display: none;
  }
  
  .export-btn::before {
    content: "📷";
    font-size: 0.9rem;
  }
  
  .rows-label {
    display: none;
  }
  
  /* Legal Pages */
  .legal-container {
    padding: 1.5rem 1rem;
    margin: 1rem auto;
  }
  
  .legal-title {
    font-size: 1.8rem;
  }
  
  .legal-content h2 {
    font-size: 1.2rem;
  }
  
  /* Footer */
  .footer-links {
    width: 100%;
  }
  
  .link-column {
    min-width: 100%;
  }
  
  footer.footer-centered {
    padding: 2.5rem 1rem 1.5rem;
  }
  
  /* Support Section */
  .support-section {
    padding: 3rem 1rem !important;
  }
  
  .kofi-container {
    padding: 1.5rem 1rem;
  }
  
  .support-card {
    padding: 1.25rem;
  }
}

/* Screenshot Categories */
.screenshot-subsection {
  margin-bottom: 4rem;
}

.screenshot-category {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: white;
  font-family: "strenuous", sans-serif;
  position: relative;
  padding-bottom: 0.5rem;
}

.screenshot-category::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

/* Portrait Screenshots Container */
.screenshots-container.portrait {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Landscape Screenshots Container */
.screenshots-container.landscape {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Landscape Frame Styling */
.screenshot-frame.landscape-frame {
  grid-column: span 1;
  padding: 1rem;
  overflow: hidden;
}

.screenshot-frame.landscape-frame img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 12px;
  background-color: #0a1929;
}

/* Für sehr große Bildschirme */
@media (min-width: 1200px) {
  .screenshots-container.landscape {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .screenshot-frame.landscape-frame img {
    max-height: 450px;
  }
}

/* Tablet Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .screenshots-container.landscape {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .screenshot-frame.landscape-frame img {
    max-height: 350px;
    object-fit: contain;
  }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .screenshots-container.landscape {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .screenshot-frame.landscape-frame {
    padding: 0.75rem;
    margin: 0 -1rem;
    border-radius: 16px;
    border-left: none;
    border-right: none;
  }
  
  .screenshot-frame.landscape-frame img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    border-radius: 10px;
  }
  
  .screenshots-container.portrait {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  
  .screenshot-frame {
    margin: 0 -1rem;
    border-radius: 16px;
    border-left: none;
    border-right: none;
  }
  
  .screenshot-frame img {
    max-height: 500px;
    object-fit: contain;
  }
}

/* Screenshot Grid Animation */
.screenshot-frame {
  animation: fadeInUp 0.6s ease-out;
}

.screenshot-frame:nth-child(2) {
  animation-delay: 0.1s;
}

.screenshot-frame:nth-child(3) {
  animation-delay: 0.2s;
}

.screenshot-frame.landscape-frame:nth-child(1) {
  animation-delay: 0.3s;
}

.screenshot-frame.landscape-frame:nth-child(2) {
  animation-delay: 0.4s;
}

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

/* Optional: Add a subtle border effect on hover */
.screenshot-frame:hover {
  border-color: var(--primary);
}

/* Add a subtle glow effect for landscape screenshots */
.screenshot-frame.landscape-frame:hover img {
  box-shadow: 0 15px 50px rgba(255, 99, 56, 0.2);
}

/* Alternative mit Grid Layout für Links */
@media (min-width: 769px) {
  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    justify-items: center;
  }
  
  .link-column {
    text-align: left;
  }
}

/* ===== KOMPAKTE DOWNLOAD-SECTION ===== */
.compact-download-section {
  background: var(--bg-dark-3);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem auto 3rem;
  border: 1px solid var(--border);
  max-width: 1200px;
  position: relative;
  overflow: hidden;
}

.compact-download-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
}

.compact-download-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.compact-download-title {
  font-family: "bc-barell", sans-serif;
  font-size: 1.2rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 0.5rem;
}

.compact-download-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.compact-store-badge {
  display: block;
  transition: transform 0.3s ease;
  height: 50px;
}

.compact-store-badge:hover {
  transform: scale(1.05);
}

.compact-store-badge img {
  height: 100%;
  width: auto;
  border-radius: 10px;
}

.compact-download-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Responsive Anpassungen für kompakte Download-Section */
@media (max-width: 768px) {
  .compact-download-section {
    padding: 1.25rem;
    margin: 1.5rem auto 2rem;
    border-radius: 12px;
  }
  
  .compact-download-title {
    font-size: 1.1rem;
  }
  
  .compact-store-badge {
    height: 45px;
  }
  
  .compact-download-buttons {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .compact-download-section {
    padding: 1rem;
    margin: 1rem auto 1.5rem;
  }
  
  .compact-download-title {
    font-size: 1rem;
  }
  
  .compact-store-badge {
    height: 40px;
  }
  
  .compact-download-buttons {
    gap: 0.5rem;
  }
  
  .compact-download-note {
    font-size: 0.8rem;
  }

}


    /* Mobile Card View Styles - OPTIMIERT FÜR FLACKERN-FREIES SCROLLEN */
.cards-container {
  display: none;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
  -webkit-overflow-scrolling: touch;
  transform: translate3d(0, 0, 0);
  /* Verhindert Layout-Shifts */
  contain: strict;
  height: calc(100vh - 300px); /* Feste Höhe für bessere Performance */
  overflow-y: auto;
}

.combo-card {
  background: var(--bg-dark-3);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0.9rem;
  position: relative;
  /* Verhindere jegliche Transitions während des Scrollens */
  transition: none !important;
  /* Hardware-Beschleunigung */
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Feste Höhe verhindert Layout-Shifts */
  height: 160px;
  min-height: 160px;
  max-height: 160px;
  overflow: hidden;
  /* Verhindert z-Index Probleme */
  z-index: 1;
  isolation: isolate;
}
    
    /* Hover nur für Geräte mit Maus */
    @media (hover: hover) and (pointer: fine) {
      .combo-card:hover {
        border-color: var(--primary);
        box-shadow: 0 4px 12px rgba(255, 99, 56, 0.15);
      }
       .cards-container.scrolling .combo-card:hover {
    transform: none !important;
    border-color: var(--border) !important;
  }
  
  .cards-container:not(.scrolling) .combo-card:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    transition: border-color 0.2s ease, transform 0.2s ease;
  }
    }
    
    /* Aktiver Zustand für Touch-Geräte */
    .combo-card:active {
      border-color: var(--primary);
      background: rgba(255, 99, 56, 0.05);
      transition: background-color 0.1s ease;
    }
    
.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  gap: 0.5rem;
  /* Verhindert Layout-Shifts */
  min-height: 48px;
}
    
    .card-rank {
      background: var(--gradient);
      color: white;
      font-family: "strenuous", sans-serif;
      font-weight: 700;
      font-size: 1.1rem;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      flex-shrink: 0;
      /* Flackern-Verhinderung */
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }
    
.card-blade-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  /* Sofortiges Rendering */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  /* Feste Größe verhindert Layout-Shifts */
  flex: 0 0 32px;
  height: 32px;
}
    
    .card-combo-info {
      flex: 1;
      overflow: hidden;
      /* Flackern-Verhinderung */
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }
    
    .card-combo-name {
      font-weight: 600;
      font-size: 0.95rem;
      color: var(--text-light);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      /* Flackern-Verhinderung */
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }
    
.card-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  /* Feste Größe */
  height: 72px;
  min-height: 72px;
}
    
    .card-stat {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 6px;
      padding: 0.6rem;
      text-align: center;
      /* Flackern-Verhinderung */
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }
    
    .card-stat-value {
      font-family: "bc-barell", monospace;
      font-weight: 700;
      font-size: 1rem;
      color: var(--text-light);
      display: block;
      margin-bottom: 0.15rem;
      /* Flackern-Verhinderung */
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }
    
    .card-stat-label {
      font-size: 0.65rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.3px;
      /* Flackern-Verhinderung */
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }
    
    .card-winrate-bar {
      height: 4px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 2px;
      margin-top: 0.25rem;
      overflow: hidden;
      /* Flackern-Verhinderung */
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }
    
    .card-winrate-fill {
      height: 100%;
      background: var(--gradient);
      border-radius: 2px;
      /* Flackern-Verhinderung */
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }
    
    .mobile-controls {
      display: none;
      margin: 0.75rem 0;
      gap: 0.4rem;
      flex-wrap: wrap;
      /* Flackern-Verhinderung */
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }
    
    .mobile-sort-btn {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border);
      border-radius: 5px;
      padding: 0.4rem 0.75rem;
      color: var(--text-light);
      font-size: 0.75rem;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      gap: 0.3rem;
      white-space: nowrap;
      /* Flackern-Verhinderung */
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }
    
    .mobile-sort-btn.active {
      background: rgba(255, 99, 56, 0.1);
      border-color: var(--primary);
      color: var(--primary);
    }
    
    .mobile-sort-icon {
      font-size: 0.7rem;
    }
    
    /* Search Container Styles */
    .search-container {
      display: none;
      margin: 1rem 0;
      position: relative;
      /* Flackern-Verhinderung */
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }
    
    .search-input {
      width: 100%;
      padding: 0.75rem 1rem 0.75rem 2.75rem;
      background: var(--bg-dark-3);
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--text-light);
      font-size: 0.9rem;
      font-family: "bc-barell", sans-serif;
      transition: all 0.3s ease;
      /* Flackern-Verhinderung */
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }
    
    .search-input:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 2px rgba(255, 99, 56, 0.1);
    }
    
    .search-icon {
      position: absolute;
      left: 1rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      font-size: 1rem;
      pointer-events: none;
      /* Flackern-Verhinderung */
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }
    
    .search-clear {
      position: absolute;
      right: 1rem;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--text-muted);
      font-size: 1.2rem;
      cursor: pointer;
      display: none;
      padding: 0;
      line-height: 1;
      /* Flackern-Verhinderung */
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }
    
    .search-clear:hover {
      color: var(--primary);
    }
    
    /* Desktop Table Updates */
    .ranking-table th[data-sort="potential"],
    .ranking-table th[data-sort="nap"],
    .ranking-table th[data-sort="confidence"] {
      display: table-cell;
    }
    
    /* Pagination Adjustments */
    .pagination-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem;
      border-top: 1px solid var(--border);
      gap: 0.75rem;
      flex-wrap: wrap;
      /* Flackern-Verhinderung */
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }
    
    /* Responsive Media Queries */
    @media (max-width: 768px) {
      .table-wrapper {
        display: none !important;
      }
      
      .cards-container {
        display: grid !important;
        /* Für flüssiges Scrollen auf iOS */
        -webkit-overflow-scrolling: touch;
        transform: translate3d(0, 0, 0);
      }
      
      .mobile-controls {
        display: flex;
      }
      
      .search-container {
        display: block;
      }
      
      .pagination-container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
      }
      
      .pagination-right-section {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
      }
      
      .compact-download-section {
        margin: 1rem 0 1.5rem;
        padding: 1rem;
      }
      
      .compact-download-title {
        font-size: 0.95rem;
      }
      
      .ranking-hero {
        padding: 1.5rem 1rem;
        margin-bottom: 0.75rem;
      }
      
      .hero-title {
        font-size: 2rem;
      }
      
      .hero-subtitle {
        font-size: 1rem;
      }
      
      /* Adjust table wrapper display */
      .table-wrapper {
        border-radius: 8px;
      }
      
      .ranking-table th,
      .ranking-table td {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
      }
      
      .rank-cell {
        font-size: 1rem;
        min-width: 45px;
      }
      
      .score-cell {
        font-size: 0.9rem;
        min-width: 80px;
      }
      
      .combo-cell {
        min-width: 180px;
      }
      
      .blade-icon {
        width: 28px;
        height: 28px;
      }
      
      .combo-name {
        font-size: 0.85rem;
      }
      
      .score-label {
        font-size: 0.65rem;
      }
    }
    
    /* Mobile Card View Styles */
    .cards-container {
      display: none;
      grid-template-columns: 1fr;
      gap: 0.75rem;
      margin: 1rem 0;
    }
    
    .combo-card {
      background: var(--bg-dark-3);
      border-radius: 10px;
      border: 1px solid var(--border);
      padding: 0.9rem;
      position: relative;
      overflow: hidden;
      transition: all 0.3s ease;
    }
    
    .combo-card:hover {
      border-color: var(--primary);
      transform: translateY(-1px);
    }
    
    .card-header {
      display: flex;
      align-items: center;
      margin-bottom: 0.75rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--border);
      gap: 0.5rem;
    }
    
    .card-rank {
      background: var(--gradient);
      color: white;
      font-family: "strenuous", sans-serif;
      font-weight: 700;
      font-size: 1.1rem;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      flex-shrink: 0;
    }
    
    .card-blade-icon {
      width: 32px;
      height: 32px;
      object-fit: contain;
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.05);
      padding: 2px;
      border: 1px solid var(--border);
      flex-shrink: 0;
    }
    
    .card-combo-info {
      flex: 1;
      overflow: hidden;
    }
    
    .card-combo-name {
      font-weight: 600;
      font-size: 0.95rem;
      color: var(--text-light);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    .card-stats-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 0.6rem;
    }
    
    .card-stat {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 6px;
      padding: 0.6rem;
      text-align: center;
    }
    
    .card-stat-value {
      font-family: "bc-barell", monospace;
      font-weight: 700;
      font-size: 1rem;
      color: var(--text-light);
      display: block;
      margin-bottom: 0.15rem;
    }
    
    .card-stat-label {
      font-size: 0.65rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }
    
    .card-winrate-bar {
      height: 4px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 2px;
      margin-top: 0.25rem;
      overflow: hidden;
    }
    
    .card-winrate-fill {
      height: 100%;
      background: var(--gradient);
      border-radius: 2px;
    }
    
    .mobile-controls {
      display: none;
      margin: 0.75rem 0;
      gap: 0.4rem;
      flex-wrap: wrap;
    }
    
    .mobile-sort-btn {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border);
      border-radius: 5px;
      padding: 0.4rem 0.75rem;
      color: var(--text-light);
      font-size: 0.75rem;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 0.3rem;
      white-space: nowrap;
    }
    
    .mobile-sort-btn.active {
      background: rgba(255, 99, 56, 0.1);
      border-color: var(--primary);
      color: var(--primary);
    }
    
    .mobile-sort-icon {
      font-size: 0.7rem;
    }
    
    /* Search Container Styles */
    .search-container {
      display: none;
      margin: 1rem 0;
      position: relative;
    }
    
    .search-input {
      width: 100%;
      padding: 0.75rem 1rem 0.75rem 2.75rem;
      background: var(--bg-dark-3);
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--text-light);
      font-size: 0.9rem;
      font-family: "bc-barell", sans-serif;
      transition: all 0.3s ease;
    }
    
    .search-input:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 2px rgba(255, 99, 56, 0.1);
    }
    
    .search-icon {
      position: absolute;
      left: 1rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      font-size: 1rem;
      pointer-events: none;
    }
    
    .search-clear {
      position: absolute;
      right: 1rem;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--text-muted);
      font-size: 1.2rem;
      cursor: pointer;
      display: none;
      padding: 0;
      line-height: 1;
    }
    
    .search-clear:hover {
      color: var(--primary);
    }
    
    /* Desktop Table Updates */
    .ranking-table th[data-sort="potential"],
    .ranking-table th[data-sort="nap"],
    .ranking-table th[data-sort="confidence"] {
      display: table-cell;
    }
    
    /* Pagination Adjustments */
    .pagination-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem;
      border-top: 1px solid var(--border);
      gap: 0.75rem;
      flex-wrap: wrap;
    }
    
    /* Responsive Media Queries */
    @media (max-width: 768px) {
      .table-wrapper {
        display: none !important;
      }
      
      .cards-container {
        display: grid !important;
      }
      
      .mobile-controls {
        display: flex;
      }
      
      .search-container {
        display: block;
      }
      
      .pagination-container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
      }
      
      .pagination-right-section {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
      }
      
      .compact-download-section {
        margin: 1rem 0 1.5rem;
        padding: 1rem;
      }
      
      .compact-download-title {
        font-size: 0.95rem;
      }
      
      .ranking-hero {
        padding: 1.5rem 1rem;
        margin-bottom: 0.75rem;
      }
      
      .hero-title {
        font-size: 2rem;
      }
      
      .hero-subtitle {
        font-size: 1rem;
      }
      
      /* Adjust table wrapper display */
      .table-wrapper {
        border-radius: 8px;
      }
      
      .ranking-table th,
      .ranking-table td {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
      }
      
      .rank-cell {
        font-size: 1rem;
        min-width: 45px;
      }
      
      .score-cell {
        font-size: 0.9rem;
        min-width: 80px;
      }
      
      .combo-cell {
        min-width: 180px;
      }
      
      .blade-icon {
        width: 28px;
        height: 28px;
      }
      
      .combo-name {
        font-size: 0.85rem;
      }
      
      .score-label {
        font-size: 0.65rem;
      }
    }
    
    @media (min-width: 769px) {
      .cards-container {
        display: none !important;
      }
      
      .table-wrapper {
        display: block !important;
      }
      
      .mobile-controls {
        display: none !important;
      }
      
      .search-container {
        display: none !important;
      }
    }
    
    @media (max-width: 480px) {
      .combo-card {
        padding: 0.75rem;
      }
      
      .card-header {
        margin-bottom: 0.5rem;
        padding-bottom: 0.4rem;
      }
      
      .card-rank {
        width: 32px;
        height: 32px;
        font-size: 1rem;
      }
      
      .card-blade-icon {
        width: 28px;
        height: 28px;
      }
      
      .card-combo-name {
        font-size: 0.85rem;
      }
      
      .card-stats-grid {
        gap: 0.5rem;
      }
      
      .card-stat {
        padding: 0.5rem;
      }
      
      .card-stat-value {
        font-size: 0.9rem;
      }
      
      .card-stat-label {
        font-size: 0.6rem;
      }
      
      .mobile-sort-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.7rem;
      }
      
      .search-input {
        padding: 0.6rem 0.9rem 0.6rem 2.5rem;
        font-size: 0.85rem;
      }
      
      .search-icon {
        left: 0.9rem;
        font-size: 0.9rem;
      }
      
      .search-clear {
        right: 0.9rem;
      }
    }
    
    /* Animation for search results */
    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    .combo-card {
      animation: fadeIn 0.3s ease-out;
    }