/* assets/css/style.css - UpRank Modern Blue Theme */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-page: #fafbfc;
  --bg-card: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  /* Blue Palette */
  --brand-dark: #1e40af;
  --brand-dark-hover: #1e3a8a;
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  --brand-accent: #3b82f6;
  --brand-light-bg: #eff6ff;
  --brand-light-border: #bfdbfe;
  --brand-light-text: #1d4ed8;

  --border-card: #2563eb;
  --border-light: #e5e7eb;
  --border-subtle: #f1f5f9;
  --input-bg: #f0f2f5;
  --input-text: #1f2937;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 14px rgba(37, 99, 235, 0.06);
  --shadow-lg: 0 12px 32px rgba(37, 99, 235, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Container */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Sticky Navbar */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 252, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.navbar-inner {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.brand-logo {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.navbar-rocket-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover .navbar-rocket-icon {
  transform: translateY(-2px) scale(1.12);
}

.logo-rocket,
.logo-roket,
.logo-up {
  color: #111827; /* Solid Rich Black */
  font-weight: 800;
}

.logo-site,
.logo-rank {
  color: var(--brand-blue); /* Royal Blue #2563eb */
  font-weight: 800;
}

.brand-logo:hover {
  opacity: 0.92;
}

.nav-stats {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-stats .highlight {
  color: var(--brand-blue);
  font-weight: 700;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--brand-blue);
}

/* Main Content */
.main-content {
  padding-top: 16px;
  padding-bottom: 70px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Featured #1 Card */
.featured-card {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 34px 38px 28px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
  margin-top: 14px;
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--brand-dark);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  letter-spacing: -0.2px;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.featured-header {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

/* Perfect High-Res Website Logo Container */
.site-logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  flex-shrink: 0;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.site-logo-container:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.site-logo-container.logo-lg {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 16px;
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
  background: #ffffff;
}

.site-logo-container.logo-lg .site-logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
}

.site-logo-container.logo-md {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  border-color: rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.site-logo-container.logo-md .site-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.site-logo-container.logo-sm {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 9px;
  border-color: rgba(0, 0, 0, 0.06);
  background: #ffffff;
}

.site-logo-container.logo-sm .site-logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
}

.site-logo-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  image-rendering: -webkit-optimize-contrast;
  transition: opacity 0.2s ease;
}

.site-logo-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.site-logo-container.logo-lg .site-logo-fallback {
  font-size: 22px;
}

.site-logo-container.logo-md .site-logo-fallback {
  font-size: 16px;
}

.site-logo-container.logo-sm .site-logo-fallback {
  font-size: 13px;
}

.featured-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
}

.featured-details {
  flex: 1;
}

.featured-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.4px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.featured-title a:hover {
  color: var(--brand-blue);
}

.featured-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  max-width: 720px;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pill-badge {
  background: var(--brand-light-bg);
  color: var(--brand-light-text);
  border: 1px solid var(--brand-light-border);
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
}

.bid-meta-text {
  font-size: 13.5px;
  color: var(--text-muted);
}

.bid-meta-text .lifetime-val {
  color: var(--brand-blue);
  font-weight: 700;
}

.featured-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.outbid-text {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.outbid-text .price {
  color: var(--brand-blue);
  font-weight: 700;
}

.btn-take-rank {
  background: var(--brand-dark);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 8px;
  letter-spacing: -0.2px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.2);
}

.btn-take-rank:hover {
  background: var(--brand-dark-hover);
  transform: translateY(-1px);
}

/* Submission Card (Perfect Centered Position & Grand Padding) */
.submit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: 80px 48px 70px;
  margin-top: 28px;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.submit-row {
  width: 100%;
  max-width: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.input-capsule {
  flex: 1;
  max-width: 520px;
  background: #f1f3f5;
  border-radius: var(--radius-pill);
  padding: 7px 8px 7px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
}

.input-capsule:focus-within,
.input-capsule.has-val {
  background: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

@keyframes capsulePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
    border-color: var(--brand-blue);
    transform: scale(1);
  }

  40% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.25);
    border-color: var(--brand-blue);
    transform: scale(1.02);
  }

  100% {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    border-color: var(--brand-blue);
    transform: scale(1);
  }
}

