:root {
  --primary-color: #f59e0b;
  --primary-hover: #d97706;
  --primary-light: #fbbf24;
  --accent-color: #fbbf24;
  --accent-light: #fde047;
  
  --bg-primary: #0f0a05;
  --bg-secondary: #191410;
  --bg-tertiary: #1f1a15;
  --bg-card: rgba(25, 20, 10, 0.9);

  --text-primary: #fff;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  
  --success-color: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --success-border: rgba(16, 185, 129, 0.3);
  
  --error-color: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.10);
  --error-border: rgba(239, 68, 68, 0.30);
  
  --input-border: rgba(245, 158, 11, 0.15);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.25);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.server-view-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  padding: var(--spacing-xl) var(--spacing-lg);
  overflow-x: hidden;
  width: 100%;
}

/* ========================================
   BACKGROUND EFFECTS
   ======================================== */

.server-view-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-gradient-1, .bg-gradient-2 {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.2;
  animation: float 20s ease-in-out infinite;
}

.bg-gradient-1 {
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  top: -250px;
  right: -250px;
}

.bg-gradient-2 {
  background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
  bottom: -250px;
  left: -250px;
  animation-delay: -10s;
}

.bg-bars {
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(
      90deg,
      rgba(245, 158, 11, 0.03) 0px,
      transparent 1px,
      transparent 80px,
      rgba(245, 158, 11, 0.03) 81px
    );
  opacity: 0.5;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -40px) scale(1.1); }
}

/* ========================================
   CONTAINER
   ======================================== */

.server-view-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  overflow-x: hidden;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   PAGE HEADER
   ======================================== */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  gap: var(--spacing-sm);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.server-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 10px 16px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition-base);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-edit {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  transform: none;
  transition: background var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), opacity var(--transition-base);
}

.btn-edit:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--accent-color) 100%);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  opacity: 0.96;
  transform: none;
}

.btn-edit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.45), 0 2px 10px rgba(0, 0, 0, 0.25);
}

.btn-edit:active {
  opacity: 0.9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) inset;
}

/* ========================================
   HERO SECTION
   ======================================== */

.server-hero {
  position: relative;
  margin-bottom: var(--spacing-xl);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  background-image: url('/img/mcbg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.server-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 15, 0.85) 0%,
    rgba(15, 15, 25, 0.90) 100%
  );
  margin: 1px;
  backdrop-filter: blur(3px) saturate(120%);
  -webkit-backdrop-filter: blur(3px) saturate(120%);
  z-index: 1;
  border: 2px solid rgba(245, 158, 11, 0.2);
}

.hero-content-wrapper {
  position: relative;
  padding: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  z-index: 2;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-main-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.server-name {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.server-status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 6px 12px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-sm);
  color: var(--success-color);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success-color);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

.server-status-badge.offline {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.server-status-badge.offline .status-dot {
  background: #ef4444;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.stat-value {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-value.loading {
  color: var(--text-tertiary);
  font-size: 24px;
  background: none;
  -webkit-text-fill-color: var(--text-tertiary);
}

.created-and-stats {
  display: flex;
  align-items: flex-end;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.meta-inline {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.meta-inline .meta-item {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.meta-inline .meta-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.meta-inline .kpi-value {
  font-weight: 800;
  font-size: 14px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 4px;
  margin-right: 4px;
  line-height: 1;
}

.meta-inline .kpi-label {
  font-size: 11px;
  color: rgb(173, 173, 173);
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  line-height: 0;
  height: 60px;
}

.hero-media img.server-banner {
  display: block;
  max-width: 100%;
  width: auto;
  height: 60px;
  object-fit: contain;
}

/* ========================================
   CONTENT LAYOUT
   ======================================== */

.content-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-lg);
  width: 100%;
  overflow-x: hidden;
}

.left-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.right-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* ========================================
   INFO CARDS
   ======================================== */

.info-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: both;
  max-width: 100%;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.card-header svg {
  color: var(--primary-color);
}

.card-header h2,
.card-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.description-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ========================================
   INFO SECTIONS
   ======================================== */

.info-section {
  margin-bottom: var(--spacing-lg);
}

.info-section:last-child {
  margin-bottom: 0;
}

.info-section label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-sm);
}

.tags-list,
.countries-list,
.versions-list,
.platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.tag,
.country-badge,
.version-badge,
.platform-badge {
  padding: 6px 12px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-color);
  transition: all var(--transition-base);
}

.tag:hover,
.country-badge:hover,
.version-badge:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.version-badge.latest {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border: none;
  color: #fff;
}

.platform-badge.java {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--primary-light);
}

.platform-badge.bedrock {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.3);
  color: var(--accent-color);
}

/* ========================================
   LINKS
   ======================================== */

.links-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.link-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition-base);
}

.link-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-color);
  transform: translateX(4px);
}

