/* Tailwind CSS CDN */
@import url('https://cdn.tailwindcss.com');

/* Custom styles for the Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Custom CSS Variables */
:root {
    --bg-dark: #181a21;
    --bg-medium: #23262e;
    --bg-light: #2b313c;
    --bg-gradient: linear-gradient(120deg, #181a21 0%, #23262e 100%);
    --text-color: #e6eaf3;
    --text-color-light: #b7c2d0;
    --heading-color: #f5f7fa;
    --accent-blue: #4fa3e3;
    --accent-blue-dark: #338fd4;
    --accent-green: #4caf50;
    --accent-red: #ff5555;
    --accent-yellow: #ffe066;
    --table-border: #2a2e38;
    --shadow-color: rgba(0, 0, 0, 0.18);
    --highlight-bg: rgba(79, 163, 227, 0.13);
    --error-color: var(--accent-red);
    --loading-color: #aaa;
    --bg-darker: #13151b;
    --highlight-color: var(--accent-blue);
    --card-radius: 18px;
    --card-shadow: 0 6px 32px 0 rgba(79,163,227,0.10), 0 1.5px 6px 0 rgba(0,0,0,0.10);
    --transition: 0.18s cubic-bezier(.4,2,.6,1);
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* Mobile Header Styles */
.md\:hidden {
    display: none;
}

@media (max-width: 768px) {
    .md\:hidden {
        display: flex;
    }
}

/* Sidebar Styles */
#sidebar {
    background: var(--bg-medium);
    border-right: 2px solid var(--bg-light);
    width: 272px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

@media (max-width: 767px) {
    #sidebar {
        position: sticky;
        top: 0;
        height: auto;
        min-height: 0;
        z-index: 1000;
        width: 100vw;
        max-width: 100vw;
        border-right: none;
        border-bottom: 2px solid var(--bg-light);
        flex-direction: row;
        overflow-x: auto;
        padding: 0.5rem 0;
    }
    #sidebar nav {
        width: 100vw;
        overflow-x: auto;
    }
}

/* Make nav area scrollable if content overflows */
#sidebar nav {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

/* Add margin to main content to avoid being hidden */
@media (min-width: 768px) {
    main, footer {
        margin-left: 272px !important;
        width: calc(100vw - 272px);
        max-width: calc(100vw - 272px);
    }
}
@media (max-width: 767px) {
    main, footer {
        margin-left: 0 !important;
        width: 100vw;
        max-width: 100vw;
    }
}

/* Main Logo Styles */
.main-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(79,163,227,0.10);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
    object-fit: contain;
}

.main-logo:hover, .main-logo:focus {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 8px 32px 0 rgba(79,163,227,0.18);
}

/* Typography */
h1, .section-title {
    font-family: 'Inter', sans-serif;
    color: var(--heading-color);
    font-weight: 700;
    margin: 0;
    letter-spacing: 1.5px;
}

h1 { 
    font-size: clamp(2.2em, 5vw, 3em); 
}