.input-capsule.pulse-highlight {
  animation: capsulePulse 0.6s ease-out;
  background: #ffffff !important;
  border-color: var(--brand-blue) !important;
}

.input-capsule input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 16px;
  color: #1e293b;
  outline: none;
  font-weight: 500;
  transition: all 0.15s ease;
}

.input-capsule input::placeholder {
  color: #94a3b8;
  font-weight: 400;
  font-size: 15px;
}

.btn-get-listed {
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: var(--radius-pill);
  transition: all 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
  cursor: pointer;
}

.btn-get-listed:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.price-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stepper-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #64748b;
  transition: all 0.15s ease;
  cursor: pointer;
}

.stepper-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: var(--brand-light-bg);
}

.stepper-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 70px;
  justify-content: center;
}

.stepper-symbol {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-blue);
}

.stepper-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-blue);
  letter-spacing: -0.5px;
}

.submit-subtext {
  margin-top: 24px;
  text-align: center;
  font-size: 14.5px;
  color: #4b5563;
  line-height: 1.5;
  white-space: nowrap;
  transition: all 0.15s ease;
  letter-spacing: -0.1px;
}

.submit-subtext .highlight {
  color: var(--brand-blue);
  font-weight: 700;
}

.submit-subtext .rank-highlight {
  color: var(--brand-blue);
  font-weight: 800;
}

/* Live Preview Box */
.live-preview-wrapper {
  width: 100%;
  max-width: 680px;
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: left;
  animation: previewSlideIn 0.2s ease-out;
  box-sizing: border-box;
}

.live-preview-logo {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.live-preview-content {
  flex: 1;
  min-width: 0;
}

.live-preview-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-preview-desc {
  font-size: 12.5px;
  color: #4b5563;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   Live Inline Metadata Preview Box - Beautiful Card Design
   ============================================================ */
.inline-meta-preview {
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
  border: 1.5px solid rgba(37, 99, 235, 0.15);
  border-radius: 16px;
  padding: 16px 18px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.06);
  animation: previewSlideIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes previewSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Shimmer loading animation */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.inline-meta-preview.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
  animation: shimmer 1s ease infinite;
}

/* Icon wrapper - WHITE background so all app icons show perfectly */
.inline-preview-logo-wrap {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
}

/* The actual icon image - fills entire box */
.inline-preview-logo-wrap img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  transition: opacity 0.2s ease;
}

/* Fallback letter shown when image fails */
.inline-preview-logo-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  border-radius: 13px;
}

.inline-preview-content {
  flex: 1;
  min-width: 0;
}

.inline-preview-domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 5px;
  letter-spacing: 0.3px;
  text-transform: lowercase;
}

.inline-preview-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inline-preview-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Blue left accent line */
.inline-meta-preview::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: var(--brand-blue);
  border-radius: 0 3px 3px 0;
}

/* Board Summary Stats */
.board-stats-row {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 2px 0;
}

.board-stats-row strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Latest Activity Section */
.activity-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 16px 20px 14px;
  box-shadow: var(--shadow-sm);
}

.activity-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.activity-dot {
  width: 7px;
  height: 7px;
  background: var(--brand-blue);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.4);
}

.activity-track-wrapper {
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  /* Hide default scrollbar in Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
  cursor: grab;
  user-select: none;
}

.activity-track-wrapper::-webkit-scrollbar {
  display: none;
  /* Hide default scrollbar */
}

.activity-track-wrapper:active {
  cursor: grabbing;
}

.activity-track {
  display: flex;
  gap: 10px;
  min-width: max-content;
  transition: transform 0.1s ease;
}

