
    /* --- CSS VARIABLES & RESET --- */
    :root {
      --bg-color: #121212;
      --card-bg: #1e1e1e;
      --primary-color: #00b894;
      /* Hytale Green */
      --primary-hover: #00a383;
      --text-main: #ffffff;
      --text-muted: #b3b3b3;
      --border-radius: 12px;
    }

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

    body {
      font-family: 'Inter', sans-serif;
      background-color: var(--bg-color);
      color: var(--text-main);
      line-height: 1.6;
    }

    /* --- NAVIGATION BAR --- */
    .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 2rem;
      background-color: rgba(30, 30, 30, 0.95);
      border-bottom: 1px solid #333;
      position: sticky;
      top: 0;
      z-index: 1000;
      backdrop-filter: blur(10px);
    }

    .nav-logo {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--primary-color);
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .nav-buttons {
      display: flex;
      gap: 1rem;
    }

    .btn {
      padding: 0.6rem 1.2rem;
      border-radius: 6px;
      text-decoration: none;
      font-weight: 600;
      transition: all 0.3s ease;
      font-size: 0.9rem;
    }

    .btn-login {
      color: var(--text-main);
      border: 1px solid #444;
      background: transparent;
    }

    .btn-login:hover {
      border-color: var(--text-main);
      background: rgba(255, 255, 255, 0.1);
    }

    .btn-register {
      background-color: var(--primary-color);
      color: #fff;
      border: 1px solid var(--primary-color);
    }

    .btn-register:hover {
      background-color: var(--primary-hover);
    }

    /* --- MAIN CONTENT --- */
    .container {
      max-width: 900px;
      margin: 3rem auto;
      padding: 0 1rem;
    }

    .page-title {
      text-align: center;
      margin-bottom: 2rem;
      font-size: 2rem;
    }

    .page-title span {
      color: var(--primary-color);
    }

    /* --- SERVER CARD STYLING --- */
    .server-list {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .server-card {
      position: relative;
      background-color: var(--card-bg);
      border-radius: var(--border-radius);
      overflow: hidden;
      display: flex;
      min-height: 160px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
      transition: transform 0.2s ease;
      border: 1px solid #333;
    }

    .server-card:hover {
      transform: translateY(-3px);
      border-color: var(--primary-color);
    }

    /* The Banner Background */
    .server-banner-bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-size: cover;
      background-position: center;
      z-index: 0;
      filter: brightness(0.6);
      image-rendering: pixelated;
    }

    /* --- NEW: LEFT PANEL (Rank + Votes) --- */
    .left-panel {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100px;
      /* Fixed width for the left strip */
      background: rgba(0, 0, 0, 0.5);
      /* Semi-transparent background */
      backdrop-filter: blur(5px);
      border-right: 1px solid rgba(255, 255, 255, 0.1);
      z-index: 2;
      flex-shrink: 0;
      padding: 1rem 0;
    }

    /* Rank Number Styling */
    .rank-badge {
      font-size: 2.2rem;
      font-weight: 800;
      line-height: 1;
      margin-bottom: 0.5rem;
    }

    .rank-1 {
      color: #ffd700;
      text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    }

    .rank-2 {
      color: #c0c0c0;
      text-shadow: 0 0 15px rgba(192, 192, 192, 0.3);
    }

    .rank-3 {
      color: #cd7f32;
      text-shadow: 0 0 15px rgba(205, 127, 50, 0.3);
    }

    /* Vote Section Styling (Now inside Left Panel) */
    .vote-section {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      width: 100%;
    }

    .vote-count {
      font-size: 1.1rem;
      font-weight: 700;
      color: #fff;
    }

    .vote-label {
      font-size: 0.65rem;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 0.5rem;
      letter-spacing: 1px;
    }

    .btn-vote {
      font-size: 0.75rem;
      padding: 0.3rem 0;
      width: 80%;
      /* Fit inside the column */
      background: transparent;
      border: 1px solid var(--primary-color);
      color: var(--primary-color);
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .btn-vote:hover {
      background: var(--primary-color);
      color: #fff;
    }

    /* --- CONTENT WRAPPER --- */
    .server-content {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      padding: 1.5rem;
      flex-grow: 1;
      /* Gradient starts after the left panel */
      background: linear-gradient(90deg, rgba(18, 18, 18, 0.8) 0%, rgba(18, 18, 18, 0.6) 100%);
    }

    /* Icon */
    .server-icon {
      width: 80px;
      height: 80px;
      border-radius: 12px;
      object-fit: cover;
      border: 2px solid #444;
      flex-shrink: 0;
    }

    /* Info Section (Middle) */
    .server-info {
      margin-left: 1.5rem;
      flex-grow: 1;
    }

    .server-name {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 0.3rem;
      color: #fff;
    }

    .server-ip-box {
      display: inline-block;
      background: rgba(255, 255, 255, 0.1);
      padding: 0.2rem 0.6rem;
      border-radius: 4px;
      font-family: monospace;
      font-size: 0.9rem;
      color: var(--primary-color);
      margin-bottom: 0.5rem;
      border: 1px dashed #555;
      cursor: pointer;
      transition: all 0.2s ease;
      user-select: none;
    }

    .server-ip-box:hover {
      background-color: rgba(0, 184, 148, 0.2);
      border-color: var(--primary-color);
      color: #fff;
    }

    .server-ip-box.copied {
      background-color: #00b894;
      color: #fff;
      border-color: #00b894;
    }

    .server-desc {
      font-size: 0.9rem;
      color: var(--text-muted);
      max-width: 500px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Stats Section (Right) */
    .server-stats {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      justify-content: center;
      margin-left: 1rem;
      min-width: 120px;
    }

    .player-count {
      font-size: 1.1rem;
      font-weight: 700;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
    }

    .player-count span {
      color: var(--primary-color);
    }

    .online-indicator {
      width: 10px;
      height: 10px;
      background-color: var(--primary-color);
      border-radius: 50%;
      box-shadow: 0 0 10px var(--primary-color);
    }

    .btn-details {
      font-size: 0.8rem;
      padding: 0.4rem 0.8rem;
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
      border-radius: 4px;
      text-decoration: none;
      transition: background 0.2s;
    }

    .btn-details:hover {
      background: var(--primary-color);
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      .server-card {
        flex-direction: column;
      }

      /* On mobile, make left panel a top bar */
      .left-panel {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        padding: 0.5rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      }

      .rank-badge {
        margin-bottom: 0;
        font-size: 1.8rem;
      }

      .vote-section {
        width: auto;
        flex-direction: row;
        gap: 1rem;
        align-items: center;
      }

      .vote-label {
        margin-bottom: 0;
        margin-right: 0.5rem;
        display: none;
      }

      /* Hide label on mobile to save space */
      .btn-vote {
        width: auto;
        padding: 0.3rem 1rem;
      }

      .server-content {
        flex-direction: column;
        text-align: center;
        background: rgba(18, 18, 18, 0.9);
      }

      .server-info {
        margin: 1rem 0;
      }

      .server-stats {
        align-items: center;
        margin-left: 0;
      }
    }