h2 {
    font-size: clamp(1.8em, 4vw, 2.5em);
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.tagline {
    color: var(--text-color-light);
    font-size: 1.13em;
    margin-top: 8px;
    margin-bottom: 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

/* Navigation Styles */
.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
    gap: 0.75rem;
}

.nav-link:hover, .nav-link:focus {
    background: var(--bg-light);
    color: var(--text-color);
    text-decoration: none;
}

.nav-link.active {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 2px 12px 0 rgba(79,163,227,0.13);
}

.nav-link.active .nav-icon {
    color: white;
}

.nav-icon {
    font-size: 1.25em;
    color: var(--accent-blue);
    min-width: 1.375rem;
    transition: color var(--transition);
}

.nav-link:hover .nav-icon, .nav-link:focus .nav-icon {
    color: var(--text-color);
}

/* Main Content Styles */
.home-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.home-lead {
    font-size: 1.25rem;
    color: var(--text-color-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Button Styles */
.main-nav-btn {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: var(--card-radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition);
    margin: 0.5rem;
    box-shadow: var(--card-shadow);
    border: none;
    cursor: pointer;
}

.main-nav-btn:hover, .main-nav-btn:focus {
    background: var(--accent-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px 0 rgba(79,163,227,0.18);
    text-decoration: none;
    color: white;
}

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

.get-started-btn {
    background: var(--accent-green);
    margin-bottom: 2rem;
}

.get-started-btn:hover, .get-started-btn:focus {
    background: #45a049;
}

.main-nav-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Welcome Message Container */
.welcome-message-container {
    width: 100%;
    margin-bottom: 2rem;
}

/* Header Title Box */
.header-title-box {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
    margin-bottom: 32px;
}

/* Footer Styles */
footer {
    background: var(--bg-medium);
    border-top: 2px solid var(--bg-light);
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--text-color-light);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color var(--transition);
}

.footer-link:hover, .footer-link:focus {
    color: var(--accent-blue);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav-btn {
        width: 100%;
        max-width: 300px;
        margin: 0.25rem 0;
    }
    
    .header-title-box {
        flex-direction: column;
        text-align: center;
    }
    
    .main-logo {
        width: 60px;
        height: 60px;
    }
    
    h1 {
        font-size: clamp(1.8em, 4vw, 2.5em);
    }
    
    h2 {
        font-size: clamp(1.5em, 3.5vw, 2em);
    }
    
    .home-lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .main-nav-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .home-main {
        padding: 1rem 0.5rem;
    }
    
    .main-logo {
        width: 48px;
        height: 48px;
    }
}

/* Utility Classes */
.min-h-screen {
    min-height: 100vh;
}

.bg-gray-900 {
    background-color: var(--bg-dark);
}

.bg-gray-800 {
    background-color: var(--bg-medium);
}

.bg-gray-700 {
    background-color: var(--bg-light);
}

.bg-gray-600 {
    background-color: #374151;
}

.text-gray-100 {
    color: var(--text-color);
}

.text-gray-300 {
    color: var(--text-color-light);
}

.text-gray-400 {
    color: #9ca3af;
}

.text-white {
    color: white;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1 1 0%;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

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

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-8 {
    padding: 2rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-auto {
    margin-top: auto;
}

.ml-64 {
    margin-left: 16rem;
}

.w-64 {
    width: 272px;
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.max-w-4xl {
    max-width: 80rem;
}

.max-w-4xl {
    max-width: 80rem;
}

.w-full {
    width: 100%;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.fixed {
    position: fixed;
}

.inset-y-0 {
    top: 0;
    bottom: 0;
}

.left-0 {
    left: 0;
}

.transform {
    transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-translate-x-full {
    --tw-translate-x: -100%;
    transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.transition-transform {
    transition-property: transform;
}

.duration-300 {
    transition-duration: 300ms;
}

.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.z-50 {
    z-index: 50;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-4 {
    gap: 1rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.hover\:bg-gray-700:hover {
    background-color: #374151;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
}

/* Mobile responsive utilities */
@media (min-width: 768px) {
    .md\:relative {
        position: relative;
    }
    
    .md\:translate-x-0 {
        --tw-translate-x: 0px;
        transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    }
    
    .md\:ml-64 {
        margin-left: 0;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:hidden {
        display: none;
    }
}

/* Animation utilities */
.transition-all {
    transition-property: all;
}

/* Additional custom styles for better integration */
.logo-hover {
    transition: transform var(--transition), box-shadow var(--transition);
}

.logo-hover:hover {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 8px 32px 0 rgba(79,163,227,0.18);
}

/* --- Steam Comparison Table --- */
.results-section {
  margin: 2rem 0;
  overflow-x: auto;
  background: var(--bg-light);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem 1rem;
}

.results-section table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}

.results-section th,
.results-section td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--table-border);
  font-size: 1.05em;
}

.results-section th {
  background: var(--bg-medium);
  color: var(--heading-color);
  font-weight: 700;
  font-size: 1.1em;
}

.results-section tr:last-child td {
  border-bottom: none;
}

.results-section .highlight {
  background: var(--highlight-bg);
  color: var(--accent-blue);
  font-weight: 700;
}

.game-header-row {
  background: var(--bg-medium);
}

.image-header-row {
  background: var(--bg-light);
}

.game-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s;
}

.game-image-wrapper:hover {
  transform: scale(1.05);
}

.game-icon {
  width: auto;
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
}

.no-data-message,
.loading-message {
  color: var(--text-color-light);
  font-size: 1.1em;
  text-align: center;
  margin: 1.5rem 0;
}

/* --- Bar Chart --- */
.bar-chart-wrapper {
  width: 100%;
  background: var(--bg-light);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  margin: 2rem 0;
  padding: 1.5rem 1rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bar-chart {
  width: 100% !important;
  max-width: 900px;
  min-height: 300px;
  background: transparent;
}

.title-controls-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

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

.game-table-controls button {
  background: var(--bg-medium);
  color: var(--text-color);
  border: 1.5px solid var(--table-border);
  border-radius: 8px;
  padding: 0.4em 1.1em;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.game-table-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.game-table-controls button:hover:not(:disabled) {
  background: var(--accent-blue);
  color: #fff;
}

#infoSpan {
  min-width: 120px;
  text-align: center;
  color: var(--text-color-light);
  font-size: 1em;
}

/* --- Achievements Comparison --- */
.achievements-comparison-section {
  margin: 2.5rem 0 1.5rem 0;
  background: var(--bg-light);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 2rem 1.5rem;
}

.achievements-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.achievement-game {
  background: var(--bg-medium);
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
  padding: 1.2rem 1rem;
  min-width: 260px;
  max-width: 340px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.achievement-game.close-race {
  border: 2px solid var(--accent-yellow);
}
.achievement-stats {
  width: 100%;
  margin-top: 0.7rem;
}
.achievement-progress {
  margin-bottom: 0.5rem;
  background: var(--bg-light);
  border-radius: 8px;
  padding: 0.3rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1em;
  font-weight: 500;
}
.achievement-progress.winning {
  background: var(--highlight-bg);
  color: var(--accent-blue);
}
.progress-bar {
  flex: 0 0 60px;
  height: 10px;
  background: var(--bg-dark);
  border-radius: 6px;
  overflow: hidden;
  margin-right: 0.7rem;
}
.progress {
  height: 100%;
  background: var(--accent-blue);
  border-radius: 6px;
  transition: width 0.3s;
}
.complete-badge {
  background: var(--accent-green);
  color: #fff;
  border-radius: 8px;
  padding: 0.2em 0.7em;
  font-size: 0.95em;
  font-weight: 700;
  margin-top: 0.5em;
  display: inline-block;
}
.race-badge {
  background: var(--accent-yellow);
  color: #222;
  border-radius: 8px;
  padding: 0.2em 0.7em;
  font-size: 0.95em;
  font-weight: 700;
  margin-top: 0.5em;
  display: inline-block;
}

/* --- Recommendations --- */
.game-recommendations-section {
  margin: 2.5rem 0 1.5rem 0;
  background: var(--bg-light);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 2rem 1.5rem;
}
.recommendations-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  gap: 1rem;
}
.recommendation-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.filter-select {
  background: var(--bg-medium);
  color: var(--text-color);
  border: 1.5px solid var(--table-border);
  border-radius: 8px;
  padding: 0.4em 1.1em;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.filter-select:focus {
  outline: 2px solid var(--accent-blue);
}
.recommendations-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.recommendations-section {
  background: var(--bg-medium);
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
  padding: 1.2rem 1rem;
  min-width: 260px;
  max-width: 340px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}
.recommendations-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.game-card {
  background: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
  padding: 1rem;
  min-width: 180px;
  max-width: 220px;
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.game-card:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 8px 32px 0 rgba(79,163,227,0.18);
}
.game-image-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.7rem;
  position: relative;
}
.game-image {
  width: 100%;
  max-width: 180px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
}
.top-game-badge, .free-badge, .sale-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent-blue);
  color: #fff;
  border-radius: 6px;
  padding: 0.2em 0.7em;
  font-size: 0.9em;
  font-weight: 700;
  z-index: 2;
}
.free-badge {
  background: var(--accent-green);
  left: auto;
  right: 8px;
}
.sale-badge {
  background: var(--accent-red);
  left: 50%;
  transform: translateX(-50%);
}
.game-info {
  width: 100%;
  text-align: left;
}
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.game-title {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0;
}
.metacritic-score {
  background: #666;
  color: #fff;
  border-radius: 6px;
  padding: 0.2em 0.7em;
  font-size: 0.95em;
  font-weight: 700;
}
.game-tags {
  margin-bottom: 0.5rem;
}
.game-tag {
  background: var(--bg-medium);
  color: var(--accent-blue);
  border-radius: 6px;
  padding: 0.1em 0.6em;
  font-size: 0.9em;
  margin-right: 0.3em;
  font-weight: 600;
}
.game-description {
  color: var(--text-color-light);
  font-size: 0.98em;
  margin-bottom: 0.5rem;
}
.game-features {
  margin-bottom: 0.5rem;
}
.feature-tag {
  background: var(--accent-blue);
  color: #fff;
  border-radius: 6px;
  padding: 0.1em 0.6em;
  font-size: 0.9em;
  margin-right: 0.3em;
  font-weight: 600;
}
.game-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}
.price-info {
  font-size: 1em;
  font-weight: 600;
}
.price {
  color: var(--accent-blue);
  font-weight: 700;
  margin-right: 0.5em;
}
.price.original {
  text-decoration: line-through;
  color: var(--text-color-light);
  margin-right: 0.3em;
}
.price.sale {
  color: var(--accent-red);
}
.price.free {
  color: var(--accent-green);
}
.sale-price-container {
  display: flex;
  align-items: center;
  gap: 0.3em;
}
.discount-badge {
  background: var(--accent-red);
  color: #fff;
  border-radius: 6px;
  padding: 0.1em 0.6em;
  font-size: 0.9em;
  font-weight: 700;
}
.platform-icons {
  display: flex;
  gap: 0.3em;
  font-size: 1.2em;
  color: var(--text-color-light);
}
.platform-icons i {
  color: var(--text-color-light);
  transition: color 0.18s;
}
.platform-icons i:hover {
  color: var(--accent-blue);
}

/* --- Playtime Trends --- */
.playtime-trends-section {
  margin: 2.5rem 0 1.5rem 0;
  background: var(--bg-light);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 2rem 1.5rem;
}
.trends-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  margin-bottom: 1rem;
}
.trends-table th,
.trends-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--table-border);
  font-size: 1.05em;
}
.trends-table th {
  background: var(--bg-medium);
  color: var(--heading-color);
  font-weight: 700;
  font-size: 1.1em;
}
.trends-table tr:last-child td {
  border-bottom: none;
}
.trends-table .winning {
  background: var(--highlight-bg);
  color: var(--accent-blue);
  font-weight: 700;
}
.trends-table .close-match {
  border-left: 4px solid var(--accent-yellow);
}
.status-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
  justify-content: center;
  align-items: center;
}
.recent-badge, .close-badge, .diff-badge {
  background: var(--accent-blue);
  color: #fff;
  border-radius: 6px;
  padding: 0.1em 0.6em;
  font-size: 0.9em;
  font-weight: 700;
  margin: 0.1em 0.2em;
}
.close-badge {
  background: var(--accent-yellow);
  color: #222;
}
.diff-badge {
  background: var(--accent-red);
}
.playtime-trends-note {
  color: var(--text-color-light);
  font-size: 0.98em;
  margin-top: 0.5rem;
  text-align: center;
}

/* --- Modal Styles (Game Details) --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(24,26,33,0.92);
  transition: opacity 0.2s;
}
.modal-open {
  overflow: hidden;
}
.modal-content {
  background: var(--bg-medium);
  margin: 4vh auto;
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(79,163,227,0.18);
  padding: 0;
  max-width: 600px;
  width: 95vw;
  position: relative;
  animation: modal-fade-in 0.25s;
}
@keyframes modal-fade-in {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.close {
  color: var(--accent-red);
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 2.2em;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  transition: color 0.18s;
}
.close:hover, .close:focus {
  color: #fff;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 2rem 1rem 2rem;
}
.modal-game-image {
  width: 120px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
}
.modal-game-info {
  flex: 1;
  text-align: left;
}
#modalGameTitle {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0 0 0.5em 0;
}
.modal-body {
  margin-bottom: 1em;
}
#modalGameDescription {
  color: var(--text-color-light);
  font-size: 1em;
  max-height: 120px;
  overflow: hidden;
  transition: max-height 0.3s;
}
#modalGameDescription.description-expanded {
  max-height: 600px;
  overflow: auto;
}
.show-more-button {
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.4em 1.1em;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.7em;
  transition: background 0.18s, color 0.18s;
  display: none;
}
.show-more-button:hover, .show-more-button:focus {
  background: var(--accent-blue-dark);
  color: #fff;
}
.modal-tabs {
  display: flex;
  gap: 0.5em;
  justify-content: center;
  margin: 0.5em 0 0.5em 0;
}
.tab-btn {
  background: var(--bg-light);
  color: var(--text-color);
  border: none;
  border-radius: 8px 8px 0 0;
  padding: 0.5em 1.2em;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.tab-btn.active, .tab-btn:hover, .tab-btn:focus {
  background: var(--accent-blue);
  color: #fff;
}
.modal-tab-content {
  padding: 1.2em 2em 2em 2em;
}
.modal-playtime-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  margin-bottom: 1em;
}
.modal-playtime-table th,
.modal-playtime-table td {
  padding: 0.6rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--table-border);
  font-size: 1.05em;
}
.modal-playtime-table th {
  background: var(--bg-light);
  color: var(--heading-color);
  font-weight: 700;
  font-size: 1.1em;
}
.modal-playtime-table tr:last-child td {
  border-bottom: none;
}
.modal-actions {
  display: flex;
  gap: 1em;
  justify-content: center;
  margin-top: 1em;
}
.launch-button, .store-button {
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5em 1.2em;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
}
.launch-button:hover, .store-button:hover, .launch-button:focus, .store-button:focus {
  background: var(--accent-blue-dark);
  color: #fff;
}
@media (max-width: 900px) {
  .modal-content {
    padding: 0;
    max-width: 98vw;
  }
  .modal-header {
    flex-direction: column;
    align-items: center;
    gap: 1em;
    padding: 1.2em 1em 0.7em 1em;
  }
  .modal-tab-content {
    padding: 1em 0.5em 1.5em 0.5em;
  }
}
@media (max-width: 600px) {
  .results-section, .achievements-comparison-section, .game-recommendations-section, .playtime-trends-section {
    padding: 1rem 0.3rem;
  }
  .bar-chart-wrapper {
    padding: 1rem 0.3rem;
  }
  .modal-content {
    padding: 0;
    max-width: 100vw;
  }
  .modal-header {
    flex-direction: column;
    align-items: center;
    gap: 0.7em;
    padding: 1em 0.5em 0.5em 0.5em;
  }
  .modal-tab-content {
    padding: 0.7em 0.2em 1em 0.2em;
  }
}

/* --- Albion Online Styles --- */
.albion-section {
    width: 100%;
    margin-top: 30px;
    text-align: center;
}

#albion-cards-wrapper {
    width: 100%;
}

.albion-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 0 10px;
    justify-content: center;
}