.activity-card {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #eff6ff;
  border: 1px solid transparent;
  padding: 9px 14px 9px 10px;
  border-radius: 12px;
  transition: all 0.15s ease;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.activity-card:hover {
  background: #dbeafe;
  border-color: rgba(37, 99, 235, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.activity-info {
  display: flex;
  flex-direction: column;
}

.activity-domain {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.activity-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

.activity-meta .added-bid {
  color: var(--brand-blue);
  font-weight: 700;
}

/* Custom Scrollbar underneath — matches uprank.lol exactly */
.activity-scrollbar-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 0 2px;
}

.activity-scroll-btn {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #d1d5db;
  font-size: 9px;
  background: transparent;
  padding: 0;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.activity-scroll-btn:hover {
  color: #94a3b8;
  background: #f1f5f9;
}

.activity-custom-track {
  flex: 1;
  height: 3px;
  background: #e9ecef;
  border-radius: 999px;
  position: relative;
  overflow: visible;
}

.activity-custom-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: #c8cdd5;
  border-radius: 999px;
  transition: background-color 0.2s;
  cursor: pointer;
}

.activity-custom-thumb:hover,
.activity-custom-thumb.dragging {
  background: #9ca3af;
}

/* ============================================================
   The Chasers / Leaderboard Section & Cards (Blue Theme)
   ============================================================ */
.leaderboard-section {
  margin-top: 14px;
}

.chasers-pill-wrapper {
  display: flex;
  justify-content: center;
  margin: 28px 0 14px;
}

.chasers-pill {
  background: #000000;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 15px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.15px;
  user-select: none;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-card {
  background: #ffffff;
  border: 1px solid #edf0f2;
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.18s ease;
}

.rank-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.07);
  transform: translateY(-1px);
}

.rank-number {
  font-size: 22px;
  font-weight: 700;
  color: #94a3af;
  min-width: 34px;
  letter-spacing: -0.3px;
}

.rank-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
}

.rank-main-info {
  flex: 1;
  min-width: 0;
}

.rank-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 4px;
}

.rank-title a {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 0.15s ease;
}

.rank-title a:hover {
  color: var(--brand-blue);
}

.rank-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-badge {
  background: var(--brand-light-bg);
  color: var(--brand-blue);
  font-size: 11.5px;
  font-weight: 600;
  padding: 2.5px 9px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 1px solid #dbeafe;
}

.rank-time-ago {
  font-size: 12px;
  color: #94a3af;
  font-weight: 500;
}

.rank-action-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 125px;
  flex-shrink: 0;
}

.rank-price-display {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-blue);
  letter-spacing: -0.4px;
}

.btn-take-spot {
  background: var(--brand-light-bg);
  border: 1px solid var(--brand-light-border);
  color: var(--brand-blue);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-take-spot:hover {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* Modal Styling */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  padding: 20px;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  padding: 28px 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.2s ease;
}

.modal-backdrop.open .modal-box {
  transform: scale(1) translateY(0);
}

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

.modal-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  color: var(--text-muted);
  font-size: 20px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.modal-close:hover {
  color: var(--text-primary);
  background: #f1f5f9;
}

/* Modal Live Logo & Meta Preview Card */
.modal-preview-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeIn 0.2s ease;
}