.link-item.discord {
  color: #5865f2;
}

.link-item.discord:hover {
  background: rgba(88, 101, 242, 0.10);
  border-color: #5865f2;
  transform: translateX(4px);
}

.link-item span {
  flex: 1;
}

.link-item .arrow {
  color: var(--text-tertiary);
  transition: transform var(--transition-base);
}

.link-item:hover .arrow {
  transform: translate(2px, -2px);
}

/* ========================================
   VIDEOS
   ======================================== */

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  width: 100%;
  max-width: 100%;
}

.video-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-base);
  cursor: pointer;
  aspect-ratio: 16/9;
  text-decoration: none;
  max-width: 100%;
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-color);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.3);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.1);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.play-overlay svg {
  width: 64px;
  height: 64px;
  color: #fff;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* ========================================
   CONNECTION CARD
   ======================================== */

.connection-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(251, 191, 36, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  min-width: 280px;
  max-width: 360px;
}

.connection-card .card-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.connection-card .card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.connection-card .card-header svg {
  width: 18px;
  height: 18px;
  color: var(--primary-light);
}

.connection-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.connection-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.connection-item label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.connection-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-base);
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
}

.connection-value:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--primary-color);
  transform: translateX(2px);
}

.value-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.btn-copy {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.btn-copy:hover {
  background: var(--primary-color);
  color: #fff;
  transform: scale(1.1);
}

.btn-copy.copied {
  background: var(--success-color);
  color: #fff;
}

.quick-connect {
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  transition: all var(--transition-base);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* ========================================
   COPY NOTIFICATION
   ======================================== */

.copy-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-md);
  color: var(--success-color);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideInRight 0.3s ease;
  z-index: 1000;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.copy-notification.hide {
  animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

/* ========================================
   VOTE WIDGET
   ======================================== */

.vote-widget-container {
  min-width: 0;
}

.vote-widget {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.vote-widget .card-header h3 {
  font-size: 18px;
  margin: 0;
}

.vote-form .form-group {
  margin-bottom: 20px;
}

.vote-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.vote-form .required {
  color: #ef4444;
  margin-left: 2px;
}

.username-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.username-input-wrapper input {
  flex: 1;
  padding: 11px 40px 11px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.username-input-wrapper input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.05);
}

.username-input-wrapper input.input-success {
  border-color: var(--success-color);
  background: rgba(16, 185, 129, 0.05);
}

.username-input-wrapper input.input-error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
  animation: shake 0.3s ease;
}

.username-status {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.username-status .status-icon {
  width: 18px;
  height: 18px;
  transition: all 0.2s ease;
}

.username-status[data-status="idle"] .status-icon {
  color: var(--text-tertiary);
}

.username-status[data-status="checking"] .status-icon {
  color: var(--primary-color);
  animation: spin 1s linear infinite;
}

.username-status[data-status="success"] .status-icon {
  color: var(--success-color);
}

.username-status[data-status="error"] .status-icon {
  color: #ef4444;
}

.field-hint {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 6px;
}

.review-toggle-wrapper {
  margin-bottom: 20px;
}

.review-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(245, 158, 11, 0.08);
  border: 1.5px dashed rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.review-toggle-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.review-toggle-btn:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--primary-color);
  border-style: solid;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.review-toggle-btn:hover::before {
  opacity: 0.05;
}

.review-toggle-btn:active {
  transform: translateY(0);
}

.review-toggle-btn svg,
.review-toggle-btn span {
  position: relative;
  z-index: 1;
}

.review-toggle-btn svg {
  transition: transform 0.2s ease;
}

.review-toggle-btn.active svg {
  transform: rotate(45deg);
}

.toggle-hint {
  font-size: 12px;
  opacity: 0.7;
  font-weight: 400;
}

.review-section {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.review-section.show {
  max-height: 1000px;
  opacity: 1;
}

.review-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.review-section-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.btn-close-review {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-review:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #ef4444;
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 8px;
  font-size: 42px;
  line-height: 1;
}

.star-rating input[type="radio"] {
  display: none;
}

.star-rating label {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  margin: 0;
  user-select: none;
}

.star-rating label:hover {
  color: #ffc107;
  transform: scale(1.15);
}

.star-rating label.highlighted {
  color: #ffc107;
}

.star-rating input[type="radio"]:checked ~ label {
  color: #ffc107;
}

.vote-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  resize: vertical;
  min-height: 100px;
  transition: all 0.2s ease;
}

.vote-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.05);
}

.vote-form textarea.input-success {
  border-color: var(--success-color);
  background: rgba(16, 185, 129, 0.05);
}

.char-count {
  float: right;
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.captcha-wrapper {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.vote-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-vote {
  flex: 1;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.btn-vote:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-vote:active {
  transform: translateY(0);
}

.btn-vote.loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn-vote.loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 6px;
}

.vote-stats-inline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 16px;
  height: 46px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  min-width: 120px;
}

.stat-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin: auto;
}