.albion-card {
    background: linear-gradient(145deg, var(--bg-medium) 0%, var(--bg-light) 100%);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-width: 300px;
    max-width: 350px;
    flex: 1;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition), box-shadow var(--transition);
}

.albion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-green) 100%);
    opacity: 0.8;
}

.albion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(79, 163, 227, 0.15);
}

.albion-card .player-name {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.albion-card .guild-tag {
    background: rgba(79, 163, 227, 0.1);
    color: var(--accent-blue);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 600;
    border: 1px solid rgba(79, 163, 227, 0.2);
}

.albion-card .online-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.95em;
    color: var(--text-color-light);
}

.albion-card .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.albion-card .status-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

.albion-card .status-dot.offline {
    background: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
}

.albion-card .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95em;
}

.albion-card .detail-row:last-child {
    border-bottom: none;
}

.albion-card .detail-row strong {
    color: var(--text-color-light);
    font-weight: 600;
}

.albion-card .detail-row span {
    color: var(--heading-color);
    font-weight: 500;
}

.albion-card .fame-breakdown,
.albion-card .pvp-stats {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.albion-card .fame-breakdown h4,
.albion-card .pvp-stats h4 {
    color: var(--accent-blue);
    font-size: 1.1em;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.albion-card.error {
    background: linear-gradient(145deg, #2a1f1f 0%, #1f1515 100%);
    border: 1px solid rgba(255, 85, 85, 0.2);
}

.albion-card.error::before {
    background: linear-gradient(90deg, var(--accent-red) 0%, #ff6b6b 100%);
}

.albion-card.error .player-name {
    color: var(--accent-red);
}

.albion-card.error p {
    color: var(--text-color-light);
    margin: 8px 0;
}

.albion-card.error small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
}

/* --- League of Legends Styles --- */
.league-section {
    width: 100%;
    margin-top: 30px;
    text-align: center;
}

.league-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 0 10px;
    justify-content: center;
}

/* Champion Modal Styles */
.champion-search {
    margin-bottom: 20px;
    position: relative;
}

.champion-search input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: var(--bg-dark);
    border: 1px solid var(--table-border);
    color: var(--text-color);
    font-size: 1em;
}

#championSearchResults {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-darker);
    border: 1px solid var(--table-border);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-header-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.modal-header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-tab {
    background: var(--bg-medium);
    color: var(--text-color-light);
    border: none;
    padding: 12px 24px;
    margin-right: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 600;
}

.modal-tab.active,
.modal-tab:hover {
    background: var(--accent-blue);
    color: white;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color var(--transition);
}

.modal-close:hover {
    color: var(--accent-red);
}

/* --- Transfer System Styles --- */
.transfer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.login-section, .upload-section, .files-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.login-section:hover, .upload-section:hover, .files-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.18);
}