.modal-preview-logo-wrap {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.modal-preview-logo-wrap img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.modal-preview-meta {
  flex: 1;
  min-width: 0;
}

.modal-preview-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-preview-domain {
  font-size: 12px;
  color: var(--brand-blue);
  font-weight: 600;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.15s;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--brand-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 65px;
}

.modal-bid-preview {
  background: var(--brand-light-bg);
  border: 1px solid var(--brand-light-border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-label {
  font-size: 13px;
  color: var(--brand-dark);
  font-weight: 600;
}

.preview-cost {
  font-size: 19px;
  font-weight: 800;
  color: var(--brand-blue);
}

.btn-submit-bid {
  width: 100%;
  background: var(--brand-dark);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  padding: 11px;
  border-radius: var(--radius-md);
  transition: all 0.15s;
}

.btn-submit-bid:hover {
  background: var(--brand-dark-hover);
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111827;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Dedicated Rules Page Styles */
.rules-page-body {
  background-color: #f4f5f3;
  color: var(--text-primary);
}

.rules-container {
  max-width: 672px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}

.back-link {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6b7280;
  display: inline-block;
  transition: color 0.15s ease;
  font-weight: 500;
}

.back-link:hover {
  color: var(--brand-blue);
}

.rules-main-title {
  margin-top: 28px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
  line-height: 1.15;
}

.rules-lead-text {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.65;
  color: #4b5563;
}

.rules-section {
  margin-top: 44px;
}

.rules-section-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

.rules-list {
  margin-top: 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rules-list li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #4b5563;
  align-items: flex-start;
}

.rules-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-blue);
  margin-top: 9px;
  flex-shrink: 0;
}

.rules-footer {
  margin-top: 80px;
  border-top: 1px solid #e5e7eb;
  padding-top: 28px;
}

.rules-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.rules-footer-brand {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

.rules-footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  color: #6b7280;
}

.rules-footer-links a:hover,
.rules-active {
  color: var(--brand-blue);
  transition: color 0.15s ease;
}

.rules-footer-notice {
  margin-top: 20px;
  max-width: 580px;
  font-size: 11px;
  line-height: 1.6;
  color: #9ca3af;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile & Tablet Optimization)
   ========================================================================== */

@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 16px;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Navbar */
  .navbar-inner {
    padding: 12px 16px;
  }

  .nav-stats {
    display: none;
  }

  /* Submit Banner Card (Flawless Mobile Layout) */
  .submit-card {
    padding: 24px 18px 20px !important;
    border-radius: 22px !important;
    margin-top: 16px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .submit-row {
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .input-capsule {
    width: 100% !important;
    max-width: 100% !important;
    padding: 5px 6px 5px 14px !important;
    box-sizing: border-box !important;
  }

  .input-capsule input {
    font-size: 14.5px !important;
    padding: 8px 4px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .btn-get-listed {
    font-size: 13.5px !important;
    padding: 9px 18px !important;
    flex-shrink: 0 !important;
  }

  .price-stepper {
    width: 100% !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-top: 4px !important;
  }

  .stepper-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
  }

  .stepper-val {
    font-size: 24px !important;
  }

  /* Subtext - 100% Responsive without breaking or overflowing */
  .submit-subtext {
    white-space: normal !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-top: 16px !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 4px !important;
    word-break: normal !important;
    box-sizing: border-box !important;
  }

  /* Live Preview Card */
  .live-preview-wrapper {
    padding: 12px 14px !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 14px !important;
  }

  .live-preview-logo {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }

  .live-preview-title {
    font-size: 14px !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }

  .live-preview-desc {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  /* Hero / Featured Card */
  .featured-header {
    flex-direction: column;
    gap: 12px;
  }

  .featured-bottom {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }

  .featured-stats {
    justify-content: space-between;
    width: 100%;
  }

  .btn-take-rank {
    width: 100%;
    text-align: center;
    padding: 11px 16px;
  }

  /* Rank Items */
  .rank-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
  }

  .rank-left {
    width: 100%;
  }

  .rank-stats-col {
    align-items: center;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
  }

  .btn-outbid {
    padding: 6px 14px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .submit-card {
    padding: 20px 14px 18px !important;
  }

  .input-capsule {
    padding: 4px 5px 4px 12px !important;
  }

  .btn-get-listed {
    font-size: 13px !important;
    padding: 8px 14px !important;
  }

  .submit-subtext {
    font-size: 12px !important;
  }

  .board-stats-row {
    font-size: 12px;
  }
}