.stat-compact svg {
  width: 14px;
  height: 14px;
  color: #ffc107;
  flex-shrink: 0;
}

.stat-compact .stat-value {
  font-weight: 700;
  color: var(--primary-light);
  font-size: 15px;
  line-height: 1;
}

.stat-compact .stat-label {
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 1;
}

.vote-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.vote-success.show {
  opacity: 1;
  transform: scale(1);
}

.success-animation {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
}

.checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: var(--success-color);
  stroke-miterlimit: 10;
  animation: fillCheckmark 0.4s ease-in-out 0.4s forwards;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke: var(--success-color);
  fill: none;
  animation: strokeCheckmark 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: white;
  stroke-width: 3;
  animation: strokeCheckmark 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.vote-success h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.vote-success p {
  font-size: 13px;
  color: var(--text-secondary);
}

.vote-cooldown {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  text-align: center;
}

.cooldown-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  color: var(--primary-color);
  opacity: 0.6;
}

.vote-cooldown h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.vote-cooldown p {
  font-size: 13px;
  color: var(--text-secondary);
}

.cooldown-timer {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  font-variant-numeric: tabular-nums;
  font-family: 'Courier New', monospace;
}

/* ========================================
   REVIEWS SECTION
   ======================================== */

.reviews-section {
  margin-top: 0px;
}

.reviews-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--input-border);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

.reviews-loading p {
  font-size: 14px;
  color: var(--text-secondary);
}

.reviews-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.reviews-empty .empty-icon {
  width: 80px;
  height: 80px;
  color: var(--text-tertiary);
  opacity: 0.5;
  margin-bottom: 16px;
}

.reviews-empty h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.reviews-empty p {
  font-size: 14px;
  color: var(--text-secondary);
}

.reviews-container {
  margin-top: 16px;
}

.reviews-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-secondary);
  max-width: 100%;
}

.reviews-scroll::-webkit-scrollbar {
  height: 8px;
}

.reviews-scroll::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

.reviews-scroll::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.reviews-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

.review-card {
  min-width: 280px;
  max-width: 400px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  padding: 16px;
  scroll-snap-align: start;
  transition: all 0.2s ease;
}

.review-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.review-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.review-meta {
  flex: 1;
}

.review-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.review-rating {
  font-size: 14px;
  color: #ffc107;
  letter-spacing: 2px;
}

.review-date {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.review-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  word-wrap: break-word;
}

/* ========================================
   GAME MODES DISPLAY
   ======================================== */

.game-modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--spacing-md);
}

.game-mode-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: all var(--transition-base);
}

.game-mode-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.game-mode-card.clickable {
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.game-mode-card.clickable:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.game-mode-card.clickable:active {
  transform: translateY(-2px);
}

.mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
  gap: var(--spacing-xs);
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-base);
}

.game-mode-card.clickable .mode-badge {
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.game-mode-card.clickable:hover .mode-badge {
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
  transform: scale(1.05);
}

.external-link-icon {
  color: var(--primary-color);
  opacity: 0.6;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.game-mode-card.clickable:hover .external-link-icon {
  opacity: 1;
  transform: translate(2px, -2px);
}

.mode-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: var(--spacing-sm) 0;
}

.season-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--text-tertiary);
}

.season-info svg {
  width: 14px;
  height: 14px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.mode-domain-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--spacing-sm);
  padding: 6px 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--primary-color);
  font-weight: 600;
  transition: all var(--transition-base);
}

.mode-domain-badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.game-mode-card.clickable:hover .mode-domain-badge {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--primary-color);
  transform: translateX(2px);
}

.mode-domain-badge span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-4px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(4px);
  }
}