.login-section h2, .upload-section h2, .files-section h2 {
    margin-top: 0;
    margin-bottom: 24px;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4a9eff 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.login-section h2::after, .upload-section h2::after, .files-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #4a9eff 0%, #7c3aed 100%);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.15);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn {
    background: linear-gradient(135deg, #4a9eff 0%, #357abd 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s cubic-bezier(.4,0,.2,1), box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(74, 158, 255, 0.18);
    letter-spacing: 0.02em;
}

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

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

.btn:hover {
    background: linear-gradient(135deg, #357abd 0%, #2a5f9e 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 32px rgba(74, 158, 255, 0.22);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-danger {
    background: linear-gradient(135deg, #ff4757 0%, #c44569 100%);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.18);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c44569 0%, #a55a5a 100%);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.22);
}

.btn-secondary {
    background: linear-gradient(135deg, #747d8c 0%, #57606f 100%);
    box-shadow: 0 4px 15px rgba(116, 125, 140, 0.18);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #57606f 0%, #2f3542 100%);
    box-shadow: 0 8px 25px rgba(116, 125, 140, 0.22);
}

.btn-success {
    background: linear-gradient(135deg, #2ed573 0%, #1e90ff 100%);
    box-shadow: 0 4px 15px rgba(46, 213, 115, 0.18);
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e90ff 0%, #2ed573 100%);
    box-shadow: 0 8px 25px rgba(46, 213, 115, 0.22);
}

.hidden {
    display: none !important;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

/* Drag & Drop Area Styles */
.drag-drop-area {
    border: 2px dashed #4a9eff;
    border-radius: 12px;
    background: rgba(74, 158, 255, 0.07);
    color: #4a9eff;
    text-align: center;
    padding: 24px;
    margin-bottom: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
}

.drag-drop-area.dragover {
    background: rgba(74, 158, 255, 0.18);
    border-color: #7c3aed;
    color: #7c3aed;
}

/* Toast/Snackbar Styles */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: #23262e;
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.4s, bottom 0.4s;
}

.toast.show {
    opacity: 1;
    pointer-events: auto;
    bottom: 48px;
}

/* Copy Link Button Styles */
.copy-link-btn {
    background: none;
    border: none;
    color: #4a9eff;
    font-size: 1.1rem;
    cursor: pointer;
    margin-left: 8px;
    transition: color 0.2s;
}

.copy-link-btn:hover {
    color: #7c3aed;
}

/* File List Image Animations */
.file-item img[loading="lazy"], .preview-modal img[loading="lazy"] {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.5s, transform 0.5s;
}

.file-item img[loading="lazy"].loaded, .preview-modal img[loading="lazy"].loaded {
    opacity: 1;
    transform: scale(1);
}

/* File Upload/Removal Animations */
.file-fade-in {
    animation: fileFadeIn 0.7s cubic-bezier(.4,0,.2,1);
}

@keyframes fileFadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.file-fade-out {
    opacity: 0;
    transform: translateY(-30px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}

/* Files Section Header */
.files-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.files-section .section-header > div {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

#refresh-btn {
    margin-left: auto;
    min-width: 120px;
}

/* File Actions Button Gap */
.file-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.file-actions .btn {
    padding: 10px 22px;
    font-size: 15px;
}

.file-actions .btn + .btn {
    margin-left: 0px;
}

.file-actions .btn-success {
    margin-right: 0px;
    margin-left: 10px;
}

/* Expiry Toggle & Slider */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    position: relative;
    font-size: 1.08em;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text-color-light);
}

.toggle-text {
    margin-right: 6px;
}

.toggle-input {
    display: none;
}

.toggle-slider {
    width: 44px;
    height: 24px;
    background: var(--bg-light);
    border-radius: 16px;
    position: relative;
    transition: background 0.2s;
    box-shadow: 0 2px 8px 0 var(--shadow-color);
    display: inline-block;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--accent-blue);
    border-radius: 50%;
    transition: transform 0.22s cubic-bezier(.4,2,.6,1), background 0.18s;
    box-shadow: 0 1.5px 6px 0 rgba(79,163,227,0.18);
}

.toggle-input:checked + .toggle-slider {
    background: var(--accent-blue);
}

.toggle-input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: var(--accent-green);
}

.toggle-slider:active::before {
    width: 18px;
}

.toggle-label:focus-within .toggle-slider {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Expiry Slider */
.expiry-slider-group {
    margin-top: 10px;
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

#expiry-slider {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-green) 100%);
    border-radius: 6px;
    outline: none;
    appearance: none;
    transition: background 0.2s;
    margin-top: 2px;
    margin-bottom: 0;
}

#expiry-slider::-webkit-slider-thumb {
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 2.5px solid var(--bg-light);
    box-shadow: 0 2px 8px 0 var(--shadow-color);
    transition: background 0.18s, border 0.18s;
    cursor: pointer;
}

#expiry-slider:focus::-webkit-slider-thumb {
    background: var(--accent-green);
    border: 2.5px solid var(--accent-blue);
}

#expiry-slider:hover::-webkit-slider-thumb {
    background: var(--accent-green);
}

