/* ============================================================
   ServerBid V5 - Outbid.lol 1:1 Precise Sweet Design System
   ============================================================ */

:root {
  --bg-color: #fdfaf6;
  --card-bg: #ffffff;
  --card-border: #ebe4d8;
  --text-main: #1c1917;
  --text-muted: #8f877d;
  --accent-coral: #f06a4b;
  --accent-coral-hover: #e05839;
  --subtext-coral: #ea7259;
  --stepper-btn-bg: #fee8e2;
  --stepper-btn-color: #f06a4b;
  --card-1-bg: #fff4f0;
  --card-1-border: #f7c2b5;
  --card-2-bg: #fff7f4;
  --card-2-border: #f9d8ce;
  --card-3-bg: #fffaf8;
  --card-3-border: #fbe5de;
  --ticker-bg: #fff9f6;
  --ticker-pill-bg: #f4ece4;
  --dark-btn-bg: #f06a4b;
  --modal-overlay: rgba(28, 25, 23, 0.65);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 6px 20px rgba(240, 106, 75, 0.04);
  --radius-card: 24px;
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg-color: #141210;
  --card-bg: #1d1a17;
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: #f5f5f4;
  --text-muted: #9e968c;
  --accent-coral: #f06a4b;
  --accent-coral-hover: #e05839;
  --subtext-coral: #ea7259;
  --stepper-btn-bg: #2e201b;
  --stepper-btn-color: #f06a4b;
  --card-1-bg: #261d19;
  --card-1-border: rgba(240, 106, 75, 0.35);
  --card-2-bg: #221a17;
  --card-2-border: rgba(240, 106, 75, 0.25);
  --card-3-bg: #1e1815;
  --card-3-border: rgba(240, 106, 75, 0.18);
  --ticker-bg: #1d1a17;
  --ticker-pill-bg: #27231f;
  --dark-btn-bg: #f06a4b;
  --modal-overlay: rgba(10, 9, 8, 0.85);
  --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.rtl-layout {
  font-family: 'Noto Sans Arabic', 'Inter', system-ui, sans-serif;
  direction: rtl;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Live Pulse Green Dot Animation */
.live-dot-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: livePulse 1.8s infinite;
  vertical-align: middle;
  margin-right: 2px;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Navbar Header (outbid.lol 1:1) */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

/* GEOMETRIC ROUNDED LOGO STYLES (Minagod / Comfortaa / Fredoka Style) */
.brand-logo-rounded {
  font-family: 'Comfortaa', 'Fredoka', cursive, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-main);
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  text-transform: lowercase;
}

.brand-logo-rounded:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.logo-crown-icon {
  color: var(--accent-coral);
  font-size: 1.3rem;
  line-height: 1;
}

.brand-name-rounded {
  line-height: 1;
}

.brand-name-accent {
  color: var(--accent-coral);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-menu-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.nav-menu-links a:hover {
  color: var(--accent-coral);
}

/* SLEEK MINIMALIST LANGUAGE SELECTOR DROPDOWN STYLES */
.lang-dropdown-wrapper {
  position: relative;
}

.lang-dropdown-trigger {
  height: 34px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 0 0.7rem;
  border-radius: 50px;
  font-size: 0.775rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.lang-dropdown-trigger:hover {
  border-color: var(--accent-coral);
}

.flag-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.svg-flag {
  width: 16px;
  height: 12px;
  display: block;
  object-fit: cover;
}

.lang-dropdown-menu {
  min-width: 140px;
  right: 0;
  left: auto;
  padding: 0.35rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

body.rtl-layout .lang-dropdown-menu {
  right: auto;
  left: 0;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.lang-option-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-check-icon {
  color: var(--accent-coral);
  font-size: 0.95rem;
}

.theme-toggle-btn {
  background: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

/* Hero Section (Proportionate & Balanced Typography) */
.hero-section {
  text-align: center;
  padding: 2rem 1rem 1.25rem;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.stats-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  padding: 0.45rem 1.25rem;
  border-radius: 50px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
}

.stats-pill-live {
  color: #10b981;
  font-weight: 700;
}

.stats-pill-count {
  color: var(--text-muted);
}

.stats-pill-link {
  color: var(--text-main);
  font-weight: 600;
}

.bid-hero-area-serverbid {
  margin-bottom: 2rem;
}

.price-selector-serverbid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 0.6rem;
}

.price-label {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1;
}

.huge-price-serverbid {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent-coral);
  letter-spacing: -0.04em;
  line-height: 1;
  min-width: 110px;
  text-align: center;
}

.price-btn-circle {
  background: var(--stepper-btn-bg);
  border: none;
  color: var(--stepper-btn-color);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background-color 0.15s ease;
  flex-shrink: 0;
}

.price-btn-circle:hover {
  transform: scale(1.1);
}

.subtext-price-info {
  font-size: 0.9rem;
  color: var(--subtext-coral);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
  font-weight: 500;
}

/* OUTBID.LOL 1:1 PRECISE EQUAL-HEIGHT 3-PILL INPUT ROW */
.outbid-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 860px;
  margin: 2rem auto 0.85rem;
  width: 100%;
}

/* Pill 1: URL Input Box (Fixed 52px Height) */
.url-input-pill {
  flex: 1.6;
  height: 52px;
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  padding: 0 1.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: border-color 0.2s ease;
}

.url-input-pill:focus-within {
  border-color: var(--accent-coral);
}

.url-input-pill i {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-right: 0.65rem;
  flex-shrink: 0;
}

body.rtl-layout .url-input-pill i {
  margin-right: 0;
  margin-left: 0.65rem;
}

.url-input-pill input[type="url"] {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.925rem;
  outline: none;
  font-family: inherit;
}

/* Pill 2: Custom Category Select Trigger (Fixed 52px Height) */
.custom-select-wrapper {
  position: relative;
  user-select: none;
  flex: 1;
}

.custom-select-trigger {
  height: 52px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 0 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  width: 100%;
}

.custom-select-trigger:hover {
  border-color: var(--accent-coral);
}

.custom-select-trigger .trigger-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.custom-select-wrapper.open .trigger-arrow {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 0.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select-wrapper.open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option {
  padding: 0.65rem 0.95rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.custom-option i {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.custom-option:hover {
  background: rgba(240, 106, 75, 0.1);
  color: var(--accent-coral);
}

.custom-option:hover i {
  color: var(--accent-coral);
}

.custom-option.active {
  background: rgba(240, 106, 75, 0.15);
  color: var(--accent-coral);
  font-weight: 800;
}

.custom-option.active i {
  color: var(--accent-coral);
}

/* Pill 3: Action Outbid Button (Fixed 52px Height) */
.btn-hero-action {
  height: 52px;
  background: var(--accent-coral);
  color: #ffffff;
  padding: 0 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(240, 106, 75, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
  flex-shrink: 0;
}

.btn-hero-action:hover {
  background: var(--accent-coral-hover);
  transform: translateY(-1px);
}

.subtext-input-info {
  font-size: 0.825rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0.85rem auto 0;
}

.rules-link {
  color: var(--text-main);
  font-weight: 700;
  text-decoration: underline;
}

/* Category Tabs Navigation (Centered & Compact) */
.category-tabs-container {
  max-width: 900px;
  margin: 1.5rem auto 1.25rem;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
}

.category-tabs {
  display: flex;
  gap: 0.35rem;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.category-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 50px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.825rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.category-tab-btn:hover {
  color: var(--text-main);
}

.category-tab-btn.active {
  background: var(--accent-coral);
  color: #ffffff;
}

.status-bar-container {
  max-width: 900px;
  margin: 0 auto 1.25rem;
  padding: 0 1rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.refresh-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: var(--shadow-sm);
}

.refresh-btn:hover {
  color: var(--text-main);
}

/* Leaderboard Section & Cards */
.main-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
  width: 100%;
}

.leaderboard-section-serverbid {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* SECTION DIVIDERS (Challengers / Top 10 Badges) */
.divider-pill-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.75rem 0;
  position: relative;
}

.divider-pill-badge::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--card-border);
  z-index: 1;
}

.divider-pill-badge span {
  position: relative;
  z-index: 2;
  background: #1c1917;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* OUTBID.LOL 1:1 HOVER CLAIM BADGE */
.hover-claim-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--accent-coral);
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 800;
  padding: 0.25rem 0.9rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(240, 106, 75, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  white-space: nowrap;
  z-index: 20;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.hover-claim-badge:hover {
  background: var(--accent-coral-hover);
  transform: translateX(-50%) translateY(-1px) scale(1.05);
}

/* CARD ACTION BUTTONS (Bu sırayı al & 💚 Oy Ver) */
.card-actions-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-card-claim-action {
  background: rgba(240, 106, 75, 0.1);
  color: var(--accent-coral);
  border: 1px solid rgba(240, 106, 75, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-card-claim-action:hover {
  background: var(--accent-coral);
  color: #ffffff;
  border-color: var(--accent-coral);
  box-shadow: 0 2px 8px rgba(240, 106, 75, 0.35);
}

/* TAHT.APP STYLE GREEN VOTE PILL BUTTON */
.btn-vote-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.775rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-vote-pill:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.btn-vote-pill.voted {
  background: rgba(16, 185, 129, 0.2);
  color: #059669;
  border-color: #10b981;
  cursor: default;
}

.see-details-link {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s ease;
}

.see-details-link:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* 👑 STANDOUT #1 HERO KING CARD */
.rank-1-hero-card {
  background: #181614;
  color: #ffffff;
  border-radius: 24px;
  padding: 1.6rem 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: visible;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rank-1-hero-card:hover {
  border-color: var(--accent-coral);
  box-shadow: 0 12px 36px rgba(240, 106, 75, 0.25);
}

.rank-1-hero-card:hover .hover-claim-badge {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-hero-king {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-hero-king i {
  color: #f59e0b;
}

.hero-card-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.04em;
}

.hero-card-body {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.hero-card-body:hover {
  opacity: 0.92;
}

.hero-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #ffffff;
  color: #181614;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  flex-shrink: 0;
}

.hero-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hero-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  transition: color 0.15s ease;
}

.hero-card-body:hover .hero-card-title {
  color: var(--accent-coral);
}

.hero-card-desc {
  font-size: 0.9rem;
  color: #a8a29e;
  line-height: 1.5;
}

.hero-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-footer-stats {
  font-size: 0.825rem;
  color: #a8a29e;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-outbid-king-cta {
  background: var(--accent-coral);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.3rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 14px rgba(240, 106, 75, 0.4);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-outbid-king-cta:hover {
  background: var(--accent-coral-hover);
  transform: translateY(-1px);
}

/* Top 3 Cards (#2 & #3 Sweet Cards with Hover Claim Badge) */
.server-card-highlight {
  border-radius: 24px;
  padding: 1.35rem 1.6rem;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: flex-start;
  gap: 1.2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: visible;
}

.server-card-highlight:hover {
  border-color: var(--accent-coral) !important;
  box-shadow: 0 8px 24px rgba(240, 106, 75, 0.18);
  transform: translateY(-2px);
}

.server-card-highlight:hover .hover-claim-badge {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.server-card-highlight:hover .server-name-title {
  color: var(--accent-coral);
}

.rank-2-style {
  background: var(--card-2-bg);
  border: 1.5px solid var(--card-2-border);
}

.rank-3-style {
  background: var(--card-3-bg);
  border: 1.5px solid var(--card-3-border);
}

/* OUTBID.LOL 1:1 MINIMAL RANK NUMBERS (#1, #2, #3...) */
.rank-badge-number {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-muted);
  width: 28px;
  padding-top: 0.2rem;
  text-align: left;
}

body.rtl-layout .rank-badge-number {
  text-align: right;
}

.rank-badge-number-gray {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-muted);
  width: 28px;
  padding-top: 0.2rem;
  text-align: left;
}

body.rtl-layout .rank-badge-number-gray {
  text-align: right;
}

.server-avatar-box {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #1c1917;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.35rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.server-favicon-img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: contain;
}

.server-info-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.server-name-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
  transition: color 0.15s ease;
}

.server-description-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.server-meta-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.clicks-badge {
  color: var(--accent-coral);
  font-weight: 700;
}

.server-price-orange {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-coral);
  letter-spacing: -0.03em;
}

/* Rank #4+ Clean Borderless List Items (with Hover Claim Badge) */
.server-card-clean {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--card-border);
  padding: 1.1rem 0.5rem;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: flex-start;
  gap: 1.1rem;
  transition: background 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: visible;
}

.server-card-clean:hover {
  background: rgba(240, 106, 75, 0.05);
}

.server-card-clean:hover .hover-claim-badge {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.server-card-clean:hover .server-name-title {
  color: var(--accent-coral);
}

/* Activity Log Ticker Box (outbid.lol style) */
.activity-log-container {
  margin-top: 2.25rem;
  background: var(--ticker-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 1.25rem 1.5rem;
}

.ticker-pills-wrapper {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: none;
}

.ticker-pills-wrapper::-webkit-scrollbar {
  display: none;
}

.ticker-pill {
  background: var(--ticker-pill-bg);
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  font-size: 0.775rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.ticker-price {
  color: var(--accent-coral);
  font-weight: 800;
}

/* RULES PAGE & LEGAL PAGES */
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rule-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.2rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
}

.rule-num {
  background: rgba(240, 106, 75, 0.1);
  color: var(--accent-coral);
  font-weight: 900;
  font-size: 0.8rem;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
}

.rule-card-highlight {
  border: 1.5px solid var(--accent-coral);
  background: rgba(240, 106, 75, 0.04);
}

.rule-card-danger {
  border: 1.5px solid #ef4444;
  background: rgba(239, 68, 68, 0.06);
}

/* STATS PAGE STYLES */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-card-highlight {
  border: 1.5px solid var(--accent-coral);
}

.stat-card-label {
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-card-value {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.stat-card-sub {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.stats-table-container {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
}

.stats-table th {
  padding: 1rem 1.25rem;
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--card-border);
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.02);
}

.stats-table td {
  padding: 0.95rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--card-border);
}

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

/* Site Footer */
.site-footer {
  margin-top: auto;
  padding: 2.5rem 1rem 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--card-border);
}

.footer-container {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.footer-contacts a, .footer-links a {
  color: var(--accent-coral);
  font-weight: 600;
}

/* MODAL WINDOW & FORM CONTROLS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-overlay);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transform: scale(0.95);
  transition: transform 0.25s ease;
  color: var(--text-main);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  color: var(--text-main);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s ease;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-notice-box {
  background: rgba(240, 106, 75, 0.08);
  border: 1px solid rgba(240, 106, 75, 0.25);
  color: var(--accent-coral);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  height: 48px;
  background: var(--bg-color);
  border: 1px solid var(--card-border);
  padding: 0 1.1rem;
  border-radius: 14px;
  color: var(--text-main);
  font-size: 0.925rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent-coral);
  box-shadow: 0 0 0 3px rgba(240, 106, 75, 0.15);
}

.btn-modal-checkout {
  height: 52px;
  width: 100%;
  background: var(--accent-coral);
  color: #ffffff;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  box-shadow: 0 4px 16px rgba(240, 106, 75, 0.4);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-modal-checkout:hover {
  background: var(--accent-coral-hover);
  transform: translateY(-1px);
}

.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999;
}

.toast {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 0.9rem 1.25rem;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.toast-success i { color: #10b981; }
.toast-error i { color: #ef4444; }

/* Responsive Mobile */
@media (max-width: 640px) {
  .nav-menu-links {
    display: none;
  }
  .outbid-input-row {
    flex-direction: column;
  }
  .url-input-pill, .custom-select-wrapper, .btn-hero-action {
    width: 100%;
  }
  .price-label {
    font-size: 1.8rem;
  }
  .huge-price-serverbid {
    font-size: 2.2rem;
  }
  .server-card-highlight, .server-card-clean {
    grid-template-columns: auto 1fr auto;
  }
  .server-description-text {
    -webkit-line-clamp: 1;
  }
  .hero-card-footer {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  .btn-outbid-king-cta {
    justify-content: center;
  }
}