@keyframes strokeCheckmark {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes fillCheckmark {
  100% {
    box-shadow: inset 0 0 0 30px var(--success-color);
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

@media (max-width: 1024px) {
  .server-name {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  body.server-view-page {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .server-view-container {
    padding: 0;
    width: 100%;
  }
  
  .content-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .left-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
  }
  
  .left-content .vote-widget {
    order: 1;
  }
  
  .left-content .info-card:has(.description-content) {
    order: 3;
  }
  
  .left-content .info-card:has(.videos-grid) {
    order: 6;
  }
  
  .left-content .reviews-section {
    order: 7;
  }
  
  .right-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
  }
  
  .right-content .info-card:has(.connection-grid) {
    order: 2;
  }
  
  .right-content .info-card:has(.info-section) {
    order: 4;
  }
  
  .right-content .info-card:has(.links-list) {
    order: 5;
  }
  
  .server-name {
    font-size: 28px;
    line-height: 1.2;
  }
  
  .hero-stats-row {
    gap: var(--spacing-sm);
    flex-wrap: wrap;
  }
  
  .stat-value {
    font-size: 20px;
  }
  
  .stat-label {
    font-size: 10px;
  }
  
  .page-header {
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: stretch;
    margin-bottom: var(--spacing-sm);
  }
  
  .server-actions {
    display: flex;
    gap: var(--spacing-xs);
    width: 100%;
  }
  
  .btn-back,
  .btn-edit {
    flex: 1;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .btn-edit:hover {
    transform: none;
    opacity: 0.96;
  }
  
  .btn-back:hover {
    transform: none;
  }
  
  .info-card {
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius-md);
  }
  
  .card-header h2 {
    font-size: 17px;
  }
  
  .card-header svg {
    width: 20px;
    height: 20px;
  }
  
  .hero-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  
  .server-status-badge {
    align-self: flex-start;
  }
  
  .meta-item {
    width: 100%;
  }
  
  .connection-grid {
    gap: var(--spacing-sm);
  }
  
  .connection-item {
    width: 100%;
  }
  
  .vote-submit-row {
    flex-direction: column-reverse;
    gap: var(--spacing-sm);
  }
  
  .btn-vote {
    width: 100%;
    padding: 12px 18px;
  }
  
  .vote-stats-inline {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    min-width: 0;
  }
  
  .videos-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .review-card {
    min-width: 260px;
    max-width: 320px;
  }
  
  .tags-list,
  .countries-list,
  .versions-list,
  .platform-badges {
    gap: var(--spacing-xs);
  }
  
  .tag,
  .country-badge,
  .version-badge,
  .platform-badge {
    font-size: 12px;
    padding: 5px 10px;
  }
  
  .link-item {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 14px;
  }
  
  .description-content {
    font-size: 14px;
    line-height: 1.7;
  }
  
  .star-rating {
    font-size: 36px;
    gap: 6px;
  }
  
  .game-modes-grid {
    grid-template-columns: 1fr;
  }
  
  .bg-gradient-1,
  .bg-gradient-2 {
    width: 600px;
    height: 600px;
  }
  
  .bg-gradient-1 {
    top: -150px;
    right: -150px;
  }
  
  .bg-gradient-2 {
    bottom: -200px;
    left: -200px;
  }
}

@media (max-width: 480px) {
  body.server-view-page {
    padding: var(--spacing-sm) 12px;
  }
  
  .server-name {
    font-size: 24px;
  }
  
  .info-card {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .card-header h2 {
    font-size: 16px;
  }
  
  .stat-value {
    font-size: 18px;
  }
  
  .hero-title-row {
    gap: 10px;
  }
  
  .hero-stats-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  
  .stat-item {
    width: 100%;
  }
  
  .btn-back,
  .btn-edit {
    padding: 9px 12px;
    font-size: 12px;
  }
  
  .connection-value {
    padding: 9px 10px;
    font-size: 12px;
  }
  
  .btn-copy {
    width: 26px;
    height: 26px;
  }
  
  .vote-form input,
  .vote-form textarea {
    font-size: 14px;
    padding: 10px 12px;
  }
  
  .star-rating {
    font-size: 28px;
    gap: 4px;
  }
  
  .review-toggle-btn {
    font-size: 12px;
    padding: 10px 14px;
  }
  
  .vote-stats-inline {
    flex-direction: column;
    gap: 6px;
    padding: 8px 12px;
    height: auto;
  }
  
  .review-card {
    min-width: 240px;
    max-width: 280px;
    padding: 12px;
  }
  
  .review-header {
    gap: 10px;
  }
  
  .review-avatar {
    width: 36px;
    height: 36px;
  }
  
  .review-author {
    font-size: 13px;
  }
  
  .review-text {
    font-size: 13px;
  }
  
  .meta-inline .meta-item {
    padding: 5px 8px;
    font-size: 11px;
  }
  
  .meta-inline .kpi-value {
    font-size: 13px;
  }
  
  .meta-inline .kpi-label {
    font-size: 10px;
  }
  
  .mode-domain-badge span {
    max-width: 150px;
  }
  
  .cooldown-timer {
    font-size: 24px;
  }
}

/* ========================================
   ADDITIONAL OVERFLOW FIXES
   ======================================== */

img {
  max-width: 100%;
  height: auto;
}

.server-address,
.link-item span,
.description-content,
.review-text {
  word-break: break-word;
  overflow-wrap: break-word;
}

.connection-value,
.value-text {
  font-size: clamp(11px, 3vw, 13px);
}

@supports (-webkit-touch-callout: none) {
  .content-wrapper {
    -webkit-overflow-scrolling: touch;
  }
  
  .reviews-scroll {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .server-name {
    font-size: 24px;
  }
  
  .hero-stats-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
}inline {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }
  
  .meta-