#expiry-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 2.5px solid var(--bg-light);
    box-shadow: 0 2px 8px 0 var(--shadow-color);
    transition: background 0.18s, border 0.18s;
    cursor: pointer;
}

#expiry-slider:focus::-moz-range-thumb {
    background: var(--accent-green);
    border: 2.5px solid var(--accent-blue);
}

#expiry-slider:hover::-moz-range-thumb {
    background: var(--accent-green);
}

#expiry-slider::-ms-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 2.5px solid var(--bg-light);
    box-shadow: 0 2px 8px 0 var(--shadow-color);
    transition: background 0.18s, border 0.18s;
    cursor: pointer;
}

#expiry-slider:focus::-ms-thumb {
    background: var(--accent-green);
    border: 2.5px solid var(--accent-blue);
}

#expiry-slider:hover::-ms-thumb {
    background: var(--accent-green);
}

#expiry-slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-green) 100%);
}

#expiry-slider::-ms-fill-lower {
    background: var(--accent-blue);
}

#expiry-slider::-ms-fill-upper {
    background: var(--accent-green);
}

#expiry-slider:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

#expiry-slider-value {
    font-size: 1.08em;
    color: var(--accent-blue);
    font-weight: 600;
    margin-left: 2px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
}

/* Hide number input arrows for slider */
#expiry-slider::-webkit-outer-spin-button,
#expiry-slider::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#expiry-slider[type=range] {
    -webkit-appearance: none;
    appearance: none;
}

/* Remove extra padding for range input in .form-group */
.form-group input[type="range"] {
    padding-top: 0;
    padding-bottom: 0;
    height: 32px;
    box-sizing: border-box;
    background: none;
}

/* Center the slider thumb vertically on all browsers */
#expiry-slider {
    height: 6px;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    top: 0;
}

#expiry-slider::-webkit-slider-thumb {
    margin-top: -8px;
}

/* Remove unwanted padding for all range inputs in .form-group */
.form-group input[type="range"]::-webkit-input-placeholder,
.form-group input[type="range"]::-moz-placeholder,
.form-group input[type="range"]:-ms-input-placeholder,
.form-group input[type="range"]::placeholder {
    color: transparent;
}

/* Disk Usage Section */
.disk-usage-section {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.08) 0%, rgba(124, 58, 237, 0.05) 100%);
    border: 1px solid rgba(74, 158, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.disk-usage-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a9eff 0%, #7c3aed 100%);
    border-radius: 16px 16px 0 0;
}

.disk-usage-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(74, 158, 255, 0.15);
    border-color: rgba(74, 158, 255, 0.25);
}

.disk-usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.disk-usage-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.disk-usage-label::before {
    content: '💾';
    font-size: 1.2rem;
    filter: grayscale(0.3);
}

.disk-usage-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: #4a9eff;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #4a9eff 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #e2e8f0;
    background-clip: text;
    transition: all 0.3s ease;
    padding: 4px 12px;
    border-radius: 8px;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.2);
}

.disk-usage-text.disk-usage-warning {
    background: linear-gradient(135deg, #ffa726 0%, #ff7043 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background: rgba(255, 167, 38, 0.1);
    border-color: rgba(255, 167, 38, 0.3);
}

.disk-usage-text.disk-usage-danger {
    background: linear-gradient(135deg, #ff4757 0%, #c44569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.3);
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.disk-usage-bar {
    position: relative;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.disk-usage-progress {
    height: 100%;
    background: linear-gradient(90deg, #4a9eff 0%, #7c3aed 100%);
    border-radius: 8px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.disk-usage-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.disk-usage-limit {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: #ff4757;
    border-radius: 1px;
    transition: left 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
}

.disk-usage-limit::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -3px;
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 71, 87, 0.8);
}

.disk-usage-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.95rem;
    color: #b7c2d0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.disk-usage-details.disk-usage-warning {
    color: #ffa726;
}

.disk-usage-details.disk-usage-danger {
    color: #ff4757;
    font-weight: 600;
}

/* Storage breakdown with icons */
.disk-usage-breakdown {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.storage-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.storage-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.storage-item.used {
    background: rgba(74, 158, 255, 0.1);
    border-color: rgba(74, 158, 255, 0.2);
    color: #4a9eff;
}

.storage-item.free {
    background: rgba(46, 213, 115, 0.1);
    border-color: rgba(46, 213, 115, 0.2);
    color: #2ed573;
}

.storage-item.total {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

.storage-icon {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Loading state */
.disk-usage-section.loading .disk-usage-progress {
    background: linear-gradient(90deg, #4a9eff 0%, #7c3aed 100%);
    animation: loading-pulse 1.5s ease-in-out infinite;
}

@keyframes loading-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Success state animation */
.disk-usage-section.success .disk-usage-progress {
    animation: success-glow 0.6s ease-out;
}

@keyframes success-glow {
    0% { box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(46, 213, 115, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 213, 115, 0); }
}

/* Warning and Danger states */
.disk-usage-section.warning {
    border-color: rgba(255, 167, 38, 0.3);
    background: linear-gradient(135deg, rgba(255, 167, 38, 0.08) 0%, rgba(255, 112, 67, 0.05) 100%);
}

.disk-usage-section.warning::before {
    background: linear-gradient(90deg, #ffa726 0%, #ff7043 100%);
}

.disk-usage-section.danger {
    border-color: rgba(255, 71, 87, 0.4);
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.08) 0%, rgba(196, 69, 105, 0.05) 100%);
    animation: danger-pulse 3s infinite;
}

.disk-usage-section.danger::before {
    background: linear-gradient(90deg, #ff4757 0%, #c44569 100%);
}

@keyframes danger-pulse {
    0%, 100% { 
        box-shadow: 0 8px 32px rgba(255, 71, 87, 0.15);
        transform: translateY(0);
    }
    50% { 
        box-shadow: 0 8px 32px rgba(255, 71, 87, 0.25);
        transform: translateY(-1px);
    }
}

/* Enhanced progress bar colors for different states */
.disk-usage-section.warning .disk-usage-progress {
    background: linear-gradient(90deg, #ffa726 0%, #ff7043 100%);
}

.disk-usage-section.danger .disk-usage-progress {
    background: linear-gradient(90deg, #ff4757 0%, #c44569 100%);
}

/* Enhanced storage items for different states */
.disk-usage-section.warning .storage-item.used {
    background: rgba(255, 167, 38, 0.15);
    border-color: rgba(255, 167, 38, 0.3);
    color: #ffa726;
}

.disk-usage-section.danger .storage-item.used {
    background: rgba(255, 71, 87, 0.15);
    border-color: rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(24, 26, 33, 0.92);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    border: 6px solid #23262e;
    border-top: 6px solid #4fa3e3;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    animation: spin 1s linear infinite;
    margin-bottom: 18px;
}

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

.loading-text {
    color: #e6eaf3;
    font-size: 1.25em;
    font-family: 'Inter', sans-serif;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

/* Client Info Styles */
.client-info {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 24px;
}

.client-info p {
    margin-bottom: 16px;
    font-size: 1.1em;
    color: var(--text-color-light);
}

.client-info strong {
    color: var(--accent-blue);
}

/* Status Message Styles */
.status-message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 600;
    text-align: center;
}

.status-message.success {
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.3);
    color: #2ed573;
}

.status-message.error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

.status-message.warning {
    background: rgba(255, 167, 38, 0.1);
    border: 1px solid rgba(255, 167, 38, 0.3);
    color: #ffa726;
}

/* Upload Actions */
.upload-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* Upload Progress */
.upload-progress {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.upload-progress-header h4 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.1em;
}

.upload-progress-header span {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 1.1em;
}

.upload-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-green) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.upload-progress-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: var(--text-color-light);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-color-light);
}

.empty-state-icon {
    font-size: 3em;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1em;
    margin: 0;
}

/* File Count */
.file-count {
    color: var(--text-color-light);
    font-size: 0.9em;
    font-weight: 500;
}

/* Responsive Design for Transfer/Client Pages */
@media (max-width: 768px) {
    .disk-usage-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .disk-usage-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .disk-usage-text {
        font-size: 1.1rem;
        align-self: flex-end;
    }
    
    .disk-usage-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .disk-usage-breakdown {
        gap: 8px;
    }
    
    .storage-item {
        font-size: 0.85rem;
        padding: 4px 8px;
    }
    
    .upload-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .upload-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .disk-usage-section {
        padding: 16px;
    }
    
    .disk-usage-label {
        font-size: 1rem;
    }
    
    .disk-usage-text {
        font-size: 1rem;
    }
    
    .disk-usage-bar {
        height: 10px;
    }
    
    .disk-usage-breakdown {
        flex-direction: column;
        gap: 6px;
    }
    
    .storage-item {
        justify-content: space-between;
        width: 100%;
    }
    
    .login-section, .upload-section, .files-section {
        padding: 20px;
    }
    
    .form-group input, .form-group select {
        padding: 12px;
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Mobile Responsive for Albion Cards */
@media (max-width: 600px) {
    .albion-cards-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .albion-card {
        min-width: 280px;
        max-width: 100%;
        margin-bottom: 16px;
    }
}

/* --- Refresh Button Styles --- */
.refresh-btn {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 2px 8px 0 rgba(79,163,227,0.18);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px;
}

.refresh-btn:hover, .refresh-btn:focus {
    background: linear-gradient(135deg, var(--accent-blue-dark) 0%, #2a5f9e 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px 0 rgba(79,163,227,0.22);
    color: white;
}

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

.refresh-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.refresh-btn::before {
    content: '\f021';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1em;
    transition: transform 0.3s ease;
}

.refresh-btn:hover::before {
    transform: rotate(180deg);
}

/* --- Admin Upload Section Styles (Client Page) --- */
.admin-upload-section {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(145deg, var(--bg-medium) 0%, var(--bg-light) 100%);
    border-radius: var(--card-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--card-shadow);
}

.admin-upload-section h3 {
    color: var(--accent-blue);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-upload-section h3::before {
    content: '\f0c7';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.1em;
}

.admin-upload-file {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 2px dashed rgba(79, 163, 227, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 16px;
}

.admin-upload-file:hover {
    border-color: var(--accent-blue);
    background: rgba(79, 163, 227, 0.05);
}

.admin-upload-file:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(79, 163, 227, 0.1);
}

.admin-upload-file::-webkit-file-upload-button {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin-right: 12px;
    transition: all var(--transition);
}

.admin-upload-file::-webkit-file-upload-button:hover {
    background: var(--accent-blue-dark);
    transform: translateY(-1px);
}

.admin-upload-btn {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 2px 8px 0 rgba(34, 197, 94, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-upload-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-green-dark) 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px 0 rgba(34, 197, 94, 0.3);
}

.admin-upload-btn:active:not(:disabled) {
    transform: translateY(0);
}

.admin-upload-btn:disabled {
    background: var(--bg-medium);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.admin-upload-btn::before {
    content: '\f093';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1em;
}

#admin-upload-status {
    display: inline-block;
    margin-left: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

#admin-upload-status:empty {
    display: none;
}

/* Admin upload section responsive design */
@media (max-width: 768px) {
    .admin-upload-section {
        padding: 16px;
        margin-top: 24px;
    }
    
    .admin-upload-section h3 {
        font-size: 1.1rem;
    }
    
    .admin-upload-btn {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
    
    #admin-upload-status {
        display: block;
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
    }
}

/* --- Gaming Dashboard Overview Styles --- */
.dashboard-header {
    text-align: center;
    margin-bottom: 32px;
}

.dashboard-header h3 {
    color: var(--accent-blue);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.dashboard-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

/* Loading State */
.dashboard-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.dashboard-loading .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--bg-medium);
    border-top: 4px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.dashboard-loading p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

/* Error State */
.dashboard-error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.dashboard-error .error-content {
    max-width: 400px;
}

.dashboard-error i {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 16px;
}

.dashboard-error h4 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.dashboard-error p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.retry-btn {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.retry-btn:hover {
    background: linear-gradient(135deg, var(--accent-blue-dark) 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px 0 rgba(79, 163, 227, 0.3);
}

/* Stats Overview Cards */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: linear-gradient(145deg, var(--bg-medium) 0%, var(--bg-light) 100%);
    border-radius: var(--card-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--card-shadow);
    padding: 24px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    opacity: 0;
    transition: opacity var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.stat-card.steam-stats::before {
    background: linear-gradient(90deg, #66c0f4, #1b2838);
}

.stat-card.albion-stats::before {
    background: linear-gradient(90deg, #ffd700, #ff8c00);
}

.stat-card.league-stats::before {
    background: linear-gradient(90deg, #c89b3c, #463714);
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card-header i {
    font-size: 1.5rem;
    color: var(--accent-blue);
}

.stat-card.steam-stats .stat-card-header i {
    color: #66c0f4;
}

.stat-card.albion-stats .stat-card-header i {
    color: #ffd700;
}

.stat-card.league-stats .stat-card-header i {
    color: #c89b3c;
}

.stat-card-header h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.stat-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.stat-value {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

/* Recent Activity Section */
.recent-activity {
    background: linear-gradient(145deg, var(--bg-medium) 0%, var(--bg-light) 100%);
    border-radius: var(--card-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--card-shadow);
    padding: 24px;
    margin-bottom: 32px;
}

.activity-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-blue);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.activity-title i {
    font-size: 1.2rem;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-dark);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition);
}

.activity-item:hover {
    background: var(--bg-medium);
    transform: translateX(4px);
}

.activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-medium);
    flex-shrink: 0;
}

.activity-icon.steam {
    background: linear-gradient(135deg, #66c0f4, #1b2838);
}

.activity-icon.albion {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
}

.activity-icon.league {
    background: linear-gradient(135deg, #c89b3c, #463714);
}

.activity-icon i {
    color: white;
    font-size: 1.1rem;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 4px 0;
}

.activity-content small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Quick Actions Section */
.quick-actions {
    background: linear-gradient(145deg, var(--bg-medium) 0%, var(--bg-light) 100%);
    border-radius: var(--card-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--card-shadow);
    padding: 24px;
}

.actions-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-blue);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.actions-title i {
    font-size: 1.2rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.action-btn {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
}

.action-btn:hover {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px 0 rgba(79, 163, 227, 0.3);
    border-color: transparent;
}

.action-btn i {
    font-size: 1.1rem;
}

/* Dashboard Content States */
.dashboard-content.hidden {
    display: none;
}

.dashboard-loading.hidden {
    display: none;
}

.dashboard-error.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-overview {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .activity-item {
        padding: 12px;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .action-btn {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    .dashboard-header h3 {
        font-size: 1.5rem;
    }
    
    .dashboard-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .stat-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .stat-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .activity-icon {
        align-self: flex-start;
    }
}

/* Player Selector */
.player-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.player-select-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.player-select-dropdown {
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 2px solid var(--accent-blue);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    min-width: 150px;
}

.player-select-dropdown:hover {
    background: var(--bg-medium);
    border-color: var(--accent-blue-dark);
}

.player-select-dropdown:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 163, 227, 0.2);
}

.player-select-dropdown option {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 8px;
}

/* Responsive design for player selector */
@media (max-width: 768px) {
    .player-selector {
        flex-direction: column;
        gap: 8px;
    }
    
    .player-select-dropdown {
        min-width: 200px;
    }
}

/* ===== BULB CONTROLLER STYLES ===== */

/* Main Container */
.bg-gray-800 {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rounded-xl {
    border-radius: 1rem;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Header Section */
.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.bg-gradient-to-r {
    background: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-yellow-400 {
    --tw-gradient-from: #fbbf24;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(251, 191, 36, 0));
}

.to-orange-500 {
    --tw-gradient-to: #f97316;
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent;
}

/* Status Card */
.bg-gray-700 {
    background: linear-gradient(145deg, #374151 0%, #1f2937 100%);
}

.border-gray-600 {
    border-color: #4b5563;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.bg-green-500 {
    background-color: #10b981;
}

.text-green-400 {
    color: #34d399;
}

/* Grid Layouts */
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gap-6 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-2 {
    gap: 0.5rem;
}

/* Power Control Buttons */
.bg-green-600 {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.hover\:bg-green-700:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
}

.bg-red-600 {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.hover\:bg-red-700:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:scale-105:hover {
    --tw-scale-x: 1.05;
    --tw-scale-y: 1.05;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Color Picker Section */
.text-purple-400 {
    color: #c084fc;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.border-2 {
    border-width: 2px;
}

/* Brightness & Temperature Controls */
.text-yellow-400 {
    color: #fbbf24;
}

.text-orange-400 {
    color: #fb923c;
}

.min-w-\[3rem\] {
    min-width: 3rem;
}

.min-w-\[4rem\] {
    min-width: 4rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Slider Styles */
.slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.gradient-brightness {
    background: linear-gradient(to right, #6b7280 0%, #fbbf24 50%, #f59e0b 100%);
}

.gradient-temp {
    background: linear-gradient(to right, #fbbf24 0%, #f59e0b 50%, #3b82f6 100%);
}

/* HSV Control Section */
.text-cyan-400 {
    color: #22d3ee;
}

.bg-cyan-600 {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

.hover\:bg-cyan-700:hover {
    background: linear-gradient(135deg, #0e7490 0%, #155e75 100%);
}

.bg-gray-600 {
    background-color: #4b5563;
}

.border-gray-500 {
    border-color: #6b7280;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:border-cyan-400:focus {
    border-color: #22d3ee;
}

/* Mode & Scene Control */
.text-indigo-400 {
    color: #818cf8;
}

.focus\:border-indigo-400:focus {
    border-color: #818cf8;
}

/* Input Styles */
input[type="number"] {
    background-color: #4b5563;
    border: 1px solid #6b7280;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    color: #f9fafb;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

input[type="number"]:focus {
    outline: none;
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

input[type="number"]::placeholder {
    color: #9ca3af;
}

/* Select Styles */
select {
    background-color: #4b5563;
    border: 1px solid #6b7280;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    color: #f9fafb;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.1);
}

select option {
    background-color: #374151;
    color: #f9fafb;
    padding: 0.5rem;
}

/* Button Styles */
button {
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(0);
}

/* Color Preview */
#color-preview {
    background: #ffffff;
    border: 2px solid #6b7280;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#color-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Preset Colors */
.color-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.color-btn:hover {
    transform: scale(1.1);
    border-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.color-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.color-btn:hover::before {
    transform: translateX(100%);
}

/* Temperature Preset Buttons */
.temp-preset-btn {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: #f9fafb;
    border: 1px solid #4b5563;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.temp-preset-btn:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    border-color: #6b7280;
    transform: translateY(-1px);
}

.temp-preset-btn.selected {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #60a5fa;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .gap-6 {
        gap: 1rem;
    }
    
    .p-8 {
        padding: 1.5rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    .w-12 {
        width: 2.5rem;
    }
    
    .h-12 {
        height: 2.5rem;
    }
}

@media (max-width: 480px) {
    .grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .gap-2 {
        gap: 0.25rem;
    }
    
    .p-6 {
        padding: 1rem;
    }
    
    button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    input[type="number"], select {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }
}

/* Animation for status updates */
@keyframes statusUpdate {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.status-updating {
    animation: statusUpdate 0.3s ease-in-out;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3b82f6;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success/Error states */
.success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Hover effects for interactive elements */
.interactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Focus states for accessibility */
.focus-visible:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
    .bg-gray-800 {
        background: linear-gradient(145deg, #111827 0%, #0f172a 100%);
    }
    
    .bg-gray-700 {
        background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    }
}

/* Grid Layout for Bulb Controller */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(10, minmax(0, 1fr));
}

.col-span-2 {
    grid-column: span 2 / span 2;
}

@media (max-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .col-span-2 {
        grid-column: span 1 / span 1;
    }
}

/* --- Preview Modal Styles (File Transfer) --- */
.preview-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24, 26, 33, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.preview-modal.hidden {
  display: none;
}
.preview-modal-content {
  background: #222;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  padding: 24px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  color: #fff;
}
.preview-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.preview-modal-body img,
.preview-modal-body video,
.preview-modal-body audio {
  max-width: 80vw;
  max-height: 70vh;
  display: block;
  margin: 0 auto;
}
.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5em;
  cursor: pointer;
  float: right;